I have a Django model in which i declare maplocation = models.PointField()
I'd like to work with geography not geometry, if i use python manage.py sql it maps as "maplocation" geometry(POINT,4326) NOT NULL
,
what do i need to do so that the translation will be correct?
Don't really know, but some tips:
You need to have PostGIS 1.5+ installed.
Define field like this:
maplocation = models.PointField(geography=True)
.Set model manager to
django.contrib.gis.db.models.GeoManager
(I think this is not required to use geography, but You will need it later to make queries).