#35058: Update GDAL integration
-----------------------------------------+------------------------
               Reporter:  David Smith    |          Owner:  nobody
                   Type:  Uncategorized  |         Status:  new
              Component:  GIS            |        Version:  4.2
               Severity:  Normal         |       Keywords:
           Triage Stage:  Unreviewed     |      Has patch:  0
    Needs documentation:  0              |    Needs tests:  0
Patch needs improvement:  0              |  Easy pickings:  0
                  UI/UX:  0              |
-----------------------------------------+------------------------
 During the GDAL 2.x and 3.x releases GDAL has expanded its public entry
 points, added new features. While one of these new features is curved
 geometries #34406 I think we should conduct a review and consider if new
 items should be added to Django. Here's a few specific items to start
 with:

 **OGR_G_CoordinateDimension**

 
[https://gdal.org/api/vector_c_api.html#_CPPv428OGR_G_GetCoordinateDimension12OGRGeometryH
 OGR_G_CoordinateDimension ] is deprecated in favour of
 `OGR_G_CoordinateDimension()`, `OGR_G_Is3D()` and `OGR_G_IsMeasured()`.

 **OGRwkbGeometryType**

 Support should be added to understand a wider scope of WKT inputs. For
 example [https://en.wikipedia.org/wiki/Well-
 known_text_representation_of_geometry `POINT ZM (1 1 5 60)`] is valid but
 currently results in an error. ( `Invalid OGR Integer Type: 3001`).

 I think maybe this is because new WKB types are supported see
 OGRwkbGeometryType : https://gdal.org/doxygen/ogr__core_8h.html and
 
https://github.com/OSGeo/gdal/blob/62c1489feab9312d0468abde0ad13d7b35ce27f7/ogr/ogr_core.h#L529.

 This likely needs to be fixed before `OGR_G_CoordinateDimension`. (You
 can't write a test for `OGR_G_IsMeasured` without first creating a
 geometry with a measure)

 **OGR_G_CreateFromWkbEx**

 
[https://gdal.org/api/vector_c_api.html#_CPPv421OGR_G_CreateFromWkbExPKv20OGRSpatialReferenceHP12OGRGeometryH6size_t
 OGR_G_CreateFromWkbEx] is added in GDAL 3.3. I think we should prefer this
 over the existing `OGR_G_CreateFromWkb` when available. The difference is
 the new method supports large (2gb+) inputs. In 3.3+ the old method now
 raises and error suggesting use of the new method, and was unsupported in
 previous versions.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/35058>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/0107018c9092bbae-d80bea41-144a-4fa1-8b38-9566735a6378-000000%40eu-central-1.amazonses.com.

Reply via email to