Skip to content

[feature] 3D point support #311

@fabietto01

Description

@fabietto01

Is your feature request related to a problem? Please describe.

I am working on a project where I need to map 3D points in space. To give you more details, I am using a PointField configured as follows:

class System(models.Model): """ """ name = models.CharField( max_length=100, unique=True, verbose_name=_('name') ) coordinate = models.PointField( dim=3, srid=4979, verbose_name=_('coordinate'), unique=True, )

When I make a request, the system seems to be able to deserialize the record correctly. Below is a sample of the code:

{ "count": 2, "next": null, "previous": null, "results": [ { "id": 334, "name": "Solati", "coordinate": { "type": "Point", "coordinates": [ 66.53125, 29.1875, 34.6875 ] }, } ]

However, when trying the DistanceToPointFilter, it does not seem to work properly.

Describe the solution you'd like
It would be fantastic if django-rest-framework-gis also supported 3D points.

Describe alternatives you've considered
I am trying to create custom filters with django_filter.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions