mirror of
https://github.com/TiddlyWiki/TiddlyWiki5.git
synced 2026-04-28 05:44:43 +00:00
Fix olc-decode and geopoint latitude and longitude order in the geospatial plugin (#8437)
* Reverse latitude and longitude in olc-decode tests to match proper geojson output format * Reverse latitude and longitude in olc-decode to match proper geojson output format * Reverse latitude and longitude in geopoint expected results to match proper geojson format * Reverse latitude and longitude in geolookup expected results to match proper geojson format * Corrected the Oxford to New York distances * Oxford is actually 12 miles closer to New York than Winchester Used calculator at https://www.nhc.noaa.gov/gccalc.shtml to check Reversed latitude and longitude to correct the geojson * Reversed the latitude and longitude turf.point arguments in the geopoint function * Swapped latitude and longitude in geopoint function calls
This commit is contained in:
@@ -22,7 +22,7 @@ type: application/json
|
||||
"type": "Feature",
|
||||
"geometry": {
|
||||
"type": "Point",
|
||||
"coordinates": [102.0,0.5]
|
||||
"coordinates": [0.5,102.0]
|
||||
},
|
||||
"properties": {
|
||||
"animal": "amoeba"
|
||||
@@ -33,7 +33,7 @@ type: application/json
|
||||
"geometry": {
|
||||
"type": "LineString",
|
||||
"coordinates": [
|
||||
[102.0,0.0],[103.0,1.0],[104.0,0.0],[105.0,1.0]
|
||||
[0.0,102.0],[1.0,103.0],[0.0,104.0],[1.0,105.0]
|
||||
]
|
||||
},
|
||||
"properties": {
|
||||
@@ -46,7 +46,7 @@ type: application/json
|
||||
"geometry": {
|
||||
"type": "Polygon",
|
||||
"coordinates": [
|
||||
[[100.0,0.0],[101.0,0.0],[101.0,1.0],[100.0,1.0],[100.0,0.0]]
|
||||
[[0.0,100.0],[0.0,101.0],[1.0,101.0],[1.0,100.0],[0.0,100.0]]
|
||||
]
|
||||
},
|
||||
"properties": {
|
||||
|
||||
Reference in New Issue
Block a user