public interface FeatureSource extends java.lang.Iterable<Feature>
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.Modifier and Type | Method and Description |
---|---|
EarthArea |
getArea()
Gets the currently selected Earth area.
|
int |
getAttributeCount()
Gets the number of attributes in the attribute list for each feature.
|
java.util.List<Attribute> |
getAttributes()
Gets the list of attributes for each feature from this source.
|
java.util.Iterator<Feature> |
iterator()
Gets an iterator over all selected features.
|
void |
select(EarthArea area)
Selects a set of features from the data source based on the
specified area.
|
void select(EarthArea area) throws java.io.IOException
area
- the earth area for feature selection.java.io.IOException
- if an error occurred accessing the data source.EarthArea getArea()
java.util.Iterator<Feature> iterator()
iterator
in interface java.lang.Iterable<Feature>
java.util.List<Attribute> getAttributes()
int getAttributeCount()