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

How to use it with MultiPolygonField from django.contrib.gis.db #112

Open
hatimmakki opened this issue Nov 19, 2022 · 3 comments
Open

How to use it with MultiPolygonField from django.contrib.gis.db #112

hatimmakki opened this issue Nov 19, 2022 · 3 comments
Labels

Comments

@hatimmakki
Copy link

Hi,

I tried this package and it works with PointField, as it's also mentioned in the docs.. but how can I use it with django.contrib.gis.db.MultiPolygonField ?

@marteinn
Copy link
Member

Hi @hatimmakki! Currently the library only support single points, not multiple. The reason is simple, we never had that requirement in our projects before and I'm hesitant to add features we do not use, especially a larger feature such as this would be. Contributions is of course welcome.

@hatimmakki
Copy link
Author

Hi @hatimmakki! Currently the library only support single points, not multiple. The reason is simple, we never had that requirement in our projects before and I'm hesitant to add features we do not use, especially a larger feature such as this would be. Contributions is of course welcome.

Thanks Marteinn

@jaysnm
Copy link

jaysnm commented Nov 28, 2022

Hello @hatimmakki

Did you find a way of doing this?

Being able to work with a Polygon as a GeoField or GeoBlock seems an ideal tooling for my use-case where users are required to specify area feature as their region of interest.

I am happy to put in some work/time to see this happen. Would also like to hear your implementation approach:

  • Use bbox from geo-coded address
  • Provide a "draw on the map" tool

And what is the implication of each approach to package usability/scalability/maintenance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants