Tag Info

New answers tagged


As a starting point, you don't need to use geodjango for this! You could simply return unique_line_id, line_start_point_lat, line_start_point_lon, line_end_point_lat, line_end_point_lon as a json object and display these using Leaflet. You will need to structure the data to match the format required - here's an answer that explains how to load a polyline. ...


seems that anything in the migrations went wrong....I deleted the complete migrations folder from the django app, recreated the database and syncdb'ed then. et voilá, now it works. Another day of gray hair for nothing ;)


If I understood your question right, what you are trying to do is an aggregate union of a Django GeoQuerySet. There are functions for this that are easier to use and probably more efficient than the loop from you question. You have two options: there is the collect command, which creates one multipolygon collection without dissolving the boundaries, and the ...

Top 50 recent answers are included