public class PostgisGeometry extends Object
| Modifier and Type | Field and Description |
|---|---|
private static String |
HEXEWKB_EMPTY_GEOMETRYCOLLECTION
Static Hex EKWB for a GEOMETRYCOLLECTION EMPTY.
|
private Integer |
srid
Coordinate reference system identifier.
|
private byte[] |
wkb
PostGIS Extended-Well-Known-Binary (EWKB) geometry representation.
|
| Modifier | Constructor and Description |
|---|---|
private |
PostgisGeometry(byte[] ewkb,
Integer srid)
Create a PostgisGeometry using the supplied EWKB and SRID.
|
| Modifier and Type | Method and Description |
|---|---|
static PostgisGeometry |
createEmpty()
Create a GEOMETRYCOLLECTION EMPTY PostgisGeometry
|
static PostgisGeometry |
fromEwkb(byte[] ewkb)
Create a PostgisGeometry using the supplied PostGIS EWKB.
|
static PostgisGeometry |
fromHexEwkb(String hexEwkb)
Create a PostgisGeometry using the supplied PostGIS Hex EWKB string.
|
Integer |
getSrid()
Returns the coordinate reference system identifier (SRID)
|
byte[] |
getWkb()
Returns the standard well-known binary representation
|
private static Integer |
parseSrid(byte[] ewkb)
Parses an EWKB Geometry and extracts the SRID (if any)
https://trac.osgeo.org/postgis/browser/trunk/doc/ZMSgeoms.txt
|
private static final String HEXEWKB_EMPTY_GEOMETRYCOLLECTION
private final byte[] wkb
private final Integer srid
private PostgisGeometry(byte[] ewkb,
Integer srid)
ewkb - the Extended Well-Known binary representation of the coordinate in the standard formatsrid - the coordinate system identifier (SRID); null if unset/unknownpublic static PostgisGeometry fromHexEwkb(String hexEwkb)
public static PostgisGeometry fromEwkb(byte[] ewkb)
public static PostgisGeometry createEmpty()
PostgisGeometry which represents a PostgisGeometry APIpublic byte[] getWkb()
byte[] which represents the standard well-known binarypublic Integer getSrid()
private static Integer parseSrid(byte[] ewkb)
ewkb - PostGIS EWKB geometryCopyright © 2019 JBoss by Red Hat. All rights reserved.