Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[feature] 3D point support #311

Open
fabietto01 opened this issue Oct 29, 2024 · 0 comments
Open

[feature] 3D point support #311

fabietto01 opened this issue Oct 29, 2024 · 0 comments

Comments

@fabietto01
Copy link

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.

@fabietto01 fabietto01 changed the title [feature] 3D point support 3D point support Oct 29, 2024
@fabietto01 fabietto01 changed the title 3D point support [feature] 3D point support Oct 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant