RFC: ClassGroupPattern

Bernhard Reiter bernhard at intevation.de
Wed Jan 26 16:20:29 CET 2005


On Tue, Jan 25, 2005 at 06:45:48PM +0100, Frank Koormann wrote:
> I just hacked in a new classification into Thuban I needed for a
> specific task: Instead of a single value or a range (valid for numbers)
> a regexp pattern can be applied (with re.match()). 
> This might be helpful if geo-objects have to be grouped on text fields. 
> So far I only added a new ClassGroup and hacked Thuban/Model/classification.py,
> Thuban/Model/load.py and the DTD. One needs a handcrafted .thuban
> session file to make use of the patterns.
> 
> What do others think about such a classification feature? Do you need
> this in real life applications? 

Yes, I think it can be useful.
It might drag a lot of resources, but that is worth the trouble.

> Any suggestions about how this Classification
> could be generated by "Generate Class"? 

If you give one pattern, we could also define: 
no string and the opposite of the pattern.
That gives us three classes, not too bad.
-------------- 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/20050126/8fa79d3a/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)