Package org.geotools.shapefile
Class PolygonHandler
- java.lang.Object
-
- org.geotools.shapefile.PolygonHandler
-
- All Implemented Interfaces:
ShapeHandler
public class PolygonHandler extends Object implements ShapeHandler
Wrapper for a Shapefile polygon.
-
-
Field Summary
Fields Modifier and Type Field Description protected static org.locationtech.jts.algorithm.CGAlgorithms
cga
-
Constructor Summary
Constructors Constructor Description PolygonHandler()
PolygonHandler(int type)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getLength(org.locationtech.jts.geom.Geometry geometry)
int
getShapeType()
org.locationtech.jts.geom.Geometry
read(EndianDataInputStream file, org.locationtech.jts.geom.GeometryFactory geometryFactory, int contentLength)
void
write(org.locationtech.jts.geom.Geometry geometry, EndianDataOutputStream file)
-
-
-
Constructor Detail
-
PolygonHandler
public PolygonHandler()
-
PolygonHandler
public PolygonHandler(int type) throws InvalidShapefileException
- Throws:
InvalidShapefileException
-
-
Method Detail
-
read
public org.locationtech.jts.geom.Geometry read(EndianDataInputStream file, org.locationtech.jts.geom.GeometryFactory geometryFactory, int contentLength) throws IOException, InvalidShapefileException
- Specified by:
read
in interfaceShapeHandler
- Throws:
IOException
InvalidShapefileException
-
write
public void write(org.locationtech.jts.geom.Geometry geometry, EndianDataOutputStream file) throws IOException
- Specified by:
write
in interfaceShapeHandler
- Throws:
IOException
-
getShapeType
public int getShapeType()
- Specified by:
getShapeType
in interfaceShapeHandler
-
getLength
public int getLength(org.locationtech.jts.geom.Geometry geometry)
- Specified by:
getLength
in interfaceShapeHandler
-
-