#23579: Default Geometry representation from WKT to EWKT
---------------------------------------+------------------------
Reporter: claudep | Owner: nobody
Type: New feature | Status: new
Component: GIS | Version: master
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 |
---------------------------------------+------------------------
Currently, the default `__str__` representation of a `GEOSGeometry` object
is its WKT representation (e.g. `"POINT (1 2)"`).
I'd like to suggest moving to the EWKT representation which includes the
SRID information (e.g. `"SRID=4326;POINT (1 2)"`).
For me, coordinates without SRID is like an encoded string without knowing
its encoding, or a datetime object without the timezone.
The change is trivial. There is a small backwards compatibility issue,
essentially for people testing the output of `str(geom)`, and it also
means that the SRID will also appear in `loaddata` output, which is
welcome in my opinion.
Comments welcome.
--
Ticket URL: <https://code.djangoproject.com/ticket/23579>
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 post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/050.a03a4ec57764884004db230226518211%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.