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() |
byte[] |
getBytes()
Get the bytes of the entire GeoPackage geometry including GeoPackage
header and WKB bytes
|
GeometryEnvelope |
getEnvelope() |
Geometry |
getGeometry() |
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() |
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() |
boolean |
isExtended() |
void |
setByteOrder(ByteOrder byteOrder) |
void |
setEmpty(boolean empty) |
void |
setEnvelope(GeometryEnvelope envelope) |
void |
setExtended(boolean extended) |
void |
setGeometry(Geometry geometry)
Set the geometry.
|
void |
setSrsId(int srsId) |
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)
public void setEmpty(boolean empty)
public void setByteOrder(ByteOrder byteOrder)
public void setSrsId(int srsId)
public void setEnvelope(GeometryEnvelope envelope)
public 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 © 2016 National Geospatial-Intelligence Agency. All rights reserved.