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

Legend:
Removed from v.2480  
changed lines
  Added in v.2709

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26