[GRASS-SVN] r44544 - grass/branches/develbranch_6/scripts/r.in.wms

svn_grass at osgeo.org svn_grass at osgeo.org
Mon Dec 6 14:14:14 EST 2010


Author: martinl
Date: 2010-12-06 11:14:14 -0800 (Mon, 06 Dec 2010)
New Revision: 44544

Modified:
   grass/branches/develbranch_6/scripts/r.in.wms/r.in.wms
Log:
r.in.wms: fix listLayers


Modified: grass/branches/develbranch_6/scripts/r.in.wms/r.in.wms
===================================================================
--- grass/branches/develbranch_6/scripts/r.in.wms/r.in.wms	2010-12-05 00:25:02 UTC (rev 44543)
+++ grass/branches/develbranch_6/scripts/r.in.wms/r.in.wms	2010-12-06 19:14:14 UTC (rev 44544)
@@ -389,9 +389,7 @@
 	if [ -x "`which xml2`" ] ; then
 		cat "$CAPABILITIES_FILE" | xml2 | \
 		  grep "Layer/SRS=\|Layer/Name=\|Layer/Title=\|Style/Name=\|Style/Title=\|Layer/Abstract=" | \
-		  sed -e 's/.*Layer\\/Name=/\
-\
-LAYER: /' \
+		  sed -e "s/.*Layer\\/Name=/  LAYER: /" \
 		      -e "s/.*Layer\\/SRS=/  SRS: /" \
 		      -e "s/.*Layer\\/Title=/  Title: /" \
 		      -e "s/.*Layer\\/Abstract=/  |/" \



More information about the grass-commit mailing list