WIP-pyshapelib-Unicode issues
Bernhard Reiter
bernhard at intevation.de
Mon Jan 14 08:51:05 CET 2008
On Friday 11 January 2008 18:44, Bram de Greve wrote:
> > cool, I saw some of the commits happening, but hunted the empty shape
> > file problem. (Does somebody know, btw, if such a shape file is
> > legitimate at all?)
> Why would it not be legitimate?
I don't know. Given Thuban's existance and that it is only reported now,
makes me believe such shapefiles are rare. Also it would not really serve a
purpose to have an object without geoobject in there.
> I've skimmed the specs and found no
> such thing (about being illegal).
Okay, good to know! Thanks for looking into the specs.
> It turns out dbfopen.c reads all numbers as double anyway. Only if it
> things it's an integer and will fit in a C int (and thus be of type
> FTInteger), it casts the double to an int at the very last moment
> possible. I'm skipping that cast now and use PyLong_FromDouble to
> _always_ cast doubles to long integers iif the number of decimals is
> zero. That's two errors less in the unittests =)
Sounds like this is the sensible way to go.
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-devel/attachments/20080114/cf7d6d5a/attachment.bin
More information about the Thuban-devel
mailing list
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)