#27939 closed Bug (fixed)
GeoDjango - map doesn't show correct point in admin
Reported by: | elky | Owned by: | nobody |
---|---|---|---|
Component: | GIS | Version: | 1.11 |
Severity: | Release blocker | Keywords: | gis, geodjango, map, admin |
Cc: | Triage Stage: | Ready for checkin | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description (last modified by )
Just upgraded up to 1.11 and there is bug in GIS app - map always displays 0,0 point in admin interface despite my object has correct coords.
Attachments (1)
Change History (13)
by , 8 years ago
Attachment: | Screenshot-2017-03-14-at-22.22.17.jpg added |
---|
comment:1 by , 8 years ago
Description: | modified (diff) |
---|
comment:2 by , 8 years ago
Triage Stage: | Unreviewed → Accepted |
---|
It looks like map widget expects coordinates in the different SRID.
comment:3 by , 8 years ago
Severity: | Normal → Release blocker |
---|
comment:4 by , 8 years ago
Ah yes, the new base layer from vis.earthdata.nasa.gov is also in the 3857 projection, and not 4326 as the previous one.
Before GDAL was required, we required that the projection of the default base layer was 4326 so that no coordinates conversion were required to display geometries in the default SRID. Now I think we can simply set the OpenLayersWidget.map_srid
to 3857 to fix this issue.
comment:5 by , 8 years ago
I don't have a good idea for an appropriate regression test. Any idea welcome!
comment:6 by , 8 years ago
Has patch: | set |
---|---|
Patch needs improvement: | set |
PR based on Claude's suggested fix. Some test failures need to be fixed -- perhaps that would be enough for the regression test? I tested manually and it seems to work. To reproduce in the admin, you must use ModelAdmin
rather than GeoModelAdmin
.
comment:8 by , 8 years ago
Triage Stage: | Accepted → Ready for checkin |
---|
Screenshot