Longitude coordinates appear erroneously #92
Replies: 3 comments 1 reply
-
|
This happens after panning the map to the left or right and placing the point there (subtracting or adding 360 degrees). This behavior can perhaps be useful when georeferencing maps that cross the 180th meridian, because otherwise points might be rendered in the wrong place. I have not yet tested this. In any case, clients should not have any issue accepting the "wrong" coordinates, see https://macwright.com/2015/03/23/geojson-second-bite#the-180th-meridian |
Beta Was this translation helpful? Give feedback.
-
|
Initial test of a map crossing the 180th meridian: Source:
In Allmaps: Geojson.io ScreenshotsThe longitude values have huge consequences for the rendering of the map. For example: These "correct" coords (lng, lat): [146.53438, -43.51173],
[174.82756, -41.30667],
[-65.12569, -54.66179],
[-73.53062, -41.794]
Will mirror the map:
While these "incorrect" coords (lng, lat): [146.53438, -43.51173]
[174.82756, -41.30667]
[286.45312, -41.79414] \\ Invalid lng
[294.83624, -54.65821] \\ Invalid lngWill render the map in the right place:
In other words we need the "incorrect" coords to correctly render maps crossing the 180th meridian, because it indicates the right direction to the client. But users are not aware of this when using the Editor and might accidentally pick points "on another globe" (+360 or -360) while panning the map. |
Beta Was this translation helpful? Give feedback.
-
|
Thanks for this detailed analysis, @sammeltassen! It is indeed not possible to store point coordinates with longitudes outside the -180 to 180 range. The GeoJSON Spec has some details about how to handle features that cross the anti-meridian, but this only applies to lines or polygons, but GCPs are points and (multi)points crossing it are not stored in a specific way. I see some possible solutions:
|
Beta Was this translation helpful? Give feedback.



Uh oh!
There was an error while loading. Please reload this page.
-
A student came across this error while I was guest lecturing in a class last week. The
288coordinates should all be somewhere around-70. I've no idea how the student even generated coordinates this way, and I've never seen it before, but I thought it should be on your radar.Someone deleted the pixel mask containing the erroneous coordinates, but this is the georeference annotation that it would be: https://annotations.allmaps.org/images/bfc9c45499d14dc5
Beta Was this translation helpful? Give feedback.
All reactions