Opened 7 years ago

Closed 5 years ago

#4911 closed defect (fixed)

OGR-generated shapefiles larger than 2GB don't load in ArcMap

Reported by: freekvw Owned by: warmerdam
Priority: normal Milestone: 1.11.0
Component: OGR_SF Version: 1.9.2
Severity: normal Keywords: shapefile
Cc:

Description

After r18413 (see bug #3236), OGR can write shapefiles of size up to 4GB. Such big shapefiles can unfortunately not be loaded in ArcMap? (it stops reading after the first 2GB of data). The attached patch therefore limits the size of written shapefiles to 2GB.

In case ArcMap? compatibility is not required by certain users it might be nice to let the user decide if shapefile size should be limited to 2 or 4GB, but for me that's not so interesting so it's not implemented in the patch.

Attachments (1)

shapefile-size.patch (562 bytes) - added by freekvw 7 years ago.

Download all attachments as: .zip

Change History (3)

Changed 7 years ago by freekvw

Attachment: shapefile-size.patch added

comment:1 Changed 5 years ago by Jukka Rahkonen

Done as documented in http://www.gdal.org/ogr/drv_shapefile.html:

2GB_LIMIT=YES/NO: (OGR >= 1.11) set the YES to enforce the 2GB file size for .SHP or .DBF files. Defaults to NO.

comment:2 Changed 5 years ago by Even Rouault

Milestone: 1.11.0
Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.