Convert a CSV file to GeoJSON?

1782
3
06-11-2019 03:32 PM
AlbertPaulraj
New Contributor II

Hi, I have a CSV file with 2 columns. Region and State. Sample data below. I use ArcMap and Portal for ArcGIS version 10.4.1. I see there is a conversion tool called FeatureClass2JSON and vice versa. How would I create a feature class given the 2 columns? Any thoughts appreciated.

Thank you,

Albert

Region                   State

GreatLakes               OH

GreatLakes               MI

SouthEast                  GA

SouthEast                  AL

....

3 Replies
TedKowal
Regular Contributor II

This may help:  json - Python Script to Convert CSV to GeoJSON - Stack Overflow 

If it is a one shot deal then this online converter may help: CSV To GeoJSON Converter 

if you do it all the time you may want to modify one of these techniques:

GitHub - conmolloy/Geojson-Script: Python script to convert CSV files to GEOJSON file 

Convert CSV to Geojson in Python | Chenyu's Script 

AlbertPaulraj
New Contributor II

Thanks Ted. This is a one shot. The CSV To GeoJSON Converter requires a Lat/Long which my CSV does not have. How can I get Lat/Long for all the 50 states?

Thank you,

Albert

0 Kudos
TedKowal
Regular Contributor II
0 Kudos