org.geotools.gml
Class SubHandlerMulti

java.lang.Object
  extended byorg.geotools.gml.SubHandler
      extended byorg.geotools.gml.SubHandlerMulti

public class SubHandlerMulti
extends SubHandler

Creates a MultiPoint, MultiLineString, or MultiPolygon geometry as required by the internal functions.

Version:
$Id: SubHandlerMulti.java 17701 2006-01-23 00:00:51Z desruisseaux $
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
SubHandlerMulti()
          Empty constructor.
 
Method Summary
 void addCoordinate(com.vividsolutions.jts.geom.Coordinate coordinate)
          Adds a coordinate to the current internal (sub) geometry.
 com.vividsolutions.jts.geom.Geometry create(com.vividsolutions.jts.geom.GeometryFactory geometryFactory)
          Returns a completed multi type.
 boolean isComplete(java.lang.String message)
          Determines whether or not it is time to return this geometry.
 void subGeometry(java.lang.String message, int type)
          Handles all internal (sub) geometries.
 
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
 

Constructor Detail

SubHandlerMulti

public SubHandlerMulti()
Empty constructor.

Method Detail

subGeometry

public void subGeometry(java.lang.String message,
                        int type)
Handles all internal (sub) geometries.

Overrides:
subGeometry in class SubHandler
Parameters:
message - The sub geometry type found.
type - Whether or not it is at a start or end.

addCoordinate

public void addCoordinate(com.vividsolutions.jts.geom.Coordinate coordinate)
Adds a coordinate to the current internal (sub) geometry.

Specified by:
addCoordinate in class SubHandler
Parameters:
coordinate - The coordinate.

isComplete

public boolean isComplete(java.lang.String message)
Determines whether or not it is time to return this geometry.

Specified by:
isComplete in class SubHandler
Parameters:
message - The geometry element that prompted this check.
Returns:
DOCUMENT ME!

create

public com.vividsolutions.jts.geom.Geometry create(com.vividsolutions.jts.geom.GeometryFactory geometryFactory)
Returns a completed multi type.

Specified by:
create in class SubHandler
Parameters:
geometryFactory - The factory this method should use to create the multi type.
Returns:
Appropriate multi geometry type.


Copyright © GeoTools. All Rights Reserved.