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.intGet number of parts comprising this feature.intGet total number of points in all parts of this feature.protected voidread 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:
getBounds2Din interfaceGisFeature- Specified by:
getBounds2Din classAbstractGisFeature- Returns:
- bounding rectangle for this feature.
-
getNumPoints
public int getNumPoints()Get total number of points in all parts of this feature.- Specified by:
getNumPointsin interfaceGisFeature- Specified by:
getNumPointsin 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:
getNumPartsin interfaceGisFeature- Specified by:
getNumPartsin classAbstractGisFeature- Returns:
- number of parts comprising this feature.
-
getGisParts
Get the parts of this feature, in the form of an iterator.- Specified by:
getGisPartsin interfaceGisFeature- Specified by:
getGisPartsin classAbstractGisFeature- Returns:
- the iterator over the parts of this feature. Each part is a GisPart.
-