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

Legend:
Removed from v.2535  
changed lines
  Added in v.2724

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26