abstract class AbstractWkbDecoder extends java.lang.Object implements WkbDecoder
WkbDecoders.| Constructor and Description |
|---|
AbstractWkbDecoder() |
| Modifier and Type | Method and Description |
|---|---|
private void |
alignByteOrder(ByteBuffer byteBuffer) |
Geometry<?> |
decode(ByteBuffer byteBuffer)
Decodes a WKB encoded representation of a
Geometry |
<P extends Position> |
decode(ByteBuffer byteBuffer,
CoordinateReferenceSystem<P> crs)
Decodes a WKB encoded representation of a
Geometry, assuming the specified
CoordinateReferenceSystem |
private <P extends Position> |
decodeGeometry(ByteBuffer byteBuffer,
CoordinateReferenceSystem<P> crs) |
private <P extends Position> |
decodeGeometryCollection(ByteBuffer byteBuffer,
CoordinateReferenceSystem<P> crs) |
private <P extends Position> |
decodeLineString(ByteBuffer byteBuffer,
CoordinateReferenceSystem<P> crs) |
private <P extends Position> |
decodeMultiLineString(ByteBuffer byteBuffer,
CoordinateReferenceSystem<P> crs) |
private <P extends Position> |
decodeMultiPoint(ByteBuffer byteBuffer,
CoordinateReferenceSystem<P> crs) |
private <P extends Position> |
decodeMultiPolygon(ByteBuffer byteBuffer,
CoordinateReferenceSystem<P> crs) |
private <P extends Position> |
decodePoint(ByteBuffer byteBuffer,
CoordinateReferenceSystem<P> crs) |
private <P extends Position> |
decodePolygon(ByteBuffer byteBuffer,
CoordinateReferenceSystem<P> crs) |
protected abstract boolean |
hasSrid(int typeCode) |
protected abstract void |
prepare(ByteBuffer byteBuffer)
Perform any preparatory steps on the bytebuffer before
starting the decoding.
|
protected abstract <P extends Position> |
readCrs(ByteBuffer byteBuffer,
int typeCode,
CoordinateReferenceSystem<P> crs)
Read and set the SRID (if it is present)
|
private <P extends Position> |
readPolygonRings(int numRings,
ByteBuffer byteBuffer,
CoordinateReferenceSystem<P> crs) |
private <P extends Position> |
readPosition(ByteBuffer byteBuffer,
double[] coordinates,
CoordinateReferenceSystem<P> crs) |
private <P extends Position> |
readPositions(int numPos,
ByteBuffer byteBuffer,
CoordinateReferenceSystem<P> crs) |
private <P extends Position> |
readRing(ByteBuffer byteBuffer,
CoordinateReferenceSystem<P> crs) |
protected int |
readTypeCode(ByteBuffer byteBuffer) |
public <P extends Position> Geometry<P> decode(ByteBuffer byteBuffer, CoordinateReferenceSystem<P> crs)
WkbDecoderGeometry, assuming the specified
CoordinateReferenceSystemdecode in interface WkbDecoderP - the Position type for the (base)byteBuffer - the WKB encoded binary representationcrs - the base coordinate reference system assumed for the wktGeometrypublic Geometry<?> decode(ByteBuffer byteBuffer)
WkbDecoderGeometrydecode in interface WkbDecoderbyteBuffer - the WKB encoded binary representationGeometryprivate <P extends Position> Geometry<P> decodeGeometry(ByteBuffer byteBuffer, CoordinateReferenceSystem<P> crs)
private <P extends Position> MultiLineString<P> decodeMultiLineString(ByteBuffer byteBuffer, CoordinateReferenceSystem<P> crs)
private <P extends Position> MultiPoint<P> decodeMultiPoint(ByteBuffer byteBuffer, CoordinateReferenceSystem<P> crs)
private <P extends Position> MultiPolygon<P> decodeMultiPolygon(ByteBuffer byteBuffer, CoordinateReferenceSystem<P> crs)
private <P extends Position> GeometryCollection<P,Geometry<P>> decodeGeometryCollection(ByteBuffer byteBuffer, CoordinateReferenceSystem<P> crs)
private <P extends Position> Polygon<P> decodePolygon(ByteBuffer byteBuffer, CoordinateReferenceSystem<P> crs)
private <P extends Position> LineString<P> decodeLineString(ByteBuffer byteBuffer, CoordinateReferenceSystem<P> crs)
private <P extends Position> Point<P> decodePoint(ByteBuffer byteBuffer, CoordinateReferenceSystem<P> crs)
private <P extends Position> PositionSequence<P> readPositions(int numPos, ByteBuffer byteBuffer, CoordinateReferenceSystem<P> crs)
private <P extends Position> void readPosition(ByteBuffer byteBuffer, double[] coordinates, CoordinateReferenceSystem<P> crs)
private <P extends Position> java.util.List<LinearRing<P>> readPolygonRings(int numRings, ByteBuffer byteBuffer, CoordinateReferenceSystem<P> crs)
private <P extends Position> LinearRing<P> readRing(ByteBuffer byteBuffer, CoordinateReferenceSystem<P> crs)
protected abstract void prepare(ByteBuffer byteBuffer)
byteBuffer - protected abstract <P extends Position> CoordinateReferenceSystem<P> readCrs(ByteBuffer byteBuffer, int typeCode, CoordinateReferenceSystem<P> crs)
byteBuffer - typeCode - crs - protected abstract boolean hasSrid(int typeCode)
protected int readTypeCode(ByteBuffer byteBuffer)
private void alignByteOrder(ByteBuffer byteBuffer)