• Jacob Magnusson's avatar
    Allow flipping mapbox coordinates to/from db · 86d2542b
    Jacob Magnusson authored
    The current Leaflet implementation expects coordinates in latitude-longitude order but GeoJSON and PostGIS works the other way around with lng first. These changes work around this behavior by passing the data to and from db through PostGIS’s `ST_FlipCoordinates` function if the setting `MAPBOX_FIX_POINT_COORDINATES` is something truthy. This is to not break the current behavior. Right now a warning is emitted when this setting hasn’t been enabled but I would recommend to remove this setting and make its behavior the default in the next major version.
    86d2542b
Name
Last commit
Last update
..
data Loading commit data...
fileadmin Loading commit data...
geoa Loading commit data...
mongoengine Loading commit data...
peeweemodel Loading commit data...
pymongo Loading commit data...
sqla Loading commit data...
templates Loading commit data...
__init__.py Loading commit data...
mock.py Loading commit data...
test_base.py Loading commit data...
test_form_upload.py Loading commit data...
test_model.py Loading commit data...
test_tools.py Loading commit data...