Klo: For cylindrical equidistant maps (projection='cyl') it will be easy,
since the corner lat/lon values are all that is needed. For other
projections, we'll need a way to translate EPSG projection codes into
Jeff, how is it done for static bitmaps as bluemarble, etopo... ?
Can't the same be done, if image fits in one of supported projections?
Klo: The image in interpolated to the Basemap projection region. This is slow - the main reason to use the WMS is to avoid this by having it done on the server side.
`bbox` is required with syntax like:
Syntax: <xmin>, <ymin>, <xmax>, <ymax>
Number format for `bbox` AFAIK (but not sure) depends on `bboxSR`
projection and dense list of available projections with their code is
The trick is to figure out what the EPSG projection code is based on the Basemap projection info, and pass that information to the WMS server so it can do the interpolation.
Here's an example for south polar stereographic:
width = 12000.e3
f=image" % (-width/2,-width/2,width/2,width/2)
On 8/25/12 3:08 PM, klo uo wrote:
On Sat, Aug 25, 2012 at 10:19 PM, Jeff Whitaker <jswhit@...146...> wrote:
So perhaps, by just providing `cyl` (bboxSR=4326) and imageSR to any
desired projection from above list will do the trick?
Quickly now, I tried to map other projection on whole world as it was
easier not knowing Basemap that well:
from mpl_toolkits.basemap import Basemap
import matplotlib.pyplot as plt
lon1 = -180; lon2 = 180; lat1 = -90; lat2 = 90
basemap_url = "http://server.arcgisonline.com/ArcGIS/rest/services/World_Physical_Map/MapServer/export?\
f=image" % (lon1, lat1, lon2, lat2)
m = Basemap(projection='robin', lon_0=0, resolution='c')
plt.gca().axison = False
Seems almost fine