diff --git a/batch/scripts/create_vector_schema.sh b/batch/scripts/create_vector_schema.sh index 928cc7075..3a5152f32 100755 --- a/batch/scripts/create_vector_schema.sh +++ b/batch/scripts/create_vector_schema.sh @@ -37,7 +37,7 @@ args=(-f "PostgreSQL" PG:"password=$PGPASSWORD host=$PGHOST port=$PGPORT dbname= "$LOCAL_FILE" "$SRC_LAYER" \ -nlt PROMOTE_TO_MULTI -nln "$DATASET.$VERSION" \ -lco GEOMETRY_NAME="$GEOMETRY_NAME" -lco SPATIAL_INDEX=NONE -lco FID="$FID_NAME" \ - -t_srs EPSG:4326 -limit 0) + -t_srs EPSG:4326 -limit 0 -dim xy) # If source is CSV, there's no SRS information so add it manually if [[ "$SRC" == *".csv" ]]; then @@ -70,4 +70,4 @@ echo "PSQL: ALTER TABLE. Set storage external" psql -c "ALTER TABLE \"$DATASET\".\"$VERSION\" ALTER COLUMN $GEOMETRY_NAME SET STORAGE EXTERNAL;" echo "DONE" -set +u \ No newline at end of file +set +u diff --git a/batch/scripts/load_vector_data.sh b/batch/scripts/load_vector_data.sh index ab4ce77a6..4e89fd175 100755 --- a/batch/scripts/load_vector_data.sh +++ b/batch/scripts/load_vector_data.sh @@ -94,4 +94,5 @@ ogr2ogr -f "PostgreSQL" PG:"password=$PGPASSWORD host=$PGHOST port=$PGPORT dbnam -nln $TEMP_TABLE \ -t_srs EPSG:4326 \ --config PG_USE_COPY YES \ - -makevalid -update \ No newline at end of file + -dim xy \ + -makevalid -update