org.geotools.gml
Class SubHandlerBox

java.lang.Object
  extended by org.geotools.gml.SubHandler
      extended by org.geotools.gml.SubHandlerBox

public class SubHandlerBox
extends SubHandler

Creates a simple OGC box.

Version:
$Id: SubHandlerBox.java 30648 2008-06-12 19:22:35Z acuster $
Author:
Ian Turton, CCG, Rob Hranac, Vision for New York

Field Summary
 
Fields inherited from class org.geotools.gml.SubHandler
GEOMETRY_END, GEOMETRY_START, GEOMETRY_SUB
 
Constructor Summary
SubHandlerBox()
          Creates a new instance of GMLBoxHandler.
 
Method Summary
 void addCoordinate(com.vividsolutions.jts.geom.Coordinate c)
          Sets a corner.
 com.vividsolutions.jts.geom.Geometry create(com.vividsolutions.jts.geom.GeometryFactory geometryFactory)
          Builds and returns the polygon.
 boolean isComplete(java.lang.String message)
          Sets a corner.
 
Methods inherited from class org.geotools.gml.SubHandler
getSRID, getSRS, setSRS, subGeometry, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SubHandlerBox

public SubHandlerBox()
Creates a new instance of GMLBoxHandler.

Method Detail

addCoordinate

public void addCoordinate(com.vividsolutions.jts.geom.Coordinate c)
Sets a corner.

Specified by:
addCoordinate in class SubHandler
Parameters:
c - the coordinate of the corner.

isComplete

public boolean isComplete(java.lang.String message)
Sets a corner.

Specified by:
isComplete in class SubHandler
Parameters:
message - The geometry to inspect.
Returns:
Flag for a complete geometry.

create

public com.vividsolutions.jts.geom.Geometry create(com.vividsolutions.jts.geom.GeometryFactory geometryFactory)
Builds and returns the polygon.

Specified by:
create in class SubHandler
Parameters:
geometryFactory - the geometryFactory to be used to build the polygon.
Returns:
the polygon.


Copyright © 1996-2010 Geotools. All Rights Reserved.