[Users] Still stuck on proxy and WMSCapabilitiesStore
Jason Woolard
Jason.Woolard at noaa.gov
Sat Dec 4 22:42:51 CET 2010
hi -
I've been working with the wms capabilities store example to try to
retrieve an external getcapabilities doc using the python proxy.cgi and
display a grid view. I've added the external wms host to the proxy.cgi
script and I can test the proxy by typing
"http://localhost:8080/proxy.cgi" in my browser (running a localhost
python cgi) and it returns the OpenLayers home page. So, I can assume
it's working as expected (python is being called, etc.)? I can also
type the url of the getcapabilities doc in my browser
'http://hdds.usgs.gov/ArcGIS/services/201004_OilSpill_GulfOfMexico/MapServer/WMSServer?request=GetCapabilities'
and it returns an xml doc.
Should I now be able to do something like this or am I completely off track:
Ext.onReady(function() {
OpenLayers.ProxyHost = "proxy.cgi?url=";
store = new GeoExt.data.WMSCapabilitiesStore({
url:
'http://hdds.usgs.gov/ArcGIS/services/201004_OilSpill_GulfOfMexico/MapServer/WMSServer?request=GetCapabilities',
autoLoad: true
});
store.load();
etc.......
It's not showing errors in the console. The page just isn't loading so
I'm guessing it's still same origin policy stuff?
Thanks in advance for any tips.
More information about the Users
mailing list