[GRASS-dev] Re: Wms service in grass 6.4.1

Hi devs,

Javier notified me that this WMS server isn't parsed properly:

GRASS 6.4.3svn (nc_spm_08):~ >r.in.wms -l
mapserver=gaia.inegi.org.mx/NLB/mdm5.wms
...
++ wc -c
+ '[' 120596 -eq 0 ']'
++ which xml2
+ '[' -x /usr/bin/xml2 ']'
+ cat /home/neteler/grassdata/nc_spm_08/neteler/.tmp/north.localdomain/7560.0capabilities.xml
+ grep 'Layer/SRS=\|Layer/Name=\|Layer/Title=\|Style/Name=\|Style/Title=\|Layer/Abstract='
+ sed -e 's/.*Layer\\/Name=/\
\
LAYER: /' -e 's/.*Layer\/SRS=/ SRS: /' -e 's/.*Layer\/Title=/ Title:
/' -e 's/.*Layer\/Abstract=/ |/' -e 's/.*Layer\/Style\/Name=/ STYLE:
/' -e 's/.*Layer\/Style\/Title=/ Style title: /'
+ xml2
sed: -e expression #1, char 19: unknown option to `s'
++ wc -l
+ '[' 0 -eq 0 ']'
+ g.message message=

+ g.message -e 'Parsing XML file'
ERROR: Parsing XML file
...

I don't know about sed, any ideas how to fix that?
http://trac.osgeo.org/grass/browser/grass/branches/releasebranch_6_4/scripts/r.in.wms/r.in.wms#L391

thanks
Markus

Markus N wrote:

Javier notified me that this WMS server isn't parsed
properly:

...

I don't know about sed, any ideas how to fix that?

try 6.5svn r51629.

Hamish

On Tue, May 15, 2012 at 10:48 PM, Hamish <hamish_b@yahoo.com> wrote:

Markus N wrote:

Javier notified me that this WMS server isn't parsed
properly:

...

I don't know about sed, any ideas how to fix that?

try 6.5svn r51629.

Excellent, this helps. Please consider backporting.

@Javier, you may take
http://trac.osgeo.org/grass/browser/grass/branches/develbranch_6/scripts/r.in.wms/r.in.wms
(download button at bottom)

and try to replace the script in your installation.

Markus