|
deegree 2.5 (2011/06/29 09:44 build-8-official) | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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 |
---|
crs, isM, isZ, points |
Constructor Summary | |
---|---|
ShapePolygon(boolean z,
boolean m)
Creates a new Polygon/M/Z. |
|
ShapePolygon(boolean z,
boolean m,
CoordinateSystem crs)
Creates a new Polygon/M/Z. |
|
ShapePolygon(java.util.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(boolean z, boolean m, CoordinateSystem crs)
z
- m
- crs
- CoordinateSystem of the shapepublic ShapePolygon(java.util.List<Curve> curves)
curves
- Method Detail |
---|
public void normalize()
public int read(byte[] bytes, int offset)
Shape
read
in interface Shape
read
in class ShapePolyline
offset
- where to start reading
public int write(byte[] bytes, int offset)
write
in interface Shape
write
in class ShapePolyline
Shape.write(byte[], int)
public int getType()
getType
in interface Shape
getType
in class ShapePolyline
public Geometry getGeometry() throws ShapeGeometryException
getGeometry
in interface Shape
getGeometry
in class ShapePolyline
ShapeGeometryException
- if the deegree geometry could not be constructedShape.getGeometry()
|
deegree 2.5 (2011/06/29 09:44 build-8-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://www.deegree.org