Re: RESTful Geodjango

2007-11-06 Thread Malcolm Tredinnick
On Mon, 2007-11-05 at 15:29 +, Justin Bronn wrote: > > (2) The gis branch should really use a better name than "NoField" here. > > Not a lot of code calls get_internal_type() -- the main critical piece > > being db_type(). In all the cases where django.contrib.gis overrides > >

Re: RESTful Geodjango

2007-11-05 Thread Justin Bronn
> (2) The gis branch should really use a better name than "NoField" here. > Not a lot of code calls get_internal_type() -- the main critical piece > being db_type(). In all the cases where django.contrib.gis overrides > get_internal_type(), they are also returning None from db_type(). So the >

Re: RESTful Geodjango

2007-11-05 Thread Malcolm Tredinnick
On Sat, 2007-10-20 at 14:01 -0500, Jeremy Dunck wrote: > On 10/20/07, Ariel Mauricio Nunez Gomez <[EMAIL PROTECTED]> wrote: > > POINT ( 31.00892404 > ... > > That NoField type, is it ok? > > Well, it depends what you're going to do with it. :) > > That 'NoField' comes from >

Re: RESTful Geodjango

2007-10-20 Thread Jeremy Dunck
On 10/20/07, Ariel Mauricio Nunez Gomez <[EMAIL PROTECTED]> wrote: > POINT ( 31.00892404 ... > That NoField type, is it ok? Well, it depends what you're going to do with it. :) That 'NoField' comes from django.db.models.fields.Field.get_internal_type. It was originally used during

Re: RESTful Geodjango

2007-10-20 Thread Ariel Mauricio Nunez Gomez
That restapi is as easy to configure as promised. The address /xml/mymodel now presents an xml list that looks like: XX-83-297 2007-07-27 14:59:18 POINT (31.00892404 - 82.71686560) 71 1 3 That NoField type, is it ok? Ariel PS: Thanks Andreas, and thanks to the geodjango

Re: RESTful Geodjango

2007-10-20 Thread Ariel Mauricio Nunez Gomez
Thanks Justin, I'll try later and let you know. Ariel. On 10/20/07, Justin Bronn <[EMAIL PROTECTED]> wrote: > > > I quickly glanced at the django-rest-interface code and I don't see > any reason why it shouldn't work. There are no plans to combine yet, > though it would be nice to have GeoJSON

Re: RESTful Geodjango

2007-10-20 Thread Justin Bronn
I quickly glanced at the django-rest-interface code and I don't see any reason why it shouldn't work. There are no plans to combine yet, though it would be nice to have GeoJSON serializers for the GEOS/OGR geometry objects. The best way to confirm compatibility is experiment yourself! -Justin

[gis] RESTful Geodjango

2007-10-20 Thread Ariel Mauricio Nunez Gomez
Is it possible/planned to use django-rest-api [1]in geodjango [2] ? Ariel [1] http://code.google.com/p/django-rest-interface/ [2] http://code.djangoproject.com/wiki/GeoDjango