public class EsriShapefile extends Object
| Modifier and Type | Class and Description |
|---|---|
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.EsriPolygon
Represents a Polygon in an ESRI shapefile as a List of
GisParts.
|
class |
EsriShapefile.EsriPolyline
Represents a Polyline in an ESRI shapefile as a List of
GisParts.
|
| Modifier and Type | Field and Description |
|---|---|
static int |
MULTIPATCH |
static int |
MULTIPOINT |
static int |
MULTIPOINTM |
static int |
MULTIPOINTZ |
static int |
NULL |
static int |
POINT |
static int |
POINTM |
static int |
POINTZ |
static int |
POLYGON |
static int |
POLYGONM |
static int |
POLYGONZ |
static int |
POLYLINE |
static int |
POLYLINEM |
static int |
POLYLINEZ |
static int |
SHAPEFILE_CODE |
| Constructor and Description |
|---|
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
|
| Modifier and Type | Method and Description |
|---|---|
Rectangle2D |
getBoundingBox()
Get bounding box, according to file (not computed from features)
|
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 |
getNumFeatures() |
int |
getVersion()
Returns shapefile format version (currently 1000)
|
int |
numShapes()
Deprecated.
|
double |
percentRead()
Return percent of file read, so far.
|
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
public EsriShapefile(String filename) throws IOException
filename - name of ESRI shapefile (typically has ".shp"
extension)IOExceptionpublic EsriShapefile(URL url) throws IOException
url - URL of ESRI shapefileIOExceptionpublic EsriShapefile(String filename, double coarseness) throws IOException
filename - name of ESRI shapefile (typically has ".shp"
extension)coarseness - to tradeoff plot quality versus speed.IOExceptionpublic EsriShapefile(URL url, double coarseness) throws IOException
url - URL of ESRI shapefilecoarseness - to tradeoff plot quality versus speed.IOExceptionpublic 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.IOExceptionpublic 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.IOExceptionpublic 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 usedIOExceptionpublic 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 usedIOExceptionpublic 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 usedIOExceptionpublic 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.Copyright © 1999-2012 UCAR/Unidata. All Rights Reserved.