> Export Map (http://atlas.resources.ca.gov/arcgis/SDK/REST/export.html)
> seems like only function needed, but more knowledge about Basemap is
> needed, as my main problem with it is fitting projections right. I
> tried to overlay arcgis map over some Basemap projections like:
>
>   m=Basemap(...)
>   m.imshow(arcgis_map)
>   m.drawcoastlines()
>
> But it never fits, and also aspect ratio should be considered.

Success! :)
It was that "imageSR" had to be set, as it doesn't seem to be deduced
from the map:

========================================
basemap_url = 
"http://server.arcgisonline.com/ArcGIS/rest/services/World_Physical_Map/MapServer/export?\
bbox=%d,%d,%d,%d&\
bboxSR=4326&\
imageSR=4326&\
size=800,600&\
dpi=128&\
format=png32&\
f=image" % (lon1, lat1, lon2, lat2) \
========================================

Result with coastlines overlay attached!

Jeff, I think it is easy to make this function to Basemap class, but
I'm not confident doing it.
If you can make it, I'll then try to use it as template and pair it to
other available webservices

Cheers

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to