|
From: Jeff W. <jef...@no...> - 2012-08-27 19:32:10
|
On 8/27/12 11:24 AM, klo uo wrote: > On Mon, Aug 27, 2012 at 2:34 PM, Jeff Whitaker wrote: >> Klo: WMS servers use EPSG codes to define map projections - Basemap uses a >> set of kwargs. We need some way of inferring epsg codes from the Basemap >> kwargs. Alternatively, we could extend Basemap so it can accept EPSG codes. >> But, there are many EPSG codes that don't correspond to allowable Basemap >> projections, and valid Basemap projections that don't correspond to EPSG >> codes. It's not obvious to me how to proceed. >>> Here is same server from agency where you work according your >>> signature: maps.ngdc.noaa.gov/rest/services it provides additional >>> maps on same server as arcgis >>> >>> I also checked many WMS servers, first with XML editor but then with >>> Gaia, which was excellent help in determining that many WMS servers >>> just return their capabilities, but does not provide service as >>> described in capabilities response. Some offer tilling features, for >>> possible future interactive zooming in Basemap ;) >> >> Maybe it's better not have the function accept a OWSLib wms object - that >> way we don't have to tie ourselves to a particular WMS server. > > Thanks for explaining Jeff, but aren't we using arcgis REST service > which accepts more then 4500 projections? Are you saying Basemap > offers projection that's not listed here: > http://atlas.resources.ca.gov/arcgis/SDK/REST/gcs.html 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 > > EPSG codes may be important to WMS. And providing WMS feature is maybe > question how. Any GIS tool has WMS service support. Some WMS servers > provide tiling capabilities and that also can be considered for future > feature of fast zooming in Basemap. Most of them seem to offer just > EPSG:4326 and there are servers with many projections (not as many as > arcgis REST service) > But at this point of static map servers we can just use urllib module > and do requested WMS function which will return the map without using > any additional function or package > > I'm validating public WMS servers and these days I'll report again. As > mentioned many simply aren't working, many are localized, etc. > Hope will find nice usage for some selected > > ------------------------------------------------------------------------------ > 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 > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users -- Jeffrey S. Whitaker Phone : (303)497-6313 Meteorologist FAX : (303)497-6449 NOAA/OAR/PSD R/PSD1 Email : Jef...@no... 325 Broadway Office : Skaggs Research Cntr 1D-113 Boulder, CO, USA 80303-3328 Web : http://tinyurl.com/5telg |