abstract class AbstractSqlServerEncoder extends java.lang.Object implements Encoder<SqlServerGeometry>
| Constructor and Description |
|---|
AbstractSqlServerEncoder() |
| Modifier and Type | Method and Description |
|---|---|
<P extends Position,G extends Geometry<P>> |
encode(G geom) |
protected abstract void |
encode(Geometry<?> geom,
int parentShapeIndex,
CountingPositionSequenceBuilder<?> coordinates,
java.util.List<Figure> figures,
java.util.List<Shape> shapes)
Appends the points, figures, shapes to the resp.
|
protected void |
encodeFigures(SqlServerGeometry nativeGeom,
java.util.List<Figure> figures) |
protected void |
encodePoints(SqlServerGeometry nativeGeom,
PositionSequence<?> coordinates) |
protected void |
encodeShapes(SqlServerGeometry nativeGeom,
java.util.List<Shape> shapes) |
protected void |
setCoordinate(SqlServerGeometry nativeGeom,
int idx,
PositionSequence<?> coordinates) |
public <P extends Position,G extends Geometry<P>> SqlServerGeometry encode(G geom)
encode in interface Encoder<SqlServerGeometry>protected abstract void encode(Geometry<?> geom, int parentShapeIndex, CountingPositionSequenceBuilder<?> coordinates, java.util.List<Figure> figures, java.util.List<Shape> shapes)
geom - geometry to serializationparentShapeIndex - index of the parent Shape for the geometrycoordinates - coordinate list to append tofigures - figure list to append toshapes - shape list to append toprotected void encodeShapes(SqlServerGeometry nativeGeom, java.util.List<Shape> shapes)
protected void encodeFigures(SqlServerGeometry nativeGeom, java.util.List<Figure> figures)
protected void encodePoints(SqlServerGeometry nativeGeom, PositionSequence<?> coordinates)
protected void setCoordinate(SqlServerGeometry nativeGeom, int idx, PositionSequence<?> coordinates)