|
deegree 2.2 (2008/12/22 11:33 build-3038-official) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.deegree.io.shpapi.shape_new.ShapePolyline
org.deegree.io.shpapi.shape_new.ShapePolygon
public class ShapePolygon
ShapePolygon corresponds to the Polygon, PolygonM and PolygonZ shapes of the
shapefile spec.
| Field Summary |
|---|
| Fields inherited from class org.deegree.io.shpapi.shape_new.ShapePolyline |
|---|
isM, isZ, points |
| Constructor Summary | |
|---|---|
ShapePolygon(boolean z,
boolean m)
Creates a new Polygon/M/Z. |
|
ShapePolygon(List<Curve> curves)
Creates a PolygonZ from deegree Curves. |
|
| Method Summary | |
|---|---|
Geometry |
getGeometry()
This creates a Surface object. |
int |
getType()
|
void |
normalize()
Normalizes the orientation etc. of this polygon as required by the shapefile spec. |
int |
read(byte[] bytes,
int offset)
Reads the object from a byte array. |
int |
write(byte[] bytes,
int offset)
Note that the normalize method will be called automatically, if it has not been called before. |
| Methods inherited from class org.deegree.io.shpapi.shape_new.ShapePolyline |
|---|
getByteLength, getEnvelope, readPolyline, readPolylineM, readPolylineZ, toString, writePolyline, writePolylineM, writePolylineZ |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ShapePolygon(boolean z,
boolean m)
z - m - public ShapePolygon(List<Curve> curves)
curves - | Method Detail |
|---|
public void normalize()
public int read(byte[] bytes,
int offset)
Shape
read in interface Shaperead in class ShapePolylineoffset - where to start reading
public int write(byte[] bytes,
int offset)
write in interface Shapewrite in class ShapePolylineShape.write(byte[], int)public int getType()
getType in interface ShapegetType in class ShapePolyline
public Geometry getGeometry()
throws ShapeGeometryException
getGeometry in interface ShapegetGeometry in class ShapePolylineShapeGeometryException - if the deegree geometry could not be constructedShape.getGeometry()
|
deegree 2.2 (2008/12/22 11:33 build-3038-official) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://deegree.sourceforge.net