public class GeoIndex extends Object
| Modifier and Type | Field and Description |
|---|---|
Map<String,Set<List<Integer>>> |
polygonsToSquares |
Map<Integer,Map<Integer,GeoSquare>> |
squares |
| Constructor and Description |
|---|
GeoIndex() |
| Modifier and Type | Method and Description |
|---|---|
GeoIndex |
add(GeoIndex geoIndex)
Adds the input geoIndex to the current object.
|
void |
addPolygon(Polygon X,
int latIndex,
int longIndex)
Adds a polygon to an index
|
Set<List<Integer>> |
getIndexes(Polygon X) |
GeoSquare |
getSquare(int latIndex,
int longIndex)
Returns the square with the coordinates latIndex, longIndex
|
String |
toString() |
public GeoIndex add(GeoIndex geoIndex)
geoIndex, - the indexpublic void addPolygon(Polygon X, int latIndex, int longIndex)
X - Polygon to addlatIndex - Index according to latitudelongIndex - Index according to longitudepublic GeoSquare getSquare(int latIndex, int longIndex)
latIndex - Latitude of the square to returnlongIndex - Longitude of the samepublic Set<List<Integer>> getIndexes(Polygon X)
X - Polygon whose indexes are requiredCopyright © 2020. All rights reserved.