ogr2ogr csv: Keep output consistent between gdal releases

This commit is contained in:
Raúl Marín 2020-04-16 18:35:57 +02:00
parent 5a99c28834
commit a8d10f25ee

View File

@ -149,8 +149,9 @@ OgrFormat.prototype.toOGR = function (options, outFormat, outFilename, callback)
var ogrargs = [
'-f', outFormat,
'-lco', 'RESIZE=YES',
'-lco', 'ENCODING=UTF-8',
'-lco', 'RESIZE=YES', /* shapefile */
'-lco', 'ENCODING=UTF-8', /* shapefile */
'-lco', 'STRING_QUOTING=IF_NEEDED', /* csv: Match gdal 2.2 behaviour */
'-lco', 'LINEFORMAT=CRLF',
outFilename,
'PG:host=' + dbhost + ' port=' + dbport + ' user=' + dbuser + ' dbname=' + dbname + ' password=' + dbpass,