public class WMSGrabber extends Grabber
Modifier and Type | Field and Description |
---|---|
protected String |
baseURL |
private ImageryInfo |
info |
static NumberFormat |
latLonFormat |
private Map<String,String> |
props |
Constructor and Description |
---|
WMSGrabber(MapView mv,
WMSLayer layer,
boolean localOnly) |
Modifier and Type | Method and Description |
---|---|
(package private) void |
fetch(WMSRequest request,
int attempt) |
protected URL |
getURL(double w,
double s,
double e,
double n,
int wi,
int ht) |
protected BufferedImage |
grab(WMSRequest request,
URL url,
int attempt) |
boolean |
loadFromCache(WMSRequest request) |
protected String |
readException(URLConnection conn) |
private ImageryInfo info
public static final NumberFormat latLonFormat
public WMSGrabber(MapView mv, WMSLayer layer, boolean localOnly)
void fetch(WMSRequest request, int attempt) throws Exception
protected URL getURL(double w, double s, double e, double n, int wi, int ht) throws MalformedURLException
MalformedURLException
public boolean loadFromCache(WMSRequest request)
loadFromCache
in class Grabber
protected BufferedImage grab(WMSRequest request, URL url, int attempt) throws IOException, OsmTransferException
IOException
OsmTransferException
protected String readException(URLConnection conn) throws IOException
IOException