org.geotools.shapefile
Interface ShapeHandler

All Known Implementing Classes:
MultiLineHandler, MultiPointHandler, NullShapeHandler, PointHandler, PolygonHandler

public interface ShapeHandler

Interface implemented by all the ShapeType handlers


Method Summary
 com.vividsolutions.jts.geom.Geometry getEmptyGeometry(com.vividsolutions.jts.geom.GeometryFactory factory)
          Return a empty geometry.
 int getLength(com.vividsolutions.jts.geom.Geometry geometry)
           
 int getShapeType()
          Returns one of the ShapeType int defined by the specification.
 com.vividsolutions.jts.geom.Geometry read(EndianDataInputStream file, com.vividsolutions.jts.geom.GeometryFactory geometryFactory, int contentLength)
           
 void write(com.vividsolutions.jts.geom.Geometry geometry, EndianDataOutputStream file)
           
 

Method Detail

getShapeType

int getShapeType()
Returns one of the ShapeType int defined by the specification.


read

com.vividsolutions.jts.geom.Geometry read(EndianDataInputStream file,
                                          com.vividsolutions.jts.geom.GeometryFactory geometryFactory,
                                          int contentLength)
                                          throws java.io.IOException,
                                                 InvalidShapefileException
Throws:
java.io.IOException
InvalidShapefileException

write

void write(com.vividsolutions.jts.geom.Geometry geometry,
           EndianDataOutputStream file)
           throws java.io.IOException
Throws:
java.io.IOException

getLength

int getLength(com.vividsolutions.jts.geom.Geometry geometry)

getEmptyGeometry

com.vividsolutions.jts.geom.Geometry getEmptyGeometry(com.vividsolutions.jts.geom.GeometryFactory factory)
Return a empty geometry.