[postgis-devel] [PostGIS] #393: shp2pgsql returns "fseek(-xxx) failed on DBF file." for large (>2GB) DBF files
PostGIS
trac at osgeo.org
Thu Jan 26 11:12:03 PST 2012
#393: shp2pgsql returns "fseek(-xxx) failed on DBF file." for large (>2GB) DBF
files
-----------------------------------------------+----------------------------
Reporter: maximeguillaud | Owner: pramsey
Type: defect | Status: new
Priority: medium | Milestone: PostGIS 2.0.0
Component: loader/dumper | Version: 1.5.X
Keywords: shp2pgsql fseek failed large file |
-----------------------------------------------+----------------------------
Comment(by dfuhry2):
Paul, in safileio.c's SADFSeek, the SAOffset value gets casted to (signed)
long, making the limit 2GB on 32bit Linux.
{{{
SAOffset SADFSeek( SAFile file, SAOffset offset, int whence )
{
return (SAOffset) fseek( (FILE *) file, (long) offset, whence );
}
}}}
--
Ticket URL: <http://trac.osgeo.org/postgis/ticket/393#comment:20>
PostGIS <http://trac.osgeo.org/postgis/>
The PostGIS Trac is used for bug, enhancement & task tracking, a user and developer wiki, and a view into the subversion code repository of PostGIS project.
More information about the postgis-devel
mailing list