Package ucar.nc2.ui.gis.shapefile
Class EsriShapefileRenderer
- java.lang.Object
-
- ucar.nc2.ui.gis.GisFeatureRenderer
-
- ucar.nc2.ui.gis.GisFeatureRendererMulti
-
- ucar.nc2.ui.gis.shapefile.EsriShapefileRenderer
-
- All Implemented Interfaces:
Renderer
public class EsriShapefileRenderer extends GisFeatureRendererMulti
Provides a convenient interface to ESRI shapefiles by creating lists of ucar.unidata.gis.AbstractGisFeature. Java2D Shape or VisAD SampledSet objects can be created from these.
-
-
Field Summary
-
Fields inherited from class ucar.nc2.ui.gis.GisFeatureRenderer
displayProject, shapeList
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static EsriShapefileRenderer
factory(String filename)
Use factory to obtain a EsriShapefileRenderer.static EsriShapefileRenderer
factory(String key, InputStream stream)
protected ProjectionImpl
getDataProjection()
protected List
getFeatures()
LatLonRect
getPreferredArea()
Preferred map area on opening for first time.-
Methods inherited from class ucar.nc2.ui.gis.GisFeatureRendererMulti
createFeatureSet, getShapes, getStats, setDiscretization, setPixelMatch, setProjection
-
Methods inherited from class ucar.nc2.ui.gis.GisFeatureRenderer
draw, getColor, setColor
-
-
-
-
Method Detail
-
factory
public static EsriShapefileRenderer factory(String filename)
Use factory to obtain a EsriShapefileRenderer. This caches the EsriShapefile for reuse. Implementation note: should switch to weak references.
-
factory
public static EsriShapefileRenderer factory(String key, InputStream stream)
-
getPreferredArea
public LatLonRect getPreferredArea()
Description copied from class:GisFeatureRenderer
Preferred map area on opening for first time.- Specified by:
getPreferredArea
in interfaceRenderer
- Specified by:
getPreferredArea
in classGisFeatureRendererMulti
- Returns:
- lat/lon bounding box that specifies preferred area.
-
getFeatures
protected List getFeatures()
- Specified by:
getFeatures
in classGisFeatureRendererMulti
-
getDataProjection
protected ProjectionImpl getDataProjection()
- Specified by:
getDataProjection
in classGisFeatureRendererMulti
-
-