| java.lang.Object org.geotools.gml.producer.CoordinateWriter
CoordinateWriter | public class CoordinateWriter (Code) | | Handles the writing of coordinates for GML.
author: Chris Holmes author: Ian Schneider |
Constructor Summary | |
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) Create a CoordinateWriter for outputting GML coordinates. |
CoordinateWriter | public CoordinateWriter()(Code) | | |
CoordinateWriter | public CoordinateWriter(int numDecimals, boolean isDummyZEnabled)(Code) | | |
CoordinateWriter | public CoordinateWriter(int numDecimals)(Code) | | |
CoordinateWriter | public CoordinateWriter(int numDecimals, String tupleDelim, String coordDelim)(Code) | | |
CoordinateWriter | public CoordinateWriter(int numDecimals, String tupleDelim, String coordDelim, boolean useDummyZ)(Code) | | |
CoordinateWriter | public CoordinateWriter(int numDecimals, String tupleDelim, String coordDelim, boolean useDummyZ, double zValue)(Code) | | |
CoordinateWriter | public CoordinateWriter(int numDecimals, boolean useDummyZ, int dimension)(Code) | | |
CoordinateWriter | public CoordinateWriter(int numDecimals, String tupleDelim, String coordDelim, boolean useZ, double z, int dimension)(Code) | | 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) Parameters: tupleDelim - delimiter to use between ordinates (usually ',') Parameters: coordDelim - delimiter to use between coordinates (usually ' ') Parameters: useZ - true if the provided zValue should be forced Parameters: z - Dummy z value to use if needed Parameters: dimension - Dimension of coordinates (usually 2 or 3) |
getNumDecimals | public int getNumDecimals()(Code) | | |
isDummyZEnabled | public boolean isDummyZEnabled()(Code) | | |
setNamespaceAware | public void setNamespaceAware(boolean namespaceAware)(Code) | | |
setNamespaceUri | public void setNamespaceUri(String namespaceUri)(Code) | | |
writeCoordinates | public void writeCoordinates(Coordinate[] c, ContentHandler output) throws SAXException(Code) | | 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
-
Parameters: c - Parameters: output - throws: SAXException - |
|
|