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

svn_grass at osgeo.org svn_grass at osgeo.org
Fri May 29 08:18:03 EDT 2009


Author: hamish
Date: 2009-05-29 08:18:03 -0400 (Fri, 29 May 2009)
New Revision: 37587

Modified:
   grass/trunk/scripts/r.in.wms/wms_request.py
Log:
add warning about greedy requests (merge from devbr6)

Modified: grass/trunk/scripts/r.in.wms/wms_request.py
===================================================================
--- grass/trunk/scripts/r.in.wms/wms_request.py	2009-05-29 12:01:32 UTC (rev 37586)
+++ grass/trunk/scripts/r.in.wms/wms_request.py	2009-05-29 12:18:03 UTC (rev 37587)
@@ -174,7 +174,14 @@
             
         rf.close()
         grass.message("Done: requesting %d tiles" % len(tiles))
+        if len(tiles) > 200:
+	    grass.warning("Proceed with care. This number of tiles may \
+	      exceed the maximum command line arguments available from \
+	      the operating system later on in the r.in.gdalwarp step. \
+	      In addition it may be considered abusive behaivor by the \
+	      server providers - check their terms of use.")
 
+
     def Get(self, key):
         """Get value"""
         return self.data[key]



More information about the grass-commit mailing list