[Thuban-list] Re: Shapelib: dbfopen.c addition

Frank Warmerdam warmerdam at pobox.com
Thu Dec 4 20:31:56 CET 2003

Bernhard Herzog wrote:
> Frank Warmerdam <warmerdam at pobox.com> writes:
>>I see there is already a DBFUpdateHeader() function which accomplishing
>>pretty much the same as DBFCommit(), but also ensures that the header is
>>in a consistent state (the record count appears there). 
> I ran into that (wrong record count when appending records) when I
> hacked on the drawshape extension :)
>>I think it would be best if Thuban used that instead if possible.
> Indeed. This is only available in CVS so far AFAICT. Is it safe to
> simply copy that function into our code or would it be better to use
> dbfopen.c from CVS?


The best would likely to be grab dbfopen.c, shpopen.c, and shapefil.h from
CVS though it should be fine to just copy in that one function and the
corresponding prototype.  I do intend to do a new shapelib release sometime
soon but haven't really gotten around to it.

Best regards,

I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | Geospatial Programmer for Rent

More information about the Thuban-list mailing list

This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)