public class ColocatedPointFeatureSource extends PointFeatureSource
ColocatedPointFeatureSource
class combines the point
features from a source with colocated values from a set of grids. For
example if each point feature in the source has attributes named:
Modifier and Type | Field and Description |
---|---|
static java.util.Map<java.lang.Class<?>,java.lang.Class<?>> |
primitiveToWrapperMap
The mapping form primitive to wrapper class.
|
area, featureList
Constructor and Description |
---|
ColocatedPointFeatureSource(PointFeatureSource source,
EarthTransform trans,
java.util.List<Grid> gridList)
Creates a new colocated source using the specified source and grids.
|
Modifier and Type | Method and Description |
---|---|
static void |
main(java.lang.String[] argv)
Tests this class.
|
protected void |
select()
Selects a set of features from the data source based on the
current area.
|
render, render
getArea, getAttributeCount, getAttributeNameMap, getAttributes, getFilter, iterator, select, setAttributes, setFilter
public static final java.util.Map<java.lang.Class<?>,java.lang.Class<?>> primitiveToWrapperMap
public ColocatedPointFeatureSource(PointFeatureSource source, EarthTransform trans, java.util.List<Grid> gridList)
source
- the point source to supply point feature data.trans
- the earth transform for the grid data.gridList
- the list of grids to append data values to the point
feature attributes.protected void select() throws java.io.IOException
AbstractFeatureSource
select
in class AbstractFeatureSource
java.io.IOException
- if an error occurred accessing the data source.public static void main(java.lang.String[] argv) throws java.lang.Exception
argv
- the array of command line parameters.java.lang.Exception