| Modifier and Type | Class and Description |
|---|---|
| public static class | JTSUtils.
Converter output target that creates a JTS Geometry. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| private static void | addCoordinate(org.
|
| private static void | addCoordinate(org.
|
| private static void | addRing(org.
|
| public static org. | Returns: JTS geometry objectsource EWKB ewkb)Converts EWKB to a JTS geometry object. |
| public static org. | Returns: JTS geometry objectsource EWKB ewkb, int dimension system dimensionSystem)Converts EWKB to a JTS geometry object. |
| public static byte[] | Returns: EWKB representationsource geometry geometryConverts Geometry to EWKB. |
| public static byte[] | Returns: EWKB representationsource geometry geometry,dimension system dimensionSystem)Converts Geometry to EWKB. |
| public static int | Returns: the dimension systemgeometry to parse geometryDetermines a dimension system of a JTS Geometry object. |
| private static int | |
| private static int | |
| private static int | |
| public static void | parseGeometry(org.
geometry to parse geometry,output target targetParses a JTS Geometry object. |
| private static void | parseGeometry(org.
geometry to parse geometry,output target target,type of parent geometry collection, or 0 for the root geometry parentType)Parses a JTS Geometry object. |
| JTSUtils | back to summary |
|---|---|
| private JTSUtils() | |
| addCoordinate | back to summary |
|---|---|
| private static void addCoordinate(org. | |
| addCoordinate | back to summary |
|---|---|
| private static void addCoordinate(org. | |
| addRing | back to summary |
|---|---|
| private static void addRing(org. | |
| ewkb2geometry | back to summary |
|---|---|
| public static org. Converts EWKB to a JTS geometry object.
| |
| ewkb2geometry | back to summary |
|---|---|
| public static org. Converts EWKB to a JTS geometry object.
| |
| geometry2ewkb | back to summary |
|---|---|
| public static byte[] geometry2ewkb(org. Converts Geometry to EWKB.
| |
| geometry2ewkb | back to summary |
|---|---|
| public static byte[] geometry2ewkb(org. Converts Geometry to EWKB.
| |
| getDimensionSystem | back to summary |
|---|---|
| public static int getDimensionSystem(org. Determines a dimension system of a JTS Geometry object.
| |
| getDimensionSystem1 | back to summary |
|---|---|
| private static int getDimensionSystem1(org. | |
| getDimensionSystemFromCoordinate | back to summary |
|---|---|
| private static int getDimensionSystemFromCoordinate(org. | |
| getDimensionSystemFromSequence | back to summary |
|---|---|
| private static int getDimensionSystemFromSequence(org. | |
| parseGeometry | back to summary |
|---|---|
| public static void parseGeometry(org. Parses a JTS Geometry object.
| |
| parseGeometry | back to summary |
|---|---|
| private static void parseGeometry(org. Parses a JTS Geometry object.
| |
| Modifier and Type | Field and Description |
|---|---|
| private org. | |
| private final int | |
| private org. | |
| private org. | |
| private int | |
| private org. | |
| private int |
| Access | Constructor and Description |
|---|---|
| public | GeometryTarget(int
dimension system to use dimensionSystem)Creates a new instance of JTS Geometry target. |
| private |
| 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. |
| private org. | |
| 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)Overrides org. Invoked after writing of a collection item. |
| pack-priv org. | |
| protected void | init(int
SRID srid)Overrides org. Initializes top-level target. |
| private 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)Overrides org. Invoked before writing of a collection. |
| protected GeometryUtils. | startCollectionItem(int
0-based index of this item in the collection index, int total number of items in the collection total)Overrides org. Invoked before writing of a collection item. |
| 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. |
| coordinates | back to summary |
|---|---|
| private org. | |
| dimensionSystem | back to summary |
|---|---|
| private final int dimensionSystem | |
| factory | back to summary |
|---|---|
| private org. | |
| innerCoordinates | back to summary |
|---|---|
| private org. | |
| innerOffset | back to summary |
|---|---|
| private int innerOffset | |
| subgeometries | back to summary |
|---|---|
| private org. | |
| type | back to summary |
|---|---|
| private int type | |
| GeometryTarget | back to summary |
|---|---|
| public GeometryTarget(int dimensionSystem) Creates a new instance of JTS Geometry target.
| |
| GeometryTarget | back to summary |
|---|---|
| private GeometryTarget(int dimensionSystem, org. | |
| 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.
| |
| createCoordinates | back to summary |
|---|---|
| private org. | |
| endCollectionItem | back to summary |
|---|---|
| protected void endCollectionItem(GeometryUtils. Overrides org. Doc from org. Invoked after writing of a collection item. This method is invoked on
the same target that was used for
| |
| getGeometry | back to summary |
|---|---|
| pack-priv org. | |
| init | back to summary |
|---|---|
| protected void init(int srid) Overrides org. Doc from org. Initializes top-level target.
| |
| initCoordinates | back to summary |
|---|---|
| private void initCoordinates(int numPoints) | |
| startCollection | back to summary |
|---|---|
| protected void startCollection(int type, int numItems) Overrides org. Doc from org. Invoked before writing of a collection.
| |
| startCollectionItem | back to summary |
|---|---|
| protected GeometryUtils. Overrides org. Doc from org. Invoked before writing of a collection item.
| |
| 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.
| |