Interface CSBuilder
-
- All Known Implementing Classes:
DefaultCSBuilder,PackedCSBuilder,PackedCSBuilder.Double,PackedCSBuilder.Float
public interface CSBuilderA Builder for JTS CoordinateSequences.- Author:
- wolf
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CoordinateSequenceend()Stops the coordinate sequence building and returns the resultintgetDimension()Returns the dimension of the coordinate sequence we are building, -1 if there is nonedoublegetOrdinate(int ordinateIndex, int coordinateIndex)Gets an ordinate in the specified coordinateintgetSize()Returns the size of the coordinate sequence we are building, -1 if there is nonevoidsetOrdinate(double value, int ordinateIndex, int coordinateIndex)Sets and ordinate in the specified coordinatevoidsetOrdinate(CoordinateSequence sequence, double value, int ordinateIndex, int coordinateIndex)Utility method that allows to set an ordinate in an already built coordinate sequence Needed because the CoordinateSequence interface does not expose itvoidstart(int size, int dimensions)Starts the building of a new coordinate sequence
-
-
-
Method Detail
-
start
void start(int size, int dimensions)Starts the building of a new coordinate sequence- Parameters:
size- - the number of coordinates in the coordinate sequencedimensions- - the dimension of the coordinates in the coordinate sequence, may be ignored if the coordinate sequence does not support variabile dimensions
-
end
CoordinateSequence end()
Stops the coordinate sequence building and returns the result
-
setOrdinate
void setOrdinate(double value, int ordinateIndex, int coordinateIndex)Sets and ordinate in the specified coordinate
-
setOrdinate
void setOrdinate(CoordinateSequence sequence, double value, int ordinateIndex, int coordinateIndex)
Utility method that allows to set an ordinate in an already built coordinate sequence Needed because the CoordinateSequence interface does not expose it
-
getOrdinate
double getOrdinate(int ordinateIndex, int coordinateIndex)Gets an ordinate in the specified coordinate
-
getSize
int getSize()
Returns the size of the coordinate sequence we are building, -1 if there is none
-
getDimension
int getDimension()
Returns the dimension of the coordinate sequence we are building, -1 if there is none
-
-