| Constructor and Description |
|---|
Sites() |
| Modifier and Type | Method and Description |
|---|---|
static Sites |
fromCsv(Path path,
CalcConfig defaults)
Create an unmodifiable
Iterable<Site> from the comma-delimted site
file designated by path. |
static Sites |
fromCsv(Path path,
CalcConfig defaults,
boolean lenient) |
static Sites |
fromJson(Path path,
CalcConfig defaults)
Create an unmodifiable
Iterable<Site> from the GeoJSON site file
designated by path. |
static Sites |
fromString(String s,
CalcConfig defaults)
Create an unmodifiable singleton
Iterable<Site> from the supplied
string. |
abstract Optional<Bounds> |
mapBounds()
An optional
Bounds that is used to specify rectangular map extents,
which may differ from the range spanned by the sites in this. |
abstract Optional<Double> |
mapSpacing()
An optional spacing value that reflects the spacing of sites within an
attendant
mapBounds(). |
abstract int |
size()
The number of
Sites this contains. |
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitforEach, iterator, spliteratorpublic static Sites fromCsv(Path path, CalcConfig defaults) throws IOException
Iterable<Site> from the comma-delimted site
file designated by path.path - to comma-delimited site data fileIOException - if a problem is encounteredpublic static Sites fromCsv(Path path, CalcConfig defaults, boolean lenient) throws IOException
IOExceptionpublic static Sites fromJson(Path path, CalcConfig defaults) throws IOException
Iterable<Site> from the GeoJSON site file
designated by path.path - to GeoJson site data fileIOException - if a problem is encounteredpublic static Sites fromString(String s, CalcConfig defaults)
Iterable<Site> from the supplied
string. String is expected to have the form:
"name,lon,lat[,vs30,vsInf[,z1p0,z2p5]]"
Although the latter 4 fields are optional, if vs30 is defined,
so too must vsInf. Likewise, if z1p0 is defined, so too
must z2p5.
s - String to parsepublic abstract int size()
Sites this contains.public abstract Optional<Bounds> mapBounds()
Bounds that is used to specify rectangular map extents,
which may differ from the range spanned by the sites in this. Presently
only containers initialized with GeoJSON that includes an 'Extents' polygon
will return an Optional where Optional.isPresent()
== true.public abstract Optional<Double> mapSpacing()
mapBounds().