2 examples for ogr2ogr

{{ score }}
  # Convert an ESRI shapefile to GeoJSON
ogr2ogr -f GeoJSON output.geojson input.shp
        
{{ score }}
  # 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