Package ucar.unidata.gis
Class AbstractGisFeature
java.lang.Object
ucar.unidata.gis.AbstractGisFeature
- All Implemented Interfaces:
GisFeature
- Direct Known Subclasses:
EsriShapefile.EsriFeature
,GisFeatureAdapter
Abstract class that implements common methods for concrete
implementations of GisFeature.
- Version:
- $Id: AbstractGisFeature.java,v 1.19 2006/08/22 19:57:07 dmurray Exp $
- Author:
- Russ Rew, John Caron
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract Rectangle2D
_more_abstract Iterator
_more_Convert a GisFeature to a visad.SampledSet, which is either a single Gridded2DSet (if there is only one part to the feature) or a UnionSet of Gridded2DSet (if there are multiple parts).getMapLines
(Rectangle2D bbox) Convert a GisFeature to a visad.SampledSet, which is either a single Gridded2DSet (if there is only one part to the feature) or a UnionSet of Gridded2DSet (if there are multiple parts).abstract int
_more_abstract int
_more_int
getProjectedShape
(ucar.unidata.geoloc.ProjectionImpl displayProject) Convert this GisFeature to a java.awt.Shape.getProjectedShape
(ucar.unidata.geoloc.ProjectionImpl dataProject, ucar.unidata.geoloc.ProjectionImpl displayProject) Convert this GisFeature to a java.awt.Shape.getShape()
Convert this GisFeature to a java.awt.Shape, using the default coordinate system, mapping gisFeature(x,y) -> screen(x,y).
-
Constructor Details
-
AbstractGisFeature
public AbstractGisFeature()
-
-
Method Details
-
getBounds2D
_more_- Specified by:
getBounds2D
in interfaceGisFeature
- Returns:
- _more_
-
getNumPoints
public abstract int getNumPoints()_more_- Specified by:
getNumPoints
in interfaceGisFeature
- Returns:
- _more_
-
getNumParts
public abstract int getNumParts()_more_- Specified by:
getNumParts
in interfaceGisFeature
- Returns:
- _more_
-
getGisParts
_more_- Specified by:
getGisParts
in interfaceGisFeature
- Returns:
- _more_
-
getShape
Convert this GisFeature to a java.awt.Shape, using the default coordinate system, mapping gisFeature(x,y) -> screen(x,y). LOOK STILL HAVE TO crossSeam()- Returns:
- shape corresponding to this feature.
-
getProjectedShape
Convert this GisFeature to a java.awt.Shape. The data coordinate system is assumed to be (lat, lon), use the projection to transform points, so project.latLonToProj(gisFeature(x,y)) -> screen(x,y).- Parameters:
displayProject
- Projection to use.- Returns:
- shape corresponding to this feature
-
getProjectedShape
public Shape getProjectedShape(ucar.unidata.geoloc.ProjectionImpl dataProject, ucar.unidata.geoloc.ProjectionImpl displayProject) Convert this GisFeature to a java.awt.Shape. The data coordinate system is in the coordinates of dataProject, and the screen is in the coordinates of displayProject. So: displayProject.latLonToProj( dataProject.projToLatLon(gisFeature(x,y))) -> screen(x,y).- Parameters:
dataProject
- data Projection to use.displayProject
- display Projection to use.- Returns:
- shape corresponding to this feature
-
getPointCount
public int getPointCount() -
getMapLines
Convert a GisFeature to a visad.SampledSet, which is either a single Gridded2DSet (if there is only one part to the feature) or a UnionSet of Gridded2DSet (if there are multiple parts). Each Gridded2DSet is a sequence of line segments that is supposed to be drawn as a continuous line.- Returns:
- UnionSet of Gridded2DSet corresponding to this feature.
-
getMapLines
Convert a GisFeature to a visad.SampledSet, which is either a single Gridded2DSet (if there is only one part to the feature) or a UnionSet of Gridded2DSet (if there are multiple parts). Each Gridded2DSet is a sequence of line segments that is supposed to be drawn as a continuous line.- Returns:
- UnionSet of Gridded2DSet corresponding to this feature.
-