Interface ShapeHandler
- All Known Implementing Classes:
MultiLineHandler, MultiPointHandler, NullShapeHandler, PointHandler, PolygonHandler
public interface ShapeHandler
Interface implemented by all the ShapeType handlers
-
Method Summary
Modifier and TypeMethodDescriptionorg.locationtech.jts.geom.GeometrygetEmptyGeometry(org.locationtech.jts.geom.GeometryFactory factory) Return a empty geometry.intgetLength(org.locationtech.jts.geom.Geometry geometry) intReturns 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 Details
-
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.
-