Lat/long ordering in geojson
See original GitHub issueLat/long ordering is inconsistent across various packages and tooling when working with points.
It would be useful if folium.GeoJson()
included a flag flip=Boolean
that could be set to flip lat and long co-ordinates in a passed geojson file.
Issue Analytics
- State:
- Created 5 years ago
- Reactions:4
- Comments:11 (2 by maintainers)
Top Results From Across the Web
Order of coordinates in geojson - Stack Overflow
Coordinates order is longitude and latitude, or easting and northing. Source: 3.1.1. Position. A position is the fundamental geometry construct.
Read more >Leaflet+GeoJSON: Why are lat-lng coordinates in the wrong ...
Nothing is in the wrong order. Leaflet uses lat-lng (or northing-easting ) whereas GeoJSON uses lng-lat (or easting-northing ).
Read more >More than you ever wanted to know about GeoJSON
GeoJSON describes an order for coordinates: they should go, in order: [longitude, latitude, elevation]. This order can be surprising.
Read more >RFC 7946: The GeoJSON Format
1. Points Point coordinates are in x, y order (easting, northing for projected coordinates, longitude, and latitude for geographic coordinates): { "type": " ......
Read more >MultiPoint Datatype | Socrata - Data & Insights
Heads up! Contrary to the normal convention of "latitude, longitude" ordering in the coordinates property, the GeoJSON orders the coordinates as "longitude, ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Leaflet, which folium is a wrapper for, uses [lat, lon], wheres the geojson standard uses [lon, lat].
https://leafletjs.com/reference.html#latlng
https://en.wikipedia.org/wiki/GeoJSON#Geometries
Do you want to send a PR for it? We could use a note in the docs too. Here is a SO question for inspiration. And the mandatory West Wing episode on maps coordinates and order.