[Thuban-list] RFC: Layer Classification

Bernhard Reiter bernhard at intevation.de
Thu Jan 16 11:43:17 CET 2003


On Thu, Jan 16, 2003 at 10:46:56AM +0100, Jonathan Coles wrote:
> There should be a Classification class that encapsulates a
> classification of a layer's shapes. It would contain the data type that
> it was associated with (this would come from the table of shape
> properties), and a list of data values:
> 
> [[range_low, range_high, [data_values, ...]], ...]
> 
> When a layer is drawn each shape matches its property value against the
> ranges (range_low <= value <= range_high, however <= is defined) in the
> list to find its assigned data values. These values can determine such
> things as line color, line thickness, and fill color. 

> Thoughts?

Just that classification might get more complicated later,
possible requiring more data and computation.
Then just a list of data values or ranges might not be enough.
If I got your design idea right then the Classification class will
encapsulate this so it should be fine.

It makes sense to implement the simple one first, too.
-------------- 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/20030116/f966c5e4/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)