1

I'm looking for a way of converting CSV file to GeoJSON in C++

I'm currently writing a conversion function that writes a text file with the structure of a GeoJSON file, but this isn't really sexy. Maybe is there a library, or a well done function to do it properly?

2
  • 2
    OGR is the standard approach to this
    – Ian Turton
    Commented May 15, 2017 at 9:26
  • what do you mean ?
    – NanBlanc
    Commented May 16, 2017 at 13:20

1 Answer 1

1

Whenever you need to convert from one vector format to another you should check if GDAL/OGR is the answer (hint: unless you use Java it is).

It provides a CSV driver to read in your data and GeoJSON driver to write it out, and a handy tutorial to help get you started.

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.