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

Legend:
Removed from v.2561  
changed lines
  Added in v.2670

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26