浏览代码

add warning about greedy requests (merge from devbr6)

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@37587 15284696-431f-4ddb-bdfa-cd5b030d7da7
Hamish Bowman 16 年之前
父节点
当前提交
8ce14e1bff
共有 1 个文件被更改,包括 7 次插入0 次删除
  1. 7 0
      scripts/r.in.wms/wms_request.py

+ 7 - 0
scripts/r.in.wms/wms_request.py

@@ -174,6 +174,13 @@ class WMSRequest:
             
             
         rf.close()
         rf.close()
         grass.message("Done: requesting %d tiles" % len(tiles))
         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):
     def Get(self, key):
         """Get value"""
         """Get value"""