Constructor and Description |
---|
DefaultCSBuilder() |
Modifier and Type | Method and Description |
---|---|
CoordinateSequence |
end()
Stops the coordinate sequence building and returns the result
|
int |
getDimension()
Returns the dimension of the coordinate sequence we are building, -1 if there is none
|
double |
getOrdinate(int ordinateIndex,
int coordinateIndex)
Gets an ordinate in the specified coordinate
|
int |
getSize()
Returns the size of the coordinate sequence we are building, -1 if there is none
|
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
|
void |
setOrdinate(double value,
int ordinateIndex,
int coordinateIndex)
Sets and ordinate in the specified coordinate
|
void |
start(int size,
int dimensions)
Starts the building of a new coordinate sequence
|
public void start(int size, int dimensions)
CSBuilder
start
in interface CSBuilder
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 dimensionsorg.geotools.geometry.coordinatesequence.CSBuilder#start(int, int)
public CoordinateSequence end()
CSBuilder
public void setOrdinate(double value, int ordinateIndex, int coordinateIndex)
CSBuilder
setOrdinate
in interface CSBuilder
org.geotools.geometry.coordinatesequence.CSBuilder#setOrdinate(double, int, int)
public double getOrdinate(int ordinateIndex, int coordinateIndex)
CSBuilder
getOrdinate
in interface CSBuilder
org.geotools.geometry.coordinatesequence.CSBuilder#getOrdinate(int, int)
public int getSize()
CSBuilder
public int getDimension()
CSBuilder
getDimension
in interface CSBuilder
org.geotools.geometry.coordinatesequence.CSBuilder#getDimension()
public void setOrdinate(CoordinateSequence sequence, double value, int ordinateIndex, int coordinateIndex)
CSBuilder
setOrdinate
in interface CSBuilder
org.geotools.geometry.coordinatesequence.CSBuilder#setOrdinate(org.locationtech.jts.geom.CoordinateSequence,
double, int, int)
Copyright © 1996–2019 Geotools. All rights reserved.