|
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.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(boolean z,
boolean m,
CoordinateSystem crs)
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. |
java.lang.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(boolean z, boolean m, CoordinateSystem crs)
z
- if PointZm
- if PointMcrs
- CoordinateSystem of the shapepublic 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 Shape
offset
- where to start reading
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
Shape.getEnvelope()
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