ok, if ound it

class District(models.Model):
    point = gis_models.PointField()
    objects = gis_models.GeoManager()


---------- Forwarded message ----------
From: Владимир Сидоренко <[EMAIL PROTECTED]>
Date: 2008/9/23
Subject: GeoDjango, installation error
To: django-users@googlegroups.com


hi

i have a model:

from django.contrib.gis.db import models as gis_models
class District(models.Model):
    point = gis_models.PointField()

and then:

> d = District()
> d.point = "POINT(1 2)"
> d.save()
> d2 = District.objects.get(pk=1)
> d2.point
...
<type 'exceptions.ValueError'>: String or unicode input unrecognized as WKT
EWKT, and HEXEWKB.

what's wrong?

thanks.

--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to