Opened 5 years ago
Closed 5 years ago
#30848 closed New feature (wontfix)
GeoDjango GeometryZ Field Wanted.
Reported by: | Thomas Steen Rasmussen | Owned by: | nobody |
---|---|---|---|
Component: | GIS | Version: | 2.2 |
Severity: | Normal | Keywords: | |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description (last modified by )
Hello,
I have a dataset which makes use of a postgis field of type geometry(geometryz, 25832) https://github.com/tykling/django-dawa/blob/master/docs/schema.sql#L92
The field type uses the geos name "GEOMETRYZ".
Any chance of getting support for this field type in GeoDjango? I've gotten as far locally as getting the field type added to https://github.com/django/django/blob/master/django/contrib/gis/db/models/fields.py and https://github.com/django/django/blob/master/django/contrib/gis/forms/fields.py so I have a model with a GeometryZField which generates the correct CREATE TABLE SQL from the migration. It was just a few lines of code, but I am not sure what else is needed to add support for geometryz?
Thank you!
Change History (2)
comment:1 by , 5 years ago
Description: | modified (diff) |
---|
comment:2 by , 5 years ago
Resolution: | → wontfix |
---|---|
Status: | new → closed |
Summary: | GeoDjango GeometryZ Field Wanted → GeoDjango GeometryZ Field Wanted. |
I don't see a wide usage of
GeometryZ
, it's aGeometry
but limited to three-dimensional coordinate space. Please take into account that Django supports only 3D (XYZ) coordinates so you should be able to useGEOSGeometry
instead.