#34406: Add support for curved geometries in GeoDjango -----------------------------------+--------------------------------------- Reporter: Fabien Le Frapper | Owner: David Smith Type: New feature | Status: assigned Component: GIS | Version: dev Severity: Normal | Resolution: Keywords: geodjango gdal | Triage Stage: Accepted Has patch: 1 | Needs documentation: 0 Needs tests: 0 | Patch needs improvement: 0 Easy pickings: 0 | UI/UX: 0 -----------------------------------+--------------------------------------- Comment (by David Smith):
Just looking at some of the other C API changes that were made in GDAL at the time this was implemented. These two items I suggest that we don't implement. - void OGRSetNonLinearGeometriesEnabledFlag(int bFlag) - int OGRGetNonLinearGeometriesEnabledFlag() The [https://gdal.org/development/rfc/rfc49_curve_geometries.html RFC] says: > If they don't want to test the geometry type and explicitly calling the conversion function, they can call OGRSetNonLinearGeometriesEnabledFlag(FALSE) (the default value is TRUE, i.e. non-linear geometries can be returned). In which case, they will be transformed into their closest linear geometry, by doing linear approximation, with OGR_G_ForceTo(). Given [https://github.com/django/django/pull/18007 PR#18007] proposes to implement the geometry curve checking (via `has_curve`) and the linear conversion method I think that probably gives us enough coverage here. -- Ticket URL: <https://code.djangoproject.com/ticket/34406#comment:13> 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 django-updates+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/0107019018bc6d0d-d0ffe44e-ff28-45e0-a9ba-62f6950d3f28-000000%40eu-central-1.amazonses.com.