public class PolygonHandler extends java.lang.Object implements ShapeHandler
Modifier and Type | Field and Description |
---|---|
protected static com.vividsolutions.jts.algorithm.CGAlgorithms |
cga |
Constructor and Description |
---|
PolygonHandler() |
PolygonHandler(int type) |
Modifier and Type | Method and Description |
---|---|
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) |
public PolygonHandler()
public PolygonHandler(int type) throws InvalidShapefileException
InvalidShapefileException
public com.vividsolutions.jts.geom.Geometry read(EndianDataInputStream file, com.vividsolutions.jts.geom.GeometryFactory geometryFactory, int contentLength) throws java.io.IOException, InvalidShapefileException
read
in interface ShapeHandler
java.io.IOException
InvalidShapefileException
public void write(com.vividsolutions.jts.geom.Geometry geometry, EndianDataOutputStream file) throws java.io.IOException
write
in interface ShapeHandler
java.io.IOException
public int getShapeType()
ShapeHandler
getShapeType
in interface ShapeHandler
public int getLength(com.vividsolutions.jts.geom.Geometry geometry)
getLength
in interface ShapeHandler
public com.vividsolutions.jts.geom.Geometry getEmptyGeometry(com.vividsolutions.jts.geom.GeometryFactory factory)
getEmptyGeometry
in interface ShapeHandler