[GRASS-SVN] r37585 - grass/branches/develbranch_6/scripts/r.in.wms
svn_grass at osgeo.org
svn_grass at osgeo.org
Fri May 29 08:00:09 EDT 2009
Author: hamish
Date: 2009-05-29 08:00:09 -0400 (Fri, 29 May 2009)
New Revision: 37585
Modified:
grass/branches/develbranch_6/scripts/r.in.wms/wms.request
Log:
add warning about greedy requests
Modified: grass/branches/develbranch_6/scripts/r.in.wms/wms.request
===================================================================
--- grass/branches/develbranch_6/scripts/r.in.wms/wms.request 2009-05-29 09:43:18 UTC (rev 37584)
+++ grass/branches/develbranch_6/scripts/r.in.wms/wms.request 2009-05-29 12:00:09 UTC (rev 37585)
@@ -205,7 +205,14 @@
done
g.message "Requesting ${NUMBER_OF_TILES} tiles."
-
+ if [ "$NUMBER_OF_TILES" -gt 200 ] ; then
+ g.message -w "Proceed with care. This number of tiles may exceed \
+ the maximum command line argument length available from your \
+ operating system and cause an error later on in the r.in.gdalwarp \
+ step. In addition it may be considered abusive behavior by the \
+ server provider - check their terms of use."
+ fi
+
NUMBER_OF_TILES=0 #The number of the tiles
mkdir -p "${GIS_OPT_FOLDER}"
More information about the grass-commit
mailing list