Add forgotten overwrite flag
This commit is contained in:
1 parent
184f135779
commit
63e6d725d2
1 file changed
+1
-1
@@ -40,7 +40,7 @@ if [ -f "$SCRIPT_DIR/osm_data.json" ]; then
|
||||
fi
|
||||
node "$SCRIPT_DIR/convert_osm.js"
|
||||
echo "OSM data converted to GeoJSON at $SCRIPT_DIR/osm_data.geojson"
|
||||
ogr2ogr -f "PostgreSQL" PG:"$PGSQL_URL" "$SCRIPT_DIR/osm_data.geojson" -nln "$LAYER_NAME"
|
||||
ogr2ogr -f "PostgreSQL" PG:"$PGSQL_URL" "$SCRIPT_DIR/osm_data.geojson" -nln "$LAYER_NAME" -overwrite
|
||||
echo "OSM data imported into PostgreSQL layer $LAYER_NAME"
|
||||
else
|
||||
echo "Failed to download OSM data."
|
||||
|
||||
Reference in new issue
Block a user