class PointSqlServerEncoder extends AbstractSqlServerEncoder
| Constructor and Description |
|---|
PointSqlServerEncoder() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
accepts(Geometry geom) |
<P extends Position,G extends Geometry<P>> |
encode(G geom)
Encodes a point as an
SQLGeometryV1 object. |
protected void |
encode(Geometry<?> geom,
int parentIdx,
CountingPositionSequenceBuilder<?> coordinates,
java.util.List<Figure> figures,
java.util.List<Shape> shapes)
Appends the points, figures, shapes to the resp.
|
encodeFigures, encodePoints, encodeShapes, setCoordinatepublic <P extends Position,G extends Geometry<P>> SqlServerGeometry encode(G geom)
SQLGeometryV1 object.
This is a specific implementation because points don't explicitly serialize figure and shape components.encode in interface Encoder<SqlServerGeometry>encode in class AbstractSqlServerEncodergeom - Geometry to serializeprotected void encode(Geometry<?> geom, int parentIdx, CountingPositionSequenceBuilder<?> coordinates, java.util.List<Figure> figures, java.util.List<Shape> shapes)
AbstractSqlServerEncoderencode in class AbstractSqlServerEncodergeom - geometry to serializationparentIdx - index of the parent Shape for the geometrycoordinates - coordinate list to append tofigures - figure list to append toshapes - shape list to append topublic boolean accepts(Geometry geom)