Fwd: [gdal-dev] merging shapefiles larger than 4GB

Brian Wilson brian at wildsong.biz
Mon May 2 18:44:41 EDT 2011


I am afraid you are out of luck, the shapefile format restricts its size to
32 bit. See bytes 24-27

http://en.wikipedia.org/wiki/Shapefile

Even if the SHP part was not so restricted, I bet the DBF part is.

Cheers

Brian

On Mon, May 2, 2011 at 3:28 PM, Harsha Ch <harsha.ch at gmail.com> wrote:

> Hi all,
>       I am using ogr2ogr merge all my shapefiles into one large file. Its
> failing with following error
> ERROR 1: Failed to write shape object. File size cannot reach 4294967280 +
> 28.
> ERROR 1: Terminating translation prematurely after failed
>
> I looked at shapefil.h its using unsigned int for filesize which would
> restrict the filesize to 4GB.
> Is there any easy way to increase the filesize it can address, compiling in
> 64bit doesn't help either.
> I'll appreciate if you can give me any pointers on this issue .
>
> Thanks,
> Harsha
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/gdal-dev/attachments/20110502/46d4e6f6/attachment.html


More information about the gdal-dev mailing list