});
}
public Context getCoordinateBoundsAsContext(CoordinateBounds bounds) {
if (bounds.isEmpty())
return new ContextImpl();
double latCenter = (bounds.getMinLat() + bounds.getMaxLat()) / 2;
double lonCenter = (bounds.getMinLon() + bounds.getMaxLon()) / 2;
double latSpan = bounds.getMaxLat() - bounds.getMinLat();
double lonSpan = bounds.getMaxLon() - bounds.getMinLon();
Map<String, String> m = new HashMap<String, String>();
addBoundsToParams(m, latCenter, lonCenter, latSpan, lonSpan);
return new ContextImpl(m);
}