public abstract class AbstractSDODecoder extends java.lang.Object implements Decoder<SDOGeometry>
| Modifier and Type | Class and Description |
|---|---|
(package private) static class |
AbstractSDODecoder.CombiningVisitor<P extends Position> |
| Modifier and Type | Field and Description |
|---|---|
private CoordinateReferenceSystem<?> |
crs |
private static double |
LINEARIZER_EPSILON |
| Constructor and Description |
|---|
AbstractSDODecoder() |
| Modifier and Type | Method and Description |
|---|---|
protected <P extends Position> |
add(PositionSequence<P> seq1,
int seq1Offset,
PositionSequence<P> seq2,
int seq2Offset) |
protected <P extends Position> |
add(PositionSequence<P> seq1,
PositionSequence<P> seq2) |
private <P extends Position> |
addToBuilder(PositionSequence<P> seq,
int skip,
PositionSequenceBuilder<P> builder,
AbstractSDODecoder.CombiningVisitor<P> visitor) |
protected <P extends Position> |
convertOrdinateArray(java.lang.Double[] oordinates,
SDOGeometry sdoGeom,
CoordinateReferenceSystem<P> crs) |
Geometry<?> |
decode(SDOGeometry nativeGeom) |
private CoordinateReferenceSystem<?> |
determineCRS(SDOGeometry nativeGeom) |
private <P extends Position> |
env2Seq(P p0,
P p1,
boolean asExteriorRing) |
protected java.lang.Double[] |
extractOrdinatesOfElement(int element,
SDOGeometry sdoGeom,
boolean hasNextSE) |
protected <P extends Position> |
getCompoundCSeq(int idxFirst,
int idxLast,
SDOGeometry sdoGeom)
Gets the CoordinateSequence corresponding to a compound element.
|
(package private) int |
getCoordinateDimension(SDOGeometry nativeGeom) |
(package private) CoordinateReferenceSystem<?> |
getCoordinateReferenceSystem(SDOGeometry nativeGeom)
Determine the SRID, by considering the srid value to be an EPSG code.
|
protected <P extends Position> |
getElementCSeq(int i,
SDOGeometry sdoGeom,
boolean hasNextSE,
CoordinateReferenceSystem<P> crs)
Gets the CoordinateSequence corresponding to an element.
|
(package private) int |
getLinearReferenceDimension(SDOGeometry nativeGeom) |
(package private) int |
getVerticalDimension(SDOGeometry nativeGeom) |
(package private) abstract Geometry<?> |
internalDecode(SDOGeometry nativeGeom) |
protected <P extends Position> |
linearize(PositionSequence<P> positions,
boolean entireCirlce)
Linearizes arcs and circles.
|
private static double LINEARIZER_EPSILON
private CoordinateReferenceSystem<?> crs
public Geometry<?> decode(SDOGeometry nativeGeom)
decode in interface Decoder<SDOGeometry>CoordinateReferenceSystem<?> getCoordinateReferenceSystem(SDOGeometry nativeGeom)
nativeGeom - private CoordinateReferenceSystem<?> determineCRS(SDOGeometry nativeGeom)
int getCoordinateDimension(SDOGeometry nativeGeom)
int getLinearReferenceDimension(SDOGeometry nativeGeom)
int getVerticalDimension(SDOGeometry nativeGeom)
protected <P extends Position> PositionSequence<P> convertOrdinateArray(java.lang.Double[] oordinates, SDOGeometry sdoGeom, CoordinateReferenceSystem<P> crs)
protected <P extends Position> PositionSequence<P> add(PositionSequence<P> seq1, PositionSequence<P> seq2)
protected <P extends Position> PositionSequence<P> add(PositionSequence<P> seq1, int seq1Offset, PositionSequence<P> seq2, int seq2Offset)
private <P extends Position> void addToBuilder(PositionSequence<P> seq, int skip, PositionSequenceBuilder<P> builder, AbstractSDODecoder.CombiningVisitor<P> visitor)
abstract Geometry<?> internalDecode(SDOGeometry nativeGeom)
protected <P extends Position> PositionSequence<P> getCompoundCSeq(int idxFirst, int idxLast, SDOGeometry sdoGeom)
idxFirst - the first sub-element of the compound elementidxLast - the last sub-element of the compound elementsdoGeom - the SDOGeometry that holds the compound element.protected <P extends Position> PositionSequence<P> getElementCSeq(int i, SDOGeometry sdoGeom, boolean hasNextSE, CoordinateReferenceSystem<P> crs)
i - sdoGeom - private <P extends Position> PositionSequence<P> env2Seq(P p0, P p1, boolean asExteriorRing)
protected <P extends Position> PositionSequence<P> linearize(PositionSequence<P> positions, boolean entireCirlce)
protected java.lang.Double[] extractOrdinatesOfElement(int element,
SDOGeometry sdoGeom,
boolean hasNextSE)