Good evening,
I'm implementing a project using django and I have the following model:
class ModelExample(models.Model):
city = models.CharField("Cidade", max_length=100, blank=True)
state = models.CharField("Estado", max_length=2, blank=True)
polygon = gis_models.PolygonField(default='POLYGON EMPTY')
And I have the json of the link below: link
The idea is to always search via pointfields of another model if a particular neighborhood is contained within the city. It would be something like ModelExample.objects.get (polygon__contains = OtherModel.point)
My big question is how do I save the json (geometry) [bounds] data in polygonfield?