ucar.unidata.gis.shapefile
Class EsriShapefileRenderer

java.lang.Object
  extended by ucar.unidata.gis.GisFeatureRenderer
      extended by ucar.unidata.gis.GisFeatureRendererMulti
          extended by ucar.unidata.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.

Version:
$Id: EsriShapefileRenderer.java,v 1.22 2005/12/30 15:38:55 jeffmc Exp $
Author:
Russ Rew, John Caron

Field Summary
 
Fields inherited from class ucar.unidata.gis.GisFeatureRenderer
displayProject, shapeList
 
Method Summary
static EsriShapefileRenderer factory(InputStream stream)
          _more_
static EsriShapefileRenderer factory(String filename)
          Use factory to obtain a EsriShapefileRenderer.
protected  ucar.unidata.geoloc.ProjectionImpl getDataProjection()
          _more_
protected  List getFeatures()
          _more_
 ucar.unidata.geoloc.LatLonRect getPreferredArea()
          _more_
 
Methods inherited from class ucar.unidata.gis.GisFeatureRendererMulti
createFeatureSet, getShapes, getStats, setDiscretization, setPixelMatch, setProjection
 
Methods inherited from class ucar.unidata.gis.GisFeatureRenderer
draw, getColor, setColor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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.

Parameters:
filename -
Returns:
_more_

factory

public static EsriShapefileRenderer factory(InputStream stream)
_more_

Parameters:
stream -
Returns:
_more_

getPreferredArea

public ucar.unidata.geoloc.LatLonRect getPreferredArea()
_more_

Specified by:
getPreferredArea in interface Renderer
Specified by:
getPreferredArea in class GisFeatureRendererMulti
Returns:
_more_

getFeatures

protected List getFeatures()
_more_

Specified by:
getFeatures in class GisFeatureRendererMulti
Returns:
_more_

getDataProjection

protected ucar.unidata.geoloc.ProjectionImpl getDataProjection()
_more_

Specified by:
getDataProjection in class GisFeatureRendererMulti
Returns:
_more_