Class NullShapeHandler
java.lang.Object
org.geotools.shapefile.NullShapeHandler
- All Implemented Interfaces:
ShapeHandler
Null Shape handler for files containing only null shapes.
-
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) Calcuates the record length of this object.intReturns the shapefile shape type value for a pointorg.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
-
NullShapeHandler
- Throws:
InvalidShapefileException
-
NullShapeHandler
public NullShapeHandler()
-
-
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()Returns the shapefile shape type value for a point- Specified by:
getShapeTypein interfaceShapeHandler- Returns:
- int Shapefile.POINT
-
getLength
public int getLength(org.locationtech.jts.geom.Geometry geometry) Calcuates the record length of this object.- Specified by:
getLengthin interfaceShapeHandler- Returns:
- the length of a null shape (in 16 bits WORDS)
-
getEmptyGeometry
public org.locationtech.jts.geom.Geometry getEmptyGeometry(org.locationtech.jts.geom.GeometryFactory factory) Return a empty geometry.- Specified by:
getEmptyGeometryin interfaceShapeHandler
-