| org.geotools.geometry.jts.coordinatesequence.CSBuilder
All known Subclasses: org.geotools.geometry.jts.coordinatesequence.DefaultCSBuilder, org.geotools.geometry.jts.coordinatesequence.PackedCSBuilder,
CSBuilder | public interface CSBuilder (Code) | | A Builder for JTS CoordinateSequences.
author: wolf |
Method Summary | |
public CoordinateSequence | end() | public int | getDimension() | public double | getOrdinate(int ordinateIndex, int coordinateIndex) | public int | getSize() | public void | setOrdinate(double value, int ordinateIndex, int coordinateIndex) | public void | setOrdinate(CoordinateSequence sequence, double value, int ordinateIndex, int coordinateIndex) | public void | start(int size, int dimensions) |
end | public CoordinateSequence end()(Code) | | Stops the coordinate sequence building and returns the result
|
getDimension | public int getDimension()(Code) | | Returns the dimension of the coordinate sequence we are building, -1 if there is none
|
getOrdinate | public double getOrdinate(int ordinateIndex, int coordinateIndex)(Code) | | Gets an ordinate in the specified coordinate
Parameters: ordinateIndex - Parameters: coordinateIndex - |
getSize | public int getSize()(Code) | | Returns the size of the coordinate sequence we are building, -1 if there is none
|
setOrdinate | public void setOrdinate(double value, int ordinateIndex, int coordinateIndex)(Code) | | Sets and ordinate in the specified coordinate
Parameters: value - Parameters: ordinateIndex - Parameters: coordinateIndex - |
setOrdinate | public void setOrdinate(CoordinateSequence sequence, double value, int ordinateIndex, int coordinateIndex)(Code) | | Utility method that allows to set an ordinate in an already built coordinate sequence
Needed because the CoordinateSequence interface does not expose it
Parameters: sequence - Parameters: value - Parameters: ordinateIndex - Parameters: coordinateIndex - |
start | public void start(int size, int dimensions)(Code) | | Starts the building of a new coordinate sequence
Parameters: size - - the number of coordinates in the coordinate sequence Parameters: dimensions - - the dimension of the coordinates in the coordinate sequence,may be ignored if the coordinate sequence does not support variabile dimensions |
|
|