On Mon, Aug 27, 2012 at 9:32 PM, Jeff Whitaker wrote:
>
> Klo:  Yes.  And vice versa, some of those 4500 projections aren't supported
> by Basemap.
>
> Anyway, I went ahead and created a prototype 'wmsmap' method. You can try it
> by cloning my fork (https://github.com/jswhit/basemap) and running
> examples/testwms.py.  I created an extra kward 'epsg' for creating Basemap
> instances. To use the wmsmap function, you have to use that keyword.  Give
> it a try and let me know what you think.

Jeff it looks great, everything is parametrized including server name
and map name, so it should work for any additional service.
However on Windows with Python 2.7 and Basemap 1.0.5 I get an error
while trying to run the script:
========================================
Traceback (most recent call last):
  File "testwms.py", line 39, in <module>
    m=Basemap2(epsg=epsg,resolution='h',width=width,height=height)
TypeError: __init__() got an unexpected keyword argument 'epsg'
========================================

I than added initial empty "epsg" arg to original Basemap class
declaration, but then after some time processing I get:
========================================
warning: width and height keywords ignored for Cylindrical Equidistant
projectionEPSG:
Traceback (most recent call last):
  File "testwms.py", line 47, in <module>
    m.drawparallels(np.arange(0,80,1),labels=[1,0,0,0])
  File "testwms.py", line 15, in wmsmap
    if not hasattr(self,'epsg'):
AttributeError: 'Basemap2' object has no attribute 'epsg'
========================================

So I leave it for now and assume it's some tiny issue not obvious at
this time to me.

I'll continue WMS search, but yesterday I spent couple of hours just
to look at those beautiful maps provided on arcgis server. I explored
on all and it's so nicely done and with high resolution zoom. They are
annotated though, but again, see i.e. Ocean Basemap, or overlay with
transparency over some more colored topo map like GEBCO_08 from
maps.ngdc.noaa.gov server - just great. World Topo also...

------------------------------------------------------------------------------
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