From 5500da17f0e70cdd1b60aa9920a97554362e9963 Mon Sep 17 00:00:00 2001 From: kshitijrajsharma Date: Sat, 13 Jan 2024 16:06:51 +0545 Subject: [PATCH] Add Layer creation options in Shapefile --- src/validation/models.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/validation/models.py b/src/validation/models.py index ff6c38f2..99fc2f53 100644 --- a/src/validation/models.py +++ b/src/validation/models.py @@ -468,7 +468,9 @@ def __init__(self, suffix, driver_name, layer_creation_options, format_option): EXPORT_TYPE_MAPPING = { "geojson": ExportTypeInfo("geojson", "GeoJSON", [], "GDAL"), - "shp": ExportTypeInfo("shp", "ESRI Shapefile", ["ENCODING=UTF-8"], "GDAL"), + "shp": ExportTypeInfo( + "shp", "ESRI Shapefile", ["ENCODING=UTF-8,2GB_LIMIT=No,RESIZE=Yes"], "GDAL" + ), "gpkg": ExportTypeInfo("gpkg", "GPKG", [], "GDAL"), "sqlite": ExportTypeInfo("sqlite", "SQLite", [], "GDAL"), "fgb": ExportTypeInfo("fgb", "FlatGeobuf", ["VERIFY_BUFFERS=NO"], "GDAL"),