|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectucar.visad.ShapefileAdapter
public class ShapefileAdapter
Provides support for ShapeFiles in VisAD.
| Field Summary | |
|---|---|
static String |
ATTR_POINTS
map xml attribute |
protected UnionSet |
mapLines
resulting maplines |
protected EsriShapefile |
shapefile
shapefile |
static String |
TAG_POLYGON
map xml tag |
| Constructor Summary | |
|---|---|
ShapefileAdapter(EsriShapefile shapefile)
From an ESRI shapefile extract all features into an in-memory structure. |
|
ShapefileAdapter(InputStream iStream)
Read an ESRI shapefile and extract all features into an in-memory structure. |
|
ShapefileAdapter(InputStream iStream,
Rectangle2D bBox)
Read an ESRI shapefile and extract all features into an in-memory structure. |
|
ShapefileAdapter(InputStream iStream,
Rectangle2D bBox,
double coarseness)
Read an ESRI shapefile and extract all features into an in-memory structure. |
|
ShapefileAdapter(InputStream iStream,
String filename)
constructor |
|
ShapefileAdapter(String filename)
Read an ESRI shapefile and extract all features into an in-memory structure. |
|
ShapefileAdapter(String filename,
double coarseness)
Read an ESRI shapefile and extract all features into an in-memory structure. |
|
ShapefileAdapter(String filename,
Rectangle2D bBox)
Read an ESRI shapefile and extract all features into an in-memory structure. |
|
ShapefileAdapter(String filename,
Rectangle2D bBox,
double coarseness)
Read an ESRI shapefile and extract all features into an in-memory structure. |
|
ShapefileAdapter(URL url)
Read an ESRI shapefile from a URL and extract all features into an in-memory structure. |
|
ShapefileAdapter(URL url,
double coarseness)
Read an ESRI shapefile from a URL and extract all features into an in-memory structure. |
|
ShapefileAdapter(URL url,
Rectangle2D bBox)
Read an ESRI shapefile and extract the subset of features that have bounding boxes that intersect a specified bounding box |
|
ShapefileAdapter(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 | |
|---|---|
UnionSet |
getData()
getData creates a VisAD UnionSet type with the MathType specified thru one of the other methods. |
DbaseFile |
getDbFile()
Get the db file. |
int |
getFeatureType()
What is the feature type |
static UnionSet |
makeSet(List sets)
Utility to make a set |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String TAG_POLYGON
public static final String ATTR_POINTS
protected EsriShapefile shapefile
protected UnionSet mapLines
| Constructor Detail |
|---|
public ShapefileAdapter(String filename)
throws IOException,
VisADException
filename - name of ESRI shapefile (typically has ".shp"
extension)
IOException
VisADException
public ShapefileAdapter(URL url)
throws IOException,
VisADException
url - URL of ESRI shapefile
IOException
VisADException
public ShapefileAdapter(URL url,
Rectangle2D bBox)
throws IOException,
VisADException
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
VisADException
public ShapefileAdapter(String filename,
Rectangle2D bBox)
throws IOException,
VisADException
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
VisADException
public ShapefileAdapter(String filename,
double coarseness)
throws IOException,
VisADException
filename - name of ESRI shapefile (typically has ".shp"
extension)coarseness - resolution vs. speed parameter. 0.0 for best
resolution, 0.1 for good resolution with 10:1 zooms, etc.
IOException
VisADException
public ShapefileAdapter(URL url,
double coarseness)
throws IOException,
VisADException
url - URL of ESRI shapefilecoarseness - resolution vs. speed parameter. 0.0 for best
resolution, 0.1 for good resolution with 10:1 zooms, etc.
IOException
VisADException
public ShapefileAdapter(URL url,
Rectangle2D bBox,
double coarseness)
throws IOException,
VisADException
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 - resolution vs. speed parameter. 0.0 for best
resolution, 0.1 for good resolution with 10:1 zooms, etc.
IOException
VisADException
public ShapefileAdapter(String filename,
Rectangle2D bBox,
double coarseness)
throws IOException,
VisADException
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 - resolution vs. speed parameter. 0.0 for best
resolution, 0.1 for good resolution with 10:1 zooms, etc.
IOException
VisADException
public ShapefileAdapter(InputStream iStream)
throws IOException,
VisADException
iStream - input from which to read
IOException
VisADException
public ShapefileAdapter(InputStream iStream,
Rectangle2D bBox)
throws IOException,
VisADException
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 used
IOException
VisADException
public ShapefileAdapter(InputStream iStream,
String filename)
throws IOException,
VisADException
iStream - Inputstreamfilename - Filename where we got the input stream
IOException - On badness
VisADException - On badness
public ShapefileAdapter(InputStream iStream,
Rectangle2D bBox,
double coarseness)
throws IOException,
VisADException
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 - of plotting, 0.0 for best resolution, 0.1 for
good resoution at 10:1 zoom, etc. Higher values make things
display a bit faster.
IOException
VisADException
public ShapefileAdapter(EsriShapefile shapefile)
throws VisADException
shapefile - input from which to extract features
VisADException| Method Detail |
|---|
public static UnionSet makeSet(List sets)
throws VisADException
sets - List of sets
VisADException - On badnesspublic int getFeatureType()
public DbaseFile getDbFile()
public UnionSet getData()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||