[GRASS-SVN] r35664 - grass/trunk/scripts/r.in.wms

svn_grass at osgeo.org svn_grass at osgeo.org
Tue Jan 27 21:05:57 EST 2009


Author: hamish
Date: 2009-01-27 21:05:57 -0500 (Tue, 27 Jan 2009)
New Revision: 35664

Modified:
   grass/trunk/scripts/r.in.wms/r.in.wms
   grass/trunk/scripts/r.in.wms/wms.download
Log:
msg cosmetics, check if r.support worked (merge from devbr6)

Modified: grass/trunk/scripts/r.in.wms/r.in.wms
===================================================================
--- grass/trunk/scripts/r.in.wms/r.in.wms	2009-01-28 02:03:51 UTC (rev 35663)
+++ grass/trunk/scripts/r.in.wms/r.in.wms	2009-01-28 02:05:57 UTC (rev 35664)
@@ -561,13 +561,18 @@
 message 1 "r.in.gdalwarp $GDALWARP"
 eval "r.in.gdalwarp $GDALWARP"
 if [ $? -ne 0 ] ; then
+   g.message -e message="r.in.gdalwarp failed"
    exit 1
 fi
 
 r.support map="$GIS_OPT_OUTPUT" title="WMS Download" history="" \
   source1=`echo "$GIS_OPT_MAPSERVER" | cut -c-70` \
   source2=`echo "$GIS_OPT_MAPSERVER" | cut -c71-140`
-  
+if [ $? -ne 0 ] ; then
+   g.message -e message="r.support failed"
+   exit 1
+fi
+
 LAY_LEN="echo "$GIS_OPT_LAYERS" | wc -c"
 
 r.support map="$GIS_OPT_OUTPUT" history="layers: $GIS_OPT_LAYERS"
@@ -582,6 +587,7 @@
 r.support map="$GIS_OPT_OUTPUT" description="generated by r.in.wms" history=""
 r.support map="$GIS_OPT_OUTPUT" history="$CMDLINE"
 
+
 g.message -v message="Map <${GIS_OPT_OUTPUT}> written"
 
 # Clean up:

Modified: grass/trunk/scripts/r.in.wms/wms.download
===================================================================
--- grass/trunk/scripts/r.in.wms/wms.download	2009-01-28 02:03:51 UTC (rev 35663)
+++ grass/trunk/scripts/r.in.wms/wms.download	2009-01-28 02:05:57 UTC (rev 35664)
@@ -155,7 +155,7 @@
 #Get the data from the WMS server
 GetData() {
    g.message "Downloading data"
-   g.message -v message="Requesting Data from <${SERVER}:>"
+   g.message -v message="Requesting Data from <${SERVER}>:"
    g.message -v message="$STRING"
 
    if [ "$POST_DATA_OK" -eq 1 ] ; then



More information about the grass-commit mailing list