|
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.ShapePoint
public class ShapePoint
ShapePoint corresponds to Point, PointZ and PointM in shapefile terminology.
| Field Summary | |
|---|---|
boolean |
isM
|
boolean |
isZ
|
double |
m
The m value. |
double |
x
The x value. |
double |
y
The y value. |
double |
z
The z value. |
| Constructor Summary | |
|---|---|
ShapePoint(boolean z,
boolean m)
Constructs one without values, use read to fill it. |
|
ShapePoint(byte[] bytes,
int offset)
Just reads x and y from the byte array. |
|
ShapePoint(Point p)
Creates a new PointZ from deegree Point. |
|
ShapePoint(Position p)
Creates a new PointZ from deegree Position. |
|
| Method Summary | |
|---|---|
com.vividsolutions.jts.geom.Coordinate |
export()
|
void |
extend(double mVal)
Extends this point with m values, so it is a PointM |
void |
extend(double zVal,
double mVal)
Extends this point with z and m values, so it is a PointZ |
int |
getByteLength()
|
ShapeEnvelope |
getEnvelope()
|
Geometry |
getGeometry()
This creates a Point object. |
int |
getType()
|
int |
read(byte[] bytes,
int offset)
Reads the object from a byte array. |
String |
toString()
|
int |
write(byte[] bytes,
int offset)
Writes the object to a byte array. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public boolean isZ
public boolean isM
public double x
public double y
public double z
public double m
| Constructor Detail |
|---|
public ShapePoint(boolean z,
boolean m)
z - if PointZm - if PointMpublic ShapePoint(Point p)
p - public ShapePoint(Position p)
p -
public ShapePoint(byte[] bytes,
int offset)
bytes - offset - | Method Detail |
|---|
public com.vividsolutions.jts.geom.Coordinate export()
public void extend(double zVal,
double mVal)
zVal - mVal - public void extend(double mVal)
mVal - public int getByteLength()
getByteLength in interface Shape
public int read(byte[] bytes,
int offset)
Shape
read in interface Shapeoffset - where to start reading
public int write(byte[] bytes,
int offset)
Shape
write in interface Shapepublic int getType()
getType in interface Shapepublic ShapeEnvelope getEnvelope()
getEnvelope in interface ShapeShape.getEnvelope()
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.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