Skip to content

Commit

Permalink
#378 fix BGT ETL GDAL options for missing SRS dimensions with GML_SRS…
Browse files Browse the repository at this point in the history
…_DIMENSION_IF_MISSING
  • Loading branch information
justb4 committed Mar 26, 2024
1 parent 8c4a939 commit 4f07c5a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bgt/etl/conf/etl-imgeo-v2.1.1.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ spatial_extent = {spatial_extent}
# gfs template: not needed, since this is being taken care of by the GfsPreparationFilter
#gfs_template = {temp_dir}/prepped.gfs
# miscellaneous ogr2ogr options
options = -append -gt 65536 {multi_opts}
options = -append -gt 65536 --config GML_SRS_DIMENSION_IF_MISSING 2 {multi_opts}
# cleanup input?
cleanup_input = True

Expand Down
2 changes: 1 addition & 1 deletion stetlcomponents/gfspreparationfilter.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ def invoke(self, packet):
return packet

def execute_ogrinfo(self, gml_file):
ogrinfo_cmd = 'ogrinfo -ro -al -so %s' % gml_file
ogrinfo_cmd = 'ogrinfo --config GML_SRS_DIMENSION_IF_MISSING 2 -ro -al -so %s' % gml_file

use_shell = True
if os.name == 'nt':
Expand Down

0 comments on commit 4f07c5a

Please sign in to comment.