abstract class AbstractWkbEncoder extends java.lang.Object implements WkbEncoder
| Constructor and Description |
|---|
AbstractWkbEncoder() |
| Modifier and Type | Method and Description |
|---|---|
protected <P extends Position> |
calculateSize(Geometry<P> geom,
boolean includeSrid) |
<P extends Position> |
encode(Geometry<P> geometry,
ByteOrder byteOrder)
Encodes a
Geometry into a WKB representation using the specified byte-order. |
private <P extends Position> |
getPointByteSize(Geometry<P> geom) |
private <P extends Position> |
getPolygonSize(Polygon<P> geom) |
protected <P extends Position> |
newWkbVisitor(ByteBuffer output,
Geometry<P> geometry) |
protected abstract <P extends Position> |
sizeEmptyGeometry(Geometry<P> geometry) |
private <P extends Position,G extends Geometry<P>> |
sizeOfGeometryCollection(GeometryCollection<P,G> collection) |
protected <P extends Position> |
writeGeometry(Geometry<P> geom,
ByteBuffer output) |
public <P extends Position> ByteBuffer encode(Geometry<P> geometry, ByteOrder byteOrder)
Geometry into a WKB representation using the specified byte-order.encode in interface WkbEncodergeometry - The Geometry to be encoded as WKB.byteOrder - The WKB byte order, either XDR or NDRGeometry.protected <P extends Position> void writeGeometry(Geometry<P> geom, ByteBuffer output)
protected <P extends Position> WkbVisitor<P> newWkbVisitor(ByteBuffer output, Geometry<P> geometry)
protected <P extends Position> int calculateSize(Geometry<P> geom, boolean includeSrid)
protected abstract <P extends Position> int sizeEmptyGeometry(Geometry<P> geometry)
private <P extends Position,G extends Geometry<P>> int sizeOfGeometryCollection(GeometryCollection<P,G> collection)