| Package | Description |
|---|---|
| gov.usgs.earthquake.nshmp.geo |
Geographic data classes and utilities.
|
| Modifier and Type | Class and Description |
|---|---|
class |
GriddedRegion
|
| Modifier and Type | Method and Description |
|---|---|
static Region |
Regions.copyOf(Region region)
Creates an exact copy of a
Region. |
static Region |
Regions.create(String name,
LocationList border,
BorderType type)
Creates a
Region from a list of border locations. |
static Region |
Regions.createBuffered(String name,
LocationList line,
double buffer)
Creates a Region
as a buffered area around a line. |
static Region |
Regions.createCircular(String name,
Location center,
double radius)
Creates a circular
Region. |
static Region |
Regions.createRectangular(String name,
Location loc1,
Location loc2)
Creates a
Region from a pair of Location s. |
static Region |
Regions.global()
Convenience method to return a
Region spanning the entire globe. |
static Region |
Regions.intersectionOf(String name,
Region r1,
Region r2)
Returns the intersection of two
Regions. |
static Region |
Regions.unionOf(String name,
Region r1,
Region r2)
Returns the union of two
Regions. |
| Modifier and Type | Method and Description |
|---|---|
void |
GriddedRegion.addInterior(Region region)
Overridden to throw an
UnsupportedOperationException when called. |
void |
Region.addInterior(Region region)
Adds an interior (donut-hole) to this
Region. |
boolean |
Region.contains(Region region)
Tests whether another
Region is entirely contained within this
Region. |
static Region |
Regions.copyOf(Region region)
Creates an exact copy of a
Region. |
boolean |
Region.equalsRegion(Region r)
Compares the geometry of this
Region to another and returns
true if they are the same, ignoring any differences in name. |
static double |
RegionUtils.getFractionInside(Region region,
Iterable<Location> locs)
The returns the fraction of points in the given collection of locations
that is inside the given region.
|
static Region |
Regions.intersectionOf(String name,
Region r1,
Region r2)
Returns the intersection of two
Regions. |
static void |
RegionUtils.regionToKML(Region region,
String filename,
Color c) |
static GriddedRegion |
Regions.toGridded(Region region,
double latSpacing,
double lonSpacing,
Location anchor)
Creates a
GriddedRegion with the same shape as the supplied
Region. |
static Region |
Regions.unionOf(String name,
Region r1,
Region r2)
Returns the union of two
Regions. |