4.Clip input layer with a bounding box: $ ogr2ogr -spat -13.931 34.886 46.23 74.12 -f GPKG shanghai_clip.gpkg shanghai.gpkg $ ogr2ogr -spat 0 0 50 70 -f "ESRI Shapefile" point_out_org.shp ...