I'm using the Mapbox API and I'm trying to upload my GeoJSON but I'm getting the following error:

bounds west value must be between -360 and 360

My GeoJSON looks like this:


So I noticed that this is in BNG and I assume that Mapbox needs that in lat long values. I did a bit of research and I think that I've to convert from EPSG:27700 to EPSG:4326.

Is there anyway to convert the file in a batch process? My file is about 500mb and contains few millions of records.

2 Answers 2


Correct you'll need to convert this to EPSG:4326.ogr2ogr can batch reproject.

  • Please elaborate on this. Perhaps show some code or examples. Otherwise, your answer risks being deleted.
    – Fezter
    Commented Dec 5, 2019 at 1:20
  • That's a bit harsh. Someone else is free to submit a more elaborate answer if they like or edit mine. But absent any other answer, my answer points the asker towards the solution. If you don't like it use the downvote button. Commented Dec 5, 2019 at 7:42
  • 1
    Why will OP need to convert this to EPSG:4326? How can ogr2ogr batch reproject? Commented Dec 5, 2019 at 9:55

Thanks for the ogr2ogr suggestion!

Finally I converted the file using an online service called MyGeoData (I'm not sure if I'm allow to post the link here - so, please edit my answer if needed).

I suppose that ogr2ogr is the most complete long-term solution but for a one-time conversion the online solution was more suitable for me.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.