| java.lang.Object org.geotools.gml.SubHandler
All known Subclasses: org.geotools.gml.SubHandlerPoint, org.geotools.gml.SubHandlerMulti, org.geotools.gml.SubHandlerLineString, org.geotools.gml.SubHandlerLinearRing, org.geotools.gml.SubHandlerBox, org.geotools.gml.SubHandlerPolygon,
SubHandler | abstract public class SubHandler (Code) | | Specifies how a generic OGC simple geometry handler should behave.
author: Ian Turton, CCG author: Rob Hranac, Vision for New York version: $Id: SubHandler.java 26168 2007-07-06 19:58:03Z jgarnett $ |
Field Summary | |
final public static int | GEOMETRY_END Indicates end of a geometry. | final public static int | GEOMETRY_START Indicates start of a geometry. | final public static int | GEOMETRY_SUB Indicates a sub geometry message. |
Method Summary | |
abstract public void | addCoordinate(com.vividsolutions.jts.geom.Coordinate coordinate) Adds a coordinate to the object being built if appropriate. | abstract public com.vividsolutions.jts.geom.Geometry | create(com.vividsolutions.jts.geom.GeometryFactory geometryFactory) Creates a new JTS geometry.
Parameters: geometryFactory - The JTS geometry factory to use for geometrycreation. | protected int | getSRID() Creates a basic SRID by looking at the provided srs. | protected String | getSRS() | abstract public boolean | isComplete(String message) Determines whether or not the geometry is ready to return.
Parameters: message - The geometry to inspect. | public void | setSRS(String SRS) | public void | subGeometry(String message, int type) Tells the handler that it just saw a subhandler.
Parameters: message - The sub geometry message (i.e. | public String | toString() Describes the handler. |
GEOMETRY_END | final public static int GEOMETRY_END(Code) | | Indicates end of a geometry.
|
GEOMETRY_START | final public static int GEOMETRY_START(Code) | | Indicates start of a geometry.
|
GEOMETRY_SUB | final public static int GEOMETRY_SUB(Code) | | Indicates a sub geometry message.
|
addCoordinate | abstract public void addCoordinate(com.vividsolutions.jts.geom.Coordinate coordinate)(Code) | | Adds a coordinate to the object being built if appropriate.
Parameters: coordinate - Coordinate to add |
create | abstract public com.vividsolutions.jts.geom.Geometry create(com.vividsolutions.jts.geom.GeometryFactory geometryFactory)(Code) | | Creates a new JTS geometry.
Parameters: geometryFactory - The JTS geometry factory to use for geometrycreation. An OGC simple geometry type for return. |
getSRID | protected int getSRID()(Code) | | Creates a basic SRID by looking at the provided srs.
As an example "EPSG:4326" would be turned into 4326
An int value based on the srs field, or 0 |
isComplete | abstract public boolean isComplete(String message)(Code) | | Determines whether or not the geometry is ready to return.
Parameters: message - The geometry to inspect. Flag for a complete geometry. |
subGeometry | public void subGeometry(String message, int type)(Code) | | Tells the handler that it just saw a subhandler.
Parameters: message - The sub geometry message (i.e. isInnerBoundary). Parameters: type - The type of sub message (start, end, etc.) |
toString | public String toString()(Code) | | Describes the handler.
String representation of the current handler. |
|
|