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 Thomas Steen Rasmussen)

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 Thomas Steen Rasmussen, 5 years ago

Description: modified (diff)

comment:2 by Mariusz Felisiak, 5 years ago

Resolution: wontfix
Status: newclosed
Summary: GeoDjango GeometryZ Field WantedGeoDjango GeometryZ Field Wanted.

I don't see a wide usage of GeometryZ, it's a Geometry but limited to three-dimensional coordinate space. Please take into account that Django supports only 3D (XYZ) coordinates so you should be able to use GEOSGeometry instead.

Note: See TracTickets for help on using tickets.
Back to Top