|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface GeoDataSet
Interface for a geographic XYZ dataset. These datasets are backed by Location objects
instead of Point2D objects. They also have the capability of storing lat, lon values
as x, y or y, x dependent on the latitudeX parameter.
| Method Summary | |
|---|---|
boolean |
contains(Location loc)
Returns true if the dataset contains the given Location, false otherwise. |
GeoDataSet |
copy()
Returns a shallow copy of this GeoDataSet. |
double |
get(Location loc)
Get the value at the given Location, or null if it doesn't exist. |
Location |
getLocation(int index)
Returns the location at the given index. |
LocationList |
getLocationList()
Returns a list of all locations in the correct order (as defined by indexOf). |
double |
getMaxLat()
Returns the maximum latitude in the given dataset. |
double |
getMaxLon()
Returns the maximum longitude in the given dataset. |
double |
getMinLat()
Returns the minimum latitude in the given dataset. |
double |
getMinLon()
Returns the minimum longitude in the given dataset. |
int |
indexOf(Location loc)
Returns the index of the given location, or -1 if it doesn't exist. |
boolean |
isLatitudeX()
Returns true if latitude will be stored as X, otherwise false if as Y. |
void |
set(Location loc,
double value)
Set the value at the given Location. |
void |
setLatitudeX(boolean latitudeX)
Set latitudeX. |
| Methods inherited from interface org.opensha.commons.data.xyz.XYZ_DataSet |
|---|
abs, add, contains, contains, exp, exp, get, get, get, getMaxX, getMaxY, getMaxZ, getMinX, getMinY, getMinZ, getPoint, getPointList, getValueList, indexOf, indexOf, log, log10, pow, scale, set, set, set, setAll, size |
| Method Detail |
|---|
void setLatitudeX(boolean latitudeX)
latitudeX - boolean isLatitudeX()
double getMinLat()
double getMaxLat()
double getMinLon()
double getMaxLon()
void set(Location loc,
double value)
Location. If the location doesn't exist in the
dataset then it will be added.
loc - - the location at which to setvalue - - the value to set
NullPointerException - if the loc is nulldouble get(Location loc)
Location, or null if it doesn't exist.
loc - - the location at which to get
int indexOf(Location loc)
loc - - the location at which to return the index
Location getLocation(int index)
index - - the index at which to get the location
boolean contains(Location loc)
loc - - the location to test
LocationList getLocationList()
GeoDataSet copy()
GeoDataSet. Internal points are not cloned.
copy in interface XYZ_DataSetGeoDataSet
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||