[Thuban-devel] layer properties dialog

Jan-Oliver Wagner jan at intevation.de
Fri Jan 21 16:59:41 CET 2005


Hi Jonathan,

On Fri, Jan 21, 2005 at 10:50:03AM -0500, Jonathan Coles wrote:
> it was mentioned in RF#2302, the raster layer properties dialog should
> have more information in it. i've been looking into this because i need
> to have a place where the user can select which color to use as the
> masking color (this depends on the colors used in the image, so it
> should be user changable). 
> 
> one big point that stood right out, was that one dialog box is used for
> all the kinds of layers. this might make sense with the point, vector,
> and polygon layers since they all come from shapefiles. however, a
> raster layer is completely different and should not share the same code.
> the current setup is extremely fragile and will break from the simplest
> thing: if someone clicks on 'revert' after changing the name of the
> raster layer, for example. (yes, i do realize i wrote most of this
> code).
> 
> because of the classmapper code, it is very easy to have a different
> dialog box open depending on what kind of layer it is. currently, it is
> set to open the Classifer dialog for both general Layers and
> RasterLayers.
> 
> if there is no objection to this, i'm going to start writing a new
> dialog box for raster layers which will show as much information about
> the layer as there is. 
> 
> i'll also look at creating a generic properties dialog which is extended
> for other types of layers. that way, all information that every layer
> has (title, projection, etc.) can be displayed and then anything that is
> specific to the layer type can come after (classification, mask color
> selection, etc).

that'll be just great.

Note that Joey implemented already a special dialog for
the WMS layers (see the wms extension). He made
some changes to the Thuban core so that you can
add special dialogs even from an extension.

So, it shouldn't be a problem to hook in a raster-specfic
dialog.

Best

	Jan
-- 
Jan-Oliver Wagner               http://intevation.de/~jan/

Intevation GmbH                      http://intevation.de/
FreeGIS                                http://freegis.org/




More information about the Thuban-devel mailing list

This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)