public class CoordinateSequenceDimensionFilter extends Object implements org.locationtech.jts.geom.CoordinateSequenceFilter
| Modifier and Type | Field and Description |
|---|---|
static int |
XY |
static int |
XYZ |
static int |
XYZM |
| Constructor and Description |
|---|
CoordinateSequenceDimensionFilter() |
| Modifier and Type | Method and Description |
|---|---|
static CoordinateSequenceDimensionFilter |
apply(org.locationtech.jts.geom.Geometry geometry)
Init CoordinateSequenceDimensionFilter object.
|
void |
filter(org.locationtech.jts.geom.CoordinateSequence seq,
int i) |
int |
getDimension()
Gets the dimension of the coordinate sequence.
|
boolean |
is2D() |
boolean |
isDone() |
boolean |
isGeometryChanged() |
boolean |
isMixed() |
void |
setMAXDim(int maxDim)
Sets the maximum allowed dimension for the filter.
|
public static final int XY
public static final int XYZ
public static final int XYZM
public void filter(org.locationtech.jts.geom.CoordinateSequence seq,
int i)
filter in interface org.locationtech.jts.geom.CoordinateSequenceFilterpublic static CoordinateSequenceDimensionFilter apply(org.locationtech.jts.geom.Geometry geometry)
geometry - Geometry instancepublic int getDimension()
public boolean isMixed()
public boolean is2D()
public void setMAXDim(int maxDim)
CoordinateSequenceDimensionFilter.XY
CoordinateSequenceDimensionFilter.XYZ
CoordinateSequenceDimensionFilter.XYZM
Default value is:
CoordinateSequenceDimensionFilter.XYZM.maxDim - a integer dimensionpublic boolean isDone()
isDone in interface org.locationtech.jts.geom.CoordinateSequenceFilterpublic boolean isGeometryChanged()
isGeometryChanged in interface org.locationtech.jts.geom.CoordinateSequenceFilterCopyright © 2019 CNRS. All rights reserved.