Package org.geotools.shapefile
Class PointHandler
- java.lang.Object
-
- org.geotools.shapefile.PointHandler
-
- All Implemented Interfaces:
ShapeHandler
public class PointHandler extends Object implements ShapeHandler
Wrapper for a Shapefile point.
-
-
Constructor Summary
Constructors Constructor Description PointHandler()
PointHandler(int type)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getLength(org.locationtech.jts.geom.Geometry geometry)
Calcuates the record length of this object.int
getShapeType()
Returns the shapefile shape type value for a pointorg.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
-
PointHandler
public PointHandler(int type) throws InvalidShapefileException
- Throws:
InvalidShapefileException
-
PointHandler
public PointHandler()
-
-
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()
Returns the shapefile shape type value for a point- Specified by:
getShapeType
in interfaceShapeHandler
- Returns:
- int Shapefile.POINT
-
getLength
public int getLength(org.locationtech.jts.geom.Geometry geometry)
Calcuates the record length of this object.- Specified by:
getLength
in interfaceShapeHandler
- Returns:
- int The length of the record that this shapepoint will take up in a shapefile
-
-