/[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 2544 by bh, Mon Jan 24 11:19:53 2005 UTC revision 2723 by bernhard, Tue Feb 20 10:22:54 2007 UTC
# Line 1  Line 1 
1    2007-02-20 Bernhard Reiter <[email protected]>
2    
3             * test/README: Added example how to set the PATH for postgis on
4             Debian Etch.
5    
6    2007-01-13 Didrik Pinte <[email protected]>
7    
8            bboxdump, gns2shp, importAPR, mouseposition, ogr, profiling, svgexport
9            extensions migrated to wxPython 2.6
10    
11            * Extensions/bboxdump/bboxdump.py:
12            updated wx statements
13    
14            * Extensions/gns2shp/gns2shp.py:
15            updated wx statements
16    
17            * Extensions/importAPR/importAPR.py:
18            updated wx statements
19    
20            * Extensions/mouseposition/mouseposition.py:
21            updated wx statements
22    
23            * Extensions/ogr/
24            ogrdialog.py, ogrstart.py:
25            updated wx statements
26    
27            * Extensions/profiling/profiling.py:
28            updated wx statements
29    
30            * Extensions/svgexport/
31            maplegend.py, svgsaver.py:
32            updated wx statements
33    
34    
35    2007-01-08 Didrik Pinte <[email protected]>
36            
37            export_shapefile extension migrated to wxPython 2.6
38    
39            * Extensions/export_shapefile/export_shapefile.py:
40            updated wx statements, changed the FileDialog to wx.SAVE (was wx.OPEN)
41    
42    2007-01-08 Didrik Pinte <[email protected]>
43            
44            umn_mapserver extension migrated to wxPython 2.6
45    
46            * Extensions/umn_maserver/
47            mf_handle.py, mf_import.py, mf_export.py:
48            update wx imports to 2.6 policy
49    
50    2007-01-06 Didrik Pinte <[email protected]>
51    
52            UTF-8 locales support reading non utf-8 files.
53            This is a workaround and not a real bugfix. See
54            http://wald.intevation.org/tracker/index.php?func=detail&aid=118
55            for more details
56    
57            * Thuban/UI/tableview.py, controls.py, baserenderer.py, view.py:
58            decode text from iso-8859-1 encoding.
59    
60    2007-01-01 Bernhard Reiter <[email protected]>
61    
62            * test/postgissupport.py, test/test_postgis_db.py: adding an
63            explicit WITH OIDS to the create table commands. This fixes tests
64            that rely on an oid column to be present for postgresql >=8.0.
65            Thanks for Frank Koormann for the hint.
66    
67    2006-11-06 Didrik Pinte <[email protected]>
68    
69            * libraries/thuban/wxproj.cpp: bugfix - allow compilation with
70            msvc++ toolkit 2003
71    
72    2006-11-06 Bernhard Reiter <[email protected]>
73    
74            Made it easier to run PostGIS test on Debian Etch. Improving
75            https://wald.intevation.org/tracker/index.php?func=detail&aid=173 .
76    
77            * test/postgissupport.py: Taking pg_ctl and initdb commands
78            from internal variables now. Adding deactivated example values
79            for Debian Etch.  
80            find_postgis_sql(): Added special line for Debian Etch postgresql-8.1.
81            Added copyright year 2006.
82    
83    2006-10-25 Bernhard Reiter <[email protected]>
84            
85            Moved ogr Extension to Extension menu.
86    
87            * Extensions/ogr/
88            __init__.py, ogrstart.py, ogrshapes.py, ogrdialog.py
89            test/test_OGRShapestore.py, test/__init__.py:
90            adding encoding information and made sure Autor's names
91            with an umlaut are actually written with an umlaut.
92    
93            * Extensions/ogr/ogrstrat.py: now registering in menu "Extensions",
94            having a "(testing)" string before the submenu to prepare for 1.2.0
95            release.  Bumped copyright year to 2006.
96    
97    2006-10-15 Bernhard Reiter <[email protected]>
98    
99            * Thuban/UI/renderer.py: Added module variable verbose and
100            added verbose output before doing a raster projection.
101            Minor: Added (c) year 2006.
102    
103            * test/test_baserenderer.py: Added new function
104            test_projected_raster_decimalcommalocale()
105            Added new author Bernhard Reiter and new copyright year 2006.
106    
107            * libraries/thuban/gdalwarp.cpp(ProjectRasterFile): Adding
108            switching to LC_NUMERIC "C" and back before calling GDAL functions -
109            only #if python >=2.4 .
110    
111    2006-10-10 Didrik Pinte <[email protected]>
112    
113            Win32 build updates
114    
115            * setup.py :
116                - update to the latest libs for win32 setup tasks
117                    - added gdal and Lib content to the inno setup build task
118                    - added stable and experimental extensions to setup packages
119    
120            * thuban.py :
121                    - gdal support for win32 inno installation
122    
123    2006-10-10 Didrik Pinte <[email protected]>
124    
125            * Thuban/Model/layer.py (Layer.GetLabelPosFromShape): new method
126            extracted from Thuban/UI/viewport.py
127            * Thuban/UI/viewport.py (Viewport.LabelShapeAt): uses new method
128    
129    2006-09-28 Didrik Pinte <[email protected]>
130    
131            * Thuban/UI/classgen.py: bugfix due to wx2.6 update
132    
133            * Thuban/UI/view.py: removed non needed declaration
134    
135            * Thuban/UI/selection.py : typo correction
136    
137    2006-09-24 Bernhard Reiter <[email protected]>
138    
139            * Thuban/Model/proj.py(_do_we_have_to_work_around_broken_proj):
140            Making the test more robust for observed python 2.3 problems
141            with setlocale().
142    
143            * test/runtests.py: Added new option ---setdecimalcommalocale
144            to run all tests with an LC_NUMERIC that uses comma as decimal_point.
145            Minor: Added (c) year 2006. Fixed typo in a docstring.
146    
147            * test/test_transientdb.py: Minor: Added (c) year 2006. Fixed typo in
148            a docstring.
149    
150    2006-09-23 Bernhard Reiter <[email protected]>
151    
152            * Extensions/ogr/test/test_OGRShapestore.py: fixed skip_if_no_ogr()
153            and added it to TestOGRTable.setUp() so that all tests get skipped
154            if ogr cannot be imported. Added (c) year 2006.
155    
156    2006-09-18 Didrik Pinte <[email protected]>
157            
158            * wxPython 2.6 update : wx 2.4 syntax has been updated to 2.6
159            
160    2006-09-18 Bernhard Reiter <[email protected]>
161    
162            Fixed proj behaviour with python >=2.4 when decimal_point != '.'.
163    
164            * Thuban/UI/application.py: Fixed warning dialog when gdal is missing.
165    
166            * test/test_proj.py: new test_lc_numeric_robustness(). Added author
167            Bernhard Reiter and new copyright year 2006.
168    
169            * Thuban/Model/proj.py: New _do_we_have_to_work_around_broken_proj()
170            and Projection.assuregoodlocale(), Projection.assureinitlocale().
171            Added author Bernhard Reiter and (c) 2006.
172    
173    2006-09-15 Bernhard Reiter <[email protected]>
174    
175            * README: added RXP and pyRXP as optional for tests.
176    
177            * test/localessupport.py: New. Contains a helper function
178            to find a locale with comma used as decimal_point.
179    
180    2006-08-31 Bernhard Reiter <[email protected]>
181    
182            * README: fixed URLs to sqlite and pysqlite.
183    
184            * Thuban/UI/about.py: Added Didrik Pinte as contributor. Extended
185              copyright range to include 2006.
186    
187    2006-06-29 Didrik Pinte <[email protected]>
188    
189            * Thuban/UI/main.py: circular import fix.
190    
191    2006-06-27 Frank Koormann <[email protected]>
192    
193            New Classification "Pattern": Classify text attributes by regexp.
194    
195            * Thuban/Model/classification.py (class ClassGroupPattern):
196            New, group is associated with a regular expression.
197            (Classification._compile_classification): Store compiled regexp and
198            original group for pattern.
199            (Classification.FindGroup): Added pattern.
200    
201            * Thuban/UI/classifier.py
202            (ClassGrid._OnLabelRightClicked, ClassGrid.labelPopup):
203            New, add popup to select singleton/pattern.
204            (ClassTable.GetRowLabelValue, ClassTable.GetValueAsCustom,
205            ClassTable.SetValueAsCustom): Added pattern.
206            (ClassTable.__ParseInput): Autodetect singleton/pattern.
207    
208            * Thuban/Model/save.py (SessionSaver.write_classification):
209            Added pattern.
210    
211            * Thuban/Model/load.py (SessionLoader.start_clpattern,
212            SessionLoader.end_clpattern): New, process pattern elements.
213    
214            * test/test_classification.py (class TestClassGroupPattern): New.
215            (TestClassification.test_add_pattern,
216            TestClassification.test_multiple_groups_textual,
217            TestClassification.test_deepcopy_textual): New.
218            (TestClassification.test_multiple_groups_numerical):
219            Renamed test_multiple_groups.
220            (TestClassification.test_deepcopy_numerical): Renamed test_deepcopy.
221    
222            * test/test_save.py (SaveSessionTest.testClassifiedLayer):
223            Added pattern.
224    
225            * test/test_load.py (ClassificationTest.TestLayers, TestClassification):
226            Added pattern.
227    
228            * test/test_layer.py
229            (TestLayerModification.test_set_classification_textual): New
230            (TestLayerModification.test_set_classification_numerical):
231            Renamed test_set_classification.
232    
233            * Doc/manual/thuban-manual.xml: Added pattern to layer classification
234            description.
235    
236            * Resources/XML/thuban-1.1.dtd: Added clpattern element and attribs.
237    
238    2006-06-29 Didrik Pinte <[email protected]>
239    
240            * Thuban/version.py: Bugfix determination of SQLite, the wright one !
241              
242    2006-06-28 Didrik Pinte <[email protected]>
243    
244            * packaging/windows/thubanstart.py: sample file loading all the stable
245            extensions
246            
247    2006-06-28 Didrik Pinte <[email protected]>
248    
249            * Thuban/version.py: Bugfix determination of SQLite on old and recent
250            systems (support pysqlite1 and pysqlite2)
251    
252    2006-06-27 Frank Koormann <[email protected]>
253    
254            * Thuban/version.py: Bugfix determination of SQLite on old systems.
255    
256    2006-05-17 Didrik Pinte <[email protected]>
257            * Extensions/ogr/__init__.py : updated test for win32 and correct
258            imports
259    
260    2006-05-15 Didrik Pinte <[email protected]>
261            Ashamed ... still some tabs in the files
262    
263            * Thuban/version.py : tabs removed      
264            * Thuban/Model/transientdb.py : tabs removed
265    
266    2006-05-15 Didrik Pinte <[email protected]>
267    
268            * Thuban/version.py : coding style correction  
269            * Thuban/Model/transientdb.py : coding style correction
270    
271    2006-05-15 Didrik Pinte <[email protected]>
272    
273            * Thuban/version.py : Updated imports to support pysqlite2
274    
275            * Thuban/Model/transientdb.py : Updated imports to support pysqlite2
276            Patched the querying system to support the param style of pysqlite2
277    
278    2006-04-24 Didrik Pinte <[email protected]>
279    
280            * Extensions/svgexport/__init__.py: The extension now works on win32
281            architecture. Bug #87 corrected.
282    
283    2006-04-20 Bernhard Reiter <[email protected]>
284    
285            * Doc/technotes/coding_guidelines.txt: Changed text from CVS to SVN.
286            Removed emacs specific hint and replaced it with a general hint
287            that editors might support writing changelogs.
288    
289    2006-04-12 Bernhard Reiter <[email protected]>
290    
291            * Thuban/version.py: Changed thuban_release mechanism to use "svn"
292            instead of "cvs".
293    
294    2006-03-31  Bernhard Reiter <[email protected]>
295    
296            * libraries/thuban/wxproj.cpp: including proj_api.h instead of
297            projects.h now. According the Frank Warmerdam and man pj_init
298            this is the public interface to proj. Thus I have changed PJ to projPJ.
299            And I could remove the hack to avoid clashes with typedef PVALUE
300            and #define LP in projects.h clashing with symbols when trying to
301            build on windows. The file is cleaner and nicer now.
302    
303    2006-03-29  Bernhard Reiter <[email protected]>
304    
305            * libraries/thuban/wxproj.cpp: undef LP to avoid clash when
306            trying to build with mingw.
307    
308    2005-10-18  Bernhard Reiter <[email protected]>
309    
310            * Thuban/UI/about.py: remove unused import of getdefaultlocale.
311            Added display of internal encoding to the about dialog text.
312    
313            * Extensions/svgexport/__init__.py: changed version to "1.0.0+cvs".
314    
315    2005-10-18  Bernhard Reiter <[email protected]>
316    
317            Startup improved: We fail right away if the internal encoding could
318            not be determined.
319    
320            * Thuban/__init__.py (get_internal_encoding): new.
321    
322            * test/test_stringrepresentation.py (class TestInternalEncoding):
323            Preserve the internal encoding for the tests in this class.
324    
325    2005-10-17  Bernhard Reiter <[email protected]>
326    
327            * test/test_stringrepresentation.py: New file, for now testing
328            that set_internal_coding() is throwing an exception for bad exceptions.
329    
330            * Thuban/__init__.py (set_internal_encoding): added a forwards
331            and backward translation, so that we fail early if the
332            internal_encoding is bad.
333    
334    2005-10-17  Bernhard Reiter <[email protected]>
335    
336            svgexport 1.0.0cvs: Fixed ARC layer writing: No filling is done.
337            You could actually get polylines with filling in between,
338            when the classification for the lines had a fill color.
339            E.g. this happens when you generate a classification from a ramp.
340    
341            * Extensions/svgexport/test/test_svgmapwriter.py:
342            New test_export_arc_no_fill(). Extend copyright notice to 2005.
343    
344            * Extensions/svgexport/svgmapwriter.py
345            (SVGRenderer.draw_shape_layer_incrementally()):
346            Setting TRANSPARENT_BRUSH for shaptype ARC.
347            Extend copyright notice to 2005.
348    
349            * Extensions/svgexport/__init__.py: Extend copyright notice to 2005.
350    
351    2005-09-08  Frank Koormann <[email protected]>
352    
353            * Doc/manual/thuban-manual.xml (Map Management): Fixed typo reported
354            by Erik (sigra.at.home.se)
355    
356    2005-08-18  Jan-Oliver Wagner <[email protected]>
357    
358            * Thuban/UI/renderer.py (ScreenRenderer.draw_selection_incrementally):
359            Call the right method for the default size.
360    
361    2005-08-11  Jan-Oliver Wagner <[email protected]>
362    
363            * Extensions/export_shapefile: New.
364    
365            * Extensions/export_shapefile/__init__.py: New. Initialize
366            the export_shapefile extension.
367    
368            * Extensions/export_shapefile/export_shapefile.py: New.
369            Exports a layer as a Shapefile.
370    
371    2005-08-08  Jan-Oliver Wagner <[email protected]>
372    
373            * po/de.po: String fixes. This fixes Debian bug #313843.
374    
375    2005-07-27  Jan-Oliver Wagner <[email protected]>
376    
377            Remove the attributes from the layer element in
378            .thuban files for the save routine.
379            This also solves RT bug #3149,
380            https://intevation.de/rt/webrt?serial_num=3149
381    
382            * test/test_load.py: (TestSingleLayer, TestNonAsciiColumnName,
383            TestLayerVisibility, TestSymbolSize, TestClassification, TestLabels,
384            TestLayerProjection, TestJoinedTable, TestLabelLayer): Removed
385            attributes from layer element to classification clnull element.
386    
387            * test/test_save.py (SaveSessionTest.testSingleLayer,
388            SaveSessionTest.testLayerProjection,
389            SaveSessionTest.testClassifiedLayer,
390            SaveSessionTest.test_joined_table, SaveSessionTest.test_save_postgis):
391            Removed attributes from layer element to classification clnull element.
392            (test_save_postgis.NonConnectionStore._fetch_table_information):
393            added pretending to have a shape_type.
394    
395            * Resources/XML/thuban-1.1.dtd: Make the attributes field
396            and field_type of classification optional.
397    
398            * Thuban/Model/classification.py (Classification.TreeItem.build_info):
399            Added output of size.
400    
401            * Thuban/Model/load.py (SessionLoader.start_classification):
402            Change attribute 'field' and 'field_type' from obligatory to
403            optional to allow empty classes (ie.  only with a default=clnull).
404    
405            * Thuban/Model/save.py (SessionSaver.write_layer): Don't write
406            any attributes anymore for the layer element.
407            (SessionSaver.write_classification): Even if there is no
408            classification field, still write the classification because
409            the clnull (default) symbol will not be defined anymore as
410            part of the layer element.
411    
412    2005-07-05  Bernhard Herzog  <[email protected]>
413    
414            * setup.py (setup call): Version 1.1.0
415    
416            * NEWS: Update for 1.1.0
417    
418            * MANIFEST.in: Add *.txt to files taken from Doc.  Otherwise the
419            technores won't be included
420    
421            * Thuban/UI/about.py (About.__init__): Extend copyright notice to
422            2005
423    
424            * po/de.po: Updated.
425    
426    2005-07-05  Bernhard Herzog  <[email protected]>
427    
428            * README: gdal 1.1.8 is too old.  1.2.5 works.
429    
430    2005-07-05  Bernhard Herzog  <[email protected]>
431    
432            * Resources/XML/thuban-1.1.dtd (rasterlayer): Add the opacity and
433            masktype attributes.
434    
435    2005-07-05  Bernhard Herzog  <[email protected]>
436    
437            * Thuban/Model/layer.py (Layer.__mangle_bounding_box)
438            (Layer.ClipBoundingBox): Rename ClipBoundingBox to
439            __mangle_bounding_box.  See the comments in the code and RT #2845
440    
441            * test/test_layer.py (TestLayer.test_arc_layer_with_projection):
442            Remove the explicit test of ClipBoundingBox.  The method isn't
443            public anymore and the direct call in the test wasn't necessary in
444            the first place.  If ClipBoundingBox (now __mangle_bounding_box)
445            isn't called, the return value of ShapesInRegion will be
446            different.
447    
448    2005-07-05  Bernhard Herzog  <[email protected]>
449    
450            * Thuban/UI/viewport.py (ViewPort.set_view_transform): Handle
451            ZeroDivisionError exceptions.  I don't know when they happen
452            exactly.  It probably happens when the projections aren't set
453            properly.
454    
455    2005-07-01  Bernhard Herzog  <[email protected]>
456    
457            First step towards unicode.  With this roughly we're at step 1
458            string_representation.txt
459    
460            * Doc/technotes/string_representation.txt: New.  Document how
461            strings are represented in Thuban and how to get to a Unicode
462            Thuban.
463    
464            * Thuban/__init__.py (set_internal_encoding)
465            (unicode_from_internal, internal_from_unicode): New. The first few
466            functions for the internal string representation
467    
468            * Thuban/UI/about.py (unicodeToLocale): Removed.  Use
469            internal_from_unicode instead.
470    
471            * Thuban/UI/__init__.py (install_wx_translation): Determine the
472            encoding to use for the internal string representation.  Also,
473            change the translation function to return strings in internal
474            representation even on unicode builds of wxPython
475    
476            * Thuban/Model/load.py (SessionLoader.check_attrs): Decode
477            filenames too.
478            (SessionLoader.start_clrange): Use check_attrs to decode and check
479            the attributes.
480    
481            * Thuban/Model/xmlreader.py (XMLReader.encode): Use
482            internal_from_unicode to convert unicode strings.
483    
484            * Thuban/Model/xmlwriter.py (XMLWriter.encode): Use
485            unicode_from_internal when applicable
486    
487            * test/runtests.py (main): New command line option:
488            internal-encoding to specify the internal string encoding to use
489            in the tests.
490    
491            * test/support.py (initthuban): Set the internal encoding to
492            latin-1
493    
494            * test/test_load.py (TestSingleLayer.test, TestClassification.test)
495            (TestLabelLayer.test): Use the internal string representation when
496            dealing with non-ascii characters
497    
498            * test/test_load_1_0.py (TestSingleLayer.test)
499            (TestClassification.test, TestLabelLayer.test): Use the internal
500            string representation when dealing with non-ascii characters
501    
502            * test/test_load_0_9.py (TestSingleLayer.test)
503            (TestClassification.test): Use the internal string representation
504            when dealing with non-ascii characters
505    
506            * test/test_load_0_8.py (TestUnicodeStrings.test): Use the
507            internal string representation when dealing with non-ascii
508            characters
509    
510            * test/test_save.py (XMLWriterTest.testEncode)
511            (SaveSessionTest.testClassifiedLayer): Use the internal string
512            representation when dealing with non-ascii characters where
513            applicable
514    
515    2005-06-30  Bernhard Herzog  <[email protected]>
516    
517            * test/runtests.py: Untabify.
518    
519    2005-06-30  Bernhard Herzog  <[email protected]>
520    
521            * Thuban/UI/renderer.py (ScreenRenderer.draw_selection_incrementally):
522            untabify.
523    
524    2005-06-30  Bernhard Herzog  <[email protected]>
525    
526            * Extensions/ogr/test/__init__.py: Add missing coding directive
527    
528    2005-06-28  Jan-Oliver Wagner <[email protected]>
529    
530            * Thuban/UI/renderer.py (ScreenRenderer.draw_selection_incrementally):
531            Use the default size for rendering selected items of default type.
532            Fixes part 2 of https://intevation.de/rt/webrt?serial_num=3149
533    
534    2005-06-28  Jan-Oliver Wagner <[email protected]>
535    
536            * Extensions/importAPR/apr.py (APR_BShSym): Extend by 'Stripple'.
537            (APR_TClr.GetThubanColor): Fix bug in color interpretation.
538            Thanks to Frank Koormann who identified this problem.
539    
540            * Extensions/importAPR/importAPR.py (APR_VShSym): New. Just
541            another symbol identified.
542    
543    2005-06-27  Jan-Oliver Wagner <[email protected]>
544    
545            * Doc/manual/thuban-manual-de.xml: More translations.
546    
547    2005-05-12  Jonathan Coles <[email protected]>
548            
549            * Thuban/UI/projdialog.py: Add missing import, which led to an
550            exception when opening a layer's projection.
551    
552    2005-05-09  Bernhard Herzog  <[email protected]>
553    
554            * test/support.py (FileLoadTestCase.filename): Fix doc-string.
555    
556    2005-05-09  Bernhard Herzog  <[email protected]>
557    
558            * Thuban/Model/postgisdb.py (PostGISConnection.connect): Set the
559            connection to autoconnect.  Fixes RT#3148.
560    
561            * test/test_postgis_db.py
562            (TestPostGISSpecialCases.test_simple_error_handling): New test
563            that attempts to reproduce RT#3148.
564    
565    2005-05-06  Jonathan Coles <[email protected]>
566    
567            Add support for saving and loading the opacity and mask type
568            properties of RasterLayers. Also add support for proper use
569            of alpha information while drawing images not in 'RAW' format.
570            If transparency in an image format (e.g, PNG) is supported by
571            wxWidgets then the image would previously have been draw with
572            transparent regions, but the opaque regions would have been
573            unaffected by a change in the layer's opacity. This patch
574            corrects the problem.
575    
576            * Thuban/Model/layer.py (RasterLayer): Added opacity and
577            masktype parameters to the constructor, and set the
578            appropriate variables to those values.
579    
580            * Thuban/Model/load.py (SessionLoader.start_rasterlayer): Added
581            code to read the opacity and mask type of the layer and construct
582            a new layer with the additional parameters.
583    
584            * Thuban/Model/save.py (SessionSaver.write_layer): Added code
585            to save the opacity and mask type of a layer.
586    
587            * Thuban/UI/baserenderer.py (BaseRenderer.draw_raster_layer): Pass
588            the opacity of the layer to draw_raster_data rather than the layer.
589            (BaseRenderer.draw_raster_data): Remove the layer parameter because
590            the function doesn't need to know about the layer. Add the optional
591            opacity parameter whose default is 1.0. Add 'PNG' as a supported
592            graphics format.
593    
594            * Thuban/UI/renderer.py (MapRenderer.draw_raster_data): Fixed
595            signature to match that in BaseRenderer. Use the new opacity argument
596            in place of calling layer.Opacity(). In the case where the
597            format is not 'RAW', alpha_data is None and the loaded image has
598            alpha information, use the file's alpha information. This is
599            still subject to the layer's opacity setting.
600    
601            * test/test_baserenderer.py (SimpleRenderer.draw_raster_data):
602            Fixed signature to match that in BaseRenderer.
603    
604            * test/test_load.py (TestRasterLayer): Change file_contents to
605            include opacity and masktype variables.
606            (TestRasterLayer.test): Include tests for opacity and masktype
607            changes.
608    
609            * test/test_save.py (SaveSessionTest.testRasterLayer): Restructure
610            test to cover a variety of combinations of masktype and opacity
611            settings.
612    
613    2005-05-02  Jan-Oliver Wagner <[email protected]>
614    
615            * debian/rules: add --use-wx-python-swig-hack
616            to the build command.
617            Thanks to Moritz Lennert for pointing this out.
618    
619    2005-04-28  Jan-Oliver Wagner <[email protected]>
620    
621            Introduce OGRFileShapeStore in ogr extension.
622            This allows at least that loaded shapefile shape stores
623            can be saved correctly in the thuban session file
624            and reloaded again (reload is via core shapefile
625            routine, not OGR). For other types, .thuban files
626            can not be reloaded for the time being.
627    
628            * Extensions/ogr/ogrshapes.py (OGRFileShapeStore): New. This
629            class ist to be used for any file-based shape stores
630            accessed through OGR.
631    
632            * Extensions/ogr/ogrstart.py (open_with_ogr): Added
633            forgotten _ for i18n. Adapted call OpenFileShapestore
634            regarding new parameter.
635            (OpenFileShapestore): Use OGRFileShapeStore instead of
636            OGRShapeStore. Fix return value (None instead of null).
637            Add new parameter "mainwindow" to avoid accessing global
638            context.
639    
640    2005-04-27  Jan-Oliver Wagner <[email protected]>
641    
642            Introduce FileShapeStore as generalization for
643            file-based shape stores. In a first instance
644            this allows additional modules to handle shapefile
645            format as well, namely the OGR extension.
646    
647            * Thuban/Model/data.py: Various small fixes in doc-strings.
648            (FileShapeStore): New class.
649            (ShapefileStore): Derive from FileShapeStore.
650            (ShapefileStore.__init__): Call __init__ of FileShapeStore,
651            rename self.table to self._table, initialize self._bbox
652            (ShapefileStore._open_shapefile): Use self._bbox instead of self.bbox
653            and self.FileName() instead of self.filename.
654            (ShapefileStore.Table): Use self._table instead of self.table.
655            (ShapefileStore.FileName): Removed (moved to FileShapeStore).
656            (ShapefileStore.BoundingBox):  Use self._bbox instead of self.bbox.
657    
658            * Thuban/Model/save.py: Replace ShapefileStore by FileShapeStore.
659            (SessionSaver.write_data_containers): Only use methods of the
660            base class FileShapeStore.
661    
662    2005-04-26  Martin Schulze  <[email protected]>
663    
664            * Extensions/wms/wms.py (render_wms_layer): Adjusted the render
665            function to the modified render engine
666    
667    2005-04-25  Martin Schulze  <[email protected]>
668    
669            * Thuban/UI/renderer.py (MapRenderer.projected_raster_layer):
670            Added a description according to the CVS log message
671    
672    2005-04-23  Martin Schulze  <[email protected]>
673    
674            * Thuban/UI/renderer.py: Added a missing import
675    
676    2005-04-23  Russell Nelson  <[email protected]>
677    
678            * Thuban/UI/view.py (MapCanvas.OnMiddle{Up,Down}): Changed the
679            way the previous tool is remembered, so that middle-button
680            panning works even if you haven't selected a tool.
681    
682    2005-04-11  Bernhard Herzog  <[email protected]>
683    
684            * libraries/thuban/wxproj.cpp: Move the compatibility code that
685            deals with the wxPython 2.4 version of wxPython.h into the #ifdef
686            branch that includes wxPython.h because it's only needed when
687            wxPython.h is used.  Also, it won't compile when
688            USE_WX_PYTHON_SWIG_HACK is set otherwise.
689    
690    2005-04-07  Bernhard Herzog  <[email protected]>
691    
692            * Thuban/UI/classifier.py (ClassGrid.__init__): Use -1 as the ID.
693            (ID_CLASS_TABLE): Removed. It wasn't used anywhere except in
694            ClassGrid.__init__ and it's value is outside of the valid
695            range (must be < 32768).  wxPython 2.5 complains about it with an
696            exception.
697    
698    2005-04-05  Jan-Oliver Wagner <[email protected]>
699    
700            * Doc/manual/thuban-manual-de.xml: More translations.
701    
702    2005-04-05  Bernhard Herzog  <[email protected]>
703    
704            * libraries/thuban/wxproj.cpp: Make it work with a wxPython.h from
705            wxPython 2.4 as well.  Also, remove a now obsolete comment.
706    
707    2005-04-05  Bernhard Herzog  <[email protected]>
708    
709            Use wxPython.h by default but provide a workaround when it isn't
710            available.
711    
712            * setup.py (wxproj_extension): New variable.  Assign the Extension
713            instance for Lib.wxproj to this variable instead of putting it
714            directly into the listso that it can be accessed by other code
715            later.
716            (thuban_build_ext.user_options): Added boolean option
717            --use-wx-python-swig-hack.
718            (thuban_build_ext.initialize_options): Initialize the new option
719            to False.
720            (thuban_build_ext.finalize_options): If the new option was given,
721            define the preprocesser macro USE_WX_PYTHON_SWIG_HACK.
722            (thuban_build_ext): Update the doc-string
723    
724            * libraries/thuban/wxproj.cpp: Normally we use
725            wx/wxPython/wxPython.h now.  Only if USE_WX_PYTHON_SWIG_HACK is
726            defined, use swigPtrConvertHack.h instead.
727    
728            * libraries/thuban/swigPtrConvertHack.h: Remove the code that was
729            copied over from wxPython.h.
730            (decode_pointer_new): New.  Equivalent of decode_pointer for
731            wxPython 2.5.
732            (wxPyConvertSwigPtr): Modified to cope with wxPython 2.5 as well.
733    
734            * README: Add section on potential build problems which explains
735            how the work-around for a missing wxPython.h is activated.
736    
737    2005-03-29  Bernhard Herzog  <[email protected]>
738    
739            * test/postgissupport.py (find_postgis_sql): Added yet another
740            potential location for (lw)postgis.sql because the file has moved
741            again in postgis 1.0.0 rc4.
742    
743    2005-03-29  Bernhard Herzog  <[email protected]>
744    
745            * Thuban/UI/legend.py (BMP_SIZE_W, BMP_SIZE_H): Set both to 16 to
746            match the site of the legend_icon_layer icon.  Otherwise wxpython
747            2.5 complains when the legend is created with the error:
748    
749            PyAssertionError: C++ assertion "(bitmap.GetWidth() == m_width &&
750            bitmap.GetHeight() == m_height) || (m_width == 0 && m_height ==
751            0)" failed in ./src/generic/imaglist.cpp(81): invalid bitmap size
752            in wxImageList: this might work on this platform but definitely
753            won't under Windows.
754    
755    2005-03-23  Jonathan Coles <[email protected]>
756    
757            These changes add support for adjusting the opacity of a raster layer.
758    
759            * Thuban/Model/layer.py (RasterLayer.Opacity): Replaces AlphaOpacity.
760            (RasterLayer.SetOpacity): Replaces SetAlphaOpacity. Also triggers
761            a LAYER_CHANGED event if the opacity actually changes.
762    
763            * Thuban/UI/baserenderer.py (BaseRenderer.draw_raster_data): Added
764            layer parameter needed in the implementation of this method in
765            renderer.py.
766    
767            * Thuban/UI/layerproperties.py (LayerProperties.dialog_layout): Fixed
768            typo 00 -> 0.
769    
770            * Thuban/UI/rasterlayerproperties.py (RasterLayerProperties): Added
771            control to adjust opacity.
772    
773            * Thuban/UI/renderer.py (MapRenderer.draw_raster_data): Scale the
774            alpha data based on the opacity level of the layer.
775    
776            * test/test_baserenderer.py (SimpleRenderer.draw_raster_data): Now
777            accepts a layer parameter.
778    
779            * test/test_layer.py (TestLayerModification.test_raster_layer):
780            Rename opacity method calls and add test for LAYER_CHANGED.
781    
782    2005-03-16  Bernhard Herzog  <[email protected]>
783    
784            * test/test_connector.py (DeletionTestMixin.check_deletions)
785            (DeletionTestMixin.check_deletetions): renamed to check_deletions.
786            update the callers.
787    
788    2005-03-14  Jan-Oliver Wagner <[email protected]>
789    
790            * Doc/manual/thuban-manual-de.xml: More translations.
791    
792    2005-03-10  Jan-Oliver Wagner <[email protected]>
793    
794            Introducing initialization callbacks for extensions.
795    
796            * Thuban/UI/extensionregistry.py (ExtensionDesc.__init__): Added
797            optional parameter init_callback.
798            (ExtensionDesc.init_ext): New. Executes the callback and sets
799            a status.
800    
801            * Thuban/UI/application.py (ThubanApplication.OnInit): Add the
802            initialization of the extensions.
803            (ThubanApplication.init_extensions): Init all extensions.
804    
805            * Thuban/UI/about.py (About.__init__): Added status of the extensions
806            to the about text.
807    
808            * Extensions/gns2shp/__init__.py: Added init method for Extension
809            description.
810            (init): New. Contains the initialization of the module.
811    
812    2005-03-04  Nina H�ffmeyer <[email protected]>
813    
814            * Extensions/ogr/ogrdialog.py: Added a dialog, which asks for
815            OGRConnection to open a datasource. Removed dialog to display all
816            available drivers. Added some doc strings.
817    
818            * Extensions/ogr/ogrstart.py: Added menu entry for opening an
819            OGRDatasource with a string. Added two opening methods which return an
820            OGRDatasource (either data from file or from DB).
821    
822            * Extensions/ogr/ogrshapes.py: Added class OGRGeometry, which
823            represents a geometry reference of an OGRFeature. OGRShape now has a
824            list of referenced geometry objects (important for geometry
825            collections).
826            For OGRShapeStores loaded from a DB an ID column can be specified now.
827    
828    2005-02-22  Jan-Oliver Wagner <[email protected]>
829    
830            * test/test_map.py (TestMapWithContents.test_tree_info):
831            Added label layer for comparison.
832    
833    2005-02-18  Jonathan Coles <[email protected]>
834    
835            * libraries/thuban/gdalwarp.cpp (GetImageData): Optimize the loop
836            which builds a mask. Handle the majority of an image in a loop,
837            creating 8 bits at a time. Later, handle the edge case where less
838            than 8 bits are packed.
839    
840    2005-02-18  Bernhard Herzog  <[email protected]>
841    
842            * test/test_baserenderer.py (TestBaseRenderer.setUp): Fix
843            doc-string
844    
845    2005-02-18  Jonathan Coles <[email protected]>
846    
847            * setup.py: Remove wx_cs_params from gdal compile options.
848    
849    2005-02-18  Jonathan Coles <[email protected]>
850    
851            Refactored baserenderer.py and renderer.py to remove baserenderer.py's
852            dependencies on wxPython. Added a new method projected_raster_layer()
853            that returns a raster layer image in projected space. This must be
854            implemented in classes derived from BaseRenderer. This also eliminates
855            the dependency on gdal in baserenderer.py.
856    
857            * Thuban/UI/baserenderer.py (BaseRenderer.draw_raster_layer): Call
858            new projected_raster_layer() to get projected raster image instead
859            of directly calling ProjectRasterFile().
860            (BaseRenderer.projected_raster_layer): New. This must be implemented
861            by derived classes. It takes almost the same arguments as ProjectRasterFile
862            did and returns a projected image with mask and alpha data (if requested).
863            (BaseRenderer.render_map_incrementally): Remove the check for gdal since
864            that check will be done in MapRenderer.projected_raster_layer(). This
865            also allows other implementations to use different projection code.
866    
867            * Thuban/UI/renderer.py (MapRenderer.projected_raster_layer):
868            Implementation of BaseRenderer.projected_raster_layer. Checks for
869            gdal support and wxPython version. Also handles exceptions from
870            ProjectRasterFile.
871    
872            * libraries/thuban/gdalwarp.cpp: Removed checks for wxPython versions
873            and added a variable which can be set through the options argument
874            of ProjectRasterFile.
875    
876            * test/test_baserenderer.py (SimpleRenderer.projected_raster_layer): New.
877            Calls ProjectRasterFile and returns the result.
878            (TestBaseRenderer.test_projected_raster_layer): New. Tests the results
879            of calling projected_raster_layer() with different options.
880            (TestBaseRenderer.test_raster_no_projection): Removed tests based on
881            wxPython version and all tests of masks and alpha channels. These are
882            now in test_projected_raster_layer().
883    
884    2005-02-17  Jan-Oliver Wagner <[email protected]>
885    
886            * Thuban/Model/map.py, Thuban/Model/label.py: Fixed
887            doc-strings to comply with coding_guidelines.
888    
889    2005-02-17  Jan-Oliver Wagner <[email protected]>
890    
891            Docstring improvements and minor fixes for labellayer.
892    
893            * Thuban/Model/map.py:
894            (Map, Map.Destroy, Map.RemoveLayer, Map.ClearLayers,
895            Map.Layers, Map.HasLayers, Map.MoveLayerToTop,
896            Map.RaiseLayer, Map.LowerLayer, Map.MoveLayerToBottom,
897            Map.ProjectedBoundingBox, Map.GetProjection): Improved/added
898            doc string.
899            (Map.BoundingBox): Removed superfluous test for label_layer
900            and improved doc string.
901            (Map.TreeInfo): Added label_layer and improved sdo string.
902    
903            * Thuban/Model/label.py: Added import of _.
904            (Label, Label.__init__): Improved/added doc string.
905            (LabelLayer, LabelLayer.__init__, LabelLayer.Labels,
906            LabelLayer.RemoveLabel, LabelLayer.ClearLabels):
907            Improved/added doc string.
908            (LabelLayer.AddLabel): Use already defined names for
909            align strings and improved doc string.
910            (LabelLayer.TreeInfo): New. Return the object data for
911            the tree view.
912    
913    2005-02-16  Jonathan Coles <[email protected]>
914    
915            Further wxPython 2.5 changes using patches from Daniel Calvelo Aros
916            so that that wxproj doesn't crash. Added GUI support for selecting
917            alpha channel (opacity can't be selected yet).
918    
919            NOTE: If wxPython.h is including in future distribution packages
920            then it will not be necessary to have the files swigPtrConvertHack.h
921            and wxPython_int.h included with Thuban. This is hopefully
922            a temporary workaround.
923    
924            * setup.py (thuban_build_ext.finalize_options): gdalwarp needs
925            access to the macro wxCHECK_VERSION so that it will properly
926            generate a bit mask. There was a problem between wx2.4 and wx2.5
927            that this works around.
928    
929            * Thuban/Model/layer.py (RasterLayer.UseMask): Removed in favor
930            of RasterLayer.MaskType.
931            (RasterLayer.SetUseMask): Removed in favor of RasterLayer.SetMaskType
932            (RasterLayer.MaskType): New. Returns the type of mask to use. Can
933            specify none, a bitmap, or an alpha channel.
934            (RasterLayer.SetMaskType): New. Set what kind of mask to use.
935    
936            * Thuban/UI/baserenderer.py (BaseRenderer.draw_raster_layer):
937            Set the raster warping options for the mask based on the value
938            of RasterLayer.MaskType.
939    
940            * Thuban/UI/legend.py (LegendTree.__FillTreeLayer): Remove
941            deprecated calls to SetItemSelectedImage in favor of SetItemImage
942            with wxTreeItemIcon_Selected.
943    
944            * Thuban/UI/rasterlayerproperties.py: Support selecting to use
945            an alpha channel for the mask.
946    
947            * Thuban/UI/renderer.py (MapRenderer.draw_raster_data): Use alpha
948            data if it is available and an alpha channel is supported under
949            the current version of wxPython.
950    
951            * libraries/thuban/gdalwarp.cpp (GetImageData): Added compiler define
952            to select whether 1's or 0's select the desired portion of an image
953            in the bit mask. wx2.4 has a bug where the documentation is the opposite
954            from behavior.
955            (ProjectRasterFile): Only generate an alpha channel if the version
956            of wxPython is >= 2.5.3.
957    
958            * libraries/thuban/wxproj.cpp: Applied patches from Daniel Calvelo Aros.
959            When wxPython >= 2.5.3 use the special swig functions to decode an
960            object's address.
961    
962            * libraries/thuban/swigPtrConvertHack.h: Includes conditional code
963            based on the version of wxPython. If >= 2.5.3 use the special swig
964            functions from wxPython to decode wxPython objects, otherwise use
965            the old method of retrieving the address from the object __repr__ string.
966    
967            * libraries/thuban/wxPython_int.h: Copied from wxPython source.
968            Unnecessary code was removed to make it smaller.
969    
970            * test/test_baserenderer.py (TestBaseRenderer.test_raster_no_projection):
971            Add tests for returning an alpha channel.
972    
973            * test/test_layer.py (TestLayerModification.test_raster_layer): Fix
974            tests that used removed functions UseMask and SetUseMask
975    
976    
977    2005-02-08  Bernhard Herzog  <[email protected]>
978    
979            More wxPython 2.5 changes.  This time taken from a patch from
980            Daniel Calvelo Aros.
981    
982            * Thuban/UI/tableview.py (QueryTableFrame.__init__)
983            (QueryTableFrame.__init__): Pass the size of a spacer as a single
984            item.
985    
986            * Thuban/UI/projdialog.py (ProjFrame.build_dialog)
987            (ProjFrame.build_dialog): Pass the size of a spacer as a single
988            item.
989    
990            * Thuban/UI/dbdialog.py (ChooseDBTableDialog.__init__): Pass the
991            size of a spacer as a single item.
992    
993            * Thuban/UI/classifier.py (Classifier.dialog_layout): Pass the
994            size of a spacer as a single item.
995    
996    2005-02-08  Bernhard Herzog  <[email protected]>
997    
998            Compatibility with wxPython 2.5.  The changes should make it work
999            better with 2.5 while still keeping compatibility with 2.4.  There
1000            are still problems with 2.5, though.
1001    
1002            * Thuban/UI/dock.py (DockableWindow.__CreateBorder): Pass the size
1003            of a spacer as a single item.
1004    
1005            * Thuban/UI/classifier.py (ClassGroupPropertiesCtrl): Derive only
1006            from wxControl
1007    
1008            * Thuban/UI/legend.py (LegendTree): When running with wxPython <
1009            2.5, add an implementation of the GetFirstChild method that does
1010            not require the second parameter.
1011            (LegendTree.find_layer, LegendTree._OnMsgMapLayersAdded)
1012            (LegendTree._OnMsgMapLayersRemoved, LegendTree.DeleteAllItems)
1013            (LegendTree.DeleteChildren, LegendTree.__ShowHideLayer): Do not
1014            pass the second parameter to GetFirstChild
1015    
1016    2005-02-08  Nina H�ffmeyer <[email protected]>
1017    
1018            * Extensions/ogr/ogrshapes.py: Removed some print commands.
1019    
1020            * Extensions/ogr/ogrstart.py: Changed the GUI. OGR is no longer an
1021            additional menu but appears as a possibility in the menu Map.
1022    
1023    2005-02-07  Jonathan Coles <[email protected]>
1024            * libraries/thuban/gdalwarp.cpp: Removed the macros PYTHON_ERR
1025            and PYTHON_ERRF since they were no longer necessary.
1026    
1027    2005-02-07  Bernhard Reiter <[email protected]>
1028            * Thuban/UI/classifier.py (ClassGrid.DeleteSelectedRows):
1029            Enable translation for message string.
1030    
1031    2005-02-06  Martin Schulze  <[email protected]>
1032    
1033            * Extensions/wms/infodialog.py (wmsInfoDialog.__init__): Adjusted
1034            the arguments of the contstructor to fit the global scheme
1035    
1036    2005-01-31  Nina H�ffmeyer <[email protected]>
1037    
1038            * Extensions/ogr/ogrdialog.py: Added class ogrdialog.py, which provides
1039            some dialogs needed to start ogr.
1040            
1041            * Extensions/ogr/__init__.py: Changed comments to avoid encoding
1042            warnings.
1043    
1044            * Extensions/ogr/test/test_OGRShapestore.py: Changed comments to avoid
1045            encoding warnings.
1046    
1047    2005-01-28  Jonathan Coles <[email protected]>
1048    
1049            * libraries/thuban/gdalwarp.cpp (GetImageData): Recode how the
1050            mask is packed into a bit array. It's now slightly faster.
1051    
1052    2005-01-28  Jonathan Coles <[email protected]>
1053    
1054            * Thuban/Model/layer.py (RasterLayer.__init__): Make use_mask
1055            default to true.
1056    
1057            * Thuban/Model/load.py (SessionLoader.start_rasterlayer): Remove
1058            code that loads the state of the layer's use_mask flag. Its
1059            usefulness is still being debated.
1060    
1061            * Thuban/Model/save.py (SessionSaver.write_layer): Remove
1062            code that saves the state of the layer's use_mask flag. Its
1063            usefulness is still being debated.
1064    
1065            * Thuban/UI/baserenderer.py (BaseRenderer.draw_raster_layer): Pass
1066            options to ProjectRasterFile based on the state of layer.UseMask().
1067            Catch more exceptions from ProjectRasterFile so that Thuban doesn't
1068            quit is there is a problem projecting.
1069            (BaseRenderer.draw_raster_data): Change the documentation to
1070            describe the new format (XBM) that the mask data will be in.
1071    
1072            * Thuban/UI/renderer.py (MapRenderer.draw_raster_data): The mask
1073            data is in XBM format when format='RAW' which means it doesn't
1074            need to be converted to a wxImage before being used as a mask
1075            for a wxBitmap. Assume that if format != 'RAW' that the image
1076            data and mask data are in the same format.
1077    
1078            * libraries/thuban/gdalwarp.cpp (GetImageData): If alpha is enabled
1079            and a mask is requested, convert the alpha band to a bit array in
1080            XBM format. if an alpha channel is requested, simply return the
1081            data in the alpha band. Provide better error handling by returning
1082            python error messages (also fixes RT #2947).
1083            (ProjectRasterFile): Support multiple mask options, rather than simply
1084            a flag indicating that a mask should or should not be used. Provide
1085            better error handling by returning python error messages.
1086    
1087            * test/test_baserenderer.py (TestBaseRenderer.test_raster_no_projection):
1088            Add mask data to test.
1089    
1090            * test/test_layer.py (TestLayer.test_raster_layer): Test that a layer
1091            should use the mask by default.
1092            (TestLayerModificaton.test_raster_layer): Test that a layer should use
1093            the mask by default.
1094    
1095            * test/test_load.py (TestRasterLayer.test): Remove testing for
1096            use_mask flag in file.
1097    
1098            * test/test_save.py (SaveSessionTest.testRasterLayer): Remove testing
1099            for use_mask in file.
1100    
1101            * test/test_load_1_0_1.py: Removed. Shouldn't have been checked in.
1102            
1103    2005-01-26  Jonathan Coles <[email protected]>
1104    
1105            Add a new dialog box for raster layers. The dialog box allows
1106            the user to toggle a mask that is generated by ProjectRasterFile
1107            and is used to only draw the real parts of the projected image.
1108    
1109            * Thuban/UI/baserenderer.py (BaseRenderer.draw_raster_layer):
1110            Instruct the warping code to generate a mask if the raster layer
1111            requests one.
1112            (BaseRenderer.draw_raster_data): Removed obsolete optional mask argument.
1113    
1114            * Thuban/UI/renderer.py (MapRenderer.draw_raster_data): Removed
1115            obsolete optional mask argument.
1116    
1117            * Thuban/UI/classifier.py (Classifier): Change the parent class
1118            to LayerProperties and rework the code to support layout calls
1119            from the parent.
1120            (Classifier.dialog_layout): New. Layout the dialog box.
1121            (Classifier.map_layers_removed): Removed. Moved to parent class.
1122            (Classifier.map_replaced): Removed. Moved to parent class.
1123            (Classifier._OnTry): Renamed to OnTry to support parent class.
1124            (Classifier.OnClose): Removed. Supplied in parent class.
1125            (Classifier._OnCloseBtn): Removed. Supplied in parent class as OnCloseBtn.
1126            (Classifier._OnOK): Renamed to OnOK to support parent class.
1127            (Classifier._OnRevert): Renamed to OnRevert to support parent class.
1128    
1129            * Thuban/UI/layerproperties.py: New. Base class for layer properties
1130            dialog boxes.
1131    
1132            * Thuban/UI/rasterlayerproperties.py: New. Class for displaying
1133            raster layer properties.
1134    
1135            * libraries/thuban/gdalwarp.cpp: Replace the old gdalwarp.cpp code
1136            with the non-simple version supplied with gdal. This allows added
1137            features such as creating an alpha band.
1138            (GetImageData): Generate a mask array from the alpha band that is
1139            generated by gdal if the user has selected it. Try to support images
1140            that have more than three bands, such as images with RGB plus an
1141            alpha band.
1142            (ProjectRasterFile): Convert python argument for mask and tell
1143            gdal to enable or disable an alpha band.
1144    
1145            * Thuban/Model/layer.py (BaseLayer.Type): New. Returns a string
1146            describing what kind of layer the class is. Defaults to "Unknown",
1147            but should be overridden by subclasses.
1148            (Layer.Type): New. Override base class method.
1149            (RasterLayer.__init__): Create a flag for using a mask. Record extra
1150            data from gdal for display in the properties dialog.
1151            (RasterLayer.Type): New. Override base class method.
1152            (RasterLayer.UseMask): New. Returns True if the mask should be used.
1153            (RasterLayer.SetUseMask): New. Set if the mask should be used.
1154            (RasterLayer.ImageInfo): New. Return extra information about the image.
1155    
1156            * Thuban/Model/load.py (SessionLoader.start_rasterlayer): Load
1157            the mask information.
1158    
1159            * Thuban/Model/save.py (SessionSaver.write_layer): Save mask information.
1160    
1161            * Thuban/UI/mainwindow.py: Register the RasterLayerProperties and
1162            Classifier classes as dialogs to use with the proper layer types.
1163    
1164            * test/test_baserenderer.py (TestBaseRenderer.test_raster_no_projection):
1165            Fix test.
1166    
1167            * test/test_layer.py (TestLayer.test_raster_layer): Test new methods.
1168            (TestLayerModification.build_path): New. Support function.
1169            (TestLayerModification.test_raster_layer): New. Test new methods.
1170    
1171            * test/test_save.py (SaveSessionTest.testRasterLayer): Add tests for mask.
1172    
1173            * test/test_load.py (TestRasterLayer): Add tests for mask.
1174    
1175            * test/test_load_1_0_1.py: New. Copied from test_load.py.
1176    
1177            * test/test_baserenderer.py (SimpleRenderer.draw_raster_data): Removed
1178            obsolete optional mask argument.
1179    
1180    2005-01-26  Nina H�ffmeyer <[email protected]>
1181    
1182            * Extensions/ogr/ogrshapes.py: Added two dictionaries to ShapeStore
1183            which maps the ids and the ordinals. Fixed RowIdToOrdinal(),
1184            RowOrdinalToId() and ReadRowAsDict().
1185    
1186            * Extensions/ogr/ogrstart.py: Added menu item which opens database
1187            layers for existing database connections.
1188    
1189            * Extensions/ogr/test/test_OGRShapestore.py: Fixed a message string.
1190    
1191    
1192    2005-01-26  Jan-Oliver Wagner <[email protected]>
1193    
1194            * Doc/manual/thuban-manual-de.xml: More translations.
1195    
1196  2005-01-24  Bernhard Herzog  <[email protected]>  2005-01-24  Bernhard Herzog  <[email protected]>
1197    
1198          Rework the status bar updates a bit to make sure the message about          Rework the status bar updates a bit to make sure the message about
# Line 576  Line 1771 
1771    
1772          * Thuban/UI/about.py (About.__init__): Added          * Thuban/UI/about.py (About.__init__): Added
1773          Norbert Solymosi for hungarian translation and Ole Rahn          Norbert Solymosi for hungarian translation and Ole Rahn
1774          as contrbutor. Moved Bernhard Reiter from Contributor          as contributor. Moved Bernhard Reiter from Contributor
1775          to Developer.          to Developer.
1776    
1777  2004-11-27  Bernhard Reiter <[email protected]>  2004-11-27  Bernhard Reiter <[email protected]>

Legend:
Removed from v.2544  
changed lines
  Added in v.2723

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26