Try without the folder flag , it works for me ... some times. I've been fighting with r.in.wms for several months and usually I got stuck either where your are or at WARNING: xml2 NOT avaliable, I was told that xml2 is not needed -I'm on mac- what is true in some cases - see below-.
Those errors only happen in some servers.

r.in.wms -l output=icvo5_2004 mapserver=http://ovc.catastro.meh.es/ Cartografia/WMS/ServidorWMS.aspx? layers=hist_1_5000_2004 srs=EPSG: 23030 format=png wmsquery=version=1.1.1 maxcols=2048 maxrows=2048 'wgetoptions=-c -t 5 -nv' 'curloptions=-C - --retry 5 -s -S' method=nearest v=1 --o
Using WGET for downloading data.
List of layers for server
http://ovc.catastro.meh.es/Cartografia/WMS/ServidorWMS.aspx?:
20:22:15 URL:http://ovc.catastro.meh.es/Cartografia/WMS/ ServidorWMS.aspx? [316/316] -> "/Volumes/LaCieDisk/Users/Shared/ agus_compartido/grassdata/Projecte/adiez2/.tmp/regadiuet.prearq.uv.es/ 1486.0capabilities.xml" [1]
WARNING: xml2 NOT avaliable

ERROR: Parsing XML file
------------------------
<?xml version='1.0' encoding="ISO-8859-1"  standalone="no" ?>
<ServiceExceptionReport version="1.1.1">
<ServiceException code="InvalidFormat">
<![CDATA[
Este servicio sirve para ser utilizado por programas de visualizaci?n de cartograf?a. No es una p?gina web.]]>
</ServiceException>
</ServiceExceptionReport>

but not in others

r.in.wms output=icvo5_2000b mapserver=icvmapas.icv.gva.es/wms? layers=hist_1_5000_2000 srs=EPSG:23030 format=png wmsquery=version=1.1.1 maxcols=2048 maxrows=2048 folder=/Users/adiez/ Documents 'wgetoptions=-c -t 5 -nv' 'curloptions=-C - --retry 5 -s - S' method=nearest v=1 --o
Using WGET for downloading data.
Calculating tiles
Requesting 1 tiles.
Downloading tiles
Downloading data
Requesting Data from icvmapas.icv.gva.es/wms?:

request=GetMap&layers=hist_1_5000_2000&styles=&srs=EPSG: 23030&bbox=699869.94641300000000000000,4274950.58941000000000000000,7499 46.91542798501498496500,4325027.56334589610389605391&width=2004&height=2 004&format=image/png&transparent=TRUE&version=1.1.1 20:33:34 URL:http://icvmapas.icv.gva.es/wms? [24012] -> "/Users/adiez/ Documents/icvo5_2000b__0.png" [1]
All tiles downloaded successfully
Creating output file that is 2004P x 2004L.
Processing input file /Users/adiez/Documents/icvo5_2000b__0.png.
Using band 4 of source image as alpha.
Using band 4 of destination image as alpha.
:0...10...20...30...40...50...60...70...80...90...100 - done.
Projection of input dataset and current location appear to match.
Proceeding with import...
100%
100%
100%
100%




On Sep 22, 2007, at 12:20 PM, gweigi71 wrote:

Hello,

I try to get some maps from saxonys new wms- service:
http://www.landesvermessung.sachsen.de/ias/basiskarte/service/register
(german only)
I use this with grass 6.2.2:

r.in.wms -c output=tk10
mapserver=http://www.landesvermessung.sachsen.de/ias/basiskarte/ service/SRVTKFREE/WMSFREE_TK/wmsservice?
layers=tk10w,tk10g,tk10i,tk10v srs=EPSG:31468 format=png
wmsquery=SERVICE=WMS&version=1.1.1 maxcols=1024 maxrows=1024
folder=/home/wg/toposachs {wgetoptions=-c -t 5 --user-agent=MSIE5.5}
method=nearest v=1

... and I get this:

ERROR 4: `/home/wg/Documents/grass6/wms_download/tk10__0.png' not
recognised as a supported file format.

ERROR: r.in.gdalwarp: gdalwarp failure.

Also there are only empty png's in the download folder (and some other
files). I think it has something to do with scalehint- restrictions.
Maybe my region- settings are wrong:

projection: 99 (Transverse Mercator)
zone:       0
datum:      potsdam
ellipsoid:  a=6377397.155 es=0.006674372231802145
north:      5666684.25180855
south:      5665398.55006475
west:       4683933.19530855
east:       4685477.48200981
nsres:      0.99976807
ewres:      1.00018569
rows:       1286
cols:       1544
cells:      1985584

Can somebody give me a hint?

_______________________________________________
grassuser mailing list
[email protected]
http://grass.itc.it/mailman/listinfo/grassuser


_______________________________________________
grassuser mailing list
[email protected]
http://grass.itc.it/mailman/listinfo/grassuser

Reply via email to