|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.geotools.gml.SubHandler org.geotools.gml.SubHandlerPolygon
Creates a Polygon geometry.
Field Summary | |
protected static com.vividsolutions.jts.algorithm.CGAlgorithms |
cga
|
Fields inherited from class org.geotools.gml.SubHandler |
GEOMETRY_END, GEOMETRY_START, GEOMETRY_SUB |
Constructor Summary | |
SubHandlerPolygon()
Creates a new instance of GMLPolygonHandler. |
Method Summary | |
void |
addCoordinate(com.vividsolutions.jts.geom.Coordinate coordinate)
Adds a coordinate to the current LinearRing. |
com.vividsolutions.jts.geom.Geometry |
create(com.vividsolutions.jts.geom.GeometryFactory geometryFactory)
Returns the completed OGC Polygon. |
boolean |
isComplete(java.lang.String message)
Determines whether or not the geometry is ready to be returned. |
void |
subGeometry(java.lang.String message,
int type)
Catches inner and outer LinearRings messages and handles them appropriately. |
Methods inherited from class org.geotools.gml.SubHandler |
toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected static com.vividsolutions.jts.algorithm.CGAlgorithms cga
Constructor Detail |
public SubHandlerPolygon()
Method Detail |
public void subGeometry(java.lang.String message, int type)
subGeometry
in class SubHandler
message
- Name of sub geometry located.type
- Type of sub geometry located.public void addCoordinate(com.vividsolutions.jts.geom.Coordinate coordinate)
addCoordinate
in class SubHandler
coordinate
- Name of sub geometry located.public boolean isComplete(java.lang.String message)
isComplete
in class SubHandler
message
- Name of GML element that prompted this check.
public com.vividsolutions.jts.geom.Geometry create(com.vividsolutions.jts.geom.GeometryFactory geometryFactory)
create
in class SubHandler
geometryFactory
- Geometry factory to be used in Polygon creation.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |