raster layer properties and mask patches
Jonathan Coles
jonathan at jpcoles.com
Tue Jan 25 00:04:45 CET 2005
this weekends activities have resulted in the following changes:
o The LayerProperties class is a base class for layer
property dialog boxes to inherit from. Some basic information
that all layers have is put at the top of the box, and then
subclasses are allowed to add to it.
This was needed for at least two reasons: 1) The Classifier
class was trying to support Layer and RasterLayer, which
led to bugs 2) Adding other kinds of property boxes for
new layers is now easier and more consistent.
o The RasterLayerProperties dialog box displays information
specific to raster layers and allows the user to set which
color (or index in the case of greyscale or palette-based
images) should be used as a mask. This information is used
by gdal when projecting the image. gdalwarp.cpp had to
modified to accomodate the mask being specified in thuban.
o The mask color and whether or not the mask should be used
are saved in the .thuban file.
o New tests to cover the changes to the model.
i've attached all the patches. there may seem to be a lot, but they
really only cover the above two items.
--jonathan
--
=====================================================================
Jonathan Coles http://www.jpcoles.com
jonathan at jpcoles.com GnuPG Key: /gpg_pub_key.asc
=====================================================================
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test_load.py.patch
Type: text/x-patch
Size: 1722 bytes
Desc: not available
Url : http://www.intevation.de/pipermail/thuban-devel/attachments/20050124/44abe8a0/test_load.py.patch
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test_baserenderer.py.patch
Type: text/x-patch
Size: 813 bytes
Desc: not available
Url : http://www.intevation.de/pipermail/thuban-devel/attachments/20050124/44abe8a0/test_baserenderer.py.patch
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gdalwarp.cpp.patch
Type: text/x-patch
Size: 7633 bytes
Desc: not available
Url : http://www.intevation.de/pipermail/thuban-devel/attachments/20050124/44abe8a0/gdalwarp.cpp.patch
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mainwindow.py.patch
Type: text/x-patch
Size: 773 bytes
Desc: not available
Url : http://www.intevation.de/pipermail/thuban-devel/attachments/20050124/44abe8a0/mainwindow.py.patch
-------------- next part --------------
A non-text attachment was scrubbed...
Name: classifier.py.patch
Type: text/x-patch
Size: 8199 bytes
Desc: not available
Url : http://www.intevation.de/pipermail/thuban-devel/attachments/20050124/44abe8a0/classifier.py.patch
-------------- next part --------------
A non-text attachment was scrubbed...
Name: baserenderer.py.patch
Type: text/x-patch
Size: 3199 bytes
Desc: not available
Url : http://www.intevation.de/pipermail/thuban-devel/attachments/20050124/44abe8a0/baserenderer.py.patch
-------------- next part --------------
A non-text attachment was scrubbed...
Name: save.py.patch
Type: text/x-patch
Size: 1611 bytes
Desc: not available
Url : http://www.intevation.de/pipermail/thuban-devel/attachments/20050124/44abe8a0/save.py.patch
-------------- next part --------------
A non-text attachment was scrubbed...
Name: load.py.patch
Type: text/x-patch
Size: 1325 bytes
Desc: not available
Url : http://www.intevation.de/pipermail/thuban-devel/attachments/20050124/44abe8a0/load.py.patch
-------------- next part --------------
A non-text attachment was scrubbed...
Name: layer.py.patch
Type: text/x-patch
Size: 3862 bytes
Desc: not available
Url : http://www.intevation.de/pipermail/thuban-devel/attachments/20050124/44abe8a0/layer.py.patch
-------------- next part --------------
A non-text attachment was scrubbed...
Name: color.py.patch
Type: text/x-patch
Size: 1356 bytes
Desc: not available
Url : http://www.intevation.de/pipermail/thuban-devel/attachments/20050124/44abe8a0/color.py.patch
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test_layer.py.patch
Type: text/x-patch
Size: 3234 bytes
Desc: not available
Url : http://www.intevation.de/pipermail/thuban-devel/attachments/20050124/44abe8a0/test_layer.py.patch
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test_color.py.patch
Type: text/x-patch
Size: 1228 bytes
Desc: not available
Url : http://www.intevation.de/pipermail/thuban-devel/attachments/20050124/44abe8a0/test_color.py.patch
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ChangeLog.patch
Type: text/x-patch
Size: 3842 bytes
Desc: not available
Url : http://www.intevation.de/pipermail/thuban-devel/attachments/20050124/44abe8a0/ChangeLog.patch
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test_save.py.patch
Type: text/x-patch
Size: 1240 bytes
Desc: not available
Url : http://www.intevation.de/pipermail/thuban-devel/attachments/20050124/44abe8a0/test_save.py.patch
More information about the Thuban-devel
mailing list
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)