public abstract class StationProfileCollectionImpl extends MultipleNestedPointCollectionImpl implements StationProfileFeatureCollection
| Modifier and Type | Field and Description |
|---|---|
protected NestedPointFeatureCollectionIterator |
localIterator |
protected StationHelper |
stationHelper |
name| Constructor and Description |
|---|
StationProfileCollectionImpl(java.lang.String name) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Station so) |
LatLonRect |
getBoundingBox()
Get the bounding box including all the stations.
|
PointFeatureCollectionIterator |
getPointFeatureCollectionIterator(int bufferSize)
Iterate through the collection, composed of PointFeatureCollection.
|
Station |
getStation(java.lang.String name)
Find a Station by name.
|
StationProfileFeature |
getStationProfileFeature(Station s)
Get the StationProfileFeature for a specific Station.
|
java.util.List<Station> |
getStations()
Get all the Stations in the collection.
|
java.util.List<Station> |
getStations(LatLonRect boundingBox)
Get all the Stations within a bounding box.
|
java.util.List<Station> |
getStations(java.util.List<java.lang.String> stnNames)
Translate list of station names to list of Stations.
|
boolean |
hasNext()
Use the internal iterator to check if there is another StationProfileFeature in the iteration.
|
protected abstract void |
initStationHelper() |
StationProfileFeature |
next()
Use the internal iterator to get the next StationProfileFeature in the iteration.
|
void |
resetIteration()
Reset the internal iterator for another iteration over the StationProfileFeature in this Collection.
|
StationProfileCollectionImpl |
subset(LatLonRect boundingBox)
Get a subsetted NestedPointFeatureCollection based on a LatLonRect
|
StationProfileCollectionImpl |
subset(java.util.List<Station> stations)
Get a subsetted StationProfileFeatureCollection
|
flatten, getCollectionFeatureType, getName, isMultipleNested, setSize, sizeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitflatten, getNestedPointFeatureCollectionIterator, isMultipleNested, sizegetCollectionFeatureType, getNameprotected StationHelper stationHelper
protected NestedPointFeatureCollectionIterator localIterator
public StationProfileCollectionImpl(java.lang.String name)
protected abstract void initStationHelper()
public java.util.List<Station> getStations()
StationCollectiongetStations in interface StationCollectionpublic java.util.List<Station> getStations(java.util.List<java.lang.String> stnNames)
StationCollectiongetStations in interface StationCollectionstnNames - list of stnNamespublic java.util.List<Station> getStations(LatLonRect boundingBox) throws java.io.IOException
StationCollectiongetStations in interface StationCollectionboundingBox - spatial subsetjava.io.IOException - on i/o errorpublic Station getStation(java.lang.String name)
StationCollectiongetStation in interface StationCollectionname - name/id of the stationpublic LatLonRect getBoundingBox()
StationCollectiongetBoundingBox in interface StationCollectionpublic StationProfileCollectionImpl subset(java.util.List<Station> stations) throws java.io.IOException
StationProfileFeatureCollectionsubset in interface StationProfileFeatureCollectionstations - only contain these stationsjava.io.IOException - on i/o errorpublic StationProfileCollectionImpl subset(LatLonRect boundingBox) throws java.io.IOException
NestedPointFeatureCollectionsubset in interface NestedPointFeatureCollectionboundingBox - spatial subsetjava.io.IOException - on i/o errorpublic StationProfileFeature getStationProfileFeature(Station s) throws java.io.IOException
StationProfileFeatureCollectiongetStationProfileFeature in interface StationProfileFeatureCollections - at this stationjava.io.IOException - on i/o errorpublic PointFeatureCollectionIterator getPointFeatureCollectionIterator(int bufferSize) throws java.io.IOException
NestedPointFeatureCollectiongetPointFeatureCollectionIterator in interface NestedPointFeatureCollectiongetPointFeatureCollectionIterator in class MultipleNestedPointCollectionImplbufferSize - how many bytes can be used to buffer data, use -1 to use default.java.io.IOException - on read errorpublic boolean hasNext()
throws java.io.IOException
StationProfileFeatureCollectionhasNext in interface StationProfileFeatureCollectionjava.io.IOException - on read errorpublic StationProfileFeature next() throws java.io.IOException
StationProfileFeatureCollectionnext in interface StationProfileFeatureCollectionjava.io.IOException - on read errorpublic void resetIteration()
throws java.io.IOException
StationProfileFeatureCollectionresetIteration in interface StationProfileFeatureCollectionjava.io.IOException - on read errorpublic int compareTo(Station so)