2 examples for ogr2ogr
# convert an ESRI shapefile to GeoJSON and reproject # to CRS EPSG:4326 (latitude and longitude). # This will only work if there is an input.prj file # describing the coordinate reference system of the shapefile ogr2ogr -f GeoJSON output.geojson -t_srs "EPSG:4326" input.shp