|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.geotools.data.shapefile.shp.PolygonHandler
public class PolygonHandler
Wrapper for a Shapefile polygon.
Constructor Summary | |
---|---|
PolygonHandler(com.vividsolutions.jts.geom.GeometryFactory gf)
|
|
PolygonHandler(ShapeType type,
com.vividsolutions.jts.geom.GeometryFactory gf)
|
Method Summary | |
---|---|
static int |
computeOrientation(com.vividsolutions.jts.geom.CoordinateSequence cs,
int p1,
int p2,
int q)
|
int |
getLength(java.lang.Object geometry)
Get the length of the given geometry Object in bytes not 16-bit words. |
ShapeType |
getShapeType()
Get the ShapeType of this handler. |
static boolean |
isCCW(com.vividsolutions.jts.geom.CoordinateSequence ring)
Computes whether a ring defined by an array of Coordinate s is
oriented counter-clockwise. |
java.lang.Object |
read(java.nio.ByteBuffer buffer,
ShapeType type)
Read a geometry from the ByteBuffer. |
void |
write(java.nio.ByteBuffer buffer,
java.lang.Object geometry)
Write the geometry into the ByteBuffer. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PolygonHandler(com.vividsolutions.jts.geom.GeometryFactory gf)
public PolygonHandler(ShapeType type, com.vividsolutions.jts.geom.GeometryFactory gf) throws ShapefileException
ShapefileException
Method Detail |
---|
public ShapeType getShapeType()
ShapeHandler
getShapeType
in interface ShapeHandler
public int getLength(java.lang.Object geometry)
ShapeHandler
getLength
in interface ShapeHandler
geometry
- The geometry to analyze.
public java.lang.Object read(java.nio.ByteBuffer buffer, ShapeType type)
ShapeHandler
read
in interface ShapeHandler
buffer
- The ByteBuffer to read from.
public void write(java.nio.ByteBuffer buffer, java.lang.Object geometry)
ShapeHandler
write
in interface ShapeHandler
buffer
- The ByteBuffer to write to.geometry
- The geometry to write.public static boolean isCCW(com.vividsolutions.jts.geom.CoordinateSequence ring)
Coordinate
s is
oriented counter-clockwise.
ring
- an array of Coordinates forming a ring
public static int computeOrientation(com.vividsolutions.jts.geom.CoordinateSequence cs, int p1, int p2, int q)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |