public class BaseMapAdapter extends Object
Constructor and Description |
---|
BaseMapAdapter(InputStream is)
Create a VisAD UnionSet from a McIDAS Base Map file inputstream
|
BaseMapAdapter(InputStream is,
Rectangle2D bbox)
Create a VisAD UnionSet from a McIDAS Base Map file inputstream
|
BaseMapAdapter(String filename)
Create a VisAD UnionSet from a local McIDAS Base Map file
|
BaseMapAdapter(String filename,
Rectangle2D bbox)
Create a VisAD UnionSet from a McIDAS Base Map file on the Web
|
BaseMapAdapter(URL url)
Create a VisAD UnionSet from a McIDAS Base Map file on the Web
|
BaseMapAdapter(URL url,
Rectangle2D bbox)
Create a VisAD UnionSet from a McIDAS Base Map file on the Web
|
Modifier and Type | Method and Description |
---|---|
void |
doByLatLon()
Set the MathType of the UnionSet to be lat/lon.
|
UnionSet |
getData()
getData creates a VisAD UnionSet type with the MathType
specified thru one of the other methods.
|
boolean |
isEastPositive()
determine what sign convention for longitude is currently
being used.
|
void |
setCoordinateSystem(CoordinateSystem cs,
int numEles,
int numLines,
RealTupleType domain)
Define a CoordinateSystem whose fromReference() will
be used to transform points from latitude/longitude
into element,line.
|
void |
setDomainSet(Linear2DSet domainSet)
Using the domain_set of the FlatField of an image (when
one is available), extract the elements required.
|
void |
setEastPositive(boolean value)
set the sign of longitude convention.
|
void |
setLatLonLimits(float latmin,
float latmax,
float lonmin,
float lonmax)
set the limits of Lats and Lons; without this, the getData()
will return ALL the points in the file.
|
void |
setLatLonLimits(Rectangle2D bbox)
set the limits of Lats and Lons; without this, the getData()
will return ALL the points in the file.
|
public BaseMapAdapter(String filename) throws IOException, VisADException
filename
- name of local file.IOException
- if there was a problem reading the file.VisADException
- if an unexpected problem occurs.public BaseMapAdapter(String filename, Rectangle2D bbox) throws IOException, VisADException
filename
- name of local file.bbox
- lat/lon bounding box of map lines to includeIOException
- if there was a problem reading the file.VisADException
- if an unexpected problem occurs.public BaseMapAdapter(URL url) throws IOException, VisADException
url
- URL & filename name of remote fileIOException
- if there was a problem reading the URL.VisADException
- if an unexpected problem occurs.public BaseMapAdapter(URL url, Rectangle2D bbox) throws IOException, VisADException
url
- URL of remote filebbox
- lat/lon bounding box of map lines to includeIOException
- if there was a problem reading the URL.VisADException
- if an unexpected problem occurs.public BaseMapAdapter(InputStream is) throws IOException, VisADException
is
- input stream of mapfileIOException
- if there was a problem reading the inputstreamVisADException
- if an unexpected problem occurs.public BaseMapAdapter(InputStream is, Rectangle2D bbox) throws IOException, VisADException
is
- input stream of mapfilebbox
- lat/lon bounding boxIOException
- if there was a problem reading the inputstreamVisADException
- if an unexpected problem occurs.public void setLatLonLimits(Rectangle2D bbox)
This may be used along with any other domain-setting routine, but should be invoked last. Alternatively, pass in the bounding box in the constructor.
bbox
- Rectangle2D representing the bounding boxpublic void setLatLonLimits(float latmin, float latmax, float lonmin, float lonmax)
This may be used along with any other domain-setting routine, but should be invoked last.
latmin
- the minimum Latitude valuelatmax
- the maximum Latitude valuelonmin
- the minimum Longitude value (-180 -- 180)lonmax
- the maximum Longitude valuepublic void setDomainSet(Linear2DSet domainSet) throws VisADException
domainSet
- The VisAD Linear2DSet domain_set used when the
associated image FlatField was createdVisADException
- necessary VisAD object cannot be createdpublic void setCoordinateSystem(CoordinateSystem cs, int numEles, int numLines, RealTupleType domain) throws VisADException
cs
- is thatnumEles
- is number of elements (x)numLines
- is number of lines (y)domain
- is the desired domain (ordered element, line)VisADException
- a necessary VisAD object could not be createdpublic void doByLatLon()
public UnionSet getData()
public void setEastPositive(boolean value)
value
- set to true for positive eastward, set to
false for positive westward.public boolean isEastPositive()
Copyright © 1996–2023 The SSEC Visualization Project. All rights reserved.