Skip to main content

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

Open 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 degrees

A safe repair workflow

  1. 1Identify the coordinate reference system and column meanings.
  2. 2Convert to WGS 84 decimal degrees when necessary.
  3. 3Map longitude and latitude deliberately in the converter.
  4. 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

Official references

Platform requirements and technical standards can change. These are the primary references used for this page.