Class ShapeConverter.Double
java.lang.Object
org.apache.sis.internal.feature.jts.ShapeConverter
org.apache.sis.internal.feature.jts.ShapeConverter.Double
- Enclosing class:
- ShapeConverter
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate double[]Coordinate of current geometry.private final double[]A temporary array for the transfer of coordinate values.Fields inherited from class org.apache.sis.internal.feature.jts.ShapeConverter
iterator, length -
Constructor Summary
ConstructorsConstructorDescriptionDouble(org.locationtech.jts.geom.GeometryFactory factory, PathIterator iterator) Creates a new converter for the given path iterator. -
Method Summary
Modifier and TypeMethodDescription(package private) voidaddPoint()Stores the single point obtained by the last call tocurrentSegment().private voidaddPoint(double[] source) Implementation ofaddPoint()shared withtoSequence(boolean).(package private) intDelegates toPathIterator.currentSegment(double[]).(package private) PackedCoordinateSequencetoSequence(boolean close) Returns a copy of current coordinate values as a JTS coordinate sequence.Methods inherited from class org.apache.sis.internal.feature.jts.ShapeConverter
create
-
Field Details
-
vertex
private final double[] vertexA temporary array for the transfer of coordinate values. -
buffer
private double[] bufferCoordinate of current geometry. The number of valid values isShapeConverter.length.
-
-
Constructor Details
-
Double
Double(org.locationtech.jts.geom.GeometryFactory factory, PathIterator iterator) Creates a new converter for the given path iterator.
-
-
Method Details
-
currentSegment
int currentSegment()Delegates toPathIterator.currentSegment(double[]).- Specified by:
currentSegmentin classShapeConverter
-
addPoint
void addPoint()Stores the single point obtained by the last call tocurrentSegment().- Specified by:
addPointin classShapeConverter
-
addPoint
private void addPoint(double[] source) Implementation ofaddPoint()shared withtoSequence(boolean). -
toSequence
Returns a copy of current coordinate values as a JTS coordinate sequence.- Specified by:
toSequencein classShapeConverter- Parameters:
close- whether to ensure that the first point is repeated as the last point.- Returns:
- a JTS coordinate sequence containing a copy of current coordinate values.
-