public class CoordinateWriter extends Object
Constructor and Description |
---|
CoordinateWriter() |
CoordinateWriter(int numDecimals) |
CoordinateWriter(int numDecimals,
boolean isDummyZEnabled) |
CoordinateWriter(int numDecimals,
boolean padWithZeros,
boolean forceDecimalEncoding) |
CoordinateWriter(int numDecimals,
boolean padWithZeros,
boolean forceDecimalEncoding,
boolean isDummyZEnabled) |
CoordinateWriter(int numDecimals,
boolean padWithZeros,
boolean forceDecimalEncoding,
boolean useDummyZ,
int dimension) |
CoordinateWriter(int numDecimals,
boolean padWithZeros,
boolean forceDecimalEncoding,
String tupleDelim,
String coordDelim) |
CoordinateWriter(int numDecimals,
boolean padWithZeros,
boolean forceDecimalEncoding,
String tupleDelim,
String coordDelim,
boolean useDummyZ) |
CoordinateWriter(int numDecimals,
boolean padWithZeros,
boolean forceDecimalEncoding,
String tupleDelim,
String coordDelim,
boolean useDummyZ,
double zValue) |
CoordinateWriter(int numDecimals,
boolean padWithZeros,
boolean forceDecimalEncoding,
String tupleDelim,
String coordDelim,
boolean useZ,
double z,
int dimension)
Create a CoordinateWriter for outputting GML coordinates.
|
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) |
Modifier and Type | Method and Description |
---|---|
boolean |
getForceDecimalEncoding() |
int |
getNumDecimals() |
boolean |
getPadWithZeros() |
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.
|
public CoordinateWriter()
public CoordinateWriter(int numDecimals)
public CoordinateWriter(int numDecimals, boolean isDummyZEnabled)
public CoordinateWriter(int numDecimals, boolean padWithZeros, boolean forceDecimalEncoding, boolean isDummyZEnabled)
public CoordinateWriter(int numDecimals, String tupleDelim, String coordDelim, boolean useDummyZ)
public CoordinateWriter(int numDecimals, boolean padWithZeros, boolean forceDecimalEncoding)
public CoordinateWriter(int numDecimals, String tupleDelim, String coordDelim, boolean useDummyZ, double zValue)
public CoordinateWriter(int numDecimals, boolean useDummyZ, int dimension)
public CoordinateWriter(int numDecimals, boolean padWithZeros, boolean forceDecimalEncoding, String tupleDelim, String coordDelim)
public CoordinateWriter(int numDecimals, String tupleDelim, String coordDelim, boolean useZ, double z, int dimension)
public CoordinateWriter(int numDecimals, boolean padWithZeros, boolean forceDecimalEncoding, String tupleDelim, String coordDelim, boolean useDummyZ)
public CoordinateWriter(int numDecimals, boolean padWithZeros, boolean forceDecimalEncoding, String tupleDelim, String coordDelim, boolean useDummyZ, double zValue)
public CoordinateWriter(int numDecimals, boolean padWithZeros, boolean forceDecimalEncoding, boolean useDummyZ, int dimension)
public CoordinateWriter(int numDecimals, boolean padWithZeros, boolean forceDecimalEncoding, 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)public int getNumDecimals()
public boolean getPadWithZeros()
public boolean getForceDecimalEncoding()
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
Copyright © 1996–2019 Geotools. All rights reserved.