[Thuban-list] Opening a dbf
Bernhard Reiter
bernhard at intevation.de
Thu Jul 24 11:15:08 CEST 2008
On Tuesday 22 July 2008 16:04, Anthony Lenton wrote:
> The KeyError here seems to be because the DBF you're trying to open
> contains boolean columns.
Hmm, in this case: If you might use a different tool to change
the boolean columns into something else (deleted them or Integers).
I personally would try with Ooo Calc or KSpread.
> Though the C part of dbflib supports
> reading and writing booleans, in the Python wrapper code there's only
> support for Ints, Doubles and Strings.
> I'm not sure if there's a good reason for not doing bools, but it
> seems like it's just something nobody ever got round to implementing.
> If nobody else is coding it I'll add it to my ToDo list, so stay tuned! :)
Note that the new shapelib code in Brams Unicode branch will probably also
do dbf files better, so new developments should be based on it.
So first making an entry in the tracker would be cool as well. ;)
Do we have a short example dbf?
Bernhard
--
Managing Director - Owner: www.intevation.net (Free Software Company)
Germany Coordinator: fsfeurope.org. Coordinator: www.Kolab-Konsortium.com.
Intevation GmbH, Osnabrück, DE; Amtsgericht Osnabrück, HRB 18998
Geschäftsführer Frank Koormann, Bernhard Reiter, Dr. Jan-Oliver Wagner
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://www.intevation.de/pipermail/thuban-list/attachments/20080724/a92107dd/attachment.bin
More information about the Thuban-list
mailing list
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)