Package org.geotools.shapefile
Interface ShapeHandler
-
- All Known Implementing Classes:
MultiLineHandler,MultiPointHandler,NullShapeHandler,PointHandler,PolygonHandler
public interface ShapeHandlerInterface implemented by all the ShapeType handlers
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description org.locationtech.jts.geom.GeometrygetEmptyGeometry(org.locationtech.jts.geom.GeometryFactory factory)Return a empty geometry.intgetLength(org.locationtech.jts.geom.Geometry geometry)intgetShapeType()Returns one of the ShapeType int defined by the specification.org.locationtech.jts.geom.Geometryread(EndianDataInputStream file, org.locationtech.jts.geom.GeometryFactory geometryFactory, int contentLength)voidwrite(org.locationtech.jts.geom.Geometry geometry, EndianDataOutputStream file)
-
-
-
Method Detail
-
getShapeType
int getShapeType()
Returns one of the ShapeType int defined by the specification.- 0 Null Shape
- 1 Point
- 3 PolyLine
- 5 Polygon
- 8 MultiPoint
- 11 PointZ
- 13 PolyLineZ
- 15 PolygonZ
- 18 MultiPointZ
- 21 PointM
- 23 PolyLineM
- 25 PolygonM
- 28 MultiPointM
- 31 MultiPatch
-
read
org.locationtech.jts.geom.Geometry read(EndianDataInputStream file, org.locationtech.jts.geom.GeometryFactory geometryFactory, int contentLength) throws IOException, InvalidShapefileException
- Throws:
IOExceptionInvalidShapefileException
-
write
void write(org.locationtech.jts.geom.Geometry geometry, EndianDataOutputStream file) throws IOException- Throws:
IOException
-
getLength
int getLength(org.locationtech.jts.geom.Geometry geometry)
-
getEmptyGeometry
org.locationtech.jts.geom.Geometry getEmptyGeometry(org.locationtech.jts.geom.GeometryFactory factory)
Return a empty geometry.
-
-