Re: GeoDjango - Distance between MultiPointFields?

2009-02-19 Thread GRoby
Alfonso, I ran into similar types of issues when I was importing data into my project. I ended up just converting all MultiLine and MultiPolygon fields into Regular Line and Polygon fields using through a GeoDjango script (using the 1st Line and Polygon of each feature as the input for creating

GeoDjango - Distance between MultiPointFields?

2009-02-19 Thread Alfonso
I'm getting an error - "PostGIS spherical operations are only valid on PointFields." when I try to do a distance search on a MultiPointField in the db. I kind of understand why but wonder if it's possible to do such a query at all on MultiPointFields? All I'm looking for is: england_pnt =