PolygonHandler class

Wrapper for a Shapefile polygon.

@author aaime @author Ian Schneider @version $Id$



PolygonHandler(GeometryFactory gf)
PolygonHandler.withType(ShapeType type, GeometryFactory gf)


geometryFactory GeometryFactory
read / write
hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
shapeType ShapeType
read / write


assignHolesToShells(List<LinearRing> shells, List<LinearRing> holes) List<List<LinearRing>>
buildGeometries(List<LinearRing> shells, List<LinearRing> holes, List<List<LinearRing>> holesForShells) Geometry
createMulti(LinearRing single) MultiPolygon
createMultiWithHoles(LinearRing single, List<LinearRing> holes) MultiPolygon
createNull() MultiPolygon
getLength(dynamic geometry) int
Get the length of the given geometry Object in bytes not 16-bit words. This is easier to keep track of, since the ByteBuffer deals with bytes. Do not include the 8 bytes of record. [...]
getShapeType() ShapeType
Get the ShapeType of this handler. [...]
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
pointInList(Coordinate testPoint, List<Coordinate> pointList) bool
read(LByteBuffer buffer, ShapeType type, bool flatFeature) → dynamic
Read a geometry from the ByteBuffer. The buffer's position, byteOrder, and limit are set to that which is needed. The record has been read as well as the shape type integer. The handler need not worry about reading unused information as the ShapefileReader will correctly adjust the buffer position after this call. [...]
readCoordinates(LByteBuffer buffer, int numPoints, int dimensions) CoordinateSequence
toString() String
A string representation of this object. [...]
write(LByteBuffer buffer, Object geometry) → void
Write the geometry into the ByteBuffer. The position, byteOrder, and limit are all set. The handler is not responsible for writing the record or shape type integer. [...]


operator ==(Object other) bool
The equality operator. [...]