Package noaa.coastwatch.render.feature
Interface FeatureSource
- All Known Implementing Classes:
AbstractFeatureSource
,BinnedGSHHSLineReader
,BinnedGSHHSReader
,ColocatedPointFeatureSource
,ContourGenerator
,GriddedPointGenerator
,GSHHSReader
,HDFGSHHSLineReader
,HDFGSHHSReader
,IQuamNCReader
,LineFeatureSource
,OpendapGSHHSLineReader
,OpendapGSHHSReader
,PointFeatureSource
,PolygonFeatureSource
,TSVectorReader
The
FeatureSource
interface provides methods
common the all feature sources; the methods allow for
selection of features based on a geographic area, iteration
over the matching features, and information on attributes.- Since:
- 3.2.0
- Author:
- Peter Hollemans
-
Method Summary
Modifier and TypeMethodDescriptiongetArea()
Gets the currently selected Earth area.int
Gets the number of attributes in the attribute list for each feature.Gets the list of attributes for each feature from this source.iterator()
Gets an iterator over all selected features.void
Selects a set of features from the data source based on the specified area.Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Method Details
-
select
Selects a set of features from the data source based on the specified area.- Parameters:
area
- the earth area for feature selection.- Throws:
IOException
- if an error occurred accessing the data source.
-
getArea
EarthArea getArea()Gets the currently selected Earth area. -
iterator
Gets an iterator over all selected features. -
getAttributes
Gets the list of attributes for each feature from this source.- Returns:
- the list of attributes.
-
getAttributeCount
int getAttributeCount()Gets the number of attributes in the attribute list for each feature.- Returns:
- the attribute count.
-