[GRASS-git] [OSGeo/grass-addons] f24fbb: i.sentinel.download: catch WKT too long with -b fl...

Markus Neteler noreply at github.com
Thu Nov 21 05:58:44 PST 2019


  Branch: refs/heads/master
  Home:   https://github.com/OSGeo/grass-addons
  Commit: f24fbb3630e8a1d4b89043151bab01b8b0a4748c
      https://github.com/OSGeo/grass-addons/commit/f24fbb3630e8a1d4b89043151bab01b8b0a4748c
  Author: Markus Neteler <neteler at gmail.com>
  Date:   2019-11-21 (Thu, 21 Nov 2019)

  Changed paths:
    M grass7/imagery/i.sentinel/i.sentinel.download/i.sentinel.download.py

  Log Message:
  -----------
  i.sentinel.download: catch WKT too long with -b flag (#56)

i.sentinel.download: catch WKT too long with -b flag:

Rationale: RFC 2616 HTTP/1.1 imposes a 2000 char limit on WKT when sent via HTTP GET (sentinelsat).

Hence:
* raise fatal error when AOI map (-b flag) has too many vertices, recommending to use 'v.generalize' to simplify the boundaries
* check added if AOI map contains areas (by ninsbl)
* use vector_info_topo() from PyGRASS rather than GRASS Python scripting API




More information about the grass-commit mailing list