Package noaa.coastwatch.render.feature
Class GriddedPointGenerator
java.lang.Object
noaa.coastwatch.render.feature.AbstractFeatureSource
noaa.coastwatch.render.feature.PointFeatureSource
noaa.coastwatch.render.feature.GriddedPointGenerator
- All Implemented Interfaces:
Iterable<Feature>,FeatureSource
A
GriddedPointGenerator creates point features from a
set of co-located Grid objects. The user selects an
area of interest, and the generator converts all data values in
that area into point features whose earth locations are derived
from the grids' earth transform and whose attributes are the data
values at the grid point.- Since:
- 3.2.0
- Author:
- Peter Hollemans
-
Field Summary
Fields inherited from class noaa.coastwatch.render.feature.AbstractFeatureSource
area, featureList -
Constructor Summary
ConstructorsConstructorDescriptionGriddedPointGenerator(Grid[] gridArray, EarthTransform2D trans) Creates a new generator. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidselect()Selects a set of features from the data source based on the current area.Methods inherited from class noaa.coastwatch.render.feature.PointFeatureSource
render, renderMethods inherited from class noaa.coastwatch.render.feature.AbstractFeatureSource
getArea, getAttributeCount, getAttributeNameMap, getAttributes, getFilter, iterator, select, setAttributes, setFilterMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
GriddedPointGenerator
Creates a new generator.- Parameters:
gridArray- the array of grids to use for data, each of the same dimensions and earth transform.trans- the earth transform for the grids.
-
-
Method Details
-
select
Description copied from class:AbstractFeatureSourceSelects a set of features from the data source based on the current area.- Specified by:
selectin classAbstractFeatureSource- Throws:
IOException- if an error occurred accessing the data source.
-