org.geotools.shapefile
Class PolygonHandler
java.lang.Object
org.geotools.shapefile.PolygonHandler
- All Implemented Interfaces:
- ShapeHandler
public class PolygonHandler
- extends java.lang.Object
- implements ShapeHandler
Wrapper for a Shapefile polygon.
|
Field Summary |
protected static com.vividsolutions.jts.algorithm.CGAlgorithms |
cga
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
cga
protected static com.vividsolutions.jts.algorithm.CGAlgorithms cga
PolygonHandler
public PolygonHandler()
PolygonHandler
public PolygonHandler(int type)
throws InvalidShapefileException
- Throws:
InvalidShapefileException
read
public com.vividsolutions.jts.geom.Geometry read(EndianDataInputStream file,
com.vividsolutions.jts.geom.GeometryFactory geometryFactory,
int contentLength)
throws java.io.IOException,
InvalidShapefileException
- Specified by:
read in interface ShapeHandler
- Throws:
java.io.IOException
InvalidShapefileException
write
public void write(com.vividsolutions.jts.geom.Geometry geometry,
EndianDataOutputStream file)
throws java.io.IOException
- Specified by:
write in interface ShapeHandler
- Throws:
java.io.IOException
getShapeType
public int getShapeType()
- Specified by:
getShapeType in interface ShapeHandler
getLength
public int getLength(com.vividsolutions.jts.geom.Geometry geometry)
- Specified by:
getLength in interface ShapeHandler