|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.h2gis.drivers.shp.internal.PolygonHandler
public class PolygonHandler
Wrapper for a Shapefile polygon.
| Constructor Summary | |
|---|---|
PolygonHandler()
|
|
PolygonHandler(ShapeType type)
|
|
| Method Summary | |
|---|---|
static int |
computeOrientation(com.vividsolutions.jts.geom.CoordinateSequence cs,
int p1,
int p2,
int q)
|
int |
getLength(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 Coordinates is
oriented counter-clockwise. |
com.vividsolutions.jts.geom.Geometry |
read(ReadBufferManager buffer,
ShapeType type)
Read a geometry from the ByteBuffer. |
void |
write(WriteBufferManager buffer,
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()
public PolygonHandler(ShapeType type)
throws ShapefileException
ShapefileException| Method Detail |
|---|
public ShapeType getShapeType()
ShapeHandler
getShapeType in interface ShapeHandlerpublic int getLength(Object geometry)
ShapeHandler
getLength in interface ShapeHandlergeometry - The geometry to analyze.
public com.vividsolutions.jts.geom.Geometry read(ReadBufferManager buffer,
ShapeType type)
throws IOException
ShapeHandler
read in interface ShapeHandlerbuffer - The ByteBuffer to read from.
IOExceptionpublic static boolean isCCW(com.vividsolutions.jts.geom.CoordinateSequence ring)
Coordinates 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)
public void write(WriteBufferManager buffer,
Object geometry)
throws IOException
ShapeHandler
write in interface ShapeHandlerbuffer - The ByteBuffer to write to.geometry - The geometry to write.
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||