csv-import (was:Re: [Thuban-devel] Re: Lots of interesting code in precision farming application)
Moritz Lennert
mlennert at club.worldonline.be
Tue Nov 30 10:43:10 CET 2004
Hi Ole,
On Tue, November 30, 2004 10:25, Ole Rahn said:
> Hi Moritz,
>
> as far as I remember, you're right: The CSV Reader should be quite
> independent of the rest of the Precision Farming Extension, BUT the
> MemoryShape isn't ... anymore.
>
> In order to allow deletion of shapes from a MemoryShapeStore, I had to
> alter the MemoryTable (Thuban/Model/table.py). The reason for that is
> the sequential order of attribute data inside this table. If you remove
> random shapes, you have to keep track of which rows were deleted or else
> all data will get deranged...
>
> In order to prevent you from having to search for missing methods there
> are two ways to proceed:
> 1) I can send you a version of the MemoryShapeStore without deletion
> functions -> no dependency of an altered table.py
> 2) Here is a diff between a mostly (except for maybe some console
> print-outs) unchanged Thuban 1.0.0 version of table.py and the PIROL one
> - in case you want to use the MemoryShapeStore with its "extended"
> functions... :
I don't think that for a csv-import we need the ability to remove shapes, so
the question of whether there are deletion functions or not, should not change
anything for the code used in a csv-import extension. The csv-import code I
have already extracted in order to create a separate "demo"-extension - using
your MemoryShapeStore - seems to work without a problem with an unmodified
cvs-version of Thuban.
So, the question actually is whether Thuban will integrate your
MemoryShapeStore implementation or another one. I'd rather not have to include
an entire MemoryShapeStore in the extension. It would be better to include it
into the core of Thuban and make it usable for extensions. So before coding
the extension, I would need to know the interface to the "official"
MemoryShapeStore.
>
> I hope this helps!
> Also, if there is anything I can help you with while trying to decrypt
> our code, let me know. I'll be happy to help.
>
Thank you !
Moritz
More information about the Thuban-devel
mailing list
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)