| Modifier and Type | Class and Description |
|---|---|
| public static class | GeometryUtils.
Converter output target that determines minimal dimension system for a geometry. |
| public static class | GeometryUtils.
Converter output target that calculates an envelope. |
| public abstract static class | GeometryUtils.
Converter output target. |
| Modifier and Type | Field and Description |
|---|---|
| public static final int | DIMENSION_SYSTEM_XY
Code of 2D (XY) dimension system. |
| public static final int | DIMENSION_SYSTEM_XYM
Code of M (XYM) dimension system. |
| public static final int | DIMENSION_SYSTEM_XYZ
Code of Z (XYZ) dimension system. |
| public static final int | DIMENSION_SYSTEM_XYZM
Code of ZM (XYZM) dimension system. |
| public static final int | GEOMETRY_COLLECTION
GEOMETRYCOLLECTION geometry type. |
| public static final int | LINE_STRING
LINESTRING geometry type. |
| public static final int | M
Number of M coordinate. |
| public static final int | MAX_X
Maximum X coordinate index. |
| public static final int | MAX_Y
Maximum Y coordinate index. |
| public static final int | MIN_X
Minimum X coordinate index. |
| public static final int | MIN_Y
Minimum Y coordinate index. |
| public static final int | MULTI_LINE_STRING
MULTILINESTRING geometry type. |
| public static final int | MULTI_POINT
MULTIPOINT geometry type. |
| public static final int | MULTI_POLYGON
MULTIPOLYGON geometry type. |
| public static final int | POINT
POINT geometry type. |
| public static final int | POLYGON
POLYGON geometry type. |
| public static final int | X
Number of X coordinate. |
| public static final int | Y
Number of Y coordinate. |
| public static final int | Z
Number of Z coordinate. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv static double | Returns: the same double valuea double value d)Throw exception if param is not finite value (ie. |
| public static double[] | Returns: envelope, or nullEWKB of a geometry ewkb)Calculates an envelope of a specified geometry. |
| public static boolean | Returns: whether the specified envelopes intersectsfirst envelope, or null envelope1, double[] second envelope, or null envelope2)Checks whether two envelopes intersect with each other. |
| pack-priv static double | Returns: normalized valuedouble value d)Normalizes all NaNs into single type on NaN and negative zero to positive zero. |
| public static double[] | Returns: union of two envelopesfirst envelope, or null envelope1, double[] second envelope, or null envelope2)Returns union of two envelopes. |
| DIMENSION_SYSTEM_XY | back to summary |
|---|---|
| public static final int DIMENSION_SYSTEM_XY Code of 2D (XY) dimension system. | |
| DIMENSION_SYSTEM_XYM | back to summary |
|---|---|
| public static final int DIMENSION_SYSTEM_XYM Code of M (XYM) dimension system. Can also be used in bit masks to determine presence of dimension M. | |
| DIMENSION_SYSTEM_XYZ | back to summary |
|---|---|
| public static final int DIMENSION_SYSTEM_XYZ Code of Z (XYZ) dimension system. Can also be used in bit masks to determine presence of dimension Z. | |
| DIMENSION_SYSTEM_XYZM | back to summary |
|---|---|
| public static final int DIMENSION_SYSTEM_XYZM Code of ZM (XYZM) dimension system. Can be also combined from
| |
| GEOMETRY_COLLECTION | back to summary |
|---|---|
| public static final int GEOMETRY_COLLECTION GEOMETRYCOLLECTION geometry type. | |
| LINE_STRING | back to summary |
|---|---|
| public static final int LINE_STRING LINESTRING geometry type. | |
| M | back to summary |
|---|---|
| public static final int M Number of M coordinate. | |
| MAX_X | back to summary |
|---|---|
| public static final int MAX_X Maximum X coordinate index. | |
| MAX_Y | back to summary |
|---|---|
| public static final int MAX_Y Maximum Y coordinate index. | |
| MIN_X | back to summary |
|---|---|
| public static final int MIN_X Minimum X coordinate index. | |
| MIN_Y | back to summary |
|---|---|
| public static final int MIN_Y Minimum Y coordinate index. | |
| MULTI_LINE_STRING | back to summary |
|---|---|
| public static final int MULTI_LINE_STRING MULTILINESTRING geometry type. | |
| MULTI_POINT | back to summary |
|---|---|
| public static final int MULTI_POINT MULTIPOINT geometry type. | |
| MULTI_POLYGON | back to summary |
|---|---|
| public static final int MULTI_POLYGON MULTIPOLYGON geometry type. | |
| POINT | back to summary |
|---|---|
| public static final int POINT POINT geometry type. | |
| POLYGON | back to summary |
|---|---|
| public static final int POLYGON POLYGON geometry type. | |
| X | back to summary |
|---|---|
| public static final int X Number of X coordinate. | |
| Y | back to summary |
|---|---|
| public static final int Y Number of Y coordinate. | |
| Z | back to summary |
|---|---|
| public static final int Z Number of Z coordinate. | |
| GeometryUtils | back to summary |
|---|---|
| private GeometryUtils() | |
| checkFinite | back to summary |
|---|---|
| pack-priv static double checkFinite(double d) Throw exception if param is not finite value (ie. NaN/inf/etc)
| |
| getEnvelope | back to summary |
|---|---|
| public static double[] getEnvelope(byte[] ewkb) Calculates an envelope of a specified geometry.
| |
| intersects | back to summary |
|---|---|
| public static boolean intersects(double[] envelope1, double[] envelope2) Checks whether two envelopes intersect with each other.
| |
| toCanonicalDouble | back to summary |
|---|---|
| pack-priv static double toCanonicalDouble(double d) Normalizes all NaNs into single type on NaN and negative zero to positive zero.
| |
| union | back to summary |
|---|---|
| public static double[] union(double[] envelope1, double[] envelope2) Returns union of two envelopes. This method does not modify the specified envelopes, but may return one of them as a result.
| |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected void | addCoordinate(double
X coordinate x, double Y coordinate y, double Z coordinate (NaN if not used) z, double M coordinate (NaN if not used) m, int 0-based index of coordinate in the current sequence index, int total number of coordinates in the current sequence total)Implements abstract org. Invoked to add a coordinate to a geometry. |
| protected void | dimensionSystem(int
dimension system dimensionSystem)Overrides org. Invoked to add dimension system requirement. |
| public int |
| DimensionSystemTarget | back to summary |
|---|---|
| public DimensionSystemTarget() Creates a new dimension system determination target. | |
| addCoordinate | back to summary |
|---|---|
| protected void addCoordinate(double x, double y, double z, double m, int index, int total) Implements abstract org. Doc from org. Invoked to add a coordinate to a geometry.
| |
| dimensionSystem | back to summary |
|---|---|
| protected void dimensionSystem(int dimensionSystem) Overrides org. Doc from org. Invoked to add dimension system requirement.
| |
| getDimensionSystem | back to summary |
|---|---|
| public int getDimensionSystem() Returns the minimal dimension system.
| |
| Modifier and Type | Field and Description |
|---|---|
| private boolean | enabled
Enables or disables the envelope calculation. |
| private double | |
| private double | |
| private double | |
| private double | |
| private boolean | set
Whether envelope was set. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected void | addCoordinate(double
X coordinate x, double Y coordinate y, double Z coordinate (NaN if not used) z, double M coordinate (NaN if not used) m, int 0-based index of coordinate in the current sequence index, int total number of coordinates in the current sequence total)Implements abstract org. Invoked to add a coordinate to a geometry. |
| public double[] | |
| protected void | startLineString(int
number of points in line string numPoints)Overrides org. Invoked before writing a LINESTRING. |
| protected void | startPoint()
Overrides org. Invoked before writing a POINT. |
| protected void | startPolygon(int
number of inner polygons numInner, int number of points in outer polygon numPoints)Overrides org. Invoked before writing a POLYGON. |
| protected void | startPolygonInner(int
number of points in inner polygon numInner)Overrides org. Invoked before writing an inner polygon in POLYGON. |
| enabled | back to summary |
|---|---|
| private boolean enabled Enables or disables the envelope calculation. Inner rings of polygons are not counted. | |
| maxX | back to summary |
|---|---|
| private double maxX | |
| maxY | back to summary |
|---|---|
| private double maxY | |
| minX | back to summary |
|---|---|
| private double minX | |
| minY | back to summary |
|---|---|
| private double minY | |
| set | back to summary |
|---|---|
| private boolean set Whether envelope was set. | |
| EnvelopeTarget | back to summary |
|---|---|
| public EnvelopeTarget() Creates a new envelope calculation target. | |
| addCoordinate | back to summary |
|---|---|
| protected void addCoordinate(double x, double y, double z, double m, int index, int total) Implements abstract org. Doc from org. Invoked to add a coordinate to a geometry.
| |
| getEnvelope | back to summary |
|---|---|
| public double[] getEnvelope() Returns the envelope.
| |
| startLineString | back to summary |
|---|---|
| protected void startLineString(int numPoints) Overrides org. Doc from org. Invoked before writing a LINESTRING.
| |
| startPoint | back to summary |
|---|---|
| protected void startPoint() Overrides org. Doc from org. Invoked before writing a POINT.
| |
| startPolygon | back to summary |
|---|---|
| protected void startPolygon(int numInner, int numPoints) Overrides org. Doc from org. Invoked before writing a POLYGON. If polygon is empty, both parameters are 0.
| |
| startPolygonInner | back to summary |
|---|---|
| protected void startPolygonInner(int numInner) Overrides org. Doc from org. Invoked before writing an inner polygon in POLYGON.
| |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected abstract void | addCoordinate(double
X coordinate x, double Y coordinate y, double Z coordinate (NaN if not used) z, double M coordinate (NaN if not used) m, int 0-based index of coordinate in the current sequence index, int total number of coordinates in the current sequence total)Invoked to add a coordinate to a geometry. |
| protected void | |
| protected void | endCollectionItem(GeometryUtils.
the result of target,startCollectionItem(int, int)type of collection type, int 0-based index of this item in the collection index, int total number of items in the collection total)Invoked after writing of a collection item. |
| protected void | |
| protected void | |
| protected void | |
| protected void | startCollection(int
type of collection, one of
type, int GeometryUtils#MULTI_POINT,
GeometryUtils#MULTI_LINE_STRING,
GeometryUtils#MULTI_POLYGON,
GeometryUtils#GEOMETRY_COLLECTIONnumber of items in this collection numItems)Invoked before writing of a collection. |
| protected GeometryUtils. | Returns: output target that should be used for processing of this collection item. May return this target or an custom sub-target.0-based index of this item in the collection index, int total number of items in the collection total)Invoked before writing of a collection item. |
| protected void | |
| protected void | |
| protected void | startPolygon(int
number of inner polygons numInner, int number of points in outer polygon numPoints)Invoked before writing a POLYGON. |
| protected void | startPolygonInner(int
number of points in inner polygon numInner)Invoked before writing an inner polygon in POLYGON. |
| Target | back to summary |
|---|---|
| public Target() | |
| addCoordinate | back to summary |
|---|---|
| protected abstract void addCoordinate(double x, double y, double z, double m, int index, int total) Invoked to add a coordinate to a geometry.
| |
| dimensionSystem | back to summary |
|---|---|
| protected void dimensionSystem(int dimensionSystem) Invoked to add dimension system requirement.
| |
| endCollectionItem | back to summary |
|---|---|
| protected void endCollectionItem(GeometryUtils. Invoked after writing of a collection item. This method is invoked on
the same target that was used for
| |
| endNonEmptyPolygon | back to summary |
|---|---|
| protected void endNonEmptyPolygon() Invoked after writing of non-empty POLYGON. | |
| endObject | back to summary |
|---|---|
| protected void endObject(int type) Invoked after writing of the object.
| |
| init | back to summary |
|---|---|
| protected void init(int srid) Initializes top-level target.
| |
| startCollection | back to summary |
|---|---|
| protected void startCollection(int type, int numItems) Invoked before writing of a collection.
| |
| startCollectionItem | back to summary |
|---|---|
| protected GeometryUtils. Invoked before writing of a collection item.
| |
| startLineString | back to summary |
|---|---|
| protected void startLineString(int numPoints) Invoked before writing a LINESTRING.
| |
| startPoint | back to summary |
|---|---|
| protected void startPoint() Invoked before writing a POINT. | |
| startPolygon | back to summary |
|---|---|
| protected void startPolygon(int numInner, int numPoints) Invoked before writing a POLYGON. If polygon is empty, both parameters are 0.
| |
| startPolygonInner | back to summary |
|---|---|
| protected void startPolygonInner(int numInner) Invoked before writing an inner polygon in POLYGON.
| |