Class MultiLineHandler
java.lang.Object
org.geotools.shapefile.MultiLineHandler
- All Implemented Interfaces:
ShapeHandler
Wrapper for a Shapefile PolyLine.
-
Constructor Summary
Constructors -
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) intGet the type of shape stored (Shapefile.ARC, Shapefile.ARCM, Shapefile.ARCZ)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 Details
-
MultiLineHandler
public MultiLineHandler() -
MultiLineHandler
- Throws:
InvalidShapefileException
-
-
Method Details
-
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()Get the type of shape stored (Shapefile.ARC, Shapefile.ARCM, Shapefile.ARCZ)- Specified by:
getShapeTypein interfaceShapeHandler
-
getLength
public int getLength(org.locationtech.jts.geom.Geometry geometry) - Specified by:
getLengthin interfaceShapeHandler
-
getEmptyGeometry
public org.locationtech.jts.geom.Geometry getEmptyGeometry(org.locationtech.jts.geom.GeometryFactory factory) Return a empty geometry.- Specified by:
getEmptyGeometryin interfaceShapeHandler
-