Add RESIZE=yes param to shapefiles export

Add the parameter `RESIZE=yes` to gdal shapefile driver. This resizes
fields to their optimal size. See
http://www.gdal.org/drv_shapefile.html for details.

This is needed because some customers are having trouble exporting
shapefiles, then reimporting into ArcGIS.
This commit is contained in:
Rafa de la Torre 2018-02-23 10:34:44 +01:00
parent 6d20ddb4f0
commit 90b0ec61c2

View File

@ -145,6 +145,7 @@ OgrFormat.prototype.toOGR = function(options, out_format, out_filename, callback
var ogrargs = [
'-f', out_format,
'-lco', 'RESIZE=YES',
'-lco', 'ENCODING=UTF-8',
'-lco', 'LINEFORMAT=CRLF',
out_filename,