Opened 8 years ago

Last modified 4 years ago

#3079 new task

shapelib/DBF driver: re-sync to GDAL/OGR needed

Reported by: neteler Owned by: grass-dev@…
Priority: major Milestone: 7.6.2
Component: Database Version: svn-trunk
Keywords: dbf, shapelib Cc: volter
CPU: Unspecified Platform: Unspecified

Description

The DBF driver is based on lib/external/shapelib which has been derived from Shapelib provided through GDAL/OGR (ogr/ogrsf_frmts/).

The last sync was done in 2008, time to update again.

Change History (14)

comment:1 by mlennert, 8 years ago

Should this be done before the 7.2 release ?

comment:2 by martinl, 7 years ago

Milestone: 7.2.07.4.0
Type: defecttask

comment:3 by mmetz, 7 years ago

Done in trunk r69890. Unfortunately, more fixes were now needed to make it work outside GDAL, see updated README.

comment:4 by rouault, 7 years ago

I've just resync'ed shapelib CVS from GDAL and make various fixes to compile in standalone mode (likely similar to yours). See http://lists.maptools.org/pipermail/shapelib/2016-December/000627.html

Looking at r69890, the following is incorrect:

+#define CPL_IGNORE_RET_VAL_INT(ret_val_int)    return

The purpose of this macro is to make the compiler not warn about the fact that we don't verify the return value of a function. The correct dummy implementation should be :

#define CPL_IGNORE_RET_VAL_INT(x) x

(see https://trac.osgeo.org/gdal/changeset/36680)

in reply to:  4 comment:5 by mmetz, 7 years ago

Replying to rouault:

I've just resync'ed shapelib CVS from GDAL and make various fixes to compile in standalone mode (likely similar to yours). See http://lists.maptools.org/pipermail/shapelib/2016-December/000627.html

Looking at r69890, the following is incorrect:

+#define CPL_IGNORE_RET_VAL_INT(ret_val_int)    return

I noticed that too after comparing GDAL shapelib with standalone shapelib. CPL_IGNORE_RET_VAL_INT is used only once, so I have already replaced in r69892

    CPL_IGNORE_RET_VAL_INT(DBFFlushRecord( psDBF ));

with

    DBFFlushRecord( psDBF );

as in standalone shapelib. Thanks for reviewing the changes!

comment:6 by neteler, 7 years ago

The new SHAPELIB 1.4 version is out:

http://lists.maptools.org/pipermail/shapelib/2016-December/000631.html

Time to resync fixes into GRASS GIS or can we get rid of this clone?

comment:7 by volter, 7 years ago

Cc: volter added

comment:8 by martinl, 6 years ago

Status of this issue is not clear.

comment:9 by neteler, 6 years ago

Milestone: 7.4.07.4.1

Ticket retargeted after milestone closed

comment:10 by neteler, 6 years ago

Milestone: 7.4.17.4.2

comment:11 by mmetz, 6 years ago

Milestone: 7.4.27.6.0

Milestone for this ticket should always be trunk.

comment:12 by martinl, 5 years ago

Milestone: 7.6.07.6.1

Ticket retargeted after milestone closed

comment:13 by martinl, 5 years ago

Milestone: 7.6.17.6.2

Ticket retargeted after milestone closed

comment:14 by sbl, 4 years ago

Maybe time to drop DBF as supported DB backend in GRASS 8/7.10?

Note: See TracTickets for help on using tickets.