Skip to content

Commit

Permalink
Add ogr2ogr option to avoid automatic fid detection to example config
Browse files Browse the repository at this point in the history
Loader currently exposes the fid as an element, GDAL/OGR 1.10 now
correctly auto detects a fid attribute and exposes it. When using
GDAL/OGR 1.10 an additional fid2 column is created by OGR. In future
once support for GDAL/OGR 1.10 is widespread we can probably avoid
having Loader expose the fid and let OGR handle it but for now allow
Loader to handle it to avoid having a dependency on a fairly recent
version of GDAL/OGR.
  • Loading branch information
walkermatt committed Aug 20, 2013
1 parent b3f5a9e commit faeed33
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/loader.config
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ tmp_dir=/path/to/temp/folder
# $output_dir - the directory specified by the out_dir setting
# $base_file_name - the file name of the file to be loaded
# $file_path - the full path of the file to be loaded
ogr_cmd=ogr2ogr -append -skipfailures -f PostgreSQL PG:'dbname=postgis active_schema=public host=localhost user=postgres password=postgres' $file_path
ogr_cmd=ogr2ogr --config GML_EXPOSE_FID NO -append -skipfailures -f PostgreSQL PG:'dbname=postgis active_schema=public host=localhost user=postgres password=postgres' $file_path

# The command used to prepare the source
# data so it is suitable for loading with OGR. Choose a prep
Expand Down

0 comments on commit faeed33

Please sign in to comment.