[GRASS-SVN] r42328 - grass/branches/develbranch_6/scripts/r.in.wms
svn_grass at osgeo.org
svn_grass at osgeo.org
Fri May 21 06:25:08 EDT 2010
Author: hamish
Date: 2010-05-21 06:25:07 -0400 (Fri, 21 May 2010)
New Revision: 42328
Modified:
grass/branches/develbranch_6/scripts/r.in.wms/r.in.wms
Log:
make layer list easier to read
Modified: grass/branches/develbranch_6/scripts/r.in.wms/r.in.wms
===================================================================
--- grass/branches/develbranch_6/scripts/r.in.wms/r.in.wms 2010-05-21 08:17:09 UTC (rev 42327)
+++ grass/branches/develbranch_6/scripts/r.in.wms/r.in.wms 2010-05-21 10:25:07 UTC (rev 42328)
@@ -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