public class GeoPackageGeometryData extends Object
| Constructor and Description |
|---|
GeoPackageGeometryData(byte[] bytes)
Constructor
|
GeoPackageGeometryData(long srsId)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
fromBytes(byte[] bytes)
Populate the geometry data from the bytes
|
ByteOrder |
getByteOrder()
Get the byte order
|
byte[] |
getBytes()
Get the bytes of the entire GeoPackage geometry including GeoPackage
header and WKB bytes
|
GeometryEnvelope |
getEnvelope()
Get the geometry envelope
|
Geometry |
getGeometry()
Get the geometry
|
ByteBuffer |
getHeaderByteBuffer()
Get the GeoPackage header bytes already ordered in a Byte Buffer
|
byte[] |
getHeaderBytes()
Get the GeoPackage header bytes
|
static int |
getIndicator(GeometryEnvelope envelope)
Get the envelope flag indicator
1 for xy, 2 for xyz, 3 for xym, 4 for xyzm (null would be 0)
|
int |
getSrsId()
Get the srs id
|
ByteBuffer |
getWkbByteBuffer()
Get the Well-Known Binary Geometry bytes already ordered in a Byte Buffer
|
byte[] |
getWkbBytes()
Get the Well-Known Binary Geometry bytes
|
int |
getWkbGeometryIndex()
Return the byte index where the Well-Known Binary bytes start
|
boolean |
isEmpty()
Is the geometry empty
|
boolean |
isExtended()
Is the geometry extended
|
void |
setByteOrder(ByteOrder byteOrder)
Set the byte order
|
void |
setEmpty(boolean empty)
Set the empty flag
|
void |
setEnvelope(GeometryEnvelope envelope)
Set the geometry envelope
|
void |
setExtended(boolean extended)
Set the extended flag
|
void |
setGeometry(Geometry geometry)
Set the geometry.
|
void |
setSrsId(int srsId)
Set the srs id
|
byte[] |
toBytes()
Write the geometry to bytes
|
public GeoPackageGeometryData(long srsId)
srsId - public GeoPackageGeometryData(byte[] bytes)
bytes - public void fromBytes(byte[] bytes)
bytes - public byte[] toBytes()
throws IOException
IOExceptionpublic boolean isExtended()
public boolean isEmpty()
public ByteOrder getByteOrder()
public int getSrsId()
public GeometryEnvelope getEnvelope()
public Geometry getGeometry()
public void setExtended(boolean extended)
extended - extended valuepublic void setEmpty(boolean empty)
empty - empty valuepublic void setByteOrder(ByteOrder byteOrder)
byteOrder - byte orderpublic void setSrsId(int srsId)
srsId - srs idpublic void setEnvelope(GeometryEnvelope envelope)
envelope - geometry envelopepublic void setGeometry(Geometry geometry)
geometry - public byte[] getBytes()
public byte[] getHeaderBytes()
public ByteBuffer getHeaderByteBuffer()
public byte[] getWkbBytes()
public ByteBuffer getWkbByteBuffer()
public int getWkbGeometryIndex()
public static int getIndicator(GeometryEnvelope envelope)
Copyright © 2017 National Geospatial-Intelligence Agency. All rights reserved.