GeoDjango: How to create a circle based on point and radius
I have the following (simplified) Model: class Zone(gismodels.Model): name = gismodels.CharField() poly = gismodels.PolygonField() I want to create and save a polygon that represents a circle, based upon a given point and radius. The only way I can figure out how to achieve this, is to call the postgis ST_Buffer function using raw SQL. I'm really hoping that there is another way. Is it possible to access the GEOS buffer methods? Yes, it is possible to use the geos buffer method : >>> from django.contrib.gis import geos >>> center = geos.Point(5, 5) >>> radius = 2 >>> circle = center.buffer