Package ucar.unidata.gis.shapefile
Class EsriShapefile.EsriFeature
java.lang.Object
ucar.unidata.gis.AbstractGisFeature
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
EsriFeature.java
Created: Sat Feb 20 17:19:53 1999
- Author:
- Russ Rew
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet bounding rectangle for this feature.Get the parts of this feature, in the form of an iterator.int
Get number of parts comprising this feature.int
Get total number of points in all parts of this feature.protected void
read the pointsMethods inherited from class ucar.unidata.gis.AbstractGisFeature
getMapLines, getMapLines, getPointCount, getProjectedShape, getProjectedShape, getShape
-
Field Details
-
bounds
bounds of this feature -
numPoints
protected int numPointsnumber of points -
numParts
protected int numPartsnumber of parts -
partsList
the list of parts
-
-
Constructor Details
-
EsriFeature
public EsriFeature()
-
-
Method Details
-
readNumPoints
read the points- Throws:
IOException
- on badness
-
getBounds2D
Get bounding rectangle for this feature.- Specified by:
getBounds2D
in interfaceGisFeature
- Specified by:
getBounds2D
in classAbstractGisFeature
- 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 interfaceGisFeature
- Specified by:
getNumPoints
in classAbstractGisFeature
- 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 interfaceGisFeature
- Specified by:
getNumParts
in classAbstractGisFeature
- Returns:
- number of parts comprising this feature.
-
getGisParts
Get the parts of this feature, in the form of an iterator.- Specified by:
getGisParts
in interfaceGisFeature
- Specified by:
getGisParts
in classAbstractGisFeature
- Returns:
- the iterator over the parts of this feature. Each part is a GisPart.
-