|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectCoordinateWriter
public class CoordinateWriter
Handles the writing of coordinates for GML.
Constructor Summary | |
---|---|
CoordinateWriter()
|
|
CoordinateWriter(int numDecimals)
|
|
CoordinateWriter(int numDecimals,
boolean isDummyZEnabled)
|
|
CoordinateWriter(int numDecimals,
boolean useDummyZ,
int dimension)
|
|
CoordinateWriter(int numDecimals,
String tupleDelim,
String coordDelim)
|
|
CoordinateWriter(int numDecimals,
String tupleDelim,
String coordDelim,
boolean useDummyZ)
|
|
CoordinateWriter(int numDecimals,
String tupleDelim,
String coordDelim,
boolean useDummyZ,
double zValue)
|
|
CoordinateWriter(int numDecimals,
String tupleDelim,
String coordDelim,
boolean useZ,
double z,
int dimension)
Create a CoordinateWriter for outputting GML coordinates. |
Method Summary | |
---|---|
int |
getNumDecimals()
|
boolean |
isDummyZEnabled()
|
void |
setNamespaceAware(boolean namespaceAware)
|
void |
setNamespaceUri(String namespaceUri)
|
void |
setPrefix(String prefix)
|
void |
writeCoordinates(Coordinate[] c,
ContentHandler output)
Deprecated. use #writeCoordinates(CoordinateSequence, ContentHandler) instead |
void |
writeCoordinates(CoordinateSequence c,
ContentHandler output)
Write the provided list of coordinates out. |
Methods inherited from class Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CoordinateWriter()
public CoordinateWriter(int numDecimals, boolean isDummyZEnabled)
public CoordinateWriter(int numDecimals)
public CoordinateWriter(int numDecimals, String tupleDelim, String coordDelim)
public CoordinateWriter(int numDecimals, String tupleDelim, String coordDelim, boolean useDummyZ)
public CoordinateWriter(int numDecimals, String tupleDelim, String coordDelim, boolean useDummyZ, double zValue)
public CoordinateWriter(int numDecimals, boolean useDummyZ, int dimension)
public CoordinateWriter(int numDecimals, String tupleDelim, String coordDelim, boolean useZ, double z, int dimension)
The use of dimension, z and useZ is based on your needs:
numDecimals
- Number of decimals to use (a speed vs accuracy trade off)tupleDelim
- delimiter to use between ordinates (usually ',')coordDelim
- delimiter to use between coordinates (usually ' ')useZ
- true if the provided zValue should be forcedz
- Dummy z value to use if neededdimension
- Dimension of coordinates (usually 2 or 3)Method Detail |
---|
public int getNumDecimals()
public boolean isDummyZEnabled()
public void setNamespaceAware(boolean namespaceAware)
public void setPrefix(String prefix)
public void setNamespaceUri(String namespaceUri)
public void writeCoordinates(Coordinate[] c, ContentHandler output) throws SAXException
There are a range of constants that control exactly what is written:
c
- output
-
SAXException
public void writeCoordinates(CoordinateSequence c, ContentHandler output) throws SAXException
There are a range of constants that control exactly what is written:
c
- output
-
SAXException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |