[GRASS-SVN] r37586 -
grass/branches/releasebranch_6_4/scripts/r.in.wms
svn_grass at osgeo.org
svn_grass at osgeo.org
Fri May 29 08:01:32 EDT 2009
Author: hamish
Date: 2009-05-29 08:01:32 -0400 (Fri, 29 May 2009)
New Revision: 37586
Modified:
grass/branches/releasebranch_6_4/scripts/r.in.wms/wms.request
Log:
add warning about greedy requests (merge from devbr6)
Modified: grass/branches/releasebranch_6_4/scripts/r.in.wms/wms.request
===================================================================
--- grass/branches/releasebranch_6_4/scripts/r.in.wms/wms.request 2009-05-29 12:00:09 UTC (rev 37585)
+++ grass/branches/releasebranch_6_4/scripts/r.in.wms/wms.request 2009-05-29 12:01:32 UTC (rev 37586)
@@ -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