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.CGAlgorithmscga
-
Constructor Summary
Constructors Constructor Description PolygonHandler()PolygonHandler(int type)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetLength(org.locationtech.jts.geom.Geometry geometry)intgetShapeType()org.locationtech.jts.geom.Geometryread(EndianDataInputStream file, org.locationtech.jts.geom.GeometryFactory geometryFactory, int contentLength)voidwrite(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:
readin interfaceShapeHandler- Throws:
IOExceptionInvalidShapefileException
-
write
public void write(org.locationtech.jts.geom.Geometry geometry, EndianDataOutputStream file) throws IOException- Specified by:
writein interfaceShapeHandler- Throws:
IOException
-
getShapeType
public int getShapeType()
- Specified by:
getShapeTypein interfaceShapeHandler
-
getLength
public int getLength(org.locationtech.jts.geom.Geometry geometry)
- Specified by:
getLengthin interfaceShapeHandler
-
-