public class EarthAreaFactory
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
EarthAreaFactory.SPLIT
Define the split count for earth division along longitude or latitude
|
Constructor and Description |
---|
EarthAreaFactory(EarthAreaFactory.SPLIT splitLon,
EarthAreaFactory.SPLIT splitLat)
Factory for earth areas.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
directoryName()
Getter for name of directory index containing areas of earth as files.
|
EarthArea |
getArea(double longitude,
double latitude)
Getter for the area containing a point.
|
int |
getAreaNumber(double longitude,
double latitude)
Getter for the area number containing a point.
|
EarthArea |
getEarthArea(int areaNumber)
Getter for earth area.
|
java.util.Collection<EarthArea> |
getEarthAreas()
Getter for all splitted earth areas.
|
void |
initEarthAreas()
Create Earth Areas from split factor.
|
public EarthAreaFactory(EarthAreaFactory.SPLIT splitLon, EarthAreaFactory.SPLIT splitLat)
splitLon
- split factor on longitudesplitLat
- split factor on latitudepublic java.lang.String directoryName()
public void initEarthAreas()
public EarthArea getEarthArea(int areaNumber)
areaNumber
- the area number (identifier)public java.util.Collection<EarthArea> getEarthAreas()
public int getAreaNumber(double longitude, double latitude) throws DiscreteGlobalGridException
longitude
- longitude of pointlatitude
- latitude of pointDiscreteGlobalGridException
- if the area number can't be foundpublic EarthArea getArea(double longitude, double latitude) throws DiscreteGlobalGridException
longitude
- longitude of pointlatitude
- latitude of pointDiscreteGlobalGridException
- if the area can't be found