Re: GeometryField.geography = True Syntax Help GIS Model

2014-04-08 Thread si . at . sh
Hope you got to the bottom of this, and yes I thought your original question was pretty direct. If you haven't worked it out already and are still trying to get this working (or if anyone else stumbles across this), then essentially yes you would pass in geography=True, just as you would specif

Re: GeometryField.geography = True Syntax Help GIS Model

2012-11-03 Thread JJ Zolper
Thanks for the reply. I actually already have PostgreSQL. So my question was pretty direct, or so I thought. I'll try and spell this out again. So if I want to create a column in my database with type "geography" is this the syntax: mpoly = models.MultiPolygonField(geography=true) I cannot fi

Re: GeometryField.geography = True Syntax Help GIS Model

2012-11-02 Thread Christiano Anderson
First of all, you have to create a geo database. Postgis (a PostgreSQL extension) is the best choice. After that, you have to define some geography fields and import your data, shape files (shp), etc. GeoDjango Tutorial provides all the steps to get it done. https://docs.djangoproject.com/en/dev

Re: GeometryField.geography = True Syntax Help GIS Model

2012-11-02 Thread JJ Zolper
Wait so does anyone know how to do this? I posted this a long time ago. How do I define a geography field? I need a geography column so I can perform geographic queries on it and the documentation doesn't give me a definitive way on how to do it. Would it be like: city = models.CharField(max_

GeometryField.geography = True Syntax Help GIS Model

2012-10-20 Thread JJ Zolper
Hello everyone, So I've decided for my GeoDjango application I want WGS84 along with a geography database column, rather than geometry. I was reading here: https://docs.djangoproject.com/en/1.4/ref/contrib/gis/model-api/#geography GeometryField.geography