|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.fhg.igd.earth.model.input.shapefile.ShapeUtils de.fhg.igd.earth.model.input.shapefile.ESRIPoly de.fhg.igd.earth.model.input.shapefile.ESRIPoly.ESRIFloatPoly
Poly with data stored in floating point format. This ESRIPoly has been optimized for reading data in the OpenMap environment. By default, The internal points are stored in y,x,y,x (lat,lon,...) order as radian values. There have been allowances made to allow internal coordinates to be stored as decimal degree values, but this is not the best way to do things. The projection libraries are tuned for polygons holding radian point coordinates.
Nested Class Summary |
Nested classes inherited from class de.fhg.igd.earth.model.input.shapefile.ESRIPoly |
ESRIPoly.ESRIFloatPoly |
Field Summary | |
protected boolean |
isRadians
Flag noting if the internal representation of coordinates is in RADIANS, or DECIMAL_DEGREES. |
protected float[] |
radians
A vector of vertices, stored as RADIAN y,x,y,x, (lat,lon,...). |
Fields inherited from class de.fhg.igd.earth.model.input.shapefile.ESRIPoly |
nPoints |
Fields inherited from class de.fhg.igd.earth.model.input.shapefile.ShapeUtils |
SHAPE_FILE_HEADER_LENGTH, SHAPE_FILE_HEADER_LENGTH_DB, SHAPE_FILE_RECORD_HEADER_LENGTH, SHAPE_TYPE_ARC, SHAPE_TYPE_MULTIPOINT, SHAPE_TYPE_NULL, SHAPE_TYPE_POINT, SHAPE_TYPE_POLYGON, SHAPE_TYPE_POLYLINE |
Constructor Summary | |
ESRIPoly.ESRIFloatPoly(float[] radians)
Construct an ESRIFloatPoly. |
|
ESRIPoly.ESRIFloatPoly(float[] radians,
boolean isRadians)
Construct an ESRIFloatPoly. |
|
ESRIPoly.ESRIFloatPoly(int nPts)
Construct a poly with the given number of points. |
Method Summary | |
float[] |
getDecimalDegrees()
Get the internal points array. |
float[] |
getRadians()
Get the internal points array. |
float |
getX(int index)
Returns the x coordinate of the indicated vertex. |
float |
getY(int index)
Returns the y coordinate of the indicated vertex. |
int |
read(byte[] b,
int off,
boolean connect)
Reads a polygon from the given buffer starting at the given offset. |
Methods inherited from class de.fhg.igd.earth.model.input.shapefile.ShapeUtils |
readBEInt, readBox, readLEDouble, readLEInt, readLEInt, readLELong, readPoint, writeBEInt, writeBox, writeLEDouble, writeLEInt, writeLELong, writePoint |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected float[] radians
protected boolean isRadians
Constructor Detail |
public ESRIPoly.ESRIFloatPoly(int nPts)
nPts
- the number of (y,x) pairspublic ESRIPoly.ESRIFloatPoly(float[] radians)
radians
- float[] coordinates: y,x,y,x,... (lat,lon)
order in RADIANS!public ESRIPoly.ESRIFloatPoly(float[] radians, boolean isRadians)
radians
- float[] coordinates: y,x,y,x,... (lat,lon)
order in RADIANS!Method Detail |
public float[] getRadians()
public float[] getDecimalDegrees()
public int read(byte[] b, int off, boolean connect)
read
in class ESRIPoly
b
- the bufferoff
- the offsetconnect
- connect the points (polygon)
public float getX(int index)
index
- the ordinal of the vertex of interest
public float getY(int index)
index
- the ordinal of the vertex of interest
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |