Package org.geotools.gml.producer
Class CoordinateWriter
- Object
- 
- CoordinateWriter
 
- 
 public class CoordinateWriter extends Object Handles the writing of coordinates for GML.- Author:
- Chris Holmes, Ian Schneider
 
- 
- 
Constructor SummaryConstructors Constructor 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)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description booleangetForceDecimalEncoding()intgetNumDecimals()booleangetPadWithZeros()booleanisDummyZEnabled()voidsetNamespaceAware(boolean namespaceAware)voidsetNamespaceUri(String namespaceUri)voidsetPrefix(String prefix)voidwriteCoordinates(CoordinateSequence c, ContentHandler output)Write the provided list of coordinates out.
 
- 
- 
- 
Constructor Detail- 
CoordinateWriterpublic CoordinateWriter() 
 - 
CoordinateWriterpublic CoordinateWriter(int numDecimals) 
 - 
CoordinateWriterpublic CoordinateWriter(int numDecimals, boolean isDummyZEnabled)
 - 
CoordinateWriterpublic CoordinateWriter(int numDecimals, boolean padWithZeros, boolean forceDecimalEncoding, boolean isDummyZEnabled)
 - 
CoordinateWriterpublic CoordinateWriter(int numDecimals, String tupleDelim, String coordDelim, boolean useDummyZ)
 - 
CoordinateWriterpublic CoordinateWriter(int numDecimals, boolean padWithZeros, boolean forceDecimalEncoding)
 - 
CoordinateWriterpublic CoordinateWriter(int numDecimals, String tupleDelim, String coordDelim, boolean useDummyZ, double zValue)
 - 
CoordinateWriterpublic CoordinateWriter(int numDecimals, boolean useDummyZ, int dimension)
 - 
CoordinateWriterpublic CoordinateWriter(int numDecimals, boolean padWithZeros, boolean forceDecimalEncoding, String tupleDelim, String coordDelim)
 - 
CoordinateWriterpublic CoordinateWriter(int numDecimals, String tupleDelim, String coordDelim, boolean useZ, double z, int dimension)
 - 
CoordinateWriterpublic CoordinateWriter(int numDecimals, boolean padWithZeros, boolean forceDecimalEncoding, String tupleDelim, String coordDelim, boolean useDummyZ)
 - 
CoordinateWriterpublic CoordinateWriter(int numDecimals, boolean padWithZeros, boolean forceDecimalEncoding, String tupleDelim, String coordDelim, boolean useDummyZ, double zValue)
 - 
CoordinateWriterpublic CoordinateWriter(int numDecimals, boolean padWithZeros, boolean forceDecimalEncoding, boolean useDummyZ, int dimension)
 - 
CoordinateWriterpublic CoordinateWriter(int numDecimals, boolean padWithZeros, boolean forceDecimalEncoding, String tupleDelim, String coordDelim, boolean useZ, double z, int dimension)Create a CoordinateWriter for outputting GML coordinates.The use of dimension, z and useZ is based on your needs: - dimension: is from your CoordinateReferenceSystem; it is the number of axis used by the coordinate
- useZ: is used to force the use of 3 dimensions (if needed the z value below will be used for 2D data)
- z: the dummy z value to use if the coordinate does not have one
 - Parameters:
- 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 forced
- z- Dummy z value to use if needed
- dimension- Dimension of coordinates (usually 2 or 3)
 
 
- 
 - 
Method Detail- 
getNumDecimalspublic int getNumDecimals() 
 - 
getPadWithZerospublic boolean getPadWithZeros() 
 - 
getForceDecimalEncodingpublic boolean getForceDecimalEncoding() 
 - 
isDummyZEnabledpublic boolean isDummyZEnabled() 
 - 
setNamespaceAwarepublic void setNamespaceAware(boolean namespaceAware) 
 - 
setPrefixpublic void setPrefix(String prefix) 
 - 
setNamespaceUripublic void setNamespaceUri(String namespaceUri) 
 - 
writeCoordinatespublic void writeCoordinates(CoordinateSequence c, ContentHandler output) throws SAXException Write the provided list of coordinates out.There are a range of constants that control exactly what is written: - useDummyZ: if true dummyZ will be added to each coordiante
- namespaceAware: is true the prefix and namespaceUri will be used
 - Throws:
- SAXException
 
 
- 
 
-