|
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
public class ShapePolyline
ShapePolyline
corresponds to the Polyline, PolylineM and PolylineZ shapes of the shapefile spec.
Field Summary | |
---|---|
protected CoordinateSystem |
crs
|
protected boolean |
isM
|
protected boolean |
isZ
|
protected ShapePoint[][] |
points
|
Constructor Summary | |
---|---|
ShapePolyline()
Empty constructor. |
|
ShapePolyline(boolean z,
boolean m)
Creates a new Polyline/M/Z. |
|
ShapePolyline(boolean z,
boolean m,
CoordinateSystem crs)
Creates a new Polyline/M/Z. |
|
ShapePolyline(Curve c)
Creates a new PolylineZ from deegree Curve. |
|
ShapePolyline(java.util.List<Curve> cs)
Creates a new PolylineZ from deegree Curves. |
Method Summary | |
---|---|
int |
getByteLength()
|
ShapeEnvelope |
getEnvelope()
|
Geometry |
getGeometry()
This creates a MultiCurve object. |
int |
getType()
|
int |
read(byte[] bytes,
int offset)
Reads the object from a byte array. |
protected int |
readPolyline(byte[] bytes,
int offset)
|
protected int |
readPolylineM(byte[] bytes,
int offset)
|
protected int |
readPolylineZ(byte[] bytes,
int offset)
|
java.lang.String |
toString()
|
int |
write(byte[] bytes,
int offset)
Writes the object to a byte array. |
protected int |
writePolyline(byte[] bytes,
int offset)
|
protected int |
writePolylineM(byte[] bytes,
int offset)
|
protected int |
writePolylineZ(byte[] bytes,
int offset)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected CoordinateSystem crs
protected boolean isM
protected boolean isZ
protected ShapePoint[][] points
Constructor Detail |
---|
public ShapePolyline()
public ShapePolyline(boolean z, boolean m)
z
- m
- public ShapePolyline(boolean z, boolean m, CoordinateSystem crs)
z
- m
- crs
- CoordinateSystem for shapepublic ShapePolyline(java.util.List<Curve> cs)
cs
- public ShapePolyline(Curve c)
c
- Method Detail |
---|
public int getByteLength()
getByteLength
in interface Shape
protected int readPolyline(byte[] bytes, int offset)
protected int readPolylineZ(byte[] bytes, int offset)
protected int readPolylineM(byte[] bytes, int offset)
public int read(byte[] bytes, int offset)
Shape
read
in interface Shape
offset
- where to start reading
protected int writePolyline(byte[] bytes, int offset)
protected int writePolylineZ(byte[] bytes, int offset)
protected int writePolylineM(byte[] bytes, int offset)
public int write(byte[] bytes, int offset)
Shape
write
in interface Shape
public int getType()
getType
in interface Shape
public ShapeEnvelope getEnvelope()
getEnvelope
in interface Shape
public Geometry getGeometry() throws ShapeGeometryException
getGeometry
in interface Shape
ShapeGeometryException
- if the deegree geometry could not be constructedShape.getGeometry()
public java.lang.String toString()
toString
in class java.lang.Object
|
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