Monday, May 2, 2011

Problem with Geometries

Hello guys

I'm having a problem with Geodjango, a weird exception happening, not sure why.

Well, my setup is the following:

Windows 7 64bit
GeoDjango installed from Windows Installer.

Here is a traceback when I try to store a common object using the admin

http://dpaste.com/538214/

My model is simple:

class Neighborhood(models.Model):
    neighborhood_name = models.CharField(max_length=128,verbose_name="Nome do bairro",help_text="Nome descritivo do bairro, e.g. Itaim Bibi, Pinheiros, etc.")
    neighborhood_geom = models.PolygonField(verbose_name="Geometria",help_text="O polígono representativo do limite do bairro")
       
    objects = models.GeoManager()
   
    class Meta:
        verbose_name = "Bairro"
        verbose_name_plural = "Bairros"

admin.site.register(Neighborhood,admin.GeoModelAdmin)

Any one can help?

TIA

--
George R. C. Silva

Desenvolvimento em GIS
http://geoprocessamento.net
http://blog.geoprocessamento.net

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

No comments:

Post a Comment