|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectucar.unidata.gis.shapefile.EsriShapefile
public class EsriShapefile
EsriShapefile.java Encapsulates details of ESRI Shapefile format, documented at http://www.esri.com/library/whitepapers/pdfs/shapefile.pdf
| Nested Class Summary | |
|---|---|
class |
EsriShapefile.EsriFeature
EsriFeature.java Created: Sat Feb 20 17:19:53 1999 |
class |
EsriShapefile.EsriMultipoint
Represents a Multipoint in an ESRI shapefile. |
class |
EsriShapefile.EsriNull
A NULL shape in an ESRI shapefile. |
class |
EsriShapefile.EsriPoint
Represents a single point in an ESRI shapefile. |
class |
EsriShapefile.EsriPointZ
Class description |
class |
EsriShapefile.EsriPolygon
Represents a Polygon in an ESRI shapefile as a List of GisParts. |
class |
EsriShapefile.EsriPolygonZ
Represents a PolygonZ in an ESRI shapefile as a List of GisParts. |
class |
EsriShapefile.EsriPolyline
Represents a Polyline in an ESRI shapefile as a List of GisParts. |
class |
EsriShapefile.EsriPolylineZ
Class description |
| Field Summary | |
|---|---|
static int |
MULTIPATCH
muti patch |
static int |
MULTIPOINT
multipoint shape |
static int |
MULTIPOINTM
Measured multi point |
static int |
MULTIPOINTZ
multipoint with z |
static int |
NULL
null shape |
static int |
POINT
point shape |
static int |
POINTM
Measured point |
static int |
POINTZ
point with Z |
static int |
POLYGON
polygon shape |
static int |
POLYGONM
Measured polygon |
static int |
POLYGONZ
polygon with z |
static int |
POLYLINE
polyline shape |
static int |
POLYLINEM
Measured polyline |
static int |
POLYLINEZ
polyline with z |
static int |
SHAPEFILE_CODE
shapefile magic number |
| Constructor Summary | |
|---|---|
EsriShapefile(InputStream iStream,
Rectangle2D bBox,
double coarseness)
Read an ESRI shapefile and extract the subset of features that have bounding boxes that intersect a specified bounding box, with control of time versus resolution. |
|
EsriShapefile(String filename)
Read an ESRI shapefile and extract all features into an in-memory structure. |
|
EsriShapefile(String filename,
double coarseness)
Read an ESRI shapefile and extract all features into an in-memory structure, with control of time versus resolution. |
|
EsriShapefile(String filename,
Rectangle2D bBox)
Read an ESRI shapefile and extract the subset of features that have bounding boxes that intersect a specified bounding box. |
|
EsriShapefile(String filename,
Rectangle2D bBox,
double coarseness)
Read an ESRI shapefile and extract all features into an in-memory structure, with control of time versus resolution. |
|
EsriShapefile(URL url)
Read an ESRI shapefile from a URL and extract all features into an in-memory structure. |
|
EsriShapefile(URL url,
double coarseness)
Read an ESRI shapefile from a URL and extract all features into an in-memory structure, with control of time versus resolution. |
|
EsriShapefile(URL url,
Rectangle2D bBox)
Read an ESRI shapefile and extract the subset of features that have bounding boxes that intersect a specified bounding box |
|
EsriShapefile(URL url,
Rectangle2D bBox,
double coarseness)
Read an ESRI shapefile and extract the subset of features that have bounding boxes that intersect a specified bounding box |
|
| Method Summary | |
|---|---|
Rectangle2D |
getBoundingBox()
Get bounding box, according to file (not computed from features) |
DbaseFile |
getDbFile()
Get the Dbase file object |
List |
getFeatures()
Get a List of all the GisFeatures in the shapefile. |
List |
getFeatures(Rectangle2D bBox)
Get a List of all the features in the shapefile that intersect the specified bounding box. |
int |
getFeatureType()
Get the feature type |
int |
getNumFeatures()
|
ProjFile |
getProjFile()
Get the projection file |
int |
getVersion()
Returns shapefile format version (currently 1000) |
static void |
main(String[] args)
_more_ |
int |
numShapes()
Deprecated. |
double |
percentRead()
Return percent of file read, so far. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int SHAPEFILE_CODE
public static final int NULL
public static final int POINT
public static final int POLYLINE
public static final int POLYGON
public static final int MULTIPOINT
public static final int POINTZ
public static final int POLYLINEZ
public static final int POLYGONZ
public static final int MULTIPOINTZ
public static final int POINTM
public static final int POLYLINEM
public static final int POLYGONM
public static final int MULTIPOINTM
public static final int MULTIPATCH
| Constructor Detail |
|---|
public EsriShapefile(String filename)
throws IOException
filename - name of ESRI shapefile (typically has ".shp"
extension)
IOException
public EsriShapefile(URL url)
throws IOException
url - URL of ESRI shapefile
IOException
public EsriShapefile(String filename,
double coarseness)
throws IOException
filename - name of ESRI shapefile (typically has ".shp"
extension)coarseness - to tradeoff plot quality versus speed.
IOException
public EsriShapefile(URL url,
double coarseness)
throws IOException
url - URL of ESRI shapefilecoarseness - to tradeoff plot quality versus speed.
IOException
public EsriShapefile(URL url,
Rectangle2D bBox,
double coarseness)
throws IOException
url - URL of ESRI shapefilebBox - bounding box specifying which features to select,
namely those whose bounding boxes intersect this one. If null,
bounding box of whole shapefile is usedcoarseness - to tradeoff plot quality versus speed.
IOException
public EsriShapefile(String filename,
Rectangle2D bBox,
double coarseness)
throws IOException
filename - name of ESRI shapefilebBox - bounding box specifying which features to select,
namely those whose bounding boxes intersect this one. If null,
bounding box of whole shapefile is usedcoarseness - to tradeoff plot quality versus speed.
IOException
public EsriShapefile(URL url,
Rectangle2D bBox)
throws IOException
url - URL of ESRI shapefilebBox - bounding box specifying which features to select,
namely those whose bounding boxes intersect this one. If null,
bounding box of whole shapefile is used
IOException
public EsriShapefile(String filename,
Rectangle2D bBox)
throws IOException
filename - name of ESRI shapefilebBox - bounding box specifying which features to select,
namely those whose bounding boxes intersect this one. If null,
bounding box of whole shapefile is used
IOException
public EsriShapefile(InputStream iStream,
Rectangle2D bBox,
double coarseness)
throws IOException
iStream - input from which to readbBox - bounding box specifying which features to select,
namely those whose bounding boxes intersect this one. If null,
bounding box of whole shapefile is usedcoarseness -
IOException| Method Detail |
|---|
public DbaseFile getDbFile()
public ProjFile getProjFile()
public double percentRead()
public int getNumFeatures()
public int numShapes()
public int getVersion()
public Rectangle2D getBoundingBox()
public List getFeatures()
public List getFeatures(Rectangle2D bBox)
bBox - specifying the bounding box with which all
the returned features bounding boxes have a non-empty
intersection.
public int getFeatureType()
public static void main(String[] args)
throws IOException
args - _more_
IOException - _more_
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||