Skip to content

Commit

Permalink
fix: prevent failing conversion from GML to GPKG
Browse files Browse the repository at this point in the history
...when GML IDs are not present in the source data.

ING-1747
  • Loading branch information
stempler committed Apr 5, 2022
1 parent b59413b commit 6675408
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions scripts/ogr-convert.sh
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,12 @@ if [ -n "$custom_args" ]; then
elif [ "$target_format" == "GML" ]; then
# special options for GML target format
convert_cmd="$convert_cmd -dsco FORMAT=GML3.2 -dsco SRSNAME_FORMAT=OGC_URL -dsco PREFIX=hc -dsco TARGET_NAMESPACE=http://wetransform.to/hale-connect/converter/gml"
elif [ "$target_format" == "GPKG" ]; then
# special options for GPKG target format

# -forceNullable: allow creation w/o GML IDs when converted from GML
# not added as a general option because for instance not supported by all drivers (e.g. GMLAS driver)
convert_cmd="$convert_cmd -forceNullable"
fi

# run
Expand Down

0 comments on commit 6675408

Please sign in to comment.