Agustin Diez Castillo wrote: > I can't r.in.wms yet (william's svn build, so I'm not absolutely sure > if your changes are there) > > r.in.wms -l mapserver=http://www.idee.es/wms/PNOA/PNOA srs=EPSG:23030 > format=png wmsquery=version=1.1.1 maxcols=1024 maxrows=1024 > 'curloptions=-C - --retry 5 -s -S' method=nearest --verbose .... > ERROR: Parsing XML file > ------------------------ > <?xml version='1.0' encoding="ISO-8859-1" standalone="no" ?> > <!DOCTYPE ServiceExceptionReport SYSTEM > "http://www.idee.es/SgdWms/Server/exception_1_1_1.dtd"> > <ServiceExceptionReport version="1.1.1"> > <ServiceException code="InvalidFormat"> > <![CDATA[ > Par?metros: > REQUEST INEXISTENTE O INVALIDA > Verticesdisponibles: > ]]> > </ServiceException> > </ServiceExceptionReport>
well good news and bad. The error you see does seem to be due to r.in.wms using the POST-data method instead of the atomic-GET method and the server not liking that. By putting the request all on one line I was able to get the capabilities.xml file: SERVER="http://www.idee.es/wms/PNOA/PNOA?" REQUEST="service=WMS&request=GetCapabilities&version=1.1.1" wget "${SERVER}${REQUEST}" -O pnoa_capabilities.xml versus wget --post-data="${REQUEST}" "${SERVER}" -O pnoa_capabilities.xml After adding an elaborate hack to 'r.in.wms -l' to try the GET method if the POST-data method XML parsing failed I could get it to download and parse the layers list. I then tried doing the same with r.in.wms's wms.download module, (I added a -g force-GET flag) r.in.wms mapserver="$SERVER" format=png srs=EPSG:23030 \ out=test layer=pnoa -p -c -g It seemed to download something and seemed to process it, but I got an empty map. Do you have a useful region for EPSG:23030? I tried: n=3741500 s=3649400 w=-554200 e=-427300 res=100 maybe that was why the output map was empty? It's all getting a bit of a mess and I'm a bit hesitant to commit the needed fixes as they are somewhere between a kludge and a hack-- the sooner we get r.in.wms rewritten in Python and/or using GDAL 1.5.0's fetch method, the better. Hamish ____________________________________________________________________________________ Looking for last minute shopping deals? Find them fast with Yahoo! Search. http://tools.search.yahoo.com/newsearch/category.php?category=shopping _______________________________________________ grass-dev mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/grass-dev
