Ok, I just tried with the dev version of OpenLayers and it just works! The problem comes from openlayers not interpreting correctly GeoDjango's WKT syntax
more here: http://trac.osgeo.org/openlayers/ticket/2670 My workaround is the following: - checkout a dev version of openlayers - build it and make it reachable anywhere on the internet - edit django/contrib/gis/admin/options.py and update openlayers_url to your own url Hope this can help someone else On Jul 19, 11:29 am, sylvain_grodes <[email protected]> wrote: > 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.

