Class ShapeConverter.Float
java.lang.Object
org.apache.sis.internal.feature.jts.ShapeConverter
org.apache.sis.internal.feature.jts.ShapeConverter.Float
- Enclosing class:
ShapeConverter
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate float[]
Coordinate of current geometry.private final float[]
A temporary array for the transfer of coordinate values.Fields inherited from class org.apache.sis.internal.feature.jts.ShapeConverter
iterator, length
-
Constructor Summary
ConstructorsConstructorDescriptionFloat
(org.locationtech.jts.geom.GeometryFactory factory, PathIterator iterator) Creates a new converter for the given path iterator. -
Method Summary
Modifier and TypeMethodDescription(package private) void
addPoint()
Stores the single point obtained by the last call tocurrentSegment()
.private void
addPoint
(float[] source) Implementation ofaddPoint()
shared withtoSequence(boolean)
.(package private) int
Delegates toPathIterator.currentSegment(float[])
.(package private) PackedCoordinateSequence
toSequence
(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 float[] vertexA temporary array for the transfer of coordinate values. -
buffer
private float[] bufferCoordinate of current geometry. The number of valid values isShapeConverter.length
.
-
-
Constructor Details
-
Float
Float(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(float[])
.- Specified by:
currentSegment
in classShapeConverter
-
addPoint
void addPoint()Stores the single point obtained by the last call tocurrentSegment()
.- Specified by:
addPoint
in classShapeConverter
-
addPoint
private void addPoint(float[] source) Implementation ofaddPoint()
shared withtoSequence(boolean)
. -
toSequence
Returns a copy of current coordinate values as a JTS coordinate sequence.- Specified by:
toSequence
in 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.
-