return new WMSGrabber(Main.map.mapView, this, localOnly);
else throw new IllegalStateException("getGrabber() called for non-WMS layer type");
}
public ProjectionBounds getBounds(WMSRequest request) {
ProjectionBounds result = new ProjectionBounds(
getEastNorth(request.getXIndex(), request.getYIndex()),
getEastNorth(request.getXIndex() + 1, request.getYIndex() + 1));
if (WMSLayer.PROP_OVERLAP.get()) {
double eastSize = result.maxEast - result.minEast;
double northSize = result.maxNorth - result.minNorth;
double eastCoef = WMSLayer.PROP_OVERLAP_EAST.get() / 100.0;
double northCoef = WMSLayer.PROP_OVERLAP_NORTH.get() / 100.0;
result = new ProjectionBounds(result.getMin(),
new EastNorth(result.maxEast + eastCoef * eastSize,
result.maxNorth + northCoef * northSize));
}
return result;
}