ucar.unidata.gis.shapefile
Class EsriShapefile.EsriFeature

java.lang.Object
  extended by ucar.unidata.gis.AbstractGisFeature
      extended by ucar.unidata.gis.shapefile.EsriShapefile.EsriFeature
All Implemented Interfaces:
GisFeature
Direct Known Subclasses:
EsriShapefile.EsriMultipoint, EsriShapefile.EsriNull, EsriShapefile.EsriPoint, EsriShapefile.EsriPointZ, EsriShapefile.EsriPolygon, EsriShapefile.EsriPolygonZ, EsriShapefile.EsriPolyline, EsriShapefile.EsriPolylineZ
Enclosing class:
EsriShapefile

public abstract class EsriShapefile.EsriFeature
extends AbstractGisFeature

EsriFeature.java Created: Sat Feb 20 17:19:53 1999

Author:
Russ Rew

Field Summary
protected  Rectangle2D bounds
          bounds of this feature
protected  int numParts
          number of parts
protected  int numPoints
          number of points
protected  List partsList
          the list of parts
 
Constructor Summary
EsriShapefile.EsriFeature()
           
 
Method Summary
 Rectangle2D getBounds2D()
          Get bounding rectangle for this feature.
 Iterator getGisParts()
          Get the parts of this feature, in the form of an iterator.
 int getNumParts()
          Get number of parts comprising this feature.
 int getNumPoints()
          Get total number of points in all parts of this feature.
protected  void readNumPoints()
          read the points
 
Methods inherited from class ucar.unidata.gis.AbstractGisFeature
getMapLines, getMapLines, getPointCount, getProjectedShape, getProjectedShape, getShape
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

bounds

protected Rectangle2D bounds
bounds of this feature


numPoints

protected int numPoints
number of points


numParts

protected int numParts
number of parts


partsList

protected List partsList
the list of parts

Constructor Detail

EsriShapefile.EsriFeature

public EsriShapefile.EsriFeature()
Method Detail

readNumPoints

protected void readNumPoints()
                      throws IOException
read the points

Throws:
IOException - on badness

getBounds2D

public Rectangle2D getBounds2D()
Get bounding rectangle for this feature.

Specified by:
getBounds2D in interface GisFeature
Specified by:
getBounds2D in class AbstractGisFeature
Returns:
bounding rectangle for this feature.

getNumPoints

public int getNumPoints()
Get total number of points in all parts of this feature.

Specified by:
getNumPoints in interface GisFeature
Specified by:
getNumPoints in class AbstractGisFeature
Returns:
total number of points in all parts of this feature.

getNumParts

public int getNumParts()
Get number of parts comprising this feature.

Specified by:
getNumParts in interface GisFeature
Specified by:
getNumParts in class AbstractGisFeature
Returns:
number of parts comprising this feature.

getGisParts

public Iterator getGisParts()
Get the parts of this feature, in the form of an iterator.

Specified by:
getGisParts in interface GisFeature
Specified by:
getGisParts in class AbstractGisFeature
Returns:
the iterator over the parts of this feature. Each part is a GisPart.