|
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.ShapeEnvelope
public class ShapeEnvelope
ShapeEnvelope
encapsulates a shapefile envelope.
Field Summary | |
---|---|
double |
mmax
The maximum m value. |
double |
mmin
The minimum m value. |
double |
xmax
The maximum x value. |
double |
xmin
The minimum x value. |
double |
ymax
The maximum y value. |
double |
ymin
The minimum y value. |
double |
zmax
The maximum z value. |
double |
zmin
The minimum z value. |
Constructor Summary | |
---|---|
ShapeEnvelope(boolean z,
boolean m)
Creates a new envelope, with/out z and m dimensions as specified. |
|
ShapeEnvelope(Envelope env)
Construct one from deegree Envelope. |
|
ShapeEnvelope(ShapeEnvelope s)
Copy constructor. |
Method Summary | |
---|---|
void |
extend(double m_min,
double m_max)
Extends this envelope to m direction. |
void |
extend(double z_min,
double z_max,
double m_min,
double m_max)
Extends this envelope to z and m direction. |
void |
fit(double x,
double y)
Extends the envelope so the given point fits in. |
void |
fit(double x,
double y,
double z)
Extends the envelope so the given point fits in. |
void |
fit(ShapeEnvelope s)
Extends the envelope so the given envelope fits in. |
int |
getByteLength()
|
ShapeEnvelope |
getEnvelope()
|
Geometry |
getGeometry()
|
int |
getType()
|
int |
read(byte[] bytes,
int offset)
Reads only x and y values. |
java.lang.String |
toString()
|
int |
write(byte[] bytes,
int offset)
Writes only x and y values. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public double xmin
public double xmax
public double ymin
public double ymax
public double zmin
public double zmax
public double mmin
public double mmax
Constructor Detail |
---|
public ShapeEnvelope(ShapeEnvelope s)
s
- public ShapeEnvelope(boolean z, boolean m)
z
- m
- public ShapeEnvelope(Envelope env)
env
- Method Detail |
---|
public void extend(double z_min, double z_max, double m_min, double m_max)
z_min
- z_max
- m_min
- m_max
- public void extend(double m_min, double m_max)
m_min
- m_max
- public void fit(double x, double y)
x
- y
- public void fit(double x, double y, double z)
x
- y
- z
- public void fit(ShapeEnvelope s)
s
- public int getByteLength()
getByteLength
in interface Shape
public int read(byte[] bytes, int offset)
read
in interface Shape
offset
- where to start reading
Shape.read(byte[], int)
public int write(byte[] bytes, int offset)
write
in interface Shape
Shape.write(byte[], int)
public int getType()
getType
in interface Shape
Shape.getType()
public ShapeEnvelope getEnvelope()
getEnvelope
in interface Shape
Shape.getEnvelope()
public java.lang.String toString()
toString
in class java.lang.Object
public Geometry getGeometry()
getGeometry
in interface Shape
Shape.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