Hello, today I'm facing a problem which coud be a Geodjango/OpenLayer
or Django.
How to reproduce:
* in your model create a class:
from django.contrib.gis.db import models
class Track(models.Model):
track = models.MultiPointField(srid=4326)
* in your admin.py add:
admin.site.register(Track, OSMGeoAdmin)
* create a track object with the shell
from django.contrib.gis.geos import MultiPoint
from django.contrib.gis.geos import Point
myTrack = Track()
point1 = Point(-61.067853, 14.607004)
point2 = Point(-61.063573, 14.609091)
multi = MultiPoint(point1, point2)
myTrack.track = multi
multi.save()
* look in the administrator: you will see only one point even if in
the source i can read MULTIPOINT(....
Anyone has already seen this?
Am I doing something wrong?
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected].
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.