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

Markus Neteler neteler at osgeo.org
Tue May 15 15:27:13 EDT 2012


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


More information about the grass-dev mailing list