id,summary,reporter,owner,description,type,status,priority,milestone,component,version,severity,resolution,keywords,cc 7217,ogr2ogr -addfields option disrespects -select clause,plesk,warmerdam,"Using the -addfields flag when using ogr2ogr seems to be disrespecting the -select flag when operating with the postgres driver (unsure of others). {{{ ogr2ogr -f postgres ""PG:host=####### port=5432 user='#####' password='#######' dbname='#####'"" WFS:http://services.land.vic.gov.au/catalogue/publicproxy/guest/dv_geoserver/datavic/wfs?version=1.0.0 datavic:CULTURE_SENSITIVITY_PUBLIC -t_srs EPSG:3111 -select ogc_fid,objectid -spat 141 -37 143 -35 -append -addfields -nln datavic.cultural_sensitivity -nlt promote_to_multi }}} Running the above generates the error below: {{{ ERROR 1: ALTER TABLE ""datavic"".""cultural_sensitivity"" ADD COLUMN ""gml_id"" VARCHAR NOT NULL ERROR: column ""gml_id"" contains null values }}} I would have expected the gml_id column not to be added as it is not specified in the -select flag. ",defect,closed,normal,2.2.4,Utilities,2.2.1,normal,fixed,,