|
deegree 2.3 (2010/04/09 10:10 build-4-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
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(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)
|
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(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 Shapeoffset - 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 Shapepublic int getType()
getType in interface Shapepublic ShapeEnvelope getEnvelope()
getEnvelope in interface Shape
public Geometry getGeometry()
throws ShapeGeometryException
getGeometry in interface ShapeShapeGeometryException - if the deegree geometry could not be constructedShape.getGeometry()public String toString()
toString in class Object
|
deegree 2.3 (2010/04/09 10:10 build-4-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