/[thuban]/branches/WIP-pyshapelib-bramz/ChangeLog
ViewVC logotype

Diff of /branches/WIP-pyshapelib-bramz/ChangeLog

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2560 by bh, Tue Feb 8 20:25:22 2005 UTC revision 2664 by jan, Mon Aug 8 18:39:59 2005 UTC
# Line 1  Line 1 
1    2005-08-08  Jan-Oliver Wagner <[email protected]>
2    
3            * po/de.po: String fixes. This fixes Debian bug #313843.
4    
5    2005-07-27  Jan-Oliver Wagner <[email protected]>
6    
7            Remove the attributes from the layer element in
8            .thuban files for the save routine.
9            This also solves RT bug #3149,
10            https://intevation.de/rt/webrt?serial_num=3149
11    
12            * test/test_load.py: (TestSingleLayer, TestNonAsciiColumnName,
13            TestLayerVisibility, TestSymbolSize, TestClassification, TestLabels,
14            TestLayerProjection, TestJoinedTable, TestLabelLayer): Removed
15            attributes from layer element to classification clnull element.
16    
17            * test/test_save.py (SaveSessionTest.testSingleLayer,
18            SaveSessionTest.testLayerProjection,
19            SaveSessionTest.testClassifiedLayer,
20            SaveSessionTest.test_joined_table, SaveSessionTest.test_save_postgis):
21            Removed attributes from layer element to classification clnull element.
22            (test_save_postgis.NonConnectionStore._fetch_table_information):
23            added pretending to have a shape_type.
24    
25            * Resources/XML/thuban-1.1.dtd: Make the attributes field
26            and field_type of classification optional.
27    
28            * Thuban/Model/classification.py (Classification.TreeItem.build_info):
29            Added output of size.
30    
31            * Thuban/Model/load.py (SessionLoader.start_classification):
32            Change attribute 'field' and 'field_type' from obligatory to
33            optional to allow empty classes (ie.  only with a default=clnull).
34    
35            * Thuban/Model/save.py (SessionSaver.write_layer): Don't write
36            any attributes anymore for the layer element.
37            (SessionSaver.write_classification): Even if there is no
38            classification field, still write the classification because
39            the clnull (default) symbol will not be defined anymore as
40            part of the layer element.
41    
42    2005-07-05  Bernhard Herzog  <[email protected]>
43    
44            * setup.py (setup call): Version 1.1.0
45    
46            * NEWS: Update for 1.1.0
47    
48            * MANIFEST.in: Add *.txt to files taken from Doc.  Otherwise the
49            technores won't be included
50    
51            * Thuban/UI/about.py (About.__init__): Extend copyright notice to
52            2005
53    
54            * po/de.po: Updated.
55    
56    2005-07-05  Bernhard Herzog  <[email protected]>
57    
58            * README: gdal 1.1.8 is too old.  1.2.5 works.
59    
60    2005-07-05  Bernhard Herzog  <[email protected]>
61    
62            * Resources/XML/thuban-1.1.dtd (rasterlayer): Add the opacity and
63            masktype attributes.
64    
65    2005-07-05  Bernhard Herzog  <[email protected]>
66    
67            * Thuban/Model/layer.py (Layer.__mangle_bounding_box)
68            (Layer.ClipBoundingBox): Rename ClipBoundingBox to
69            __mangle_bounding_box.  See the comments in the code and RT #2845
70    
71            * test/test_layer.py (TestLayer.test_arc_layer_with_projection):
72            Remove the explicit test of ClipBoundingBox.  The method isn't
73            public anymore and the direct call in the test wasn't necessary in
74            the first place.  If ClipBoundingBox (now __mangle_bounding_box)
75            isn't called, the return value of ShapesInRegion will be
76            different.
77    
78    2005-07-05  Bernhard Herzog  <[email protected]>
79    
80            * Thuban/UI/viewport.py (ViewPort.set_view_transform): Handle
81            ZeroDivisionError exceptions.  I don't know when they happen
82            exactly.  It probably happens when the projections aren't set
83            properly.
84    
85    2005-07-01  Bernhard Herzog  <[email protected]>
86    
87            First step towards unicode.  With this roughly we're at step 1
88            string_representation.txt
89    
90            * Doc/technotes/string_representation.txt: New.  Document how
91            strings are represented in Thuban and how to get to a Unicode
92            Thuban.
93    
94            * Thuban/__init__.py (set_internal_encoding)
95            (unicode_from_internal, internal_from_unicode): New. The first few
96            functions for the internal string representation
97    
98            * Thuban/UI/about.py (unicodeToLocale): Removed.  Use
99            internal_from_unicode instead.
100    
101            * Thuban/UI/__init__.py (install_wx_translation): Determine the
102            encoding to use for the internal string representation.  Also,
103            change the translation function to return strings in internal
104            representation even on unicode builds of wxPython
105    
106            * Thuban/Model/load.py (SessionLoader.check_attrs): Decode
107            filenames too.
108            (SessionLoader.start_clrange): Use check_attrs to decode and check
109            the attributes.
110    
111            * Thuban/Model/xmlreader.py (XMLReader.encode): Use
112            internal_from_unicode to convert unicode strings.
113    
114            * Thuban/Model/xmlwriter.py (XMLWriter.encode): Use
115            unicode_from_internal when applicable
116    
117            * test/runtests.py (main): New command line option:
118            internal-encoding to specify the internal string encoding to use
119            in the tests.
120    
121            * test/support.py (initthuban): Set the internal encoding to
122            latin-1
123    
124            * test/test_load.py (TestSingleLayer.test, TestClassification.test)
125            (TestLabelLayer.test): Use the internal string representation when
126            dealing with non-ascii characters
127    
128            * test/test_load_1_0.py (TestSingleLayer.test)
129            (TestClassification.test, TestLabelLayer.test): Use the internal
130            string representation when dealing with non-ascii characters
131    
132            * test/test_load_0_9.py (TestSingleLayer.test)
133            (TestClassification.test): Use the internal string representation
134            when dealing with non-ascii characters
135    
136            * test/test_load_0_8.py (TestUnicodeStrings.test): Use the
137            internal string representation when dealing with non-ascii
138            characters
139    
140            * test/test_save.py (XMLWriterTest.testEncode)
141            (SaveSessionTest.testClassifiedLayer): Use the internal string
142            representation when dealing with non-ascii characters where
143            applicable
144    
145    2005-06-30  Bernhard Herzog  <[email protected]>
146    
147            * test/runtests.py: Untabify.
148    
149    2005-06-30  Bernhard Herzog  <[email protected]>
150    
151            * Thuban/UI/renderer.py (ScreenRenderer.draw_selection_incrementally):
152            untabify.
153    
154    2005-06-30  Bernhard Herzog  <[email protected]>
155    
156            * Extensions/ogr/test/__init__.py: Add missing coding directive
157    
158    2005-06-28  Jan-Oliver Wagner <[email protected]>
159    
160            * Thuban/UI/renderer.py (ScreenRenderer.draw_selection_incrementally):
161            Use the default size for rendering selected items of default type.
162            Fixes part 2 of https://intevation.de/rt/webrt?serial_num=3149
163    
164    2005-06-28  Jan-Oliver Wagner <[email protected]>
165    
166            * Extensions/importAPR/apr.py (APR_BShSym): Extend by 'Stripple'.
167            (APR_TClr.GetThubanColor): Fix bug in color interpretation.
168            Thanks to Frank Koormann who identified this problem.
169    
170            * Extensions/importAPR/importAPR.py (APR_VShSym): New. Just
171            another symbol identified.
172    
173    2005-06-27  Jan-Oliver Wagner <[email protected]>
174    
175            * Doc/manual/thuban-manual-de.xml: More translations.
176    
177    2005-05-12  Jonathan Coles <[email protected]>
178            
179            * Thuban/UI/projdialog.py: Add missing import, which led to an
180            exception when opening a layer's projection.
181    
182    2005-05-09  Bernhard Herzog  <[email protected]>
183    
184            * test/support.py (FileLoadTestCase.filename): Fix doc-string.
185    
186    2005-05-09  Bernhard Herzog  <[email protected]>
187    
188            * Thuban/Model/postgisdb.py (PostGISConnection.connect): Set the
189            connection to autoconnect.  Fixes RT#3148.
190    
191            * test/test_postgis_db.py
192            (TestPostGISSpecialCases.test_simple_error_handling): New test
193            that attempts to reproduce RT#3148.
194    
195    2005-05-06  Jonathan Coles <[email protected]>
196    
197            Add support for saving and loading the opacity and mask type
198            properties of RasterLayers. Also add support for proper use
199            of alpha information while drawing images not in 'RAW' format.
200            If transparency in an image format (e.g, PNG) is supported by
201            wxWidgets then the image would previously have been draw with
202            transparent regions, but the opaque regions would have been
203            unaffected by a change in the layer's opacity. This patch
204            corrects the problem.
205    
206            * Thuban/Model/layer.py (RasterLayer): Added opacity and
207            masktype parameters to the constructor, and set the
208            appropriate variables to those values.
209    
210            * Thuban/Model/load.py (SessionLoader.start_rasterlayer): Added
211            code to read the opacity and mask type of the layer and construct
212            a new layer with the additional parameters.
213    
214            * Thuban/Model/save.py (SessionSaver.write_layer): Added code
215            to save the opacity and mask type of a layer.
216    
217            * Thuban/UI/baserenderer.py (BaseRenderer.draw_raster_layer): Pass
218            the opacity of the layer to draw_raster_data rather than the layer.
219            (BaseRenderer.draw_raster_data): Remove the layer parameter because
220            the function doesn't need to know about the layer. Add the optional
221            opacity parameter whose default is 1.0. Add 'PNG' as a supported
222            graphics format.
223    
224            * Thuban/UI/renderer.py (MapRenderer.draw_raster_data): Fixed
225            signature to match that in BaseRenderer. Use the new opacity argument
226            in place of calling layer.Opacity(). In the case where the
227            format is not 'RAW', alpha_data is None and the loaded image has
228            alpha information, use the file's alpha information. This is
229            still subject to the layer's opacity setting.
230    
231            * test/test_baserenderer.py (SimpleRenderer.draw_raster_data):
232            Fixed signature to match that in BaseRenderer.
233    
234            * test/test_load.py (TestRasterLayer): Change file_contents to
235            include opacity and masktype variables.
236            (TestRasterLayer.test): Include tests for opacity and masktype
237            changes.
238    
239            * test/test_save.py (SaveSessionTest.testRasterLayer): Restructure
240            test to cover a variety of combinations of masktype and opacity
241            settings.
242    
243    2005-05-02  Jan-Oliver Wagner <[email protected]>
244    
245            * debian/rules: add --use-wx-python-swig-hack
246            to the build command.
247            Thanks to Moritz Lennert for pointing this out.
248    
249    2005-04-28  Jan-Oliver Wagner <[email protected]>
250    
251            Introduce OGRFileShapeStore in ogr extension.
252            This allows at least that loaded shapefile shape stores
253            can be saved correctly in the thuban session file
254            and reloaded again (reload is via core shapefile
255            routine, not OGR). For other types, .thuban files
256            can not be reloaded for the time being.
257    
258            * Extensions/ogr/ogrshapes.py (OGRFileShapeStore): New. This
259            class ist to be used for any file-based shape stores
260            accessed through OGR.
261    
262            * Extensions/ogr/ogrstart.py (open_with_ogr): Added
263            forgotten _ for i18n. Adapted call OpenFileShapestore
264            regarding new parameter.
265            (OpenFileShapestore): Use OGRFileShapeStore instead of
266            OGRShapeStore. Fix return value (None instead of null).
267            Add new parameter "mainwindow" to avoid accessing global
268            context.
269    
270    2005-04-27  Jan-Oliver Wagner <[email protected]>
271    
272            Introduce FileShapeStore as generalization for
273            file-based shape stores. In a first instance
274            this allows additional modules to handle shapefile
275            format as well, namely the OGR extension.
276    
277            * Thuban/Model/data.py: Various small fixes in doc-strings.
278            (FileShapeStore): New class.
279            (ShapefileStore): Derive from FileShapeStore.
280            (ShapefileStore.__init__): Call __init__ of FileShapeStore,
281            rename self.table to self._table, initialize self._bbox
282            (ShapefileStore._open_shapefile): Use self._bbox instead of self.bbox
283            and self.FileName() instead of self.filename.
284            (ShapefileStore.Table): Use self._table instead of self.table.
285            (ShapefileStore.FileName): Removed (moved to FileShapeStore).
286            (ShapefileStore.BoundingBox):  Use self._bbox instead of self.bbox.
287    
288            * Thuban/Model/save.py: Replace ShapefileStore by FileShapeStore.
289            (SessionSaver.write_data_containers): Only use methods of the
290            base class FileShapeStore.
291    
292    2005-04-26  Martin Schulze  <[email protected]>
293    
294            * Extensions/wms/wms.py (render_wms_layer): Adjusted the render
295            function to the modified render engine
296    
297    2005-04-25  Martin Schulze  <[email protected]>
298    
299            * Thuban/UI/renderer.py (MapRenderer.projected_raster_layer):
300            Added a description according to the CVS log message
301    
302    2005-04-23  Martin Schulze  <[email protected]>
303    
304            * Thuban/UI/renderer.py: Added a missing import
305    
306    2005-04-23  Russell Nelson  <[email protected]>
307    
308            * Thuban/UI/view.py (MapCanvas.OnMiddle{Up,Down}): Changed the
309            way the previous tool is remembered, so that middle-button
310            panning works even if you haven't selected a tool.
311    
312    2005-04-11  Bernhard Herzog  <[email protected]>
313    
314            * libraries/thuban/wxproj.cpp: Move the compatibility code that
315            deals with the wxPython 2.4 version of wxPython.h into the #ifdef
316            branch that includes wxPython.h because it's only needed when
317            wxPython.h is used.  Also, it won't compile when
318            USE_WX_PYTHON_SWIG_HACK is set otherwise.
319    
320    2005-04-07  Bernhard Herzog  <[email protected]>
321    
322            * Thuban/UI/classifier.py (ClassGrid.__init__): Use -1 as the ID.
323            (ID_CLASS_TABLE): Removed. It wasn't used anywhere except in
324            ClassGrid.__init__ and it's value is outside of the valid
325            range (must be < 32768).  wxPython 2.5 complains about it with an
326            exception.
327    
328    2005-04-05  Jan-Oliver Wagner <[email protected]>
329    
330            * Doc/manual/thuban-manual-de.xml: More translations.
331    
332    2005-04-05  Bernhard Herzog  <[email protected]>
333    
334            * libraries/thuban/wxproj.cpp: Make it work with a wxPython.h from
335            wxPython 2.4 as well.  Also, remove a now obsolete comment.
336    
337    2005-04-05  Bernhard Herzog  <[email protected]>
338    
339            Use wxPython.h by default but provide a workaround when it isn't
340            available.
341    
342            * setup.py (wxproj_extension): New variable.  Assign the Extension
343            instance for Lib.wxproj to this variable instead of putting it
344            directly into the listso that it can be accessed by other code
345            later.
346            (thuban_build_ext.user_options): Added boolean option
347            --use-wx-python-swig-hack.
348            (thuban_build_ext.initialize_options): Initialize the new option
349            to False.
350            (thuban_build_ext.finalize_options): If the new option was given,
351            define the preprocesser macro USE_WX_PYTHON_SWIG_HACK.
352            (thuban_build_ext): Update the doc-string
353    
354            * libraries/thuban/wxproj.cpp: Normally we use
355            wx/wxPython/wxPython.h now.  Only if USE_WX_PYTHON_SWIG_HACK is
356            defined, use swigPtrConvertHack.h instead.
357    
358            * libraries/thuban/swigPtrConvertHack.h: Remove the code that was
359            copied over from wxPython.h.
360            (decode_pointer_new): New.  Equivalent of decode_pointer for
361            wxPython 2.5.
362            (wxPyConvertSwigPtr): Modified to cope with wxPython 2.5 as well.
363    
364            * README: Add section on potential build problems which explains
365            how the work-around for a missing wxPython.h is activated.
366    
367    2005-03-29  Bernhard Herzog  <[email protected]>
368    
369            * test/postgissupport.py (find_postgis_sql): Added yet another
370            potential location for (lw)postgis.sql because the file has moved
371            again in postgis 1.0.0 rc4.
372    
373    2005-03-29  Bernhard Herzog  <[email protected]>
374    
375            * Thuban/UI/legend.py (BMP_SIZE_W, BMP_SIZE_H): Set both to 16 to
376            match the site of the legend_icon_layer icon.  Otherwise wxpython
377            2.5 complains when the legend is created with the error:
378    
379            PyAssertionError: C++ assertion "(bitmap.GetWidth() == m_width &&
380            bitmap.GetHeight() == m_height) || (m_width == 0 && m_height ==
381            0)" failed in ./src/generic/imaglist.cpp(81): invalid bitmap size
382            in wxImageList: this might work on this platform but definitely
383            won't under Windows.
384    
385    2005-03-23  Jonathan Coles <[email protected]>
386    
387            These changes add support for adjusting the opacity of a raster layer.
388    
389            * Thuban/Model/layer.py (RasterLayer.Opacity): Replaces AlphaOpacity.
390            (RasterLayer.SetOpacity): Replaces SetAlphaOpacity. Also triggers
391            a LAYER_CHANGED event if the opacity actually changes.
392    
393            * Thuban/UI/baserenderer.py (BaseRenderer.draw_raster_data): Added
394            layer parameter needed in the implementation of this method in
395            renderer.py.
396    
397            * Thuban/UI/layerproperties.py (LayerProperties.dialog_layout): Fixed
398            typo 00 -> 0.
399    
400            * Thuban/UI/rasterlayerproperties.py (RasterLayerProperties): Added
401            control to adjust opacity.
402    
403            * Thuban/UI/renderer.py (MapRenderer.draw_raster_data): Scale the
404            alpha data based on the opacity level of the layer.
405    
406            * test/test_baserenderer.py (SimpleRenderer.draw_raster_data): Now
407            accepts a layer parameter.
408    
409            * test/test_layer.py (TestLayerModification.test_raster_layer):
410            Rename opacity method calls and add test for LAYER_CHANGED.
411    
412    2005-03-16  Bernhard Herzog  <[email protected]>
413    
414            * test/test_connector.py (DeletionTestMixin.check_deletions)
415            (DeletionTestMixin.check_deletetions): renamed to check_deletions.
416            update the callers.
417    
418    2005-03-14  Jan-Oliver Wagner <[email protected]>
419    
420            * Doc/manual/thuban-manual-de.xml: More translations.
421    
422    2005-03-10  Jan-Oliver Wagner <[email protected]>
423    
424            Introducing initialization callbacks for extensions.
425    
426            * Thuban/UI/extensionregistry.py (ExtensionDesc.__init__): Added
427            optional parameter init_callback.
428            (ExtensionDesc.init_ext): New. Executes the callback and sets
429            a status.
430    
431            * Thuban/UI/application.py (ThubanApplication.OnInit): Add the
432            initialization of the extensions.
433            (ThubanApplication.init_extensions): Init all extensions.
434    
435            * Thuban/UI/about.py (About.__init__): Added status of the extensions
436            to the about text.
437    
438            * Extensions/gns2shp/__init__.py: Added init method for Extension
439            description.
440            (init): New. Contains the initialization of the module.
441    
442    2005-03-04  Nina H�ffmeyer <[email protected]>
443    
444            * Extensions/ogr/ogrdialog.py: Added a dialog, which asks for
445            OGRConnection to open a datasource. Removed dialog to display all
446            available drivers. Added some doc strings.
447    
448            * Extensions/ogr/ogrstart.py: Added menu entry for opening an
449            OGRDatasource with a string. Added two opening methods which return an
450            OGRDatasource (either data from file or from DB).
451    
452            * Extensions/ogr/ogrshapes.py: Added class OGRGeometry, which
453            represents a geometry reference of an OGRFeature. OGRShape now has a
454            list of referenced geometry objects (important for geometry
455            collections).
456            For OGRShapeStores loaded from a DB an ID column can be specified now.
457    
458    2005-02-22  Jan-Oliver Wagner <[email protected]>
459    
460            * test/test_map.py (TestMapWithContents.test_tree_info):
461            Added label layer for comparison.
462    
463    2005-02-18  Jonathan Coles <[email protected]>
464    
465            * libraries/thuban/gdalwarp.cpp (GetImageData): Optimize the loop
466            which builds a mask. Handle the majority of an image in a loop,
467            creating 8 bits at a time. Later, handle the edge case where less
468            than 8 bits are packed.
469    
470    2005-02-18  Bernhard Herzog  <[email protected]>
471    
472            * test/test_baserenderer.py (TestBaseRenderer.setUp): Fix
473            doc-string
474    
475    2005-02-18  Jonathan Coles <[email protected]>
476    
477            * setup.py: Remove wx_cs_params from gdal compile options.
478    
479    2005-02-18  Jonathan Coles <[email protected]>
480    
481            Refactored baserenderer.py and renderer.py to remove baserenderer.py's
482            dependencies on wxPython. Added a new method projected_raster_layer()
483            that returns a raster layer image in projected space. This must be
484            implemented in classes derived from BaseRenderer. This also eliminates
485            the dependency on gdal in baserenderer.py.
486    
487            * Thuban/UI/baserenderer.py (BaseRenderer.draw_raster_layer): Call
488            new projected_raster_layer() to get projected raster image instead
489            of directly calling ProjectRasterFile().
490            (BaseRenderer.projected_raster_layer): New. This must be implemented
491            by derived classes. It takes almost the same arguments as ProjectRasterFile
492            did and returns a projected image with mask and alpha data (if requested).
493            (BaseRenderer.render_map_incrementally): Remove the check for gdal since
494            that check will be done in MapRenderer.projected_raster_layer(). This
495            also allows other implementations to use different projection code.
496    
497            * Thuban/UI/renderer.py (MapRenderer.projected_raster_layer):
498            Implementation of BaseRenderer.projected_raster_layer. Checks for
499            gdal support and wxPython version. Also handles exceptions from
500            ProjectRasterFile.
501    
502            * libraries/thuban/gdalwarp.cpp: Removed checks for wxPython versions
503            and added a variable which can be set through the options argument
504            of ProjectRasterFile.
505    
506            * test/test_baserenderer.py (SimpleRenderer.projected_raster_layer): New.
507            Calls ProjectRasterFile and returns the result.
508            (TestBaseRenderer.test_projected_raster_layer): New. Tests the results
509            of calling projected_raster_layer() with different options.
510            (TestBaseRenderer.test_raster_no_projection): Removed tests based on
511            wxPython version and all tests of masks and alpha channels. These are
512            now in test_projected_raster_layer().
513    
514    2005-02-17  Jan-Oliver Wagner <[email protected]>
515    
516            * Thuban/Model/map.py, Thuban/Model/label.py: Fixed
517            doc-strings to comply with coding_guidelines.
518    
519    2005-02-17  Jan-Oliver Wagner <[email protected]>
520    
521            Docstring improvements and minor fixes for labellayer.
522    
523            * Thuban/Model/map.py:
524            (Map, Map.Destroy, Map.RemoveLayer, Map.ClearLayers,
525            Map.Layers, Map.HasLayers, Map.MoveLayerToTop,
526            Map.RaiseLayer, Map.LowerLayer, Map.MoveLayerToBottom,
527            Map.ProjectedBoundingBox, Map.GetProjection): Improved/added
528            doc string.
529            (Map.BoundingBox): Removed superfluous test for label_layer
530            and improved doc string.
531            (Map.TreeInfo): Added label_layer and improved sdo string.
532    
533            * Thuban/Model/label.py: Added import of _.
534            (Label, Label.__init__): Improved/added doc string.
535            (LabelLayer, LabelLayer.__init__, LabelLayer.Labels,
536            LabelLayer.RemoveLabel, LabelLayer.ClearLabels):
537            Improved/added doc string.
538            (LabelLayer.AddLabel): Use already defined names for
539            align strings and improved doc string.
540            (LabelLayer.TreeInfo): New. Return the object data for
541            the tree view.
542    
543    2005-02-16  Jonathan Coles <[email protected]>
544    
545            Further wxPython 2.5 changes using patches from Daniel Calvelo Aros
546            so that that wxproj doesn't crash. Added GUI support for selecting
547            alpha channel (opacity can't be selected yet).
548    
549            NOTE: If wxPython.h is including in future distribution packages
550            then it will not be necessary to have the files swigPtrConvertHack.h
551            and wxPython_int.h included with Thuban. This is hopefully
552            a temporary workaround.
553    
554            * setup.py (thuban_build_ext.finalize_options): gdalwarp needs
555            access to the macro wxCHECK_VERSION so that it will properly
556            generate a bit mask. There was a problem between wx2.4 and wx2.5
557            that this works around.
558    
559            * Thuban/Model/layer.py (RasterLayer.UseMask): Removed in favor
560            of RasterLayer.MaskType.
561            (RasterLayer.SetUseMask): Removed in favor of RasterLayer.SetMaskType
562            (RasterLayer.MaskType): New. Returns the type of mask to use. Can
563            specify none, a bitmap, or an alpha channel.
564            (RasterLayer.SetMaskType): New. Set what kind of mask to use.
565    
566            * Thuban/UI/baserenderer.py (BaseRenderer.draw_raster_layer):
567            Set the raster warping options for the mask based on the value
568            of RasterLayer.MaskType.
569    
570            * Thuban/UI/legend.py (LegendTree.__FillTreeLayer): Remove
571            deprecated calls to SetItemSelectedImage in favor of SetItemImage
572            with wxTreeItemIcon_Selected.
573    
574            * Thuban/UI/rasterlayerproperties.py: Support selecting to use
575            an alpha channel for the mask.
576    
577            * Thuban/UI/renderer.py (MapRenderer.draw_raster_data): Use alpha
578            data if it is available and an alpha channel is supported under
579            the current version of wxPython.
580    
581            * libraries/thuban/gdalwarp.cpp (GetImageData): Added compiler define
582            to select whether 1's or 0's select the desired portion of an image
583            in the bit mask. wx2.4 has a bug where the documentation is the opposite
584            from behavior.
585            (ProjectRasterFile): Only generate an alpha channel if the version
586            of wxPython is >= 2.5.3.
587    
588            * libraries/thuban/wxproj.cpp: Applied patches from Daniel Calvelo Aros.
589            When wxPython >= 2.5.3 use the special swig functions to decode an
590            object's address.
591    
592            * libraries/thuban/swigPtrConvertHack.h: Includes conditional code
593            based on the version of wxPython. If >= 2.5.3 use the special swig
594            functions from wxPython to decode wxPython objects, otherwise use
595            the old method of retrieving the address from the object __repr__ string.
596    
597            * libraries/thuban/wxPython_int.h: Copied from wxPython source.
598            Unnecessary code was removed to make it smaller.
599    
600            * test/test_baserenderer.py (TestBaseRenderer.test_raster_no_projection):
601            Add tests for returning an alpha channel.
602    
603            * test/test_layer.py (TestLayerModification.test_raster_layer): Fix
604            tests that used removed functions UseMask and SetUseMask
605    
606    
607    2005-02-08  Bernhard Herzog  <[email protected]>
608    
609            More wxPython 2.5 changes.  This time taken from a patch from
610            Daniel Calvelo Aros.
611    
612            * Thuban/UI/tableview.py (QueryTableFrame.__init__)
613            (QueryTableFrame.__init__): Pass the size of a spacer as a single
614            item.
615    
616            * Thuban/UI/projdialog.py (ProjFrame.build_dialog)
617            (ProjFrame.build_dialog): Pass the size of a spacer as a single
618            item.
619    
620            * Thuban/UI/dbdialog.py (ChooseDBTableDialog.__init__): Pass the
621            size of a spacer as a single item.
622    
623            * Thuban/UI/classifier.py (Classifier.dialog_layout): Pass the
624            size of a spacer as a single item.
625    
626  2005-02-08  Bernhard Herzog  <[email protected]>  2005-02-08  Bernhard Herzog  <[email protected]>
627    
628          Compatibility with wxPython 2.5.  The changes should make it work          Compatibility with wxPython 2.5.  The changes should make it work

Legend:
Removed from v.2560  
changed lines
  Added in v.2664

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26