diff options
| author | Kristian Evers <kristianevers@gmail.com> | 2020-04-15 19:19:32 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-04-15 19:19:32 +0200 |
| commit | c91966953d9ad327cbb3b9d80842cc0d3957df42 (patch) | |
| tree | d1cd2265b8d397f397f1ebc113322373b229f2a5 /docs/plot/plot.py | |
| parent | fd17c604bfae458baa98cd1b0c9be0192229f06b (diff) | |
| parent | e4bf822158aa5193022e8392f0eddd6510653bfa (diff) | |
| download | PROJ-c91966953d9ad327cbb3b9d80842cc0d3957df42.tar.gz PROJ-c91966953d9ad327cbb3b9d80842cc0d3957df42.zip | |
Merge pull request #2148 from kbevers/add_adams_projections
Add square conformal projections from libproject
Diffstat (limited to 'docs/plot/plot.py')
| -rw-r--r-- | docs/plot/plot.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/docs/plot/plot.py b/docs/plot/plot.py index a4f330f6..ec263fe4 100644 --- a/docs/plot/plot.py +++ b/docs/plot/plot.py @@ -248,7 +248,11 @@ def plotproj(plotdef, data, outdir): (plotdef['lonmax'], plotdef['latmax']), (plotdef['lonmax'], plotdef['latmin']), ]) - temp_pol = temp_pol.intersection(box) + try: + temp_pol = temp_pol.intersection(box) + except Exception as e: + continue + if plotdef['type'] == 'poly': if isinstance(temp_pol, MultiPolygon): |
