public interface GeoArray
Modifier and Type | Interface and Description |
---|---|
static class |
GeoArray.Adapter
An abstract parent implementation class of GeoArray that handles common
methods.
|
static class |
GeoArray.Double
An implementation of GeoArray and GeoArray.Mutable that contains
double-precision values.
|
static class |
GeoArray.Float
An implementation of GeoArray and GeoArray.Mutable that contains
float-precision values.
|
static interface |
GeoArray.Mutable
A Mutable GeoArray is one where the points can be modified.
|
Modifier and Type | Method and Description |
---|---|
double |
area()
Compute the area of the GeoArray polygon on the surface of a unit sphere
given an enumeration of its point.
|
void |
closeArray()
Ensure that the Geo array starts and ends with the same values.
|
double |
distance(Geo geo,
Geo closestPoint)
Returns the perpendicular distance to the closest point on the edge of the
polygon.
|
boolean |
equals(int index,
Geo comp) |
Geo |
get(int i)
Get a Geo represented by the index i.
|
Geo |
get(int i,
Geo ret)
Load the values for Geo at index i into ret.
|
int |
getSize()
Get the number of Geo points represented by this array.
|
void |
removeDups()
Modify, if needed, the Geo array with the duplicates removed.
|
double[] |
toLLDegrees()
Convert the GeoArray to an array of decimal degree values, alternating
lat, lon, lat, lon.
|
double[] |
toLLRadians()
Convert the GeoArray to an array of radian values, alternating lat, lon,
lat, lon.
|
Geo[] |
toPointArray()
Convert the GeoArray to an array of Geos.
|
Geo get(int i)
i
- Geo get(int i, Geo ret)
i
- ret
- int getSize()
Geo[] toPointArray()
double[] toLLDegrees()
double[] toLLRadians()
boolean equals(int index, Geo comp)
index
- the index of the Geo in the GeoArray to compare.comp
- the Geo to compare to the indexed value.double distance(Geo geo, Geo closestPoint)
geo
- the point to test against the polyclosestPoint
- will be filled with location of poly edge point closest to geo.double area()
void closeArray()
void removeDups()
Copyright (C) BBNT Solutions LLC; See http://openmap.bbn.com/ for details