[GRASS-SVN] r42329 - grass/branches/releasebranch_6_4/scripts/r.in.wms

svn_grass at osgeo.org svn_grass at osgeo.org
Fri May 21 06:26:37 EDT 2010


Author: hamish
Date: 2010-05-21 06:26:37 -0400 (Fri, 21 May 2010)
New Revision: 42329

Modified:
   grass/branches/releasebranch_6_4/scripts/r.in.wms/r.in.wms
Log:
make layer list easier to read (merge from devbr6)

Modified: grass/branches/releasebranch_6_4/scripts/r.in.wms/r.in.wms
===================================================================
--- grass/branches/releasebranch_6_4/scripts/r.in.wms/r.in.wms	2010-05-21 10:25:07 UTC (rev 42328)
+++ grass/branches/releasebranch_6_4/scripts/r.in.wms/r.in.wms	2010-05-21 10:26:37 UTC (rev 42329)
@@ -396,7 +396,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=/\n\nLAYER: /" \
 		      -e "s/.*Layer\\/SRS=/  SRS: /" \
 		      -e "s/.*Layer\\/Title=/  Title: /" \
 		      -e "s/.*Layer\\/Abstract=/  |/" \
@@ -412,7 +412,7 @@
 		    -e "s/<Title>/\n<Title>/g" \
 		    "$CAPABILITIES_FILE" | \
 		    grep "Name\|Title\|Style\|Layer" | \
-		    sed -e "s/<Layer .*>/LAYER:/" \
+		    sed -e "s/<Layer .*>/-=-=-=-=-\n\nLAYER:/" \
 		      -e "s/<\/Layer.*>//" \
 		      -e "s/<Name>\s*\([^<]*\)/~\1~/g" \
 		      -e "s/<\/Name>\n\?//g" \



More information about the grass-commit mailing list