Opened 11 years ago

Closed 10 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 11 years ago.

Download all attachments as: .zip

Change History (3)

by freekvw, 11 years ago

Attachment: shapefile-size.patch added

comment:1 by Jukka Rahkonen, 10 years ago

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 by Even Rouault, 10 years ago

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