org.geotools.shapefile
Class MultiLineHandler
java.lang.Object
org.geotools.shapefile.MultiLineHandler
- All Implemented Interfaces:
- ShapeHandler
public class MultiLineHandler
- extends java.lang.Object
- implements ShapeHandler
Wrapper for a Shapefile arc.
|
Method Summary |
int |
getLength(com.vividsolutions.jts.geom.Geometry geometry)
|
int |
getShapeType()
Get the type of shape stored (Shapefile.ARC) |
com.vividsolutions.jts.geom.Geometry |
read(EndianDataInputStream file,
com.vividsolutions.jts.geom.GeometryFactory geometryFactory,
int contentLength)
|
void |
write(com.vividsolutions.jts.geom.Geometry geometry,
EndianDataOutputStream file)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MultiLineHandler
public MultiLineHandler()
MultiLineHandler
public MultiLineHandler(int type)
throws InvalidShapefileException
- Throws:
InvalidShapefileException
read
public com.vividsolutions.jts.geom.Geometry read(EndianDataInputStream file,
com.vividsolutions.jts.geom.GeometryFactory geometryFactory,
int contentLength)
throws java.io.IOException,
InvalidShapefileException
- Specified by:
read in interface ShapeHandler
- Throws:
java.io.IOException
InvalidShapefileException
write
public void write(com.vividsolutions.jts.geom.Geometry geometry,
EndianDataOutputStream file)
throws java.io.IOException
- Specified by:
write in interface ShapeHandler
- Throws:
java.io.IOException
getShapeType
public int getShapeType()
- Get the type of shape stored (Shapefile.ARC)
- Specified by:
getShapeType in interface ShapeHandler
getLength
public int getLength(com.vividsolutions.jts.geom.Geometry geometry)
- Specified by:
getLength in interface ShapeHandler