Amsterdam / django-gisserver

Django speaking WFS 2.0 to expose geo data
Mozilla Public License 2.0
38 stars 10 forks source link

Consider allowing geometry fields through foreign key relations #8

Open stewjb opened 3 years ago

stewjb commented 3 years ago

It seems like features can only be generated with querysets from models that have embedded geometry fields. There are times where it makes more sense to start with another model and access the geometry field through a foreign key relation.

vdboor commented 3 years ago

Thanks an interesting idea, and I'm all for supporting that.

This change will no doubt bump into a lot of issues but they are totally solvable within the current design (e.g. the FeatureType / XSD type abstractions)

I do would like to ask if you could write a PR for this. This isn't something we're expecting to need in the near future.