| Package | Description |
|---|---|
| org.geolatte.geom |
A model for geospatial geometries.
|
| org.geolatte.geom.codec |
Encoder/Decoder classes for serializing Geometries and Coordinate Reference Systems.
|
| Modifier and Type | Method and Description |
|---|---|
static ByteBuffer |
ByteBuffer.allocate(int capacity)
Allocates a new
ByteBuffer of the specified capacity. |
static ByteBuffer |
ByteBuffer.from(byte[] bytes)
Wraps a byte array into a
ByteBuffer. |
static ByteBuffer |
ByteBuffer.from(java.lang.String hexString)
Creates a
ByteBuffer from a hexadecimal string. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
ByteBuffer.hasSameContent(ByteBuffer other)
Used for testing purposes.
|
| Constructor and Description |
|---|
SerializationProxy(ByteBuffer buffer) |
| Modifier and Type | Field and Description |
|---|---|
private ByteBuffer |
WkbVisitor.output |
| Modifier and Type | Method and Description |
|---|---|
<P extends Position> |
WkbEncoder.encode(Geometry<P> geometry,
ByteOrder byteOrder)
Encodes a
Geometry to its WKB representation |
<P extends Position> |
MySqlWkbEncoder.encode(Geometry<P> geometry,
ByteOrder byteOrder) |
<P extends Position> |
AbstractWkbEncoder.encode(Geometry<P> geometry,
ByteOrder byteOrder)
Encodes a
Geometry into a WKB representation using the specified byte-order. |
static ByteBuffer |
Wkb.toWkb(Geometry geometry)
Encodes a
Geometry into a WKB representation using the NDR (little-endian) byte-order. |
static ByteBuffer |
Wkb.toWkb(Geometry<?> geometry,
ByteOrder byteOrder)
Encodes a
Geometry into a WKB representation using the specified byte-order. |
| Modifier and Type | Method and Description |
|---|---|
private void |
AbstractWkbDecoder.alignByteOrder(ByteBuffer byteBuffer) |
Geometry<?> |
AbstractWkbDecoder.decode(ByteBuffer byteBuffer) |
Geometry<?> |
WkbDecoder.decode(ByteBuffer byteBuffer)
Decodes a WKB encoded representation of a
Geometry |
<P extends Position> |
AbstractWkbDecoder.decode(ByteBuffer byteBuffer,
CoordinateReferenceSystem<P> crs) |
<P extends Position> |
WkbDecoder.decode(ByteBuffer byteBuffer,
CoordinateReferenceSystem<P> crs)
Decodes a WKB encoded representation of a
Geometry, assuming the specified
CoordinateReferenceSystem |
private <P extends Position> |
AbstractWkbDecoder.decodeGeometry(ByteBuffer byteBuffer,
CoordinateReferenceSystem<P> crs) |
private <P extends Position> |
AbstractWkbDecoder.decodeGeometryCollection(ByteBuffer byteBuffer,
CoordinateReferenceSystem<P> crs) |
private <P extends Position> |
AbstractWkbDecoder.decodeLineString(ByteBuffer byteBuffer,
CoordinateReferenceSystem<P> crs) |
private <P extends Position> |
AbstractWkbDecoder.decodeMultiLineString(ByteBuffer byteBuffer,
CoordinateReferenceSystem<P> crs) |
private <P extends Position> |
AbstractWkbDecoder.decodeMultiPoint(ByteBuffer byteBuffer,
CoordinateReferenceSystem<P> crs) |
private <P extends Position> |
AbstractWkbDecoder.decodeMultiPolygon(ByteBuffer byteBuffer,
CoordinateReferenceSystem<P> crs) |
private <P extends Position> |
AbstractWkbDecoder.decodePoint(ByteBuffer byteBuffer,
CoordinateReferenceSystem<P> crs) |
private <P extends Position> |
AbstractWkbDecoder.decodePolygon(ByteBuffer byteBuffer,
CoordinateReferenceSystem<P> crs) |
static Geometry<?> |
Wkb.fromWkb(ByteBuffer byteBuffer)
Decodes a WKB representation in a
ByteBuffer to a Geometry. |
protected <P extends Position> |
HANAWkbEncoder.newWkbVisitor(ByteBuffer output,
Geometry<P> geom) |
protected <P extends Position> |
PostgisWkbEncoder.newWkbVisitor(ByteBuffer output,
Geometry<P> geom) |
protected <P extends Position> |
AbstractWkbEncoder.newWkbVisitor(ByteBuffer output,
Geometry<P> geometry) |
protected void |
MySqlWkbDecoder.prepare(ByteBuffer byteBuffer)
Read the first four bytes: this contains the SRID
|
protected abstract void |
AbstractWkbDecoder.prepare(ByteBuffer byteBuffer)
Perform any preparatory steps on the bytebuffer before
starting the decoding.
|
protected void |
PostgisWkbDecoder.prepare(ByteBuffer byteBuffer) |
protected <P extends Position> |
HANAWkbDecoder.readCrs(ByteBuffer byteBuffer,
int typeCode,
CoordinateReferenceSystem<P> crs) |
protected <P extends Position> |
MySqlWkbDecoder.readCrs(ByteBuffer byteBuffer,
int typeCode,
CoordinateReferenceSystem<P> crs) |
protected abstract <P extends Position> |
AbstractWkbDecoder.readCrs(ByteBuffer byteBuffer,
int typeCode,
CoordinateReferenceSystem<P> crs)
Read and set the SRID (if it is present)
|
protected <P extends Position> |
PostgisWkbDecoder.readCrs(ByteBuffer byteBuffer,
int typeCode,
CoordinateReferenceSystem<P> crs) |
private <P extends Position> |
AbstractWkbDecoder.readPolygonRings(int numRings,
ByteBuffer byteBuffer,
CoordinateReferenceSystem<P> crs) |
private <P extends Position> |
AbstractWkbDecoder.readPosition(ByteBuffer byteBuffer,
double[] coordinates,
CoordinateReferenceSystem<P> crs) |
private <P extends Position> |
AbstractWkbDecoder.readPositions(int numPos,
ByteBuffer byteBuffer,
CoordinateReferenceSystem<P> crs) |
private <P extends Position> |
AbstractWkbDecoder.readRing(ByteBuffer byteBuffer,
CoordinateReferenceSystem<P> crs) |
protected int |
HANAWkbDecoder.readTypeCode(ByteBuffer byteBuffer) |
protected int |
AbstractWkbDecoder.readTypeCode(ByteBuffer byteBuffer) |
protected void |
WkbVisitor.writeByteOrder(ByteBuffer output) |
protected <P extends Position> |
AbstractWkbEncoder.writeGeometry(Geometry<P> geom,
ByteBuffer output) |
protected void |
WkbVisitor.writeNumRings(Polygon<P> geom,
ByteBuffer byteBuffer) |
protected void |
WkbVisitor.writePoint(double[] coordinates,
ByteBuffer output) |
protected void |
WkbVisitor.writePoints(PositionSequence<P> points,
int coordinateDimension,
ByteBuffer output) |
protected void |
HANAWkbEncoder.HANAWkbVisitor.writeTypeCodeAndSrid(Geometry<P> geometry,
ByteBuffer output) |
protected void |
PostgisWkbEncoder.PostgisWkbVisitor.writeTypeCodeAndSrid(Geometry<P> geometry,
ByteBuffer output) |
protected void |
WkbVisitor.writeTypeCodeAndSrid(Geometry<P> geometry,
ByteBuffer output) |
| Constructor and Description |
|---|
HANAWkbVisitor(ByteBuffer byteBuffer) |
PostgisWkbVisitor(ByteBuffer byteBuffer) |
WkbVisitor(ByteBuffer byteBuffer) |