| |
|
| java.lang.Object org.geotools.gml.SubHandler org.geotools.gml.SubHandlerPolygon
SubHandlerPolygon | public class SubHandlerPolygon extends SubHandler (Code) | | Creates a Polygon geometry.
author: Ian Turton, CCG author: Rob Hranac, Vision for New York version: $Id: SubHandlerPolygon.java 27862 2007-11-12 19:51:19Z desruisseaux $ |
Field Summary | |
protected static com.vividsolutions.jts.algorithm.CGAlgorithms | cga |
Constructor Summary | |
public | SubHandlerPolygon() Creates a new instance of GMLPolygonHandler. |
Method Summary | |
public void | addCoordinate(Coordinate coordinate) Adds a coordinate to the current LinearRing. | public Geometry | create(GeometryFactory geometryFactory) Returns the completed OGC Polygon.
Parameters: geometryFactory - Geometry factory to be used in Polygon creation. | public boolean | isComplete(String message) Determines whether or not the geometry is ready to be returned.
Parameters: message - Name of GML element that prompted this check. | public void | subGeometry(String message, int type) Catches inner and outer LinearRings messages and handles them
appropriately. |
cga | protected static com.vividsolutions.jts.algorithm.CGAlgorithms cga(Code) | | |
SubHandlerPolygon | public SubHandlerPolygon()(Code) | | Creates a new instance of GMLPolygonHandler.
|
addCoordinate | public void addCoordinate(Coordinate coordinate)(Code) | | Adds a coordinate to the current LinearRing.
Parameters: coordinate - Name of sub geometry located. |
create | public Geometry create(GeometryFactory geometryFactory)(Code) | | Returns the completed OGC Polygon.
Parameters: geometryFactory - Geometry factory to be used in Polygon creation. Completed OGC Polygon. |
isComplete | public boolean isComplete(String message)(Code) | | Determines whether or not the geometry is ready to be returned.
Parameters: message - Name of GML element that prompted this check. Flag indicating whether or not the geometry is ready to bereturned. |
subGeometry | public void subGeometry(String message, int type)(Code) | | Catches inner and outer LinearRings messages and handles them
appropriately.
Parameters: message - Name of sub geometry located. Parameters: type - Type of sub geometry located. |
|
|
|