diff options
| author | Sergey Fedoseev <fedoseev.sergey@gmail.com> | 2020-05-12 14:25:19 +0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-05-12 11:25:19 +0200 |
| commit | 91e287cce0561b647e7b7fb96dd415567512f279 (patch) | |
| tree | f29ec2f7c8d019d0031fe63cfb6c1443ba9fbfb3 /django | |
| parent | 17ea7cc9734a9849166d6c33bd8888bc38bfdd54 (diff) | |
Refs #30678 -- Added support for GDAL 3.1.
OSRSetAxisMappingStrategy() really returns void, so no errcheck is
needed. Previously set errcheck was raising positive false exceptions
on GDAL 3.1.
Diffstat (limited to 'django')
| -rw-r--r-- | django/contrib/gis/gdal/prototypes/srs.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/django/contrib/gis/gdal/prototypes/srs.py b/django/contrib/gis/gdal/prototypes/srs.py index 004319f1b9..5d6a65c4fe 100644 --- a/django/contrib/gis/gdal/prototypes/srs.py +++ b/django/contrib/gis/gdal/prototypes/srs.py @@ -32,7 +32,7 @@ destroy_srs = void_output(std_call('OSRDestroySpatialReference'), [c_void_p], er srs_validate = void_output(lgdal.OSRValidate, [c_void_p]) if GDAL_VERSION >= (3, 0): - set_axis_strategy = void_output(lgdal.OSRSetAxisMappingStrategy, [c_void_p, c_int]) + set_axis_strategy = void_output(lgdal.OSRSetAxisMappingStrategy, [c_void_p, c_int], errcheck=False) # Getting the semi_major, semi_minor, and flattening functions. semi_major = srs_double(lgdal.OSRGetSemiMajor) |
