org.h2gis.utilities.jts_utils
Class CoordinateSequenceDimensionFilter
java.lang.Object
org.h2gis.utilities.jts_utils.CoordinateSequenceDimensionFilter
- All Implemented Interfaces:
- com.vividsolutions.jts.geom.CoordinateSequenceFilter
public class CoordinateSequenceDimensionFilter
- extends Object
- implements com.vividsolutions.jts.geom.CoordinateSequenceFilter
Filter on the dimension of each coordinate of the CoordinateSequence to determine
the maximum coordinate dimension as well as whether the CoordinateSequence contains
only 2D coordinates or mixed 2D and >2D coordinates.
- Author:
- Erwan Bocher, Adam Gouge
|
Field Summary |
static int |
XY
|
static int |
XYZ
|
static int |
XYZM
|
|
Method Summary |
void |
filter(com.vividsolutions.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. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XY
public static final int XY
- See Also:
- Constant Field Values
XYZ
public static final int XYZ
- See Also:
- Constant Field Values
XYZM
public static final int XYZM
- See Also:
- Constant Field Values
CoordinateSequenceDimensionFilter
public CoordinateSequenceDimensionFilter()
filter
public void filter(com.vividsolutions.jts.geom.CoordinateSequence seq,
int i)
- Specified by:
filter in interface com.vividsolutions.jts.geom.CoordinateSequenceFilter
getDimension
public int getDimension()
- Gets the dimension of the coordinate sequence.
- Returns:
- a integer between 2 and 4.
isMixed
public boolean isMixed()
is2D
public boolean is2D()
setMAXDim
public void setMAXDim(int maxDim)
- Sets the maximum allowed dimension for the filter.
The filter will stop after this dimension has been reached.
Possible values are:
CoordinateSequenceDimensionFilter.XY
CoordinateSequenceDimensionFilter.XYZ
CoordinateSequenceDimensionFilter.XYZM
Default value is:
CoordinateSequenceDimensionFilter.XYZM.
- Parameters:
maxDim - a integer dimension
isDone
public boolean isDone()
- Specified by:
isDone in interface com.vividsolutions.jts.geom.CoordinateSequenceFilter
isGeometryChanged
public boolean isGeometryChanged()
- Specified by:
isGeometryChanged in interface com.vividsolutions.jts.geom.CoordinateSequenceFilter
Copyright © 2015 IRSTV CNRS-FR-2488. All Rights Reserved.