GeoJSON conversion problem
Fix CSV-to-GeoJSON Coordinate Errors
Prepare longitude and latitude columns for GeoJSON, reject invalid coordinates and verify point placement before publishing a map.
Use the matching tool
CSV to GeoJSON
What the error actually means
RFC 7946 defines GeoJSON coordinates in WGS 84 decimal degrees and positions longitude before latitude. Reversed columns can produce valid-looking JSON with points in the wrong country. Projected coordinates and degree symbols also require conversion before use.
Likely causes
- Latitude and longitude columns were swapped.
- Coordinates use a projected CRS rather than WGS 84.
- Values contain degree symbols, commas or direction letters.
- Blank and out-of-range values were converted without validation.
GeoJSON point order
Problem
coordinates: [latitude, longitude]Correct pattern
coordinates: [longitude, latitude] in WGS 84 decimal degreesA safe repair workflow
- 1Identify the coordinate reference system and column meanings.
- 2Convert to WGS 84 decimal degrees when necessary.
- 3Map longitude and latitude deliberately in the converter.
- 4Plot a sample including boundary points before publishing.
How to verify the result
A file that downloads successfully is not automatically a correct file. Check the result at both the structural and business-data levels:
- Longitude lies within -180 to 180 and latitude within -90 to 90.
- Known landmarks appear in the expected place.
- Invalid or blank coordinates are reported.
- Properties remain attached to the correct feature.
Read the deeper guides
Convert CSV Coordinates to GeoJSON Without Swapping Latitude and LongitudeA practical CSV-to-GeoJSON workflow with coordinate checks, a worked example, and fixes for the mistakes that put points in the wrong place.Diagnose a Broken CSV Before You Try to Repair ItA methodical way to identify delimiter, encoding, header, quoting, row-shape, and type problems before a CSV reaches Excel, a CRM, or a database.
Official references
Platform requirements and technical standards can change. These are the primary references used for this page.