public static class ESRIPoly.ESRIFloatPoly extends ESRIPoly
ESRIPoly.ESRIFloatPoly
Modifier and Type | Field and Description |
---|---|
protected boolean |
isRadians
Flag noting if the internal representation of coordinates
is in RADIANS, or DECIMAL_DEGREES.
|
protected double[] |
radians
A vector of vertices, stored as RADIAN y,x,y,x,
(lat,lon,...).
|
DBF_ATTRIBUTE, DBF_AUTOINCREMENT, DBF_BINARY, DBF_CHARACTER, DBF_DATE, DBF_DOUBLE, DBF_FLOAT, DBF_LOGICAL, DBF_LONG, DBF_MEMO, DBF_NUMERIC, DBF_OLE, DBF_TIMESTAMP, DBF_TYPE_AUTOINCREMENT, DBF_TYPE_BINARY, DBF_TYPE_CHARACTER, DBF_TYPE_DATE, DBF_TYPE_DOUBLE, DBF_TYPE_FLOAT, DBF_TYPE_LOGICAL, DBF_TYPE_LONG, DBF_TYPE_MEMO, DBF_TYPE_NUMERIC, DBF_TYPE_OLE, DBF_TYPE_TIMESTAMP, PARAM_DBF, PARAM_SHP, PARAM_SHX, SHAPE_BOUNDS_ATTRIBUTE, SHAPE_DBF_DASHPATTERN, SHAPE_DBF_DASHPHASE, SHAPE_DBF_DESCRIPTION, SHAPE_DBF_FILLCOLOR, SHAPE_DBF_INFO_ATTRIBUTE, SHAPE_DBF_LINECOLOR, SHAPE_DBF_LINEWIDTH, SHAPE_DBF_SELECTCOLOR, SHAPE_FILE_HEADER_LENGTH, SHAPE_FILE_RECORD_HEADER_LENGTH, SHAPE_INDEX_ATTRIBUTE, SHAPE_MAX_MEASURE_ATTRIBUTE, SHAPE_MAX_Z_ATTRIBUTE, SHAPE_MEASURE_ATTRIBUTE, SHAPE_MIN_MEASURE_ATTRIBUTE, SHAPE_MIN_Z_ATTRIBUTE, SHAPE_TYPE_ARC, SHAPE_TYPE_MULTIPATCH, SHAPE_TYPE_MULTIPOINT, SHAPE_TYPE_MULTIPOINTM, SHAPE_TYPE_MULTIPOINTZ, SHAPE_TYPE_NULL, SHAPE_TYPE_POINT, SHAPE_TYPE_POINTM, SHAPE_TYPE_POINTZ, SHAPE_TYPE_POLYGON, SHAPE_TYPE_POLYGONM, SHAPE_TYPE_POLYGONZ, SHAPE_TYPE_POLYLINE, SHAPE_TYPE_POLYLINEM, SHAPE_TYPE_POLYLINEZ, SHAPE_Z_ATTRIBUTE
Constructor and Description |
---|
ESRIPoly.ESRIFloatPoly(double[] radians)
Construct an ESRIFloatPoly.
|
ESRIPoly.ESRIFloatPoly(double[] radians,
boolean isRadians)
Construct an ESRIFloatPoly.
|
ESRIPoly.ESRIFloatPoly(int nPts)
Construct a poly with the given number of points.
|
Modifier and Type | Method and Description |
---|---|
double[] |
getDecimalDegrees()
Get the internal points array.
|
double[] |
getRadians()
Get the internal points array.
|
double |
getX(int index)
Returns the x coordinate of the indicated vertex.
|
double |
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.
|
getStringForType, readBEInt, readBox, readLEDouble, readLEInt, readLEInt, readLELong, readPoint, writeBEInt, writeBox, writeLEDouble, writeLEInt, writeLELong, writePoint
protected double[] radians
protected boolean isRadians
public ESRIPoly.ESRIFloatPoly(int nPts)
nPts
- the number of (y,x) pairspublic ESRIPoly.ESRIFloatPoly(double[] radians)
radians
- float[] coordinates: y,x,y,x,... (lat,lon)
order in RADIANS!public ESRIPoly.ESRIFloatPoly(double[] radians, boolean isRadians)
radians
- float[] coordinates: y,x,y,x,... (lat,lon)
order in RADIANS!public double[] getRadians()
public double[] getDecimalDegrees()
public int read(byte[] b, int off, boolean connect)
public double getX(int index)
index
- the ordinal of the vertex of interestpublic double getY(int index)
index
- the ordinal of the vertex of interestCopyright (C) BBNT Solutions LLC; See http://openmap.bbn.com/ for details