Package org.geotools.shapefile
Class MultiLineHandler
- java.lang.Object
-
- org.geotools.shapefile.MultiLineHandler
-
- All Implemented Interfaces:
ShapeHandler
public class MultiLineHandler extends Object implements ShapeHandler
Wrapper for a Shapefile arc.
-
-
Constructor Summary
Constructors Constructor Description MultiLineHandler()
MultiLineHandler(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()
Get the type of shape stored (Shapefile.ARC)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
-
MultiLineHandler
public MultiLineHandler()
-
MultiLineHandler
public MultiLineHandler(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()
Get the type of shape stored (Shapefile.ARC)- Specified by:
getShapeType
in interfaceShapeHandler
-
getLength
public int getLength(org.locationtech.jts.geom.Geometry geometry)
- Specified by:
getLength
in interfaceShapeHandler
-
-