Package org.geotools.gml
Class SubHandlerPolygon
- Object
-
- SubHandler
-
- SubHandlerPolygon
-
public class SubHandlerPolygon extends SubHandler
Creates a Polygon geometry.- Author:
- Ian Turton, CCG, Rob Hranac, Vision for New York
-
-
Field Summary
-
Fields inherited from class SubHandler
GEOMETRY_END, GEOMETRY_START, GEOMETRY_SUB
-
-
Constructor Summary
Constructors Constructor Description SubHandlerPolygon()Creates a new instance of GMLPolygonHandler.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddCoordinate(Coordinate coordinate)Adds a coordinate to the current LinearRing.Geometrycreate(GeometryFactory geometryFactory)Returns the completed OGC Polygon.booleanisComplete(String message)Determines whether or not the geometry is ready to be returned.voidsubGeometry(String message, int type)Catches inner and outer LinearRings messages and handles them appropriately.-
Methods inherited from class SubHandler
getSRID, getSRS, setSRS, toString
-
-
-
-
Method Detail
-
subGeometry
public void subGeometry(String message, int type)
Catches inner and outer LinearRings messages and handles them appropriately.- Overrides:
subGeometryin classSubHandler- Parameters:
message- Name of sub geometry located.type- Type of sub geometry located.
-
addCoordinate
public void addCoordinate(Coordinate coordinate)
Adds a coordinate to the current LinearRing.- Specified by:
addCoordinatein classSubHandler- Parameters:
coordinate- Name of sub geometry located.
-
isComplete
public boolean isComplete(String message)
Determines whether or not the geometry is ready to be returned.- Specified by:
isCompletein classSubHandler- Parameters:
message- Name of GML element that prompted this check.- Returns:
- Flag indicating whether or not the geometry is ready to be returned.
-
create
public Geometry create(GeometryFactory geometryFactory)
Returns the completed OGC Polygon.- Specified by:
createin classSubHandler- Parameters:
geometryFactory- Geometry factory to be used in Polygon creation.- Returns:
- Completed OGC Polygon.
-
-