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

Legend:
Removed from v.2430  
changed lines
  Added in v.2688

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26