/[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 1760 by bh, Fri Sep 26 18:36:12 2003 UTC revision 2712 by bernhard, Sun Oct 15 23:27:05 2006 UTC
# Line 1  Line 1 
1    2006-10-15 Bernhard Reiter <[email protected]>
2    
3            * Thuban/UI/renderer.py: Added module variable verbose and
4            added verbose output before doing a raster projection.
5            Minor: Added (c) year 2006.
6    
7            * test/test_baserenderer.py: Added new function
8            test_projected_raster_decimalcommalocale()
9            Added new author Bernhard Reiter and new copyright year 2006.
10    
11            * libraries/thuban/gdalwarp.cpp(ProjectRasterFile): Adding
12            switching to LC_NUMERIC "C" and back before calling GDAL functions -
13            only #if python >=2.4 .
14    
15    2006-10-10 Didrik Pinte <[email protected]>
16    
17            Win32 build updates
18    
19            * setup.py :
20                - update to the latest libs for win32 setup tasks
21                    - added gdal and Lib content to the inno setup build task
22                    - added stable and experimental extensions to setup packages
23    
24            * thuban.py :
25                    - gdal support for win32 inno installation
26    
27    2006-10-10 Didrik Pinte <[email protected]>
28    
29            * Thuban/Model/layer.py (Layer.GetLabelPosFromShape): new method
30            extracted from Thuban/UI/viewport.py
31            * Thuban/UI/viewport.py (Viewport.LabelShapeAt): uses new method
32    
33    2006-09-28 Didrik Pinte <[email protected]>
34    
35            * Thuban/UI/classgen.py: bugfix due to wx2.6 update
36    
37            * Thuban/UI/view.py: removed non needed declaration
38    
39            * Thuban/UI/selection.py : typo correction
40    
41    2006-09-24 Bernhard Reiter <[email protected]>
42    
43            * Thuban/Model/proj.py(_do_we_have_to_work_around_broken_proj):
44            Making the test more robust for observed python 2.3 problems
45            with setlocale().
46    
47            * test/runtests.py: Added new option ---setdecimalcommalocale
48            to run all tests with an LC_NUMERIC that uses comma as decimal_point.
49            Minor: Added (c) year 2006. Fixed typo in a docstring.
50    
51            * test/test_transientdb.py: Minor: Added (c) year 2006. Fixed typo in
52            a docstring.
53    
54    2006-09-23 Bernhard Reiter <[email protected]>
55    
56            * Extensions/ogr/test/test_OGRShapestore.py: fixed skip_if_no_ogr()
57            and added it to TestOGRTable.setUp() so that all tests get skipped
58            if ogr cannot be imported. Added (c) year 2006.
59    
60    2006-09-18 Didrik Pinte <[email protected]>
61            
62            * wxPython 2.6 update : wx 2.4 syntax has been updated to 2.6
63            
64    2006-09-18 Bernhard Reiter <[email protected]>
65    
66            Fixed proj behaviour with python >=2.4 when decimal_point != '.'.
67    
68            * Thuban/UI/application.py: Fixed warning dialog when gdal is missing.
69    
70            * test/test_proj.py: new test_lc_numeric_robustness(). Added author
71            Bernhard Reiter and new copyright year 2006.
72    
73            * Thuban/Model/proj.py: New _do_we_have_to_work_around_broken_proj()
74            and Projection.assuregoodlocale(), Projection.assureinitlocale().
75            Added author Bernhard Reiter and (c) 2006.
76    
77    2006-09-15 Bernhard Reiter <[email protected]>
78    
79            * README: added RXP and pyRXP as optional for tests.
80    
81            * test/localessupport.py: New. Contains a helper function
82            to find a locale with comma used as decimal_point.
83    
84    2006-08-31 Bernhard Reiter <[email protected]>
85    
86            * README: fixed URLs to sqlite and pysqlite.
87    
88            * Thuban/UI/about.py: Added Didrik Pinte as contributor. Extended
89              copyright range to include 2006.
90    
91    2006-06-29 Didrik Pinte <[email protected]>
92    
93            * Thuban/UI/main.py: circular import fix.
94    
95    2006-06-27 Frank Koormann <[email protected]>
96    
97            New Classification "Pattern": Classify text attributes by regexp.
98    
99            * Thuban/Model/classification.py (class ClassGroupPattern):
100            New, group is associated with a regular expression.
101            (Classification._compile_classification): Store compiled regexp and
102            original group for pattern.
103            (Classification.FindGroup): Added pattern.
104    
105            * Thuban/UI/classifier.py
106            (ClassGrid._OnLabelRightClicked, ClassGrid.labelPopup):
107            New, add popup to select singleton/pattern.
108            (ClassTable.GetRowLabelValue, ClassTable.GetValueAsCustom,
109            ClassTable.SetValueAsCustom): Added pattern.
110            (ClassTable.__ParseInput): Autodetect singleton/pattern.
111    
112            * Thuban/Model/save.py (SessionSaver.write_classification):
113            Added pattern.
114    
115            * Thuban/Model/load.py (SessionLoader.start_clpattern,
116            SessionLoader.end_clpattern): New, process pattern elements.
117    
118            * test/test_classification.py (class TestClassGroupPattern): New.
119            (TestClassification.test_add_pattern,
120            TestClassification.test_multiple_groups_textual,
121            TestClassification.test_deepcopy_textual): New.
122            (TestClassification.test_multiple_groups_numerical):
123            Renamed test_multiple_groups.
124            (TestClassification.test_deepcopy_numerical): Renamed test_deepcopy.
125    
126            * test/test_save.py (SaveSessionTest.testClassifiedLayer):
127            Added pattern.
128    
129            * test/test_load.py (ClassificationTest.TestLayers, TestClassification):
130            Added pattern.
131    
132            * test/test_layer.py
133            (TestLayerModification.test_set_classification_textual): New
134            (TestLayerModification.test_set_classification_numerical):
135            Renamed test_set_classification.
136    
137            * Doc/manual/thuban-manual.xml: Added pattern to layer classification
138            description.
139    
140            * Resources/XML/thuban-1.1.dtd: Added clpattern element and attribs.
141    
142    2006-06-29 Didrik Pinte <[email protected]>
143    
144            * Thuban/version.py: Bugfix determination of SQLite, the wright one !
145              
146    2006-06-28 Didrik Pinte <[email protected]>
147    
148            * packaging/windows/thubanstart.py: sample file loading all the stable
149            extensions
150            
151    2006-06-28 Didrik Pinte <[email protected]>
152    
153            * Thuban/version.py: Bugfix determination of SQLite on old and recent
154            systems (support pysqlite1 and pysqlite2)
155    
156    2006-06-27 Frank Koormann <[email protected]>
157    
158            * Thuban/version.py: Bugfix determination of SQLite on old systems.
159    
160    2006-05-17 Didrik Pinte <[email protected]>
161            * Extensions/ogr/__init__.py : updated test for win32 and correct
162            imports
163    
164    2006-05-15 Didrik Pinte <[email protected]>
165            Ashamed ... still some tabs in the files
166    
167      * Thuban/version.py : tabs removed    
168      * Thuban/Model/transientdb.py : tabs removed
169    
170    2006-05-15 Didrik Pinte <[email protected]>
171    
172      * Thuban/version.py : coding style correction
173      * Thuban/Model/transientdb.py : coding style correction
174    
175    2006-05-15 Didrik Pinte <[email protected]>
176    
177      * Thuban/version.py : Updated imports to support pysqlite2
178    
179      * Thuban/Model/transientdb.py : Updated imports to support pysqlite2
180            Patched the querying system to support the param style of pysqlite2
181    
182    2006-04-24 Didrik Pinte <[email protected]>
183            * Extensions/svgexport/__init__.py: The extension now works on win32
184            architecture. Bug #87 corrected.
185    
186    2006-04-20 Bernhard Reiter <[email protected]>
187            * Doc/technotes/coding_guidelines.txt: Changed text from CVS to SVN.
188            Removed emacs specific hint and replaced it with a general hint
189            that editors might support writing changelogs.
190    
191    2006-04-12 Bernhard Reiter <[email protected]>
192    
193            * Thuban/version.py: Changed thuban_release mechanism to use "svn"
194            instead of "cvs".
195    
196    2006-03-31  Bernhard Reiter <[email protected]>
197    
198            * libraries/thuban/wxproj.cpp: including proj_api.h instead of
199            projects.h now. According the Frank Warmerdam and man pj_init
200            this is the public interface to proj. Thus I have changed PJ to projPJ.
201            And I could remove the hack to avoid clashes with typedef PVALUE
202            and #define LP in projects.h clashing with symbols when trying to
203            build on windows. The file is cleaner and nicer now.
204    
205    2006-03-29  Bernhard Reiter <[email protected]>
206    
207            * libraries/thuban/wxproj.cpp: undef LP to avoid clash when
208            trying to build with mingw.
209    
210    2005-10-18  Bernhard Reiter <[email protected]>
211    
212            * Thuban/UI/about.py: remove unused import of getdefaultlocale.
213            Added display of internal encoding to the about dialog text.
214    
215            * Extensions/svgexport/__init__.py: changed version to "1.0.0+cvs".
216    
217    2005-10-18  Bernhard Reiter <[email protected]>
218    
219            Startup improved: We fail right away if the internal encoding could
220            not be determined.
221    
222            * Thuban/__init__.py (get_internal_encoding): new.
223    
224            * test/test_stringrepresentation.py (class TestInternalEncoding):
225            Preserve the internal encoding for the tests in this class.
226    
227    2005-10-17  Bernhard Reiter <[email protected]>
228    
229            * test/test_stringrepresentation.py: New file, for now testing
230            that set_internal_coding() is throwing an exception for bad exceptions.
231    
232            * Thuban/__init__.py (set_internal_encoding): added a forwards
233            and backward translation, so that we fail early if the
234            internal_encoding is bad.
235    
236    2005-10-17  Bernhard Reiter <[email protected]>
237    
238            svgexport 1.0.0cvs: Fixed ARC layer writing: No filling is done.
239            You could actually get polylines with filling in between,
240            when the classification for the lines had a fill color.
241            E.g. this happens when you generate a classification from a ramp.
242    
243            * Extensions/svgexport/test/test_svgmapwriter.py:
244            New test_export_arc_no_fill(). Extend copyright notice to 2005.
245    
246            * Extensions/svgexport/svgmapwriter.py
247            (SVGRenderer.draw_shape_layer_incrementally()):
248            Setting TRANSPARENT_BRUSH for shaptype ARC.
249            Extend copyright notice to 2005.
250    
251            * Extensions/svgexport/__init__.py: Extend copyright notice to 2005.
252    
253    2005-09-08  Frank Koormann <[email protected]>
254    
255            * Doc/manual/thuban-manual.xml (Map Management): Fixed typo reported
256            by Erik (sigra.at.home.se)
257    
258    2005-08-18  Jan-Oliver Wagner <[email protected]>
259    
260            * Thuban/UI/renderer.py (ScreenRenderer.draw_selection_incrementally):
261            Call the right method for the default size.
262    
263    2005-08-11  Jan-Oliver Wagner <[email protected]>
264    
265            * Extensions/export_shapefile: New.
266    
267            * Extensions/export_shapefile/__init__.py: New. Initialize
268            the export_shapefile extension.
269    
270            * Extensions/export_shapefile/export_shapefile.py: New.
271            Exports a layer as a Shapefile.
272    
273    2005-08-08  Jan-Oliver Wagner <[email protected]>
274    
275            * po/de.po: String fixes. This fixes Debian bug #313843.
276    
277    2005-07-27  Jan-Oliver Wagner <[email protected]>
278    
279            Remove the attributes from the layer element in
280            .thuban files for the save routine.
281            This also solves RT bug #3149,
282            https://intevation.de/rt/webrt?serial_num=3149
283    
284            * test/test_load.py: (TestSingleLayer, TestNonAsciiColumnName,
285            TestLayerVisibility, TestSymbolSize, TestClassification, TestLabels,
286            TestLayerProjection, TestJoinedTable, TestLabelLayer): Removed
287            attributes from layer element to classification clnull element.
288    
289            * test/test_save.py (SaveSessionTest.testSingleLayer,
290            SaveSessionTest.testLayerProjection,
291            SaveSessionTest.testClassifiedLayer,
292            SaveSessionTest.test_joined_table, SaveSessionTest.test_save_postgis):
293            Removed attributes from layer element to classification clnull element.
294            (test_save_postgis.NonConnectionStore._fetch_table_information):
295            added pretending to have a shape_type.
296    
297            * Resources/XML/thuban-1.1.dtd: Make the attributes field
298            and field_type of classification optional.
299    
300            * Thuban/Model/classification.py (Classification.TreeItem.build_info):
301            Added output of size.
302    
303            * Thuban/Model/load.py (SessionLoader.start_classification):
304            Change attribute 'field' and 'field_type' from obligatory to
305            optional to allow empty classes (ie.  only with a default=clnull).
306    
307            * Thuban/Model/save.py (SessionSaver.write_layer): Don't write
308            any attributes anymore for the layer element.
309            (SessionSaver.write_classification): Even if there is no
310            classification field, still write the classification because
311            the clnull (default) symbol will not be defined anymore as
312            part of the layer element.
313    
314    2005-07-05  Bernhard Herzog  <[email protected]>
315    
316            * setup.py (setup call): Version 1.1.0
317    
318            * NEWS: Update for 1.1.0
319    
320            * MANIFEST.in: Add *.txt to files taken from Doc.  Otherwise the
321            technores won't be included
322    
323            * Thuban/UI/about.py (About.__init__): Extend copyright notice to
324            2005
325    
326            * po/de.po: Updated.
327    
328    2005-07-05  Bernhard Herzog  <[email protected]>
329    
330            * README: gdal 1.1.8 is too old.  1.2.5 works.
331    
332    2005-07-05  Bernhard Herzog  <[email protected]>
333    
334            * Resources/XML/thuban-1.1.dtd (rasterlayer): Add the opacity and
335            masktype attributes.
336    
337    2005-07-05  Bernhard Herzog  <[email protected]>
338    
339            * Thuban/Model/layer.py (Layer.__mangle_bounding_box)
340            (Layer.ClipBoundingBox): Rename ClipBoundingBox to
341            __mangle_bounding_box.  See the comments in the code and RT #2845
342    
343            * test/test_layer.py (TestLayer.test_arc_layer_with_projection):
344            Remove the explicit test of ClipBoundingBox.  The method isn't
345            public anymore and the direct call in the test wasn't necessary in
346            the first place.  If ClipBoundingBox (now __mangle_bounding_box)
347            isn't called, the return value of ShapesInRegion will be
348            different.
349    
350    2005-07-05  Bernhard Herzog  <[email protected]>
351    
352            * Thuban/UI/viewport.py (ViewPort.set_view_transform): Handle
353            ZeroDivisionError exceptions.  I don't know when they happen
354            exactly.  It probably happens when the projections aren't set
355            properly.
356    
357    2005-07-01  Bernhard Herzog  <[email protected]>
358    
359            First step towards unicode.  With this roughly we're at step 1
360            string_representation.txt
361    
362            * Doc/technotes/string_representation.txt: New.  Document how
363            strings are represented in Thuban and how to get to a Unicode
364            Thuban.
365    
366            * Thuban/__init__.py (set_internal_encoding)
367            (unicode_from_internal, internal_from_unicode): New. The first few
368            functions for the internal string representation
369    
370            * Thuban/UI/about.py (unicodeToLocale): Removed.  Use
371            internal_from_unicode instead.
372    
373            * Thuban/UI/__init__.py (install_wx_translation): Determine the
374            encoding to use for the internal string representation.  Also,
375            change the translation function to return strings in internal
376            representation even on unicode builds of wxPython
377    
378            * Thuban/Model/load.py (SessionLoader.check_attrs): Decode
379            filenames too.
380            (SessionLoader.start_clrange): Use check_attrs to decode and check
381            the attributes.
382    
383            * Thuban/Model/xmlreader.py (XMLReader.encode): Use
384            internal_from_unicode to convert unicode strings.
385    
386            * Thuban/Model/xmlwriter.py (XMLWriter.encode): Use
387            unicode_from_internal when applicable
388    
389            * test/runtests.py (main): New command line option:
390            internal-encoding to specify the internal string encoding to use
391            in the tests.
392    
393            * test/support.py (initthuban): Set the internal encoding to
394            latin-1
395    
396            * test/test_load.py (TestSingleLayer.test, TestClassification.test)
397            (TestLabelLayer.test): Use the internal string representation when
398            dealing with non-ascii characters
399    
400            * test/test_load_1_0.py (TestSingleLayer.test)
401            (TestClassification.test, TestLabelLayer.test): Use the internal
402            string representation when dealing with non-ascii characters
403    
404            * test/test_load_0_9.py (TestSingleLayer.test)
405            (TestClassification.test): Use the internal string representation
406            when dealing with non-ascii characters
407    
408            * test/test_load_0_8.py (TestUnicodeStrings.test): Use the
409            internal string representation when dealing with non-ascii
410            characters
411    
412            * test/test_save.py (XMLWriterTest.testEncode)
413            (SaveSessionTest.testClassifiedLayer): Use the internal string
414            representation when dealing with non-ascii characters where
415            applicable
416    
417    2005-06-30  Bernhard Herzog  <[email protected]>
418    
419            * test/runtests.py: Untabify.
420    
421    2005-06-30  Bernhard Herzog  <[email protected]>
422    
423            * Thuban/UI/renderer.py (ScreenRenderer.draw_selection_incrementally):
424            untabify.
425    
426    2005-06-30  Bernhard Herzog  <[email protected]>
427    
428            * Extensions/ogr/test/__init__.py: Add missing coding directive
429    
430    2005-06-28  Jan-Oliver Wagner <[email protected]>
431    
432            * Thuban/UI/renderer.py (ScreenRenderer.draw_selection_incrementally):
433            Use the default size for rendering selected items of default type.
434            Fixes part 2 of https://intevation.de/rt/webrt?serial_num=3149
435    
436    2005-06-28  Jan-Oliver Wagner <[email protected]>
437    
438            * Extensions/importAPR/apr.py (APR_BShSym): Extend by 'Stripple'.
439            (APR_TClr.GetThubanColor): Fix bug in color interpretation.
440            Thanks to Frank Koormann who identified this problem.
441    
442            * Extensions/importAPR/importAPR.py (APR_VShSym): New. Just
443            another symbol identified.
444    
445    2005-06-27  Jan-Oliver Wagner <[email protected]>
446    
447            * Doc/manual/thuban-manual-de.xml: More translations.
448    
449    2005-05-12  Jonathan Coles <[email protected]>
450            
451            * Thuban/UI/projdialog.py: Add missing import, which led to an
452            exception when opening a layer's projection.
453    
454    2005-05-09  Bernhard Herzog  <[email protected]>
455    
456            * test/support.py (FileLoadTestCase.filename): Fix doc-string.
457    
458    2005-05-09  Bernhard Herzog  <[email protected]>
459    
460            * Thuban/Model/postgisdb.py (PostGISConnection.connect): Set the
461            connection to autoconnect.  Fixes RT#3148.
462    
463            * test/test_postgis_db.py
464            (TestPostGISSpecialCases.test_simple_error_handling): New test
465            that attempts to reproduce RT#3148.
466    
467    2005-05-06  Jonathan Coles <[email protected]>
468    
469            Add support for saving and loading the opacity and mask type
470            properties of RasterLayers. Also add support for proper use
471            of alpha information while drawing images not in 'RAW' format.
472            If transparency in an image format (e.g, PNG) is supported by
473            wxWidgets then the image would previously have been draw with
474            transparent regions, but the opaque regions would have been
475            unaffected by a change in the layer's opacity. This patch
476            corrects the problem.
477    
478            * Thuban/Model/layer.py (RasterLayer): Added opacity and
479            masktype parameters to the constructor, and set the
480            appropriate variables to those values.
481    
482            * Thuban/Model/load.py (SessionLoader.start_rasterlayer): Added
483            code to read the opacity and mask type of the layer and construct
484            a new layer with the additional parameters.
485    
486            * Thuban/Model/save.py (SessionSaver.write_layer): Added code
487            to save the opacity and mask type of a layer.
488    
489            * Thuban/UI/baserenderer.py (BaseRenderer.draw_raster_layer): Pass
490            the opacity of the layer to draw_raster_data rather than the layer.
491            (BaseRenderer.draw_raster_data): Remove the layer parameter because
492            the function doesn't need to know about the layer. Add the optional
493            opacity parameter whose default is 1.0. Add 'PNG' as a supported
494            graphics format.
495    
496            * Thuban/UI/renderer.py (MapRenderer.draw_raster_data): Fixed
497            signature to match that in BaseRenderer. Use the new opacity argument
498            in place of calling layer.Opacity(). In the case where the
499            format is not 'RAW', alpha_data is None and the loaded image has
500            alpha information, use the file's alpha information. This is
501            still subject to the layer's opacity setting.
502    
503            * test/test_baserenderer.py (SimpleRenderer.draw_raster_data):
504            Fixed signature to match that in BaseRenderer.
505    
506            * test/test_load.py (TestRasterLayer): Change file_contents to
507            include opacity and masktype variables.
508            (TestRasterLayer.test): Include tests for opacity and masktype
509            changes.
510    
511            * test/test_save.py (SaveSessionTest.testRasterLayer): Restructure
512            test to cover a variety of combinations of masktype and opacity
513            settings.
514    
515    2005-05-02  Jan-Oliver Wagner <[email protected]>
516    
517            * debian/rules: add --use-wx-python-swig-hack
518            to the build command.
519            Thanks to Moritz Lennert for pointing this out.
520    
521    2005-04-28  Jan-Oliver Wagner <[email protected]>
522    
523            Introduce OGRFileShapeStore in ogr extension.
524            This allows at least that loaded shapefile shape stores
525            can be saved correctly in the thuban session file
526            and reloaded again (reload is via core shapefile
527            routine, not OGR). For other types, .thuban files
528            can not be reloaded for the time being.
529    
530            * Extensions/ogr/ogrshapes.py (OGRFileShapeStore): New. This
531            class ist to be used for any file-based shape stores
532            accessed through OGR.
533    
534            * Extensions/ogr/ogrstart.py (open_with_ogr): Added
535            forgotten _ for i18n. Adapted call OpenFileShapestore
536            regarding new parameter.
537            (OpenFileShapestore): Use OGRFileShapeStore instead of
538            OGRShapeStore. Fix return value (None instead of null).
539            Add new parameter "mainwindow" to avoid accessing global
540            context.
541    
542    2005-04-27  Jan-Oliver Wagner <[email protected]>
543    
544            Introduce FileShapeStore as generalization for
545            file-based shape stores. In a first instance
546            this allows additional modules to handle shapefile
547            format as well, namely the OGR extension.
548    
549            * Thuban/Model/data.py: Various small fixes in doc-strings.
550            (FileShapeStore): New class.
551            (ShapefileStore): Derive from FileShapeStore.
552            (ShapefileStore.__init__): Call __init__ of FileShapeStore,
553            rename self.table to self._table, initialize self._bbox
554            (ShapefileStore._open_shapefile): Use self._bbox instead of self.bbox
555            and self.FileName() instead of self.filename.
556            (ShapefileStore.Table): Use self._table instead of self.table.
557            (ShapefileStore.FileName): Removed (moved to FileShapeStore).
558            (ShapefileStore.BoundingBox):  Use self._bbox instead of self.bbox.
559    
560            * Thuban/Model/save.py: Replace ShapefileStore by FileShapeStore.
561            (SessionSaver.write_data_containers): Only use methods of the
562            base class FileShapeStore.
563    
564    2005-04-26  Martin Schulze  <[email protected]>
565    
566            * Extensions/wms/wms.py (render_wms_layer): Adjusted the render
567            function to the modified render engine
568    
569    2005-04-25  Martin Schulze  <[email protected]>
570    
571            * Thuban/UI/renderer.py (MapRenderer.projected_raster_layer):
572            Added a description according to the CVS log message
573    
574    2005-04-23  Martin Schulze  <[email protected]>
575    
576            * Thuban/UI/renderer.py: Added a missing import
577    
578    2005-04-23  Russell Nelson  <[email protected]>
579    
580            * Thuban/UI/view.py (MapCanvas.OnMiddle{Up,Down}): Changed the
581            way the previous tool is remembered, so that middle-button
582            panning works even if you haven't selected a tool.
583    
584    2005-04-11  Bernhard Herzog  <[email protected]>
585    
586            * libraries/thuban/wxproj.cpp: Move the compatibility code that
587            deals with the wxPython 2.4 version of wxPython.h into the #ifdef
588            branch that includes wxPython.h because it's only needed when
589            wxPython.h is used.  Also, it won't compile when
590            USE_WX_PYTHON_SWIG_HACK is set otherwise.
591    
592    2005-04-07  Bernhard Herzog  <[email protected]>
593    
594            * Thuban/UI/classifier.py (ClassGrid.__init__): Use -1 as the ID.
595            (ID_CLASS_TABLE): Removed. It wasn't used anywhere except in
596            ClassGrid.__init__ and it's value is outside of the valid
597            range (must be < 32768).  wxPython 2.5 complains about it with an
598            exception.
599    
600    2005-04-05  Jan-Oliver Wagner <[email protected]>
601    
602            * Doc/manual/thuban-manual-de.xml: More translations.
603    
604    2005-04-05  Bernhard Herzog  <[email protected]>
605    
606            * libraries/thuban/wxproj.cpp: Make it work with a wxPython.h from
607            wxPython 2.4 as well.  Also, remove a now obsolete comment.
608    
609    2005-04-05  Bernhard Herzog  <[email protected]>
610    
611            Use wxPython.h by default but provide a workaround when it isn't
612            available.
613    
614            * setup.py (wxproj_extension): New variable.  Assign the Extension
615            instance for Lib.wxproj to this variable instead of putting it
616            directly into the listso that it can be accessed by other code
617            later.
618            (thuban_build_ext.user_options): Added boolean option
619            --use-wx-python-swig-hack.
620            (thuban_build_ext.initialize_options): Initialize the new option
621            to False.
622            (thuban_build_ext.finalize_options): If the new option was given,
623            define the preprocesser macro USE_WX_PYTHON_SWIG_HACK.
624            (thuban_build_ext): Update the doc-string
625    
626            * libraries/thuban/wxproj.cpp: Normally we use
627            wx/wxPython/wxPython.h now.  Only if USE_WX_PYTHON_SWIG_HACK is
628            defined, use swigPtrConvertHack.h instead.
629    
630            * libraries/thuban/swigPtrConvertHack.h: Remove the code that was
631            copied over from wxPython.h.
632            (decode_pointer_new): New.  Equivalent of decode_pointer for
633            wxPython 2.5.
634            (wxPyConvertSwigPtr): Modified to cope with wxPython 2.5 as well.
635    
636            * README: Add section on potential build problems which explains
637            how the work-around for a missing wxPython.h is activated.
638    
639    2005-03-29  Bernhard Herzog  <[email protected]>
640    
641            * test/postgissupport.py (find_postgis_sql): Added yet another
642            potential location for (lw)postgis.sql because the file has moved
643            again in postgis 1.0.0 rc4.
644    
645    2005-03-29  Bernhard Herzog  <[email protected]>
646    
647            * Thuban/UI/legend.py (BMP_SIZE_W, BMP_SIZE_H): Set both to 16 to
648            match the site of the legend_icon_layer icon.  Otherwise wxpython
649            2.5 complains when the legend is created with the error:
650    
651            PyAssertionError: C++ assertion "(bitmap.GetWidth() == m_width &&
652            bitmap.GetHeight() == m_height) || (m_width == 0 && m_height ==
653            0)" failed in ./src/generic/imaglist.cpp(81): invalid bitmap size
654            in wxImageList: this might work on this platform but definitely
655            won't under Windows.
656    
657    2005-03-23  Jonathan Coles <[email protected]>
658    
659            These changes add support for adjusting the opacity of a raster layer.
660    
661            * Thuban/Model/layer.py (RasterLayer.Opacity): Replaces AlphaOpacity.
662            (RasterLayer.SetOpacity): Replaces SetAlphaOpacity. Also triggers
663            a LAYER_CHANGED event if the opacity actually changes.
664    
665            * Thuban/UI/baserenderer.py (BaseRenderer.draw_raster_data): Added
666            layer parameter needed in the implementation of this method in
667            renderer.py.
668    
669            * Thuban/UI/layerproperties.py (LayerProperties.dialog_layout): Fixed
670            typo 00 -> 0.
671    
672            * Thuban/UI/rasterlayerproperties.py (RasterLayerProperties): Added
673            control to adjust opacity.
674    
675            * Thuban/UI/renderer.py (MapRenderer.draw_raster_data): Scale the
676            alpha data based on the opacity level of the layer.
677    
678            * test/test_baserenderer.py (SimpleRenderer.draw_raster_data): Now
679            accepts a layer parameter.
680    
681            * test/test_layer.py (TestLayerModification.test_raster_layer):
682            Rename opacity method calls and add test for LAYER_CHANGED.
683    
684    2005-03-16  Bernhard Herzog  <[email protected]>
685    
686            * test/test_connector.py (DeletionTestMixin.check_deletions)
687            (DeletionTestMixin.check_deletetions): renamed to check_deletions.
688            update the callers.
689    
690    2005-03-14  Jan-Oliver Wagner <[email protected]>
691    
692            * Doc/manual/thuban-manual-de.xml: More translations.
693    
694    2005-03-10  Jan-Oliver Wagner <[email protected]>
695    
696            Introducing initialization callbacks for extensions.
697    
698            * Thuban/UI/extensionregistry.py (ExtensionDesc.__init__): Added
699            optional parameter init_callback.
700            (ExtensionDesc.init_ext): New. Executes the callback and sets
701            a status.
702    
703            * Thuban/UI/application.py (ThubanApplication.OnInit): Add the
704            initialization of the extensions.
705            (ThubanApplication.init_extensions): Init all extensions.
706    
707            * Thuban/UI/about.py (About.__init__): Added status of the extensions
708            to the about text.
709    
710            * Extensions/gns2shp/__init__.py: Added init method for Extension
711            description.
712            (init): New. Contains the initialization of the module.
713    
714    2005-03-04  Nina H�ffmeyer <[email protected]>
715    
716            * Extensions/ogr/ogrdialog.py: Added a dialog, which asks for
717            OGRConnection to open a datasource. Removed dialog to display all
718            available drivers. Added some doc strings.
719    
720            * Extensions/ogr/ogrstart.py: Added menu entry for opening an
721            OGRDatasource with a string. Added two opening methods which return an
722            OGRDatasource (either data from file or from DB).
723    
724            * Extensions/ogr/ogrshapes.py: Added class OGRGeometry, which
725            represents a geometry reference of an OGRFeature. OGRShape now has a
726            list of referenced geometry objects (important for geometry
727            collections).
728            For OGRShapeStores loaded from a DB an ID column can be specified now.
729    
730    2005-02-22  Jan-Oliver Wagner <[email protected]>
731    
732            * test/test_map.py (TestMapWithContents.test_tree_info):
733            Added label layer for comparison.
734    
735    2005-02-18  Jonathan Coles <[email protected]>
736    
737            * libraries/thuban/gdalwarp.cpp (GetImageData): Optimize the loop
738            which builds a mask. Handle the majority of an image in a loop,
739            creating 8 bits at a time. Later, handle the edge case where less
740            than 8 bits are packed.
741    
742    2005-02-18  Bernhard Herzog  <[email protected]>
743    
744            * test/test_baserenderer.py (TestBaseRenderer.setUp): Fix
745            doc-string
746    
747    2005-02-18  Jonathan Coles <[email protected]>
748    
749            * setup.py: Remove wx_cs_params from gdal compile options.
750    
751    2005-02-18  Jonathan Coles <[email protected]>
752    
753            Refactored baserenderer.py and renderer.py to remove baserenderer.py's
754            dependencies on wxPython. Added a new method projected_raster_layer()
755            that returns a raster layer image in projected space. This must be
756            implemented in classes derived from BaseRenderer. This also eliminates
757            the dependency on gdal in baserenderer.py.
758    
759            * Thuban/UI/baserenderer.py (BaseRenderer.draw_raster_layer): Call
760            new projected_raster_layer() to get projected raster image instead
761            of directly calling ProjectRasterFile().
762            (BaseRenderer.projected_raster_layer): New. This must be implemented
763            by derived classes. It takes almost the same arguments as ProjectRasterFile
764            did and returns a projected image with mask and alpha data (if requested).
765            (BaseRenderer.render_map_incrementally): Remove the check for gdal since
766            that check will be done in MapRenderer.projected_raster_layer(). This
767            also allows other implementations to use different projection code.
768    
769            * Thuban/UI/renderer.py (MapRenderer.projected_raster_layer):
770            Implementation of BaseRenderer.projected_raster_layer. Checks for
771            gdal support and wxPython version. Also handles exceptions from
772            ProjectRasterFile.
773    
774            * libraries/thuban/gdalwarp.cpp: Removed checks for wxPython versions
775            and added a variable which can be set through the options argument
776            of ProjectRasterFile.
777    
778            * test/test_baserenderer.py (SimpleRenderer.projected_raster_layer): New.
779            Calls ProjectRasterFile and returns the result.
780            (TestBaseRenderer.test_projected_raster_layer): New. Tests the results
781            of calling projected_raster_layer() with different options.
782            (TestBaseRenderer.test_raster_no_projection): Removed tests based on
783            wxPython version and all tests of masks and alpha channels. These are
784            now in test_projected_raster_layer().
785    
786    2005-02-17  Jan-Oliver Wagner <[email protected]>
787    
788            * Thuban/Model/map.py, Thuban/Model/label.py: Fixed
789            doc-strings to comply with coding_guidelines.
790    
791    2005-02-17  Jan-Oliver Wagner <[email protected]>
792    
793            Docstring improvements and minor fixes for labellayer.
794    
795            * Thuban/Model/map.py:
796            (Map, Map.Destroy, Map.RemoveLayer, Map.ClearLayers,
797            Map.Layers, Map.HasLayers, Map.MoveLayerToTop,
798            Map.RaiseLayer, Map.LowerLayer, Map.MoveLayerToBottom,
799            Map.ProjectedBoundingBox, Map.GetProjection): Improved/added
800            doc string.
801            (Map.BoundingBox): Removed superfluous test for label_layer
802            and improved doc string.
803            (Map.TreeInfo): Added label_layer and improved sdo string.
804    
805            * Thuban/Model/label.py: Added import of _.
806            (Label, Label.__init__): Improved/added doc string.
807            (LabelLayer, LabelLayer.__init__, LabelLayer.Labels,
808            LabelLayer.RemoveLabel, LabelLayer.ClearLabels):
809            Improved/added doc string.
810            (LabelLayer.AddLabel): Use already defined names for
811            align strings and improved doc string.
812            (LabelLayer.TreeInfo): New. Return the object data for
813            the tree view.
814    
815    2005-02-16  Jonathan Coles <[email protected]>
816    
817            Further wxPython 2.5 changes using patches from Daniel Calvelo Aros
818            so that that wxproj doesn't crash. Added GUI support for selecting
819            alpha channel (opacity can't be selected yet).
820    
821            NOTE: If wxPython.h is including in future distribution packages
822            then it will not be necessary to have the files swigPtrConvertHack.h
823            and wxPython_int.h included with Thuban. This is hopefully
824            a temporary workaround.
825    
826            * setup.py (thuban_build_ext.finalize_options): gdalwarp needs
827            access to the macro wxCHECK_VERSION so that it will properly
828            generate a bit mask. There was a problem between wx2.4 and wx2.5
829            that this works around.
830    
831            * Thuban/Model/layer.py (RasterLayer.UseMask): Removed in favor
832            of RasterLayer.MaskType.
833            (RasterLayer.SetUseMask): Removed in favor of RasterLayer.SetMaskType
834            (RasterLayer.MaskType): New. Returns the type of mask to use. Can
835            specify none, a bitmap, or an alpha channel.
836            (RasterLayer.SetMaskType): New. Set what kind of mask to use.
837    
838            * Thuban/UI/baserenderer.py (BaseRenderer.draw_raster_layer):
839            Set the raster warping options for the mask based on the value
840            of RasterLayer.MaskType.
841    
842            * Thuban/UI/legend.py (LegendTree.__FillTreeLayer): Remove
843            deprecated calls to SetItemSelectedImage in favor of SetItemImage
844            with wxTreeItemIcon_Selected.
845    
846            * Thuban/UI/rasterlayerproperties.py: Support selecting to use
847            an alpha channel for the mask.
848    
849            * Thuban/UI/renderer.py (MapRenderer.draw_raster_data): Use alpha
850            data if it is available and an alpha channel is supported under
851            the current version of wxPython.
852    
853            * libraries/thuban/gdalwarp.cpp (GetImageData): Added compiler define
854            to select whether 1's or 0's select the desired portion of an image
855            in the bit mask. wx2.4 has a bug where the documentation is the opposite
856            from behavior.
857            (ProjectRasterFile): Only generate an alpha channel if the version
858            of wxPython is >= 2.5.3.
859    
860            * libraries/thuban/wxproj.cpp: Applied patches from Daniel Calvelo Aros.
861            When wxPython >= 2.5.3 use the special swig functions to decode an
862            object's address.
863    
864            * libraries/thuban/swigPtrConvertHack.h: Includes conditional code
865            based on the version of wxPython. If >= 2.5.3 use the special swig
866            functions from wxPython to decode wxPython objects, otherwise use
867            the old method of retrieving the address from the object __repr__ string.
868    
869            * libraries/thuban/wxPython_int.h: Copied from wxPython source.
870            Unnecessary code was removed to make it smaller.
871    
872            * test/test_baserenderer.py (TestBaseRenderer.test_raster_no_projection):
873            Add tests for returning an alpha channel.
874    
875            * test/test_layer.py (TestLayerModification.test_raster_layer): Fix
876            tests that used removed functions UseMask and SetUseMask
877    
878    
879    2005-02-08  Bernhard Herzog  <[email protected]>
880    
881            More wxPython 2.5 changes.  This time taken from a patch from
882            Daniel Calvelo Aros.
883    
884            * Thuban/UI/tableview.py (QueryTableFrame.__init__)
885            (QueryTableFrame.__init__): Pass the size of a spacer as a single
886            item.
887    
888            * Thuban/UI/projdialog.py (ProjFrame.build_dialog)
889            (ProjFrame.build_dialog): Pass the size of a spacer as a single
890            item.
891    
892            * Thuban/UI/dbdialog.py (ChooseDBTableDialog.__init__): Pass the
893            size of a spacer as a single item.
894    
895            * Thuban/UI/classifier.py (Classifier.dialog_layout): Pass the
896            size of a spacer as a single item.
897    
898    2005-02-08  Bernhard Herzog  <[email protected]>
899    
900            Compatibility with wxPython 2.5.  The changes should make it work
901            better with 2.5 while still keeping compatibility with 2.4.  There
902            are still problems with 2.5, though.
903    
904            * Thuban/UI/dock.py (DockableWindow.__CreateBorder): Pass the size
905            of a spacer as a single item.
906    
907            * Thuban/UI/classifier.py (ClassGroupPropertiesCtrl): Derive only
908            from wxControl
909    
910            * Thuban/UI/legend.py (LegendTree): When running with wxPython <
911            2.5, add an implementation of the GetFirstChild method that does
912            not require the second parameter.
913            (LegendTree.find_layer, LegendTree._OnMsgMapLayersAdded)
914            (LegendTree._OnMsgMapLayersRemoved, LegendTree.DeleteAllItems)
915            (LegendTree.DeleteChildren, LegendTree.__ShowHideLayer): Do not
916            pass the second parameter to GetFirstChild
917    
918    2005-02-08  Nina H�ffmeyer <[email protected]>
919    
920            * Extensions/ogr/ogrshapes.py: Removed some print commands.
921    
922            * Extensions/ogr/ogrstart.py: Changed the GUI. OGR is no longer an
923            additional menu but appears as a possibility in the menu Map.
924    
925    2005-02-07  Jonathan Coles <[email protected]>
926            * libraries/thuban/gdalwarp.cpp: Removed the macros PYTHON_ERR
927            and PYTHON_ERRF since they were no longer necessary.
928    
929    2005-02-07  Bernhard Reiter <[email protected]>
930            * Thuban/UI/classifier.py (ClassGrid.DeleteSelectedRows):
931            Enable translation for message string.
932    
933    2005-02-06  Martin Schulze  <[email protected]>
934    
935            * Extensions/wms/infodialog.py (wmsInfoDialog.__init__): Adjusted
936            the arguments of the contstructor to fit the global scheme
937    
938    2005-01-31  Nina H�ffmeyer <[email protected]>
939    
940            * Extensions/ogr/ogrdialog.py: Added class ogrdialog.py, which provides
941            some dialogs needed to start ogr.
942            
943            * Extensions/ogr/__init__.py: Changed comments to avoid encoding
944            warnings.
945    
946            * Extensions/ogr/test/test_OGRShapestore.py: Changed comments to avoid
947            encoding warnings.
948    
949    2005-01-28  Jonathan Coles <[email protected]>
950    
951            * libraries/thuban/gdalwarp.cpp (GetImageData): Recode how the
952            mask is packed into a bit array. It's now slightly faster.
953    
954    2005-01-28  Jonathan Coles <[email protected]>
955    
956            * Thuban/Model/layer.py (RasterLayer.__init__): Make use_mask
957            default to true.
958    
959            * Thuban/Model/load.py (SessionLoader.start_rasterlayer): Remove
960            code that loads the state of the layer's use_mask flag. Its
961            usefulness is still being debated.
962    
963            * Thuban/Model/save.py (SessionSaver.write_layer): Remove
964            code that saves the state of the layer's use_mask flag. Its
965            usefulness is still being debated.
966    
967            * Thuban/UI/baserenderer.py (BaseRenderer.draw_raster_layer): Pass
968            options to ProjectRasterFile based on the state of layer.UseMask().
969            Catch more exceptions from ProjectRasterFile so that Thuban doesn't
970            quit is there is a problem projecting.
971            (BaseRenderer.draw_raster_data): Change the documentation to
972            describe the new format (XBM) that the mask data will be in.
973    
974            * Thuban/UI/renderer.py (MapRenderer.draw_raster_data): The mask
975            data is in XBM format when format='RAW' which means it doesn't
976            need to be converted to a wxImage before being used as a mask
977            for a wxBitmap. Assume that if format != 'RAW' that the image
978            data and mask data are in the same format.
979    
980            * libraries/thuban/gdalwarp.cpp (GetImageData): If alpha is enabled
981            and a mask is requested, convert the alpha band to a bit array in
982            XBM format. if an alpha channel is requested, simply return the
983            data in the alpha band. Provide better error handling by returning
984            python error messages (also fixes RT #2947).
985            (ProjectRasterFile): Support multiple mask options, rather than simply
986            a flag indicating that a mask should or should not be used. Provide
987            better error handling by returning python error messages.
988    
989            * test/test_baserenderer.py (TestBaseRenderer.test_raster_no_projection):
990            Add mask data to test.
991    
992            * test/test_layer.py (TestLayer.test_raster_layer): Test that a layer
993            should use the mask by default.
994            (TestLayerModificaton.test_raster_layer): Test that a layer should use
995            the mask by default.
996    
997            * test/test_load.py (TestRasterLayer.test): Remove testing for
998            use_mask flag in file.
999    
1000            * test/test_save.py (SaveSessionTest.testRasterLayer): Remove testing
1001            for use_mask in file.
1002    
1003            * test/test_load_1_0_1.py: Removed. Shouldn't have been checked in.
1004            
1005    2005-01-26  Jonathan Coles <[email protected]>
1006    
1007            Add a new dialog box for raster layers. The dialog box allows
1008            the user to toggle a mask that is generated by ProjectRasterFile
1009            and is used to only draw the real parts of the projected image.
1010    
1011            * Thuban/UI/baserenderer.py (BaseRenderer.draw_raster_layer):
1012            Instruct the warping code to generate a mask if the raster layer
1013            requests one.
1014            (BaseRenderer.draw_raster_data): Removed obsolete optional mask argument.
1015    
1016            * Thuban/UI/renderer.py (MapRenderer.draw_raster_data): Removed
1017            obsolete optional mask argument.
1018    
1019            * Thuban/UI/classifier.py (Classifier): Change the parent class
1020            to LayerProperties and rework the code to support layout calls
1021            from the parent.
1022            (Classifier.dialog_layout): New. Layout the dialog box.
1023            (Classifier.map_layers_removed): Removed. Moved to parent class.
1024            (Classifier.map_replaced): Removed. Moved to parent class.
1025            (Classifier._OnTry): Renamed to OnTry to support parent class.
1026            (Classifier.OnClose): Removed. Supplied in parent class.
1027            (Classifier._OnCloseBtn): Removed. Supplied in parent class as OnCloseBtn.
1028            (Classifier._OnOK): Renamed to OnOK to support parent class.
1029            (Classifier._OnRevert): Renamed to OnRevert to support parent class.
1030    
1031            * Thuban/UI/layerproperties.py: New. Base class for layer properties
1032            dialog boxes.
1033    
1034            * Thuban/UI/rasterlayerproperties.py: New. Class for displaying
1035            raster layer properties.
1036    
1037            * libraries/thuban/gdalwarp.cpp: Replace the old gdalwarp.cpp code
1038            with the non-simple version supplied with gdal. This allows added
1039            features such as creating an alpha band.
1040            (GetImageData): Generate a mask array from the alpha band that is
1041            generated by gdal if the user has selected it. Try to support images
1042            that have more than three bands, such as images with RGB plus an
1043            alpha band.
1044            (ProjectRasterFile): Convert python argument for mask and tell
1045            gdal to enable or disable an alpha band.
1046    
1047            * Thuban/Model/layer.py (BaseLayer.Type): New. Returns a string
1048            describing what kind of layer the class is. Defaults to "Unknown",
1049            but should be overridden by subclasses.
1050            (Layer.Type): New. Override base class method.
1051            (RasterLayer.__init__): Create a flag for using a mask. Record extra
1052            data from gdal for display in the properties dialog.
1053            (RasterLayer.Type): New. Override base class method.
1054            (RasterLayer.UseMask): New. Returns True if the mask should be used.
1055            (RasterLayer.SetUseMask): New. Set if the mask should be used.
1056            (RasterLayer.ImageInfo): New. Return extra information about the image.
1057    
1058            * Thuban/Model/load.py (SessionLoader.start_rasterlayer): Load
1059            the mask information.
1060    
1061            * Thuban/Model/save.py (SessionSaver.write_layer): Save mask information.
1062    
1063            * Thuban/UI/mainwindow.py: Register the RasterLayerProperties and
1064            Classifier classes as dialogs to use with the proper layer types.
1065    
1066            * test/test_baserenderer.py (TestBaseRenderer.test_raster_no_projection):
1067            Fix test.
1068    
1069            * test/test_layer.py (TestLayer.test_raster_layer): Test new methods.
1070            (TestLayerModification.build_path): New. Support function.
1071            (TestLayerModification.test_raster_layer): New. Test new methods.
1072    
1073            * test/test_save.py (SaveSessionTest.testRasterLayer): Add tests for mask.
1074    
1075            * test/test_load.py (TestRasterLayer): Add tests for mask.
1076    
1077            * test/test_load_1_0_1.py: New. Copied from test_load.py.
1078    
1079            * test/test_baserenderer.py (SimpleRenderer.draw_raster_data): Removed
1080            obsolete optional mask argument.
1081    
1082    2005-01-26  Nina H�ffmeyer <[email protected]>
1083    
1084            * Extensions/ogr/ogrshapes.py: Added two dictionaries to ShapeStore
1085            which maps the ids and the ordinals. Fixed RowIdToOrdinal(),
1086            RowOrdinalToId() and ReadRowAsDict().
1087    
1088            * Extensions/ogr/ogrstart.py: Added menu item which opens database
1089            layers for existing database connections.
1090    
1091            * Extensions/ogr/test/test_OGRShapestore.py: Fixed a message string.
1092    
1093    
1094    2005-01-26  Jan-Oliver Wagner <[email protected]>
1095    
1096            * Doc/manual/thuban-manual-de.xml: More translations.
1097    
1098    2005-01-24  Bernhard Herzog  <[email protected]>
1099    
1100            Rework the status bar updates a bit to make sure the message about
1101            the projections is produced at the right times.
1102    
1103            * Thuban/UI/mainwindow.py (MainWindow.update_status_bar_messages):
1104            New class variable with messages that may require a status bar
1105            update.
1106            (MainWindow.view_position_changed)
1107            (MainWindow.update_status_bar): Rename from view_position_changed
1108            to update_status_bar.  It's meaning has changed now that it may
1109            also generate messages about problems with projection settings.
1110            (MainWindow.__init__): Use the new update_status_bar_messages
1111            class variable to subscribe update_status_bar
1112            (MainWindow.set_position_text): Update doc-string.  This method
1113            has to be renamed at some point.  See doc-string and comments.
1114            (MainWindow.OnClose): Unsubscribe update_status_bar from all
1115            messages in update_status_bar_messages
1116    
1117            * Thuban/UI/viewport.py (ViewPort.forwarded_map_messages): New
1118            class attribute.  map messages to be forwarded by the viewport.
1119            (ViewPort._subscribe_map, ViewPort._unsubscribe_map): (un)subscribe
1120            the messages in forwarded_map_messages
1121    
1122    2005-01-21  Bernhard Herzog  <[email protected]>
1123    
1124            * test/postgissupport.py (PostGISDatabase.__init__): Tweak
1125            doc-string
1126            (find_postgis_sql): Update for postgis-1.0.0-rc1, which uses a
1127            different name for the initialization SQL file.
1128    
1129    2005-01-21  Jonathan Coles <[email protected]>
1130    
1131            * Thuban/UI/baserenderer.py (proj_params_to_str): New. Takes
1132            a projection and returns a formatted string representing the
1133            parameters to feed to gdalwarp. This function eliminates
1134            redundancy in draw_raster_layer().
1135            (BaseRenderer.render_map_incrementally): Removed the optimization which
1136            drew the top most raster layer first and then only those vector-
1137            based layers that are above it. With the support for transparency
1138            this optimization breaks correct behaviour.
1139            (BaseRenderer.draw_raster_layer): Reorganize code to support possible
1140            future enhancements to raster layer bounding box. The old behaviour has
1141            not changed. Also, change calling parameters to draw_raster_data()
1142            to specify new RAW data format and mask.
1143            (BaseRenderer.draw_raster_data): Change signature to include an optional
1144            parameter for mask information. Change documentation to mention
1145            support for new parameter and added option for RAW data format.
1146            The data argument is now a list of [width, height, data].
1147    
1148            * Thuban/UI/renderer.py (MapRenderer.draw_raster_data): Add new optional
1149            mask parameter. Add new condition for RAW format, which
1150            significantly reduces rendering time. Add condition for
1151            mask parameter.
1152    
1153            * libraries/thuban/gdalwarp.cpp (GetImageData): New. Creates a
1154            data array of RGB values from the projected image returned from
1155            the gdal warping functions. In the case of palette based images, it
1156            converts the NO_DATA index to the mask color.
1157            (ProjectRasterFile): Removed all custom memory driver references
1158            and replaced it with the standard in-memory dataset provided
1159            by gdal. The return data is no longer a BMP file, but an array
1160            of RGB values, one set triple per pixel.
1161    
1162            * libraries/thuban/bmpdataset.cpp: Removed. Unnecessary.
1163            * libraries/thuban/cpl_mfile.h: Removed. Unnecessary.
1164            * libraries/thuban/cpl_mfile.cpp: Removed. Unnecessary.
1165    
1166            * setup.py (thuban_build_ext.finalize_options): Removed mention
1167            of cpl_mfile.cpp and bmpdataset.cpp files in the list of source
1168            files. These are obsolete with the new version of gdalwarp.cpp
1169    
1170            * test/test_baserenderer.py (SimpleRenderer.draw_raster_data):
1171            Updated signature.
1172            (TestBaseRenderer.test_raster_no_projection): Changed the test
1173            data to be data in the uncompressed RAW format returned from
1174            ProjectRasterFile.
1175    
1176    2005-01-21  Jan-Oliver Wagner <[email protected]>
1177    
1178            * Thuban/UI/mainwindow.py (MainWindow.view_position_changed): Made
1179            string available for i18n.
1180    
1181    2005-01-20  Russell Nelson  <[email protected]>
1182    
1183            * Resources/Projections/defaults.proj: Ruin the speling of the
1184            Lambert-93 projection so it doesn't run into the wx UTF-8 bug.
1185            It's the wrong thing to do in the long run, but it's necessary for
1186            those users until that bug is fixed.  Otherwise the projection
1187            dialog segfaults.  Better to annoy some Lambert-93 users with a
1188            spelling mistake than every Fedora Core 3 user of Thuban-CVS.
1189    
1190    2005-01-20  Bernhard Reiter <[email protected]>
1191    
1192            * Thuban/UI/mainwindow.py (MainWindow.view_position_changed): Added
1193            docstring and comment that the warning code here is a hack.
1194    
1195    2005-01-20  Russell Nelson  <[email protected]>
1196    
1197            * Thuban/UI/mainwindow.py (MainWindow.view_position_changed): Warn
1198            user about misprojected layers when their lat/lon bounding
1199            box exceeds rational lat/lon values.
1200    
1201    2005-01-20  Bernhard Reiter <[email protected]>
1202    
1203            * Thuban/UI/about.py (unicodeToLocale): Improved:
1204            Use 'ascii' and then 'replace' for other characters
1205            when getdefaultlocale returns None. Thanks to Bernhard H. .
1206    
1207    2005-01-20  Bernhard Reiter <[email protected]>
1208    
1209            * Thuban/UI/classgen.py (GenQuantilesPanel.OnRetrieve): Added a comment
1210            that OnRangeText might be called twice and using None as argument.
1211    
1212    2005-01-20  Bernhard Reiter <[email protected]>
1213    
1214            * Thuban/UI/classgen.py (GenQuantilesPanel.OnRetrieve): Add a
1215            OnRangeText(0) to work around a different in wx Behaviour noticed
1216            on MacOSX, thanks to Lorenzo Moretti and Daniel Calvelo for the fix.
1217    
1218    2005-01-20  Bernhard Reiter <[email protected]>
1219    
1220            * Thuban/UI/about.py: take iso-8859-15 when getdefaultlocale returns
1221            None. (Fixes rt#2910.)
1222            
1223    2005-01-18  Frank Koormann <[email protected]>
1224    
1225            New Extension: mouseposition
1226            Tool to collect mouse click positions (map coordinates) in a dialog.
1227    
1228            * Extensions/mouseposition/__init__.py: New, extension registration
1229    
1230            * Extensions/mouseposition/mouseposition.py: New, implements the
1231            dialog and adds a tool to Thuban mainwindow.
1232    
1233            * Extensions/mouseposition/position.xpm: New, icon for tool.
1234    
1235    2005-01-14  Jan-Oliver Wagner <[email protected]>
1236    
1237            * Doc/manual/thuban-manual-de.xml: More translations.
1238    
1239    2005-01-11  Frank Koormann <[email protected]>
1240    
1241            * Thuban/UI/mainwindow.py (MainWindow.DuplicateLayer):
1242            Fix indention bug.
1243    
1244    2005-01-09  Frank Koormann <[email protected]>
1245    
1246            * Thuban/UI/mainwindow.py (MainWindow.DuplicateLayer):
1247            BugFix 2901: Explicitly copy layers ClassificationColumn since it
1248            is not part of the layers Classification.
1249    
1250    2005-01-03  Frank Koormann <[email protected]>
1251    
1252            * Thuban/UI/renderer.py (ScreenRendererdraw_selection_incrementally):
1253            BugFix 2883: Former implementation only worked on classified point
1254            layers: KeyError was raised, now use the default size if field is None.
1255    
1256    2004-12-27  Bernhard Reiter <[email protected]>
1257    
1258            svgexport 1.0.0cvs: Fixed label export.
1259    
1260            * Extensions/svgexport/test/test_svgmapwriter.py:
1261            class TestSVGRenderer(): New class; new test test_label_font().
1262    
1263            * Extensions/svgexport/svgmapwriter.py
1264            (SVGRenderer.label_font()): initialised Font size with self.factor now,
1265            makes test_label_font happy.
1266    
1267            * Extensions/svgexport/TODO: crossed out fixed label export item.
1268            Added item for options.
1269    
1270            * Extensions/svgexport/__init__.py: Bumped version to 1.0.0cvs.
1271    
1272    2004-12-27  Russell Nelson  <[email protected]>
1273    
1274            Middle mouse button pans.
1275    
1276            * Thuban/UI/view.py (MapCanvas.__init__): Subscribe also
1277            OnMiddleDown and OnMiddleUp events.
1278            (MapCanvas.OnMiddleDown): New. Activate the pan tool and remember the
1279            previously used tool.
1280            (MapCanvas.OnMiddleUp): New. Reactivate the remebered tool used before
1281            pressing the middle mouse button.
1282    
1283    2004-12-27  Jan-Oliver Wagner <[email protected]>
1284    
1285            * Doc/manual/thuban-manual-de.xml: More translations.
1286    
1287    2004-12-23  Jan-Oliver Wagner <[email protected]>
1288    
1289            * Thuban/UI/projdialog.py (ProjFrame.load_user_proj): Added a
1290            \n to stderr after the warnings. Thanks to Russell Nelson.
1291    
1292    2004-12-20  Nina Hueffmeyer <[email protected]>
1293    
1294            * Extensions/ogr/ogrshapes.py: Fixed some issues from
1295            Bernhard (coding guidelines etc.). Additionally it is now possible to
1296            display shapefiles containing feature collections (e.g.polygons
1297            with holes). Works with gdal 1.2.1 now.
1298    
1299            * Extensions/ogr/test/test_OGRShapestore.py: Fixed some issues
1300            from Bernhard (coding guidelines etc.). If ogr can't be imported,
1301            tests are skipped now.
1302    
1303            * Extensions/ogr/ogrstart.py: Fixed some typings.
1304    
1305    2004-12-20  Bernhard Reiter <[email protected]>
1306    
1307            * Extensions/svgexport/TODO: updated to add support for
1308            raster layers and labels for 1.0.1.
1309    
1310            * Extensions/svgexport/svgmapwriter.py (draw_raster_layer):
1311            Issue a warning now.
1312    
1313    2004-12-19  Bernhard Reiter <[email protected]>
1314    
1315            * Extensions/svgexport/TODO: Added idea to support triggering
1316            the application down the pipe.
1317    
1318    2004-12-19  Bernhard Reiter <[email protected]>
1319    
1320            svgexport: Improved code quality, mainly by better naming.
1321    
1322            * Extensions/svgexport/svgmapwriter.py:
1323            DrawPath() renamed to DrawPolygonPath(),
1324            added documentation, improved comments and variable names.
1325            
1326            * Extensions/svgexport/svgmapwriter.py,
1327              Extensions/svgexport/test/test_svgmapwriter.py:
1328            All using DrawPolygonPath() now, the default parameter closed=True
1329            omitted.
1330    
1331            * Extensions/svgexport/test/test_svgmapwriter.py:
1332            renamed test_polygon_opened() to test_polyline()
1333            renamed test_transparent_polygon() to test_transparent_polyline()
1334    
1335    2004-12-18  Jan-Oliver Wagner <[email protected]>
1336    
1337            Some fixes of gns2shp extension.
1338    
1339            * Extensions/gns2shp/test/__init__.py: New. Make this directory a
1340            package.
1341    
1342            * Extensions/gns2shp/test/test_gns2shp.py: Add some import paths
1343            dynamically.
1344    
1345            * Extensions/gns2shp/test/README: Simplified description how to test.
1346    
1347            * Extensions/gns2shp/gns2shp.py (gns2shp): Fixed doc-string,
1348            fixed some dimensions of fields according to the GNS documentation
1349            which seems to change undocumented.
1350            Now killing trailing \n and/or \r from MODIFY_DATE.
1351            This fixes RT#2453.
1352    
1353    2004-12-18  Bernhard Reiter <[email protected]>
1354    
1355            svgexport 1.0.0: Treats holes and islands nicely. Documentation added.
1356    
1357            * Extensions/svgexport/test/test_svgmapwriter.py:
1358            Added new tests: test_export_polygon_with_hole()
1359            and test_polygon_with_hole().
1360    
1361            * Extensions/svgexport/svgmapwriter.py
1362            (draw_polygon_shape()): Uses DrawPath correctly now.
1363    
1364            * Doc/manual/thuban-manual.xml: Added documentation for stable
1365            extention svgexport.    
1366            * Doc/manual/thuban-manual-de.xml: Copied English section about
1367            svexport over.
1368    
1369            * Extensions/svgexport/__init__.py: Bumped version number to 1.0.0.
1370    
1371            * Extensions/svgexport/svgsaver.py,maplegend.py:
1372            Moved from experimental to stable extension menu.
1373    
1374            * Extensions/svgexport/TODO: updated.
1375    
1376    
1377    2004-12-18  Bernhard Reiter <[email protected]>
1378    
1379            Added Extensions/svgexport/TODO
1380    
1381    2004-12-18  Bernhard Reiter <[email protected]>
1382    
1383            Refactored in svgexport:
1384            DrawPath replaces DrawPolygon; added newline in front of "M" in paths.
1385    
1386            * Extensions/svgexport/svgmapwriter.py
1387            Added verbosity level 3 to print out polygon points.
1388            (class Point): added __repr__
1389            (class Brush, __str__()): Added space after ,.
1390            (DrawPolygon): Renamed to DrawPath()
1391            (DrawPath): Takes list of polygons as input now, adds \n before "M"s.
1392            (DrawLines): Using DrawPath now.
1393    
1394            * Extensions/svgexport/test/test_svgmapwriter.py:
1395            Replaced DrawPolygon() calls with DrawPath() and put the first argument
1396            inside another list. Adapted test data with a newline before "M".
1397    
1398    2004-12-18  Bernhard Reiter <[email protected]>
1399            
1400            Refactored svgexport tests: 9 double tests runs eliminated;
1401            code size reduced by 8 lines.
1402    
1403            * Extensions/svgexport/test/test_svgmapwriter.py:
1404            (class TestWithDC): Renamed to BaseTestWithDC, moved to top.
1405            (class BaseWithDCtools): New, subclass from BaseTestWithDC.
1406            (class TestDrawSplines): now subclass from BaseTestWithDCtools,
1407            this fixed the double running of the nine tests of TestVirtualDC.
1408            (class TestVirtualDC): Using self.dc and self.file from setUp().
1409    
1410    2004-12-17  Bernhard Herzog  <[email protected]>
1411    
1412            Two windows specific fixes ported from thuban-1�0-branch:
1413    
1414            * Thuban/UI/about.py (unicodeToLocale): Use getdefaultlocale
1415            instead of getlocale because getlocale doesn't return a usable
1416            encoding name on a german windows 2000
1417    
1418            * setup.py: windows build: Removed the absolute path names and
1419            made all prfixes relative to the directory containing setup.py.
1420            Makes it a little easier to adapt to a different system.
1421    
1422    2004-12-16  Bernhard Herzog  <[email protected]>
1423    
1424            Add support for PostGIS tables with LINESTRING geometries.
1425            Fixes RT#2299
1426    
1427            * Thuban/Model/postgisdb.py (shapetype_map): Add LINESTRING
1428    
1429            * test/postgissupport.py
1430            (PostgreSQLServer.get_default_static_data_db): Rename the "roads"
1431            table to "roads-multi" because it now uses MULTILINESTRING
1432            geometries and introduce a new "roads" table that uses LINESTRING
1433            (coords_to_multilinestring): Make the doc string more precise
1434            (coords_to_linestring): New.  Create a LINESTRING WKT
1435            representatin
1436            (wkt_converter): Add coords_to_linestring
1437            (upload_shapefile): Rephrase the doc-string a bit.
1438    
1439            * test/test_postgis_db.py (TestPostGISShapestoreArc)
1440            (LineStringTests)
1441            (TestPostGISShapestoreLineString)
1442            (TestPostGISShapestoreMultiLineString): Split
1443            TestPostGISShapestoreArc into a base class LineStringTests and two
1444            derived classes TestPostGISShapestoreLineString for LINESTRING
1445            geometries and TestPostGISShapestoreMultiLineString for
1446            MULTILINESTRING geometries.  Most test methods are in the base
1447            class with the exception of tests that explicitly check the raw
1448            format.
1449    
1450    2004-12-16  Bernhard Herzog  <[email protected]>
1451    
1452            Make the test suite work with PostGIS 0.8.2 and PostgreSQL 7.4
1453    
1454            * test/postgissupport.py (find_postgis_sql): Different postgis
1455            versions put the postgis.sql file into slightly different places
1456            so we have to look in both.  The updated doc string describes this
1457            is more detail.
1458    
1459            * test/test_postgis_db.py
1460            (TestPostGISSpecialCases.test_column_name_quoting): The return
1461            value of UniqueValues is unsorted, so it has to be sorted for
1462            comparison.
1463    
1464    2004-12-16  Bernhard Herzog  <[email protected]>
1465    
1466            Fix for RT#2237
1467    
1468            * Thuban/UI/projdialog.py (ProjFrame._show_proj_panel): If the
1469            panel to be shown is the UnknownProjPanel disable the OK and Try
1470            buttons.  Otherwise enable them.
1471            (ProjFrame.__GetProjection): The UnknownProjPanel returns None for
1472            the parameters.  In that case __GetProjection also returns None
1473            now.
1474    
1475    2004-12-15  Bernhard Herzog  <[email protected]>
1476    
1477            * Thuban/UI/classgen.py (GenQuantilesPanel.__init__): Set the
1478            minimum number of classes to 2.  The calculate_quantiles needs at
1479            least two and raises an exception otherwise.  
1480            Fixes RT#2549
1481    
1482    2004-12-15  Bernhard Herzog  <[email protected]>
1483    
1484            * test/postgissupport.py (PostgreSQLServer.execute_sql): Extend to
1485            so that it returns a result for select statements.
1486            (PostgreSQLServer.server_version): New.  Return the version of the
1487            server software.
1488            (PostgreSQLServer.require_authentication): The format of
1489            pg_hba.conf has changed between PostgrSQL 7.2 and 7.3.  Check the
1490            server version and generate the file in the correct format
1491    
1492    2004-12-15  Bernhard Herzog  <[email protected]>
1493    
1494            * test/postgissupport.py (PostgreSQLServer.is_running): Fix typo
1495            in the doc string and rephrase it a little.
1496    
1497    2004-12-15  Frank Koormann <[email protected]>
1498    
1499            * test/test_load.py (TestAltPath.checkSession): New, extended checks if
1500            session has been loaded successfully. The check is called by the relevant
1501            tests after executing load_session().
1502    
1503    2004-12-13  Bernhard Herzog  <[email protected]>
1504    
1505            Make sure the region used to determine which shapes are visible
1506            actually matches the region on the printed page.  If this isn't
1507            done properly some shapes might not be printed.  
1508            Fixes RT #2692
1509    
1510            * Thuban/UI/view.py (MapPrintout.draw_on_dc): The region for the
1511            renderer has to be at the same position as the mapregion
1512    
1513            * Thuban/UI/renderer.py (ExportRenderer.RenderMap): self.region
1514            has to be moved by (self.shiftx, self.shifty) too.
1515    
1516    2004-12-13  Bernhard Herzog  <[email protected]>
1517    
1518            * libraries/pyprojection/Projection.i: Work around a bug in the
1519            generated python code which leads to exception in the __del__
1520            method when the constructor fails.  See the comments in the code
1521            for more details.
1522    
1523            * libraries/pyprojection/Projection.py: Updated from Projection.i
1524            with SWIG.
1525    
1526    2004-12-13  Bernhard Herzog  <[email protected]>
1527    
1528            * test/test_load.py (TestAltPath.test_01_single_path_error_fix)
1529            (TestAltPath.test_02_path_error_fix_from_list)
1530            (TestAltPath.test_05_path_error_fix_from_list_changed)
1531            (TestAltPath.test_06_path_error_fix_from_list_fails): self.session
1532            is destroyed in tearDown, so there's no need to do it in a test
1533            case.
1534    
1535            * Thuban/Model/load.py (SessionLoader.open_shapefile): Remove a
1536            debug print
1537    
1538    2004-12-13  Bernhard Herzog  <[email protected]>
1539    
1540            * Extensions/svgexport/test/test_svgmapwriter.py
1541            (TestDrawSplines.setUp): Do not use super with the unittest
1542            classes because in Python 2.2 they're still old-style classes.
1543    
1544    2004-12-13  Frank Koormann <[email protected]>
1545    
1546        Alternative Path feature: When loading a (moved) session where
1547            shapefiles cannot be found, ask the user. Use the specified path
1548            if further shapefiles are missing. However, ask the usr for confirmation
1549            in such cases.
1550    
1551            * test/test_load.py (TestAltPath): New, tests for alternative path feature
1552            in load_session()
1553            (Shapefile_CallBack): Helper, implements controllable callback.
1554    
1555            * Thuban/UI/application.py (ThubanApplication.OnInit):
1556            Added "alt_path" to self.path
1557            (ThubanApplication.OpenSession): Added shapefile_callback as second
1558            callback similar to db_connection_callback.
1559            (ThubanApplication.run_alt_path_dialog): New, implementaion of
1560            shapefile_callback. In addition to raising the dialog the control of
1561            self.path('alt_path') is implemented here.
1562    
1563            * Thuban/Model/load.py (SessionLoader.__init__): Added shapefile_callback.
1564            (SessionLoader.open_shapefile): Open shapefile, eventually with
1565            alternative path. This wrapps the "theSession.OpenShapefile(filename)"
1566            formerly used in start_fileshapesource()/start_layer().
1567            (SessionLoader.start_fileshapesource): Call open_shapefile().
1568            (SessionLoader.start_layer): Call open_shapefile().
1569            (load_session): Added shapefile_callback.
1570    
1571            * Thuban/UI/altpathdialog.py: New, implements dialogs for alternative path
1572            feature (search / check).
1573            
1574            * Doc/manual/thuban-manual.xml: Added documentation of new feature.
1575    
1576    2004-12-11  Bernhard Reiter <[email protected]>
1577    
1578             svgexport 0.9.2: Point size supports for maps.
1579    
1580            * Extensions/svgexport/svgmapwriter.py: Added import of SHAPETYPE_POINT
1581            (def draw_point_shape): new parameter size defaults to 2 as before.
1582            (draw_shape_layer_incrementally): Moved draw_func log line higher.
1583            Added draw_func call with size when dealing with a point layer.
1584    
1585            * Extensions/svgexport/__init__.py: bumped version to 0.9.2.
1586            
1587    2004-12-11  Bernhard Reiter <[email protected]>
1588    
1589            Made sure that newlines are inserted in the svg path d attributes
1590            to raise the chance that the line length will be below 255 characters,
1591            as recommended by REC SVG 1.1 in section 8.3.1.
1592    
1593            * Extensions/svgexport/svgmapwriter.py(DrawPolygon):
1594            Adding \n before L's and changed whitespace handling.
1595    
1596            * Extensions/svgexport/test/test_svgmapwriter.py:
1597            Adapted tests to new whitespace handling of DrawPolygon.
1598    
1599    2004-12-11  Bernhard Reiter <[email protected]>
1600    
1601            * Doc/technotes/coding_guidelines.txt: easy typo fixed.
1602    
1603            * Extensions/svgexport/test/test_svgmapwriter.py:
1604            Removed test_drawbezier in favour of new test_drawspline3 and
1605            test_drawspline4 within new class TestDrawSplines(TestVirtualDC).
1606            All only to test DrawSpline.
1607    
1608            * Extensions/svgexport/svgmapwriter.py(DrawSpline):
1609            New implementation now really using the strange algorithm of
1610            xfig 3.1's approximated splines and its conversion to postscript
1611            with one twist: SVG can do quadratic beziers, so skipped translation
1612            to cubic beziers.
1613            (TestWithDC): Typo in comment fixed.
1614    
1615    2004-12-09  Martin Schulze  <[email protected]>
1616    
1617            * Thuban/Model/classgen.py: Added missing character encoding
1618    
1619            * Extensions/wms/properties.py (OpenWMSProperties): removed
1620    
1621            * Extensions/wms/parser.py (WMSCapabilitiesParser.error): Dropped
1622            support for get_srs_discrepancies() since there are no
1623            discrepancies anymore (was a thinko)
1624    
1625            * Extensions/wms/layer.py (WMSLayer.GetMapImg): Improved graphic
1626            format priority now that more formats are supported globally by
1627            the render engine.
1628    
1629    2004-12-08  Silke Reimer <[email protected]>
1630            * Extensions/ogr/ogrshapes.py: Substituted ogr-method CloseRings
1631            because it is not available in all versions of ogr
1632    
1633    2004-12-08  Bernhard Reiter <[email protected]>
1634            * Extensions/ogr/__init__.py: Added empty __init__.py to heal
1635            global tests until a real one is commited.
1636    
1637    2004-12-07 Nina H�ffmeyer <[email protected]>
1638    
1639            * /Extensions/ogr/: Adding a new extension to read shapefiles with
1640            ogr. It is planned to add other vector formats.
1641    
1642            * /test/runtests.py: Adding tests from /Extensions/ogr/test/.
1643    
1644    2004-12-07  Jan-Oliver Wagner <[email protected]>
1645    
1646            * /Extensions/svgexport/test/test_svgmapwriter.py: Reverting
1647            part of a (non-)fix to renable that the tests are always
1648            executed.
1649    
1650    2004-12-07  Bernhard Reiter <[email protected]>
1651    
1652            * Extensions/svgexport/test/test_svgmapwriter.py:
1653            Added test_drawbezier() to test DrawSpline().
1654    
1655            * Extensions/svgexport/svgmapwriter.py(DrawSpline):
1656            Really implemented bezier drawing.
1657    
1658            * Extensions/svgexport/__init__.py: Bumped version of svgexport
1659            to 0.9.1 because now the legend examples lines styles
1660            will be drawing with beziers.
1661    
1662    2004-12-05  Martin Schulze  <[email protected]>
1663    
1664            * Thuban/UI/renderer.py (raster_format_map): Added PNG, TIFF and
1665            GIF as supported bitmap image formats (helpful for the WMS extension)
1666    
1667    2004-11-30  Martin Schulze  <[email protected]>
1668    
1669            * Extensions/wms/test/test_ogclib.py (TestOGCLib.test_compareURLs):
1670            Improved the test for the internal compare method
1671    
1672    2004-11-27  Jan-Oliver Wagner <[email protected]>
1673    
1674            * Thuban/UI/about.py (About.__init__): Added
1675            Norbert Solymosi for hungarian translation and Ole Rahn
1676            as contrbutor. Moved Bernhard Reiter from Contributor
1677            to Developer.
1678    
1679    2004-11-27  Bernhard Reiter <[email protected]>
1680    
1681            * Extensions/svgexport/test/test_svgmapwriter.py:
1682            Removed Jan from author list as he did not change enough significant
1683            lines yet.
1684    
1685            * Extensions/svgexport/__init__.py: Added Bernhard as author
1686            of the Extension.
1687    
1688    2004-11-27  Jan-Oliver Wagner <[email protected]>
1689    
1690            * po/hu.po: New. Hungarian translation. Contributed
1691            by Norbert Solymosi.
1692    
1693    2004-11-26  Bernhard Herzog  <[email protected]>
1694    
1695            * Extensions/svgexport/test/test_svgmapwriter.py
1696            (Testobjectexport.test_transparent_polygon): Commented out some
1697            debug prints
1698    
1699    2004-11-24  Jan-Oliver Wagner <[email protected]>
1700    
1701            Fix broken tests for svg extension and added svg legend
1702            to Experimental menu.
1703    
1704            * Extensions/svgexport/test/test_svgmapwriter.py: Fix to have
1705            the test run correctly even if the extension is a package.
1706            Also removed the "import Thuban" which makes no sense.
1707    
1708            * Extensions/svgexport/__init__.py: Fix to have the extensions'
1709            test module also be executed from the global test routine.
1710            This is done by looking for the absense of the DISPLAY variable.
1711    
1712            * Extensions/svgexport/maplegend.py: Moved the menu entry from Extensions
1713            to Experimental menu since this module has yet not reached a stable
1714            status (ie. 1.0).
1715    
1716    2004-11-22  Bernhard Reiter <[email protected]>
1717    
1718            * Extensions/svgexport/svgmapwriter.py:
1719            Added verbose variable and some logging depending on it.
1720            (class VirtualDC(XMLWriter)): Minor improvement in the polygon loop,
1721            because counting i is not necessary.
1722            (class Pen, class Brush): Added simple __str__ methods.
1723            (SVGRenderer.draw_polygone_shape): Fix #2698 (transparent polygons are
1724            not exported to svg file) Note: holes still unhandled.
1725    
1726            * Extensions/svgexport/test/test_svgmapwriter.py:
1727                    Made a baseclass TestWithDC for test needed a DC.
1728                    Added tests for bug #2698 (transparent polygons are not
1729                    exported to svg file):
1730                    Testobjectexport.test_transparent_polygon()
1731    
1732            * Thuban/Model/base.py (UnsetModified):
1733            Fixed some typos in docstring.
1734    
1735            * Thuban/UI/baserenderer.py (BaseRenderer.draw_polygon_shape()):
1736            Added hints on the used algorithm for handling holes.
1737    
1738    2004-11-20  Jan-Oliver Wagner <[email protected]>
1739    
1740            Some face lifting for the examples.
1741    
1742            * Examples/__init__.py: Make this directory a package.
1743    
1744            * Examples/simple_extensions/__init__.py: Make this directory a package.
1745    
1746            * Examples/simple_extensions/hello_world.py: Moved entry from Extensions
1747            menu to Examples menu.
1748    
1749            * Examples/simple_extensions/simple_command.py: Some more comments,
1750            minor changes.
1751    
1752            * Examples/simple_extensions/simple_tool.py: Minor changes.
1753    
1754    2004-11-20  Jan-Oliver Wagner <[email protected]>
1755    
1756            Changed way of extension registry for wms and added extension
1757            registry for umn_mapserver extension.
1758    
1759            * Extensions/wms/__init__.py: Added registry entry and the importing
1760            of the actual wms module. Included a test for the required PyOGCLib.
1761    
1762            * Extensions/wms/wms.py: Removed registry entry (moved to __init__.py).
1763    
1764            * Extensions/umn_mapserver/__init__.py: Added registry entry and the
1765            importing of the actual umn mapserver management modules.
1766            Included a test for the required Python MapScript.
1767    
1768    2004-11-20  Jan-Oliver Wagner <[email protected]>
1769    
1770            Changed way of extension registry for importAPR, bboxdump
1771            and added extension registry for svgexport.extension registry for
1772            svgexport.
1773    
1774            * Extensions/importAPR/__init__.py: Added registry entry and the importing
1775            of the actual importAPR module.
1776    
1777            * Extensions/importAPR/importAPR.py: Removed registry entry (moved to
1778            __init__.py).
1779    
1780            * Extensions/bboxdump/__init__.py: Added registry entry and the importing
1781            ï¿½ï¿½ï¿½ï¿½of the actual bboxdump module.
1782    
1783            * Extensions/bboxdump/bboxdump.py: Removed registry entry (moved to
1784            ï¿½ï¿½ï¿½ï¿½__init__.py).
1785    
1786            * Extensions/svgexport/__init__.py: Added registry entry and the importing
1787            of the svgsaver module.
1788    
1789            * Extensions/svgexport/svgsaver.py: Moved the menu entry from Extensions
1790            to Experimental menu since this module has yet not reached a stable
1791            status (ie. 1.0).
1792    
1793    2004-11-18  Jan-Oliver Wagner <[email protected]>
1794    
1795            Now the hit test considers the size of point symbols.
1796    
1797            * Thuban/UI/viewport.py (ViewPort._hit_point): Added optional parameter
1798            'size' defaulting to the previously fixed value 5.
1799            Extended doc-string.
1800            (Viewport._find_shape_in_layer): Resolved FIXME regarding flexibility
1801            for symbols.
1802            Now the size of the largest point symbol is determined to find out
1803            about whether the point has been hit.
1804            This fixes the problem that only clicks inside a fixed distance of
1805            5 where found.
1806    
1807    2004-11-17  Jan-Oliver Wagner <[email protected]>
1808    
1809            Another open issue fixed regarding sizeable symbols: correct rendering of
1810            selected symbols.
1811    
1812            * Thuban/UI/renderer.py (ScreenRenderer.draw_selection_incrementally):
1813            Added consideration of the specific size of point symbols.
1814            The property for each point symbol is retrieved and the size applied
1815            for the rendering method.
1816            Added doc-string.
1817    
1818    2004-11-16  Jan-Oliver Wagner <[email protected]>
1819    
1820            Changed way of Extension Registry for gns2shp and profiling.
1821    
1822            * Extensions/gns2shp/gns2shp.py: Removed registry entry (moved to
1823            __init__.py).
1824    
1825            * Extensions/gns2shp/__init__.py: Added registry entry and the importing
1826            of the actual gns2shp module.
1827    
1828            * Extensions/profiling/profiling.py: Removed registry entry (moved to
1829            __init__.py).
1830    
1831            * Extensions/profiling/__init__.py: Added registry entry and the importing
1832            of the actual profiling module.
1833    
1834    2004-10-28  Bernhard Reiter <[email protected]>
1835    
1836            * Extensions/svgexport/: Minor improvements to doc strings.
1837    
1838    2004-10-07  Jan-Oliver Wagner <[email protected]>
1839    
1840            Further elements for sizable point objects now
1841            making this feature usable though not yet complete.
1842    
1843            * Thuban/Model/save.py (SessionSaver.write_classification): Write
1844            attribute 'size' for cldata when the shape layer is of point type.
1845            This also now make the test_load.py tests happy.
1846    
1847            * Thuban/Model/classgen.py (CustomRamp.GetProperties): Added size
1848            gradient.
1849    
1850            * Thuban/UI/classifier.py (ID_SELPROP_SPINCTRL): Renamed to
1851            ID_SELPROP_SPINCTRL_LINEWIDTH.
1852            (ID_SELPROP_SPINCTRL_LINEWIDTH): New Id replaces ID_SELPROP_SPINCTRL.
1853            (ID_SELPROP_SPINCTRL_SIZE): New Id.
1854            (SelectPropertiesDialog.__init__): Added a second spin control
1855            for the size in case the corresponding layer is of point type.
1856            (SelectPropertiesDialog._OnSpin): Renamed to _OnSpinLineWidth.
1857            (SelectPropertiesDialog._OnSpinLineWidth): New. Former _OnSpin.
1858            (SelectPropertiesDialog._OnSpinSize): New. Set size of property
1859            and refresh preview.
1860    
1861    
1862    
1863    2004-10-04  Martin Schulze  <[email protected]>
1864    
1865            * Extensions/wms/test/test_parser.py
1866            (TestWMSCapabilitiesParser.test_compareLists): Added missing
1867            self-test for compareLists()
1868            (TestWMSCapabilitiesParser.test_compareDicts): Added missing
1869            self-test for compareDicts()
1870            (TestWMSCapabilitiesParser.test_compareLists): Adding more tests
1871            to verify the test routine fails with non-equal arguments
1872            (TestWMSCapabilitiesParser.test_compareDicts): Adding more tests
1873            to verify the test routine fails with non-equal arguments
1874    
1875    2004-10-03  Jan-Oliver Wagner <[email protected]>
1876    
1877            First elements for sizeable point objects.
1878    
1879            * Resources/XML/thuban-1.1.dtd: Added size attribute to cldata.
1880    
1881            * Data/iceland_sample_size.thuban: New. Sample for sized point objects.
1882    
1883            * test/test_load.py (ClassificationTest.TestLayers): Added SetSize in case
1884            of a corresponding argument is given.
1885            (TestSymbolSize): New. Test the size attribute of cldata.
1886    
1887            * Thuban/Model/classification.py: Removed some trailing whitespaces.
1888            (ClassGroupProperties.__init__): Set default size.
1889            (ClassGroupProperties.SetProperties): Set the size.
1890            (ClassGroupProperties.GetSize): New. Return the size.
1891            (ClassGroupProperties.SetSize): New. Set the size.
1892            (ClassGroupProperties__eq__): Compare also size.
1893            (ClassGroupProperties__repr__): Print also size.
1894    
1895            * Thuban/Model/load.py (SessionLoader.start_cldata): Also parse
1896            the size attribute.
1897    
1898            * Thuban/UI/classifier.py (ClassDataPreviewer.Draw): Added doc-string.
1899            Also, now there is a return value that indicates whether the drawing
1900            size exceeded the given rect extent and if so the new extent.
1901            Finally, point objects are drawn depending on the size. If either
1902            the width or height is exceeded, the new extent is returned.
1903            (ClassRenderer.Draw): Now when calling the previewer drawing function,
1904            evaluate the return value and, if not None, adapt the grid widget size
1905            accordingly and redraw again.
1906    
1907            * Thuban/UI/baserenderer.py (BaseRenderer.draw_shape_layer_incrementally):
1908            If the draw function is for points, call it with the size as additional
1909            parameter.
1910            (BaseRenderer.draw_point_shape): Added additional, optional parameter for
1911            the size. Compute the radius using the size.
1912    
1913            * Extensions/importAPR/apr.py (APR_BMkSym.GetThubanProp): Now
1914            that Thuban supports size, apply this correctly.
1915    
1916            * Extensions/importAPR/importAPR.py: Bumped version to 0.1.1.
1917    
1918    2004-10-03  Jan-Oliver Wagner <[email protected]>
1919    
1920            * Doc/manual/thuban-manual-de.xml: Started translation of
1921            Map chapter.
1922    
1923    2004-10-01  Martin Schulze  <[email protected]>
1924    
1925            * Extensions/wms/properties.py (wmsProperties.__init__): Extended
1926            argument for general use through properties-dialog selector
1927            
1928            * Thuban/UI/classifier.py: Register properties dialog classes for
1929            both provided layer classes/types.
1930    
1931            * Thuban/UI/mainwindow.py (MainWindow.OpenLayerProperties): The
1932            map can be retrieved through the parent which is passed to the
1933            constructor anyway and doesn't require an argument of its own,
1934            required for the unification of arguments for general use through
1935            properties-dialog selector.
1936            (MainWindow.OpenOrRaiseDialog): Move the logic for checking
1937            whether a dialog is already opened (and raising it to the users
1938            attention) and creating a new dialog into a function of its own
1939            (MainWindow.OpenLayerProperties): Use the new OpenOrRaiseDialog()
1940            method
1941            (MainWindow.OpenLayerProperties): Utilise the new ClassMapper for
1942            global registration of properties dialog classes (which are indeed
1943            layer-specific).
1944    
1945            * Thuban/UI/classifier.py (Classifier.__init__): Unify arguments
1946            for general use through properties-dialog selector, the map can be
1947            retrieved through the parent and doesn't require an argument of
1948            its own.
1949    
1950            * Extensions/wms/wms.py: Register the properties dialog class for
1951            the provided WMS layer
1952    
1953    2004-09-28  Jan-Oliver Wagner <[email protected]>
1954    
1955            New feature: Registry for Extensions.
1956    
1957            * Thuban/UI/extensionregistry.py: This module defines a registry for
1958            Extensions.
1959    
1960            * Thuban/UI/about.py (About.__init__): Added description
1961            of the registered extensions with all of the information.
1962    
1963            * Thuban/Model/extension.py (Extension): Improved doc-string.
1964    
1965            * Extensions/gns2shp/gns2shp.py, Extensions/importAPR/importAPR.py,
1966            Extensions/bboxdump/bboxdump.py, Extensions/profiling/profiling.py,
1967            Extensions/wms/wms.py: Added registration of the extension.
1968    
1969    2004-09-27  Bernhard Reiter <[email protected]>
1970    
1971            More fixes to svgexport to make used ids unique and
1972            conforming to XML's Name production.
1973    
1974            * Extensions/svgexport/test/test_svgmapwriter.py: Added new tests
1975            test_xml_id_constraints(), test_make_ide_nosetbaseid() and
1976            test_make_id_nonintegersetid().  Switched SetID and SetBaseID.
1977            Added Bernhard R. as author.
1978            * Extensions/svgexport/svgmapwriter.py (make_id): Using "_" as
1979            concatenation char now (makes test_make_ide_nosetbaseid() valid).
1980            Also transform second id part with "%d" and catch the TypeError
1981            to raise SVGMapWriterError (making test_make_id_nonintegersetid() ok).
1982            Corrected typo inBernhard's author line.
1983            (SetBaseID): Return the transformed base id. Transform characters
1984            which are not alnum() or in ".-_" to binascii.b2a_hex(). Added
1985            import binascii. If to be set string starts with "xml" or so, add "t".
1986            (draw_shape_layer_incrementally): use the returned value of SetBaseID
1987            for used_baseids checks.
1988    
1989    2004-09-25  Bernhard Herzog  <[email protected]>
1990    
1991            * test/test_layer.py (TestLayer.test_arc_layer_with_projection):
1992            Remove a debug print and some tab characters.
1993    
1994    2004-09-25  Bernhard Reiter <[email protected]>
1995    
1996            * Extensions/svgexport/svgmapwriter.py: Added Bernhard R. as Author.
1997            (SetBaseID, SetID, make_id): Improved docstring comments to explain
1998            the interaction of the three functions and the XML id contrains.
1999    
2000    
2001    2004-09-23  Jan-Oliver Wagner <[email protected]>
2002    
2003            * Doc/ThubanModel.xmi: New. UML file for Thuban Model
2004            Module.
2005    
2006            * Doc/README: Added info on ThubanModel.xmi.
2007    
2008    2004-09-23  Jan-Oliver Wagner <[email protected]>
2009    
2010            * Doc/README: New. Some info about how to generate technical
2011            documentation from the source code.
2012            This text was send to the Thuban developer mailing list on
2013            September 21st 2004 by Bernhard Reiter.
2014    
2015    2004-09-21  Bernhard Reiter <[email protected]>
2016    
2017            Improved the svgexport to only use unique ids. Will issues
2018            an error message dialoge when two layer names are the same.
2019            ShapeIDs are now added with a dash within the svg ids.
2020    
2021            * Extensions/svgexport/svgmapwriter.py (SVGMapWriterError): New.
2022            * Extensions/svgexport/test/test_svgmapwriter.py: Added imports
2023            (TestSVGRenderer): New test class with test_make_in() and
2024            test_check_for_layer_name_clash()
2025            * Extensions/svgexport/svgmapwriter.py (SVGRenderer): Fixed __init__()
2026            and draw_shape_layer_incrementally() to not use a baseid twice,
2027            satisfying test_check_for_layer_name_clash()
2028            (VirtualDC.make_id): Use a dash between baseit and id, satisfies
2029            test_make_in().
2030            * Extensions/svexport/svgsaver.py: Import SVGMapWriterError, wxOK
2031            and wxICON_HAND.
2032            (write_to_svg): Put dc and rendering in a try statement and on
2033            catching SVGmapWriterError notify the user and delete the target file.
2034    
2035    2004-09-20  Bernhard Reiter <[email protected]>
2036    
2037            * Model/base.by, Model/layer.py: Fixed typos in docstrings.
2038    
2039    2004-09-03  Jan Sch�ngel  <[email protected]>
2040    
2041            * Extensions/umn_mapserver/mapfile(MF_Class.add_thubanstyle): Fix a
2042            small bug with the line color. Now the line color will now only set
2043            if it is set in Thuban an not Transparent.
2044            
2045            * Extensions/umn_mapserver/mf_export(tblayer_to_map): Fixed a bug with
2046            deleting the layers from mapfile. Now all layers will delete backwards
2047            from the last.
2048    
2049    2004-08-20  Silke Reimer <[email protected]>
2050    
2051            * Thuban/Model/layer.py:
2052            Fixes bug in projection handling: Otherwise very large region might not
2053            have valid values in the layer's projection.
2054    
2055    2004-08-20  Silke Reimer <[email protected]>
2056    
2057            * Thuban/UI/about.py:
2058            small changes to be consistent with coding style.
2059              
2060    2004-08-13  Martin Schulze  <[email protected]>
2061    
2062            * Extensions/wms/test/test_ogclib.py (TestOGCLib.compare_URLs):
2063            Adjusted a comment
2064    
2065    2004-08-11  Silke Reimer <[email protected]>
2066    
2067            * Thuban/UI/about.py: Small changes to encoding related stuff to avoid
2068                    too many and too enhanced imports of locale
2069    
2070    2004-08-10  Silke Reimer <[email protected]>
2071    
2072            * Thuban/UI/about.py: Fixed encoding problem of about dialog: Added
2073                    function unicodeToLocale() to convert special characters to users
2074                    locale encoding
2075    
2076    2004-08-10  Jan-Oliver Wagner <[email protected]>
2077    
2078            * Doc/technotes/coding_guidelines.txt: Added rule 'Method names start with
2079            lower case letter'
2080    
2081    2004-08-09  Jan Sch�ngel  <[email protected]>
2082    
2083            * ChangeLog: Rewrite the last ChangeLog entry to follow
2084            the standard way.
2085    
2086            * Extensions/umn_mapserver/mapfile: Moved the import AnnotationLayer to
2087            the function where it is needed, because it don't works if it stands
2088            at the beginning.
2089            (MF_Layer.__init__): Removed the extra numclassed variable. Now
2090            numclasses from the mapscript will be used.
2091            (MF_Layer.get_index): New. Return the index of the layer in mapfile.
2092            (MF_Layer.set_classes): New. A Classlist will be set to the layer.
2093            (MF_Layer.set_metadata): New. A Metadata mapscript object will set.
2094            (MF_Layer.remove_allclasses): New. All class of the layer will remove.
2095            (MF_Map.create_new_layer): New. A new Layer is created and associated
2096            with the mapscript object.
2097            (MF_Map.set_layerorder): New. The Layer order like in thuban is set in
2098            the mapscript.
2099            (MF_Map.add_thubanlayer): Now a new layerobj is created if no one is
2100            linked to the layer in thuban, else the layerobject linked to the
2101            thubanlayer will be used.
2102            AnnotationLayer will now store the filename of the shapefile.
2103            (MF_Map.remove_layer): If a layer is removed the associated object
2104            must be set new.
2105            
2106            * Extensions/umn_mapserver/mf_export.py(tb_layer_to_map): Add all
2107            layers which are exists in thuban to the mapobj. All removed Layers
2108            will be removed from the mapobj.
2109            Added comments to all functions.
2110            (thuban_to_map): No layer will be removed here.
2111            
2112            * Extensions/umn_mapserver/mf_handle.py
2113            (_has_umn_mapobj_and_selectedlayer): Activating the layer menu. Now
2114            Layersettings for the mapserver kann be edited.
2115    
2116            * Extensions/umn_mapserver/mf_import.py: Now all layers which are
2117            imported, will be linked with the associated MF_Layer.
2118            (import_mapfile): All layers, which are not selected, will be removed.
2119            Disable the "import layer from mapfile" menu option.
2120    
2121            * Extensions/umn_mapserver/sample/iceland.map: Set the status of the
2122            Annotation Layer from DEFAULT to OFF. The DEFAULT setting turns the
2123            layer on permanently.
2124    
2125    2004-08-03  Jan Sch�ngel  <[email protected]>
2126    
2127            * Extensions/umn_mapserver/mapfile.py(MF_Metadata.remove_allmetadata):
2128            New. This function removes all metadata
2129            (MF_Layer.set_group): New. Set the group setting.
2130            (MF_Layer.get_group): New. Get the group setting.
2131            (MF_Map): Removed the extra numlayers variable, used the mapscript
2132            parameter instead.
2133            (MF_Map.get_numlayers): New. This get numlayers.
2134            (MF_Map.remove_all_layers): New. Removes all layers from the mapobj.
2135            (MF_Map.add_thubanlayer): Replaced the exception handling by a check
2136            if the object is an instance. Also added the annotation layer here to
2137            export, but only the layer is created in the mapfile.
2138    
2139            * Extensions/umn_mapserver/mf_export.py(export_mapfile): Removed
2140            the check if a mapobj exist, because its not needed anymore. The
2141            export function is only available if a mapobj exist.
2142            Use the new function to remove all layers.
2143            
2144            * Extensions/umn_mapserver/mf_handle.py(Layer_Dialog): Added a group
2145            option and the metadata button. The layer dialog is temporary disabled.
2146            (Metadata_CustomDataTable): Added some functions to show the grid
2147            correct.
2148    
2149            * Extensions/umn_mapserver/mf_import.py: Moved the code for showing
2150            the number of layer from import_mapfile to this function.
2151            (AnnotationLayer): New. This Class shows the Annotation layer in
2152            thuban. The layer don't do anything. It's only to show the layer
2153            and to save the layer order.
2154            (add_annotationlayer): New. Import an annotation layer to thuban.
2155            (select_layer2import): New. Import only layers to thuban and not
2156            the other settings like projection or scalebar.
2157            (create_new_mapfile): Moved the _has_umn_mapobj function and the
2158            create_new_mapfile functions from mf_handle.py to mf_import.py.
2159            
2160            * Extensions/umn_mapserver/sample/iceland.map: Added the group
2161            parameter to the roads and cultural layers. Also added a new
2162            Annotation Layer for the cultural points.
2163    
2164            * Extensions/umn_mapserver/sample/iceland.html: Added the select
2165            option for the annotation layer.
2166    
2167            * Extensions/umn_mapserver/sample/index.html: Added the start
2168            parameter for the annotation layer.
2169    
2170    2004-08-01  Jan-Oliver Wagner <[email protected]>
2171    
2172            * Doc/manual/thuban-manual-de.xml (Chapter Session Management):
2173            translation completed.
2174    
2175            * Doc/manual/thuban-manual.xml (Chapter Session Management):
2176            Fixed unprecise description for Save Session.
2177    
2178    2004-07-31  Jan-Oliver Wagner <[email protected]>
2179    
2180            Started translation of Users Manual into german.
2181    
2182            * Doc/manual/thuban-manual-de.xml: New. German Users Manual.
2183    
2184            * Doc/manual/Makefile: Added build instructions for german
2185            users manual.
2186    
2187            * Doc/manual/thuban-manual.xml: Minor corrections in Introduction.
2188    
2189    2004-07-28  Jan Sch�ngel  <[email protected]>
2190    
2191            * Extensions/umn_mapserver/mapfile.py(MF_Metadata): Changed all class
2192            functions. Now all metadata will handle by the function and its not
2193            needed to initialize it from outside. Therefor the associated mapobj
2194            will be stored in the Metadata Object. So we can use the special
2195            functions from the associated mapobj to get the Metadata.
2196            Therefor all initialization code for the metadata is removed from the
2197            other classes.
2198            (MF_Layer): Added a function to get the metadata object.
2199            (MF_Map): Added a function to set the mappath, the path where
2200            the mapfile ist stored.
2201    
2202            * Extensions/umn_mapserver/mf_export.py(thuban_to_map): Changed the code
2203            to set the extent in the mapfile. Now the code is set by the displayed
2204            data in the Thuban-view.
2205            (export_mapfile): The shapepath is now set empty, until relative
2206            pathnames are supported.
2207    
2208            * Extension/umn_mapserver/mf_handle.py: Added a dialog to handle
2209            metadata. Yet only mapfile metadata are supported. Layer and class
2210            supported are not implemented.
2211            Added a dialog to handle layer informations. The dialog only shows the
2212            selected layer at the moment.
2213    
2214            * Extensions/umn_mapserver/mf_import.py(import_mapfile): Changed the
2215            code for setting the extent in thuban. Now the extent is set to the
2216            given extent from the mapfile.
2217            Fixed a logical mistake. Now the extent is set when realy a layer is
2218            loaded, and not if one is selected to load.
2219    
2220            * Extensions/umn_mapserver/sample/iceland.html: Added code to zoom and
2221            move the shown map in the browser.
2222    
2223            * Extensions/umn_mapserver/sample/iceland.map: Added a new metadata
2224            line to the mapobj and added metadata to the political layer.
2225    
2226            * Extensions/umn_mapserver/test/test_mapserver.py: Changed the test
2227            for Metadata.
2228    
2229    2004-07-26  Martin Schulze  <[email protected]>
2230    
2231            * Thuban/Lib/classmapper.py (ClassMapper.has): Added the new
2232            ClassMapper
2233    
2234            * test/test_classmapper.py (TestMapping.test_mapper): Added a Test
2235            case for the new ClassMapper
2236    
2237    
2238    2004-07-22  Bernhard Herzog  <[email protected]>
2239    
2240            * Thuban/UI/viewport.py (ViewPort.VisibleExtent): New.  Return the
2241            visible extent of the map in projected coordinates
2242    
2243            * test/test_viewport.py (SimpleViewPortTest.test_default_size)
2244            (SimpleViewPortTest.test_init_with_size): Add some VisibleExtent()
2245            tests.
2246            (SimpleViewPortTest.test_visible_extent): New. The real test for
2247            VisibleExtent()
2248    
2249    2004-07-22  Bernhard Herzog  <[email protected]>
2250    
2251            * test/test_viewport.py: Use support.run_tests as the main
2252            function when running asa script.
2253    
2254    2004-07-22  Jan Sch�ngel <[email protected]>
2255    
2256            * Extensions/umn_mapserver/mf_export.py: Added "import os"
2257            Removed the old "import Thuban.UI.mainwindow" code.
2258            (tbextent_to_map): Removed the extra function and at the code direct
2259            to "thuban_to_map" function.
2260            (write_creatorcomment): Added. Now a short comment is added to the
2261            beginning of an generated mapfile.
2262            (export_mapfile): Now the Path and filename are saved in to variables,
2263            and not together in one variable. This is needed for the new
2264            write_creatorcomment function.
2265                    
2266            * Extensions/umn_mapserver/mf_import.py (import_mapfile): Added the
2267            import module "re". Also added Range and the ClassGroupRange import
2268            from Thuban. Both are needed for the new range expression import.
2269            (create_rangeexpression): Added. Creates a Range Expression in Thuban
2270            style from a given mapfile expression.
2271            (added_rasterlayer): Make some small code changes. The shapepath is
2272            now stored in an extra variable and the clazz_name is set empty if no
2273            class name set in the mapfile.
2274            Changed the Error message for Range Expressions, becaus the new
2275            function create a error string which will be shown in the dialog.
2276    
2277            * Extensions/umn_mapserver/test/test_mapserver.py: Added a test for the
2278            range expression import.
2279    
2280    2004-07-21  Jan-Oliver Wagner <[email protected]>
2281    
2282            * Extensions/umn_mapserver/README: Added hint that
2283            installation as root can be avoided. Removed all tabs.
2284    
2285    2004-07-16  Bernhard Herzog  <[email protected]>
2286    
2287            * test/test_viewport.py
2288            (ViewPortTest.test_changing_map_projection): Check that changing
2289            the projection of an empty map shown in a viewport doesn't lead to
2290            exceptions in the viewport's handler for the
2291            MAP_PROJECTION_CHANGED messages
2292    
2293            * Thuban/UI/viewport.py (ViewPort.map_projection_changed): Only
2294            try to keep the same region visible when the map actually contains
2295            something
2296    
2297    2004-07-15  Jan Sch�ngel <[email protected]>
2298    
2299            * Extensions/umn_mapserver/mapfile.py: Added a function to get the
2300            mappath directly from the mapobj. Is needed because of the changes
2301            in mf_import.py.
2302            (MF_Layer.add_thubanclass): Added a new comment.
2303            (MF_Map.set_extent): Fixed a bug with exporting empty mapobj. If the
2304            mapobj is empty there is no extent get from thuban an so no one can
2305            set to th mapobj.
2306            
2307            * Extensions/umn_mapserver/mf_import.py (import_mapfile): Updated
2308            the discription.
2309            Split the funktion in to three smaller ones. The new functions are
2310            add_rasterlayer, add_polygonlayer and select_layer2import.
2311            Removed the mapfilepath and filepath initialisation, because its know
2312            include in the new functions.
2313            Now nothing will be imported if cancel is pressed in the
2314            layer choice dialog.
2315    
2316    2004-07-14  Jan Sch�ngel <[email protected]>
2317    
2318            * Extensions/umn_mapserver/mapfile.py: Added ClassGroupDefault to
2319            import.
2320            (MF_Symbolset): Removed the extra variable for numsymbols.
2321            (MF_Class.__init__): Added a comment to the exception clause.
2322            Removed the extent init, because it was not needed anymore.
2323            (MF_Layer.add_thubanclass): Added the code to set the class name to
2324            the expression value from thuban if no label is defined.
2325            Added the code to export Range expressions from thuban to the mapfile.
2326            (MF_Map.set_extent): Removed the exception and replace it by some if
2327            code. If the size of a map is not defined the size will be set to 1,1.
2328            This is necessary because if the extent is set, mapscript checks if
2329            the size is greater than zero.
2330            (MF_Web): Added the get and set function for the template.
2331    
2332            * Extensions/umn_mapserver/mf_export.py: Added the function to check
2333            if a mapobject exists and used it to set the status of the menu items.
2334            If no mapfile exists the settings could not be edditied.
2335            Define after which menuitem the exportitem will include.
2336            
2337            * Extensions/umn_mapserver/mf_handle.py: Removed the import
2338            Thuban.UI.mainwindow clause, because it is not needed.
2339            Added the command Refresh() to all "OnChangeColor()" functions,
2340            because the color preview window was not updated on a color change.
2341            Added the function to check if a mapobject exists and used it to set the
2342            status of the menu items. If no mapobject exists the settings could not
2343            be edditied.
2344            (Map_Dialog): Moved the imagetype selector from the
2345            Outputformat_Dialog to Map_Dialog and removed Outputformat_Dialog.
2346            (Web_Dialog): Removed the name label and added the template textbox.
2347    
2348            * Extensions/umn_mapserver/mf_import.py (import_mapfile): Replace
2349            the exception handling on loading the layers by an if statement. It
2350            is not necessary to us the exception there.
2351            The Filepath creation now use os.path.join to build the path.
2352    
2353            * Extensions/umn_mapserver/test/test_mapserver.py: Moved the testMap
2354            definition from global to the setUp function. Now the testMap will
2355            initialize new on each test.
2356    
2357            * Extensions/umn_mapserver/sample/iceland.map: Include three new
2358            classes in the Line Layer, to test logical Expressions.
2359            Set the status of the class "Point9" in the Point Layer to off
2360            
2361    2004-07-13  Bernhard Herzog  <[email protected]>
2362    
2363            * Thuban/UI/baserenderer.py
2364            (BaseRenderer.render_map_incrementally): Fix a logic bug in the
2365            optimization that tries not to draw layers under a raster layer.
2366            The bug was harmless.  All it effectively did was to produce The a
2367            strange messages about not being able to draw Layer instances for
2368            all vector layers below a raster layer which would be invisible
2369            anyway because the raster layer currently always covers the entire
2370            window
2371    
2372    2004-07-08  Jan Sch�ngel <[email protected]>
2373    
2374            * Extensions/umn_mapserver/mapfile.py: Added code to generade and get
2375            a list of supported outputformats. This formats are not alle supported
2376            because there is no possibility to get the outputformat without the
2377            name known. Make some formal changes to the code.
2378            (MF_Map.set_name()): Fixed a bug if the name is None.
2379    
2380            * Extensions/umn_mapserver/mf_handle.py: Removed the image_type import
2381            statement, because its not needed anymore. The Outputformat is now
2382            given as string from the object. Make some formal changes to the code.
2383    
2384            * Extensions/umn_mapserver/test/test_mapserver.py: Added new test for
2385            most of the new setting which were added during the last changes.
2386            Removed the MF_Size Test.
2387            
2388            * Extensions/umn_mapserver/test/test.map: Added a new class to the
2389            cultural Layer to test expressions and the the status of that layer
2390            from on to default.
2391            Changed the data path the the correct Thuban Data
2392            Added the Outputformat Object and Symbol Object
2393            
2394    2004-07-07  Jan Sch�ngel <[email protected]>
2395    
2396            * Extensions/umn_mapserver/mapfile.py: Added some new
2397            settings to edit (outputformat, label, imagetype)
2398    
2399            * Extensions/umn_mapserver/mf_handle.py: Added some setting to
2400            the Label Dialog and add the OutputDialog.
2401            Make some changes to the code order.
2402    
2403    2004-07-06  Jan Sch�ngel <[email protected]>
2404    
2405            * Extensions/umn_mapserver/mapfile.py: Added the symbolObj, pointObj
2406            and line Obj and add the scalebar_status_type, scalebar_style_type and
2407            scalebar_position_type.
2408            Added the symbol- and symbolsetObject (MF_Symbol,MF_Symbolset). The
2409            are only used to create a Symbol like the circle in Thuban.
2410            Added the scalebarObject (MF_Scalebar)
2411            (MF_Class): Added set_status and get_status.
2412            (MF_Layer.add_thubanclass): Added code to set the class status
2413            (MF_Map): Added code to handle the symbols and scalebar
2414            (MF_Label): Added the set_partials and get_partials functions
2415            
2416            * Extensions/umn_mapserver/mf_export.py: Added MF_Symbol to import
2417            from mapfile. Added a function to create a circle object like the one
2418            from thuban if no one exists.
2419            
2420            * Extensions/umn_mapserver/mf_handle.py: All colors are now set when
2421            press ok in the assosiated dialog and not at the end of the
2422            colordialog.
2423            Added the Dialog for the Scalebar.
2424            (Label_Dialog): Added the offset option
2425    
2426            * Extensions/umn_mapserver/mf_import.py: Added code to import the
2427            status of the Classes.
2428            Fixed a bug with the projection. Now the to_meter parameter will be
2429            added to the Projection only if it doesn't exists.
2430    
2431    2004-07-01  Jan Sch�ngel <[email protected]>
2432    
2433            Added the functionality to handle the content thuban is not
2434            able to handle directly.
2435    
2436            * Extensions/umn_mapserver/mf_handle.py: New. This module extents
2437            Thuban with the possibility to edit the mapfile content.        
2438            
2439            * Extensions/umn_mapserver/mf_import.py: Added the possibility
2440            to import mapfiles without any layer selected. So it is possible
2441            to edit the other settings in a mapfile.
2442            (import_mapfile): Added code to use the editing functions.
2443            Added the possibility to import the projection to a layer if one
2444            is defined.
2445            Status settings (On,Off) will now set in thuban (visible, invisible).
2446            fixed a bug with with classnames. If no classname is set in mapfile
2447            the value in Thuban will set to the expression.
2448            
2449            * Extensions/umn_mapserver/mf_export.py(export_mapfile): Added the
2450            possibility to save a new mapfile or use the old one which is
2451            imported or new created.
2452            Added code to use the editing functions.
2453            Remove some not needed import statements
2454    
2455            * Extensions/umn_mapserver/mapfile.py: Added new types which are
2456            need for the editing functions.
2457            Added needed set-functions for the editing functions.
2458            Added the possibility to export rasterimages.
2459            Added new classes (MF_Web, MF_Label, MF_Legend, MF_Symbol,
2460            MF_SymbolSet). MF_Symbol and MF_SymbolSet are not needed at the
2461            moment.
2462            (MF_Class.set_thubanstyle): Now point layers will set to a default
2463            symbol to show a circle in mapserver and not only a 1px dot.
2464            (MF_Style.__init__): Fixed a bug with the color. Color was not set
2465            correct before.
2466            (MF_Size): Removed, because it is not needed.
2467            
2468            * Extensions/umn_mapserver/README: Added the hints to use the
2469            export and editing functions, too.
2470    
2471            * Extensions/umn_mapserver/sample/iceland.map: Added the
2472            new parameter "UNITS METERS".
2473            Change the political layer to status OFF.
2474    
2475            * Extensions/umn_mapserver/sample/README: Added some
2476            more details to setup the sample in the MapServer.
2477            
2478    2004-06-26  Bernhard Reiter <[email protected]>
2479    
2480            * Extensions/svgexport/test/test_svgmapwriter.py:
2481            Removed class VFile and used standard StringIO instead.
2482    
2483    2004-06-23  Jan Sch�ngel  <[email protected]>
2484    
2485            Add the export function to the umn_mapserver extension.
2486    
2487            * Extension/umn_mapserver/mf_export.py: New. This module extents
2488            Thuban with the possibility to export the Thuban content.
2489    
2490            * Extensions/umn_mapserver/mapfile.py: Expand the classes to use
2491            with the export module. Especially added the possibility to
2492            add thuban objects directly to the map objects.
2493    
2494            * Extensions/umn_mapserver/mf_import.py: Removed the wxCHANGE_DIR,
2495            because of the hint from Bernhard Herzog.
2496            Corrected the handling of absolute pathnames.
2497            Changed the Text of the Menu-Item, now the beginning is upper case.
2498    
2499            * Extensions/umn_mapserver/README: Added the --with-tiff statement.
2500    
2501    2004-06-16  Jan Sch�ngel  <[email protected]>
2502    
2503            Add a sample and make some changes.
2504    
2505            * Extension/umn_mapserver/mf_import.py: Changed the wxPython.wx
2506            import from * to explicit used statements. Changed the
2507            Thuban.UI.mainwindow import phrase, too.
2508            (import_mapfile):Corrected a clerical mistake.
2509            Added wxCHANGE_DIR in OpenFile Dialog.
2510            Added a MultipleChoiceDialog, to select the layers to load from
2511            mapfile into thuban. Thereby the projection is only set if one layer
2512            is selected.
2513            Added the possibility to handle relative pathnames which uses
2514            up-level references.
2515            Removed some doubled code.
2516            Corrected an error with integer values used as label in thuban
2517            ClassGroup.
2518            
2519            * Extensions/umn_mapserver/sample: New.
2520    
2521            * Extensions/umn_mapserver/sample/README: New. Describes the
2522            usage of the sample files.
2523    
2524            * Extensions/umn_mapserver/sample/iceland.map: New. This is
2525            a suitable .map-file for the iceland data.
2526    
2527            * Extensions/umn_mapserver/sample/index.html: New. The template
2528            for the mapfile.  
2529    
2530            * Extensions/umn_mapserver/sample/iceland.html: New. Initialisation
2531            file for the Iceland Application on web.
2532    
2533            * Extensions/umn_mapserver/README: Corrected a inaccuracy and added
2534            some details.
2535    
2536            * Extensions/umn_mapserver/test/test_mapserver
2537            (mapserver_import_Test_generalClasses.test_MF_Color):
2538            Corrected the thubancolor test.
2539    
2540    2004-06-15  Jan Sch�ngel  <[email protected]>
2541    
2542            * Extensions/umn_mapserver/README: New. Install instruction.
2543    
2544    2004-06-14  Bernhard Reiter <[email protected]>
2545    
2546            * libraries/thuban/cpl_mfile.h: Added copyright header.
2547    
2548            * libraries/thuban/ cpl_mfile.cpp, cpl_mfile.h: Added non-protecting
2549            Free Software License so that it is most useful with gdalwarp
2550            and bmpdataset.
2551    
2552    2004-06-14  Bernhard Herzog  <[email protected]>
2553    
2554            * Thuban/UI/multiplechoicedialog.py (__version__): Add missing
2555            import of wxPython.wx itself (as opposed to the contents of
2556            wxPython.wx).  For some reason wxPython.wx is available as
2557            wxPython.wx.wx in at least some 2.4 releases.  Fixes RT#2482
2558            wrt. wxPython 2.4.
2559    
2560    2004-06-10  Jan Sch�ngel  <[email protected]>
2561    
2562            Initial version of new extension "umn_mapserver".  This extension aims
2563            to manage configuration for the UMN MapServer application.  This
2564            inital version just imports the .map-files and displays all, Thuban is
2565            capable of.
2566    
2567            * Extensions/umn_mapserver, Extensions/umn_mapserver/test: New.
2568    
2569            * Extensions/umn_mapserver/test/README: New. Describes how to run the
2570            tests.
2571    
2572            * Extensions/umn_mapserver/test/test.map: New. This is a test
2573            .map-file for automated tests of the umn_mapserver extension of
2574            Thuban.
2575    
2576            * Extensions/umn_mapserver/test/test_mapserver.py: New. Tests for
2577            UMN Mapserver classes.
2578    
2579            * Extensions/umn_mapserver/__init__.py: New. Init to make this
2580            directory a package.
2581    
2582            * Extensions/umn_mapserver/mapfile.py: New. Classes to represent
2583            '.map'-file objects.
2584    
2585            * Extensions/umn_mapserver/mf_import.py: New. This module extends
2586            Thuban with the possibility to handle UMN MapServer mapfiles.
2587    
2588    2004-06-03  Bernhard Herzog  <[email protected]>
2589    
2590            * Thuban/Model/layer.py (Layer.TreeInfo): Convert the bounding box
2591            to a tuple before using it as arguments to the % operator.  This
2592            fixes the formatting issue filed in RT#2239 on 2004-01-13 and
2593            reported today on thuban-list by Jan Sch�ngel
2594    
2595            * test/test_layer.py (TestLayerModification.setUp): Save the
2596            filename as an instance variable so we can refer to it in tests
2597            (TestLayerModification.test_tree_info): Uncomment this method
2598            again and make it work.  This tests for the formatting issue
2599            filed in RT#2239 on 2004-01-13
2600    
2601    2004-05-28  Bernhard Herzog  <[email protected]>
2602    
2603            * Thuban/UI/baserenderer.py: Fix some typos.
2604    
2605    2004-05-18  Jan-Oliver Wagner <[email protected]>
2606    
2607            * Extensions/gns2shp/gns2shp.py (gns2shp): Fixed a bug
2608            by increasing a field size.
2609    
2610    2004-05-17  Bernhard Herzog  <[email protected]>
2611    
2612            Update to newest shapelib and get rid of Thuban specific
2613            extensions, i.e. use the new DBFUpdateHeader instead of our
2614            DBFCommit kludge
2615    
2616            * libraries/shapelib/shpopen.c: Update to version from current
2617            shapelib CVS.
2618    
2619            * libraries/shapelib/shapefil.h: Update to version from current
2620            shapelib CVS.
2621    
2622            * libraries/shapelib/dbfopen.c: Update to version from current
2623            shapelib CVS.
2624            (DBFCommit): Effectively removed since shapelib itself has
2625            DBFUpdateHeader now which is better for what DBFCommit wanted to
2626            achieve.  
2627            We're now using an unmodified version of dbfopen.
2628    
2629            * setup.py (extensions): Add the HAVE_UPDATE_HEADER macro with
2630            value '1' to the Lib.dbflibc extension.  This simply reflects the
2631            shapelib and pyshapelib updates
2632    
2633    2004-05-16  Jan-Oliver Wagner <[email protected]>
2634    
2635            Finished introduction of Menu.FindOrInsertMenu.
2636    
2637            * Extensions/drawshape/drawshape.py: Add the command
2638            to the experimental menu additionally to the toolbar.
2639    
2640            * Extensions/svgexport/svgsaver.py: Use FindOrInsertMenu() instead of
2641            finding menu on its own.
2642    
2643            * Doc/manual/thuban-manual.xml: updated sample file
2644            to use FindOrInsertMenu().
2645    
2646            * Examples/simple_extensions/hello_world.py: Use FindOrInsertMenu()
2647            instead of finding menu on its own.
2648    
2649    2004-05-11  Jan-Oliver Wagner <[email protected]>
2650    
2651            * test/test_menu.py (MenuTest.test): Added testing
2652            of method Menu.FindOrInsertMenu.
2653    
2654    2004-05-10  Jan-Oliver Wagner <[email protected]>
2655    
2656            Introduce and use Menu.FindOrInsertMenu.
2657    
2658            * Thuban/UI/menu.py (Menu.FindOrInsertMenu): New. Find a
2659              given menu or, if not found, insert it.
2660    
2661            * Extensions/bboxdump/bboxdump.py, /Extensions/gns2shp/gns2shp.py,
2662            /Extensions/importAPR/importAPR.py, Extensions/profiling/profiling.py,
2663            /Extensions/wms/wms.py: Use FindOrInsertMenu() instead of finding
2664            menu on its own.
2665    
2666    2004-05-06  Jan-Oliver Wagner <[email protected]>
2667    
2668            Introduce a abstract ColorDialog class and remove
2669            and outdated file.
2670    
2671            * Thuban/UI/proj4dialog.py: Removed. It is has been
2672            replaced by projdialog for quite a while and is not used
2673            anymore.
2674    
2675            * Thuban/UI/colordialog.py: New. Abstraction for color selection
2676            dialog(s).
2677    
2678            * Thuban/UI/classifier.py (SelectPropertiesDialog.__GetColor):
2679            Now calls the abstract ColorDialog instead of wxColourDialog.
2680            This also removed the dependency to Color class conversion
2681            from this function.
2682    
2683    2004-05-04  Frank Koormann  <[email protected]>
2684    
2685            * Extensions/bboxdump/__init__.py: Fixed string left over from
2686            copying.
2687    
2688            * Extensions/bboxdump/bboxdump.py (bboxdump):
2689            Use layer.ShapeStore().AllShapes() to loop over shapes instead of
2690            xrange(layer.NumShapes()). Compile the bboxmessage from a list
2691            of formatted outputs (string.join) instead of appending to the
2692            message. Two progress bar dialogs to report progress on the sometimes
2693            lenghty processing.
2694    
2695    2004-04-22  Frank Koormann  <[email protected]>
2696    
2697            New Extension to dump bounding boxes of all shapes of the selected
2698            layer. An optional column can be specified to group the objects,
2699            in this case the bounding box is a union of the separate boxes.
2700            Dump can be displayed in a ScrolledMessageDialog or written to file.
2701            The Extension is simply a combination of available and well tested
2702            Thuban functionality.
2703    
2704            * Extensions/bboxdump/__init__.py: New: Init to make this
2705            directory a package.
2706    
2707            * Extensions/bboxdump/bboxdump.py: New: Dump bounding boxes of
2708            all shapes of the selected layer.
2709    
2710    2004-04-22  Jan-Oliver Wagner <[email protected]>
2711    
2712            * Thuban/UI/classgen.py (GenUniquePanel.__init__): Fixed two
2713            strings to be i18n now.
2714    
2715    2004-04-18  Jan-Oliver Wagner <[email protected]>
2716    
2717            Changing popup menu of legend from direct building
2718            to using the Menu construction as used for the mainwindow.
2719    
2720            * Thuban/UI/mainwindow.py: New method commands: layer_to_top,
2721            layer_to_bottom, layer_visibility
2722            (MainWindow.LayerToTop): New. Put current layer to the top.
2723            (MainWindow.LayerToBottom): New. Put current layer to bottom.
2724            (MainWindow.HideLayer, MainWindow.ShowLayer, _has_visible_map):
2725            Replace 1,0 by True, False.
2726            (MainWindow.ToggleLayerVisibility): New. Toggle visibility of
2727            current layer.
2728            (MainWindow.LayerShowTable): Removed raising of dialog.
2729            (_has_selected_layer_visible): New. Support function.
2730    
2731            * Thuban/UI/legend.py: ID_POP_xxx: removed.
2732            (LegendPanel.__init__): Removed EVT_MENU bindings.
2733            (LegendTree._OnRightClick): Replace direct creation of
2734            menu via wx Classes by applying the menu definition
2735            as of Menu class of menu.py.
2736            
2737    2004-04-16  Jan-Oliver Wagner <[email protected]>
2738    
2739            * Thuban/UI/exceptiondialog.py (ExceptionDialog.dialog_layout): Improved
2740        button string to stronger clearify that Thuban will be closed when hitting
2741            the button.
2742    
2743            * Thuban/UI/mainwindow.py (MainWindow.LayerShowTable): Added docstring.
2744            Now for layers without a ShapeStore a corresponding message is given
2745            to the user, that this layer has no table to show.
2746    
2747    2004-04-15  Martin Schulze  <[email protected]>
2748    
2749            * Extensions/wms/layer.py (WMSLayer.setWMSFormat): Need to
2750            recalculate the format for the internal render engine as well.
2751    
2752            * Extensions/wms/properties.py (wmsProperties): First start for a
2753            properties dialog.  It's functional for a first selection of
2754            layers, but still has some weired wxWidgets/GTK problems but
2755            beautification can be done later.
2756    
2757            * Extensions/wms/layer.py: Added more documentation
2758            (WMSLayer.getFormats): New: Return list of supported image formats
2759            by the WMS server
2760            (WMSLayer.getLayers): New: Return the list of layer names
2761            supported by the WMS server
2762            (WMSLayer.getLayerTitle): New: Return the title of the named layer
2763            (WMSLayer.getWMSFormat): New: Return the image format that is used
2764            for WMS GetMap requests
2765            (WMSLayer.setWMSFormat): New: Set the image format that is used
2766            for WMS GetMap requests
2767            (WMSLayer.__init__): Move away from using only one layer to using
2768            a list of layers (unsorted at the moment, though).
2769            (WMSLayer.getVisibleLayers): New: Return the list of names for all
2770            visible layers
2771            (WMSLayer.setVisibleLayers): New: Set the list of names for all
2772            visible layers
2773    
2774            * Extensions/wms/wms.py: Moved the WMS layer into layer.py in
2775            order to establish a clean structure.
2776    
2777            * Extensions/wms/layer.py: Moved the WMS layer into a file on its
2778            own in order to establish a clean structure.
2779    
2780    2004-04-13  Martin Schulze  <[email protected]>
2781    
2782            * Extensions/wms/parser.py (WMSCapabilitiesParser.grok): Added
2783            support for oldstyle (WMS 1.0 apparently) image format
2784            specification.
2785    
2786            * Extensions/wms/wms.py (WMSLayer.calcFormat): Reduce the list of
2787            supported graphic formats back to JPEG and BMP, PNG and others are
2788            too *cough* experimental...  Sorry, I meant to filter this out
2789            before I committed this part.  This should make the WMS extension
2790            run from CVS again.
2791            (wms_dialog): Reset an empty URL to None so that the subsequent
2792            program can depend on this, since the dialog will indeed return an
2793            empty URL, causing another declaration of love by Python.
2794    
2795            * Extensions/wms/parser.py (WMSCapabilitiesParser.getLayerBBox):
2796            Whenever a native BoundingBox request cannot be fulfilled, check
2797            whether the requested SRS is EPSG:3426, in which case return the
2798            LatLonBoundingBox values.
2799    
2800            * Extensions/wms/test/test_parser.py
2801            (TestWMSCapabilitiesParser.test_LayerSRS): Added a test for
2802            ignoring AUTO:* SRS.
2803            (TestWMSCapabilitiesParser.test_LatLonBoundingBoxes_as_bboxes):
2804            Added another test method to test whether the LatLonBoundingBox
2805            values will be returned if BoundingBox values are requested with
2806            SRS set to EPSG:3426.
2807    
2808            * Extensions/wms/parser.py (WMSCapabilitiesParser.peekLayers):
2809            Added rudimentary support for non-EPSG SRS, i.e. ignore them for
2810            the moment by placing them into a variable which is currently
2811            unused.  Also test whether the EPSG SRS is numerical as it should
2812            be and add an error message if it is not.
2813    
2814            * Extensions/wms/test/sample.xml: Added AUTO:* SRS since they
2815            appear in the real world as well.  Since we cannot handle them yet
2816            (OGCLib can't either), we will ignore them for the moment.
2817    
2818            * Extensions/wms/parser.py: Use a variable for denoting the sample
2819            filename
2820            (WMSCapabilitiesParser.peekLayers): Added support for error
2821            messages during grok().  They will be aggregated in an array and
2822            may be displayed later.  We may have to add a classification
2823            "Warning" and "Error" to this.  That requires more experience,
2824            though, since not every error may be lethal.
2825    
2826            * Thuban/UI/mainwindow.py (MainWindow.LayerShowTable): Raise the
2827            ShowTable() dialog/frame when the user attempts to display it
2828            while it has been opened before already and not closed again.
2829    
2830    2004-04-11  Martin Schulze  <[email protected]>
2831    
2832            * Extensions/wms/infodialog.py: Adjusted the class documentation
2833    
2834            * Extensions/wms/wms.py (WMSLayer.__init__, WMSLayer.GetMapImg):
2835            Switch to using Thuban{Begin,End}BusyCursor instead of the pure
2836            wxWidgets variants.
2837            (WMSLayer.__init__): The epsg_id variable is named top_srs now.
2838    
2839            * Extensions/wms/infodialog.py: Added an information dialog that
2840            will display various information about the WMS current resource,
2841            so that additional information such as the title, the abstract,
2842            fees and access constraints can be displayed for the user if they
2843            are documented in the WMS XML.
2844    
2845    2004-04-10  Martin Schulze  <[email protected]>
2846    
2847            * Extensions/wms/parser.py (WMSCapabilitiesParser.grok): Adjusted
2848            string handling.  It's "foo".lower() and not lower(foo) without
2849            lower imported from strings or something.
2850    
2851            * Extensions/wms/wms.py (WMSLayer): Incorporated WMSCapabilities
2852            from capabilities.py and parser.py.  Implement priority list for
2853            supported graphics formats, take care of wbmp != bmp.  PNG, TIFF
2854            and GIF are supported here, but not yet by main Thuban.  Hence,
2855            support for them may be removed later.  Special contribution to
2856            usability: get wxWidgets to change the cursor when we're waiting
2857            for data from the network so the user won't start to worry.  This
2858            causes a redrawing error/warning, though.
2859    
2860            * Extensions/wms/parser.py (WMSCapabilitiesParser.grok): Unlink
2861            the DOM object.
2862    
2863    2004-04-01  Martin Schulze  <[email protected]>
2864    
2865            * Extensions/wms/capabilities.py: Adjusted documentation
2866            (WMSCapabilities.__init__): Improved documentation, fixed syntax
2867            (WMSCapabilities.saveCapabilities): Only catch IOError when
2868            handling files
2869            (WMSCapabilities.loadCapabilities): Only catch IOError when
2870            handling files
2871            __main__: corrected variable naming
2872            (WMSCapabilities.fetchCapabilities,loadCapabilities): Make this
2873            class a specialisation of WMSCapabilitiesParser as well.  Also
2874            execute grok() after loading or fetching capabilities, if that
2875            went well, so that subsequent calls can already access the data.
2876            (WMSCapabilities.getVersion): Export the used version of the
2877            GetCapabilities request, so we can use it for subsequent calls,
2878            i.e. for GetMap requests.
2879            (WMSCapabilities.fetchCapabilities): Added proper error handling
2880            when the GetCapabilities request failed, so that the surrounding
2881            program can act accordingly.
2882    
2883    2004-03-30  Martin Schulze  <[email protected]>
2884    
2885            * Extensions/wms/parser.py (WMSCapabilitiesParser.getLayerSRS):
2886            Adjusted the getLayerSRS method to return the list of SRSes
2887            extracted from <SRS> elements instead of <BoundingBox> elements.
2888            Added a bit of documentation as well.
2889            (WMSCapabilitiesParser.checkLayerSRS): Removed integrity test
2890            since it was only implemented due to a misunderstanding.
2891    
2892            * Extensions/wms/test/test_parser.py
2893            (TestWMSCapabilitiesParser.test_LayerSRS): Adjust the tests to
2894            reflect the corrected interpretation of the standard: i.e. a layer
2895            does not have to define a BoundingBox for all SRSes it supports.
2896            Hence the <SRS></SRS> specification is authoritative, not the list
2897            of BoundingBoxes.
2898            (TestWMSCapabilitiesParser.test_BoundingBoxes): Added a new test
2899            to ensure None is returned for a non-existing SRS.
2900            (TestWMSCapabilitiesParser.test_grok): Removed test_grok method
2901            since it is not applicable anymore.  Listing more SRSes in <SRS>
2902            elements is valid according to the specs.
2903    
2904    2004-03-26  Bernhard Reiter <[email protected]>
2905    
2906            * README: Nicer formatting of text. Improved descriptions.
2907            Reflected wxWidgets name change.
2908            
2909            * Thuban/UI/about.py: Extended copyright to 2004 and added
2910            information about the thuban-devel mailinglist.
2911    
2912    2004-03-24  Martin Schulze  <[email protected]>
2913    
2914            * Extensions/wms/capabilities.py: Renamed the class to contain
2915            'WMS', also added a linebreak where required
2916    
2917            * Extensions/wms/parser.py: Finally added the XML parser for the
2918            GetCapabilities response.
2919    
2920            * Extensions/wms/test/sample.xml: Adjusted the sample file so that
2921            <SRS> elements match the <BoundingBox> elements, except for the
2922            layer 'beschriftung'.
2923    
2924            * Extensions/wms/test/test_parser.py: Encode non-ascii strings
2925            since Python uses unicode strings internally, otherwise
2926            comparisons will fail.  Removed tests for getLayerBBoxSRS() since
2927            the SRS will be calculated anyway and this method is obsoleted by
2928            getLayerSRS().  Denote SRS as strings and not as cardinal numbers.
2929            Move loading the sample file into the setUp method.  Added a test
2930            for finding the integrity problem in the sample response.
2931            Improved formatting.
2932    
2933            * Extensions/wms/domutils.py: Added convenience routines for
2934            handling of Document Object Model (DOM) nodes.
2935    
2936            * Extensions/wms/test/test_domutils.py: Added a test for the
2937            domutils module
2938    
2939    2004-03-19  Martin Schulze  <[email protected]>
2940    
2941            * Extensions/wms/test/test_parser.py (TestWMSCapabilitiesParser):
2942            Moved path detection and adding into a module of its own,
2943            adjustpath, which exports thubandir as main Thuban directory.
2944    
2945            * Extensions/wms/test/test_ogclib.py (TestWMSLib): Moved path
2946            detection and adding into a module of its own, adjustpath, which
2947            exports thubandir as main Thuban directory.  Reorganised the
2948            module in order to support the SkipTest feature for Thuban test
2949            cases.
2950    
2951            * Extensions/wms/test/adjustpath.py: Moved path detection and
2952            adding into a module of its own.
2953    
2954    2004-03-18  Martin Schulze  <[email protected]>
2955    
2956            * Extensions/wms/test/test_parser.py: Added another test for
2957            checking whether the WMS XML parser (to be implemented) returns
2958            the information we expect.  This requires a sample WMS WML file
2959            (sample.xml) which has been extracted from the frida server and
2960            "improved" manually.
2961    
2962            * Extensions/wms/test/test_ogclib.py: Added legacy code to add the
2963            main Thuban directory to the path in order to be able to import
2964            random modules.  Adjusted the PyOGCLib detection to reuse the
2965            information gathered.  Also added a note about the PYTHONPATH
2966            environment variable.
2967    
2968            * Extensions/wms/test/test_ogclib.py: The format specification is
2969            a mime-type, not a graphic format, hence image/jpeg wou ld be the
2970            proper format and not JPEG.  We'll also have to take care of the
2971            encoding of / as %2F.
2972    
2973    2004-03-16  Martin Schulze  <[email protected]>
2974    
2975            * Extensions/wms/test/test_ogclib.py: Added a (hopefully)
2976            comprehensive test for the getMapURL method, built compare URLs
2977            according to the documentation in OGC 01-068r3
2978    
2979            * Extensions/wms/capabilities.py (WMSCapabilities): Added the
2980            class WMSCapabilities to manage capabilites, will incorporate
2981            parsing the capabilities response and provide details for other
2982            classes.
2983    
2984    2004-03-12  Bernhard Herzog  <[email protected]>
2985    
2986            Support views in addition to normal tables in the postgis
2987            shapestore
2988    
2989            * Thuban/Model/postgisdb.py
2990            (PostGISShapeStore._fetch_table_information): Add a fallback for
2991            the case where the table name is not in the geometry_columns
2992            table.  This is usually the case for views.  Also, set
2993            self.shapestore here.
2994            (PostGISShapeStore.ShapeType): No need to query the database all
2995            the time.  The shape type is now determined in
2996            _fetch_table_information
2997    
2998            * test/postgissupport.py (PostgreSQLServer.new_postgis_db)
2999            (PostgreSQLServer.get_static_data_db, PostGISDatabase.__init__):
3000            New parameter to specify views.
3001            (PostGISDatabase.has_data): Also compare the views.  New views
3002            parameter
3003            (PostGISDatabase.initdb): Create the views.
3004            (PostgreSQLServer.get_default_static_data_db): Add the v_landmarks
3005            view
3006    
3007            * test/test_postgis_db.py
3008            (TestPostGISShapestorePointFromViews): New.  Test a
3009            PostGISShapeStore with a view
3010            (TestPostGISShapestorePointOIDAsGIDColumn.setUp): Pass the name of
3011            the geometry_column explicitly to test whether that works
3012    
3013    2004-03-12  Bernhard Herzog  <[email protected]>
3014    
3015            Final step for explicit id/geometry columns: Loading and saving
3016    
3017            * Resources/XML/thuban-1.1.dtd: New.  Derived from thuban-1.0.dtd
3018            with the following changes:
3019            (dbshapesource): Two new attributes id_column and geometry_column
3020    
3021            * Thuban/Model/save.py (SessionSaver.write): Use the new dtd
3022            (SessionSaver.write_session): Use the new namespace
3023            (SessionSaver.write_data_containers): Write the new dbshapesource
3024            parameters
3025    
3026            * Thuban/Model/load.py (SessionLoader.__init__): New namespace for
3027            the new file format version
3028            (SessionLoader.start_dbshapesource): Handle the new db parameters
3029    
3030            * test/test_save.py: Update to the new dtd and namespace
3031            (SaveSessionTest.test_save_postgis): Update the NonConnectionStore
3032            mock object to provide a working IDColumn method.
3033    
3034            * test/test_load_1_0.py: New.  Copy of the test_load.py before
3035            today's changes but with the round-trip tests removed.
3036    
3037            * test/test_load_0_9.py: Update doc-string.
3038    
3039            * test/test_load.py: Update all .thuban files to the new dtd and
3040            namespace.
3041            (TestPostGISLayer.file_contents): Add the new dbshapesource
3042            paramters
3043    
3044    2004-03-11  Bernhard Herzog  <[email protected]>
3045    
3046            Next step for explicit id/geometry columns: User interaction
3047    
3048            * Thuban/UI/dbdialog.py (ChooseDBTableDialog.__init__): Rework how
3049            the dialog is constructed. Add combo boxes to select id and
3050            geometry column.  Rename some instance variables.
3051            (ChooseDBTableDialog.GetTable): Return id and geometry column
3052            names
3053            (ChooseDBTableDialog.OnTableSelect): New. Event handler for
3054            selections in the table list
3055    
3056            * Thuban/UI/mainwindow.py (MainWindow.AddDBLayer): Use id_column
3057            and geometry_column
3058    
3059            * Thuban/Model/session.py (Session.OpenDBShapeStore): Add the new
3060            parameters for id_column and geometry column of PostGISShapeStore
3061            here as well.
3062    
3063            * Thuban/Model/postgisdb.py (type_map): Add ROWID psycog type.
3064            (_raw_type_map): New. Map raw PostgreSQL type ints to thuban types
3065            (PostGISConnection.GeometryTables): Use a better query to
3066            determine which relations in the database might be usable for
3067            shapestores.  Now supports views as well but is more PostgreSQL
3068            specific
3069            (PostGISConnection.table_columns): New. Somewhat experimental
3070            method to let the db dialogs provide lists of columns to users so
3071            that they can select id and geometry columns.
3072            (PostGISTable.__init__): The default value of the id_column
3073            parameter is now None it still means "gid" effectively, though.
3074            (PostGISTable.IDColumn): New introspection method to return a
3075            column object for the id column
3076            (PostGISShapeStore.GeometryColumn): New introspection method to
3077            return a column object for the geometry column
3078    
3079            * test/test_postgis_db.py
3080            (TestPostGISConnection.test_gis_tables_non_empty):
3081            Removed. Subsumed by the new:
3082            (TestPostGISConnection.test_gis_tables_with_views_and_tables):
3083            New. Tes the GeometryTables and table_columns methods with actual
3084            tables and views.
3085            (PointTests.test_id_column, PointTests.test_geometry_column):
3086            New. tests for the new methods.
3087            (TestPostGISShapestorePoint.setUp)
3088            (TestPostGISShapestorePointSRID.setUp)
3089            (TestPostGISShapestorePointExplicitGIDColumn.setUp): Fill the
3090            instance variables needed by the new tests
3091    
3092    2004-03-11  Bernhard Herzog  <[email protected]>
3093    
3094            * Thuban/UI/classgen.py (GenQuantilesPanel.GetList): The row
3095            numbers given to ReadValue are ordinals.
3096    
3097    2004-03-11  Bernhard Herzog  <[email protected]>
3098    
3099            Elimiate the requirement for PostGIS tables to have a column
3100            called "gid".
3101    
3102            * Thuban/Model/postgisdb.py (PostGISTable.__init__): New parameter
3103            id_column to specify which column to use to identify rows.  Also
3104            new instance variables id_column and quoted_id_column
3105            (PostGISTable.RowIdToOrdinal, PostGISTable.RowOrdinalToId)
3106            (PostGISTable.ReadRowAsDict, PostGISTable.ReadValue)
3107            (PostGISTable.SimpleQuery): Use the id column name provided to the
3108            constructor instead of "gid"
3109            (PostGISShapeStore.__init__): New parameter id_column analogously
3110            to PostGISTable.__init__.  This parameter is simply passed through
3111            to the base class constructor
3112            (PostGISShapeStore._create_col_from_description): Fix typo in
3113            doc-string
3114            (PostGISShapeStore.Shape, PostGISShapeStore.AllShapes)
3115            (PostGISShapeStore.ShapesInRegion): Use the id column name
3116            provided to the constructor instead of "gid"
3117    
3118            * test/postgissupport.py
3119            (PostgreSQLServer.get_default_static_data_db): New static table
3120            landmarks_point_id with an id column != "gid.  Update the comments
3121            a bit.
3122            (skip_if_addgeometrycolumn_does_not_use_quote_ident): Fix typo in
3123            doc-
3124            (upload_shapefile): New parameter gid_column to use a name other
3125            than "gid" for the column to store the shape ids
3126    
3127            * test/test_postgis_db.py (TableTests): New.  Mixin-class
3128            containing all tests previously in TestPostGISTable.  The actual
3129            tests are the same but the code is a bit more configurable to
3130            allow for different id columns etc.
3131            (TestPostGISTable): Derive from TableTests now for the actual
3132            tests.
3133            (TestPostGISTableExplicitGIDColumn): New. Like TestPostGISTable
3134            except that it the landmarks_point_id table to test the id_column
3135            parameter
3136            (PointTests): Extend the doc-string
3137            (TestPostGISShapestorePointExplicitGIDColumn)
3138            (TestPostGISShapestorePointOIDAsGIDColumn): New classes derived
3139            from PointTests to test the explicit id_column parameter.  One
3140            tests with the name of the column holding the shape ids, the other
3141            uses PostgreSQL's OID column.  For the latter a number of methods
3142            have to be overwritten to make them independent of the actual id
3143            values.
3144    
3145    2004-03-08  Silke Reimer  <[email protected]>
3146    
3147            Update debian directory:
3148    
3149            * debian/changelog: Added new version.
3150            * deiban/rules: Updated management of patches (with cbds)
3151            * debian/control: Added cbds to dependencies
3152            * debian/patches/*: New. Adds better support for patches of thuban in
3153                            debian
3154            * debian/menu: Syntax of menu changed slightly
3155            * debian/setup.py.patch: removed because it has been moved to
3156                            debian/patechs/setup.py.patch
3157            
3158    
3159    2004-02-26  Bernhard Herzog  <[email protected]>
3160    
3161            Create the Doc/technotes directory for text files with information
3162            for developers
3163    
3164            * Doc/technotes/README: New. README for the technotes
3165    
3166            * Doc/technotes/coding_guidelines.txt: New. Coding guidelines for
3167            Thuban
3168    
3169            * Doc/technotes/release_process.txt: New. Used to be
3170            HOWTO-Release.  Now slightly adapted to technote formatting style.
3171    
3172            * HOWTO-Release: Removed.  It's contents are now in
3173            Doc/technotes/release_process.txt
3174    
3175    2004-02-25  Bernhard Herzog  <[email protected]>
3176    
3177            * libraries/thuban/wxproj.cpp (get_wx_version): New.  Return the
3178            version of wxWindows the module was compiled with so we can check
3179            that against the wxPython version.
3180    
3181            * Thuban/version.py (thuban_branch, thuban_release): New variables
3182            controlling which and how Thuban versions are shown.  See the
3183            comments for details.
3184            (verify_versions): Also check that the wx version that wxproj is
3185            compiled against matches that of the wxPython we use at runtime
3186    
3187    2004-02-20  Bernhard Herzog  <[email protected]>
3188    
3189            * Extensions/wms/wms.py (epsg_code_to_projection): Use
3190            get_system_proj_file to read the epsg projections.  The old way
3191            depended on the current directory being the top Thuban directory.
3192    
3193    2004-02-20  Bernhard Herzog  <[email protected]>
3194    
3195            * Extensions/svgexport/test/test_svgmapwriter.py
3196            (TestVirtualDC.test_clippath): Remove a debug print
3197    
3198    2004-02-20  Bernhard Herzog  <[email protected]>
3199    
3200            * Extensions/svgexport/__init__.py: New.  Turn
3201            Extensions/svgexport into a package.
3202    
3203            * Extensions/svgexport/svgmapwriter.py: Reorder the imports and
3204            doc-string a bit.  The doc-string must come first, otherwise it's
3205            not a doc-string.  The __future__ import must be the first thing
3206            after the doc-string.  Use only double quotes in doc-strings.
3207            Single quotes trip up emacs syntax highlighting if the text
3208            contains apostrophes.
3209    
3210    2004-02-20  Bernhard Herzog  <[email protected]>
3211    
3212            * Extensions/svgexport/test/__init__.py,
3213            Extensions/svgexport/test/test_svgmapwriter.py: New. Initial test
3214            suite for svgexport
3215    
3216            * test/runtests.py (find_test_modules): New. Function with the
3217            module finding code from main.
3218            (main): Use find_test_modules to figure out the default test
3219            modules and take modules from Extensions.svgexport.test too.
3220    
3221    2004-02-19  Bernhard Herzog  <[email protected]>
3222    
3223            * Thuban/UI/application.py (ThubanApplication.OnInit): Make sure
3224            the mainwindow has a reference to the map of the initial session.
3225            This fixes a bug introduced with the fix for RT#2245
3226    
3227    2004-02-19  Bernhard Herzog  <[email protected]>
3228    
3229            * Extensions/svgexport/svgsaver.py,
3230            Extensions/svgexport/svgmapwriter.py,
3231            Extensions/svgexport/maplegend.py: Added again.  This time in the
3232            correct place.
3233    
3234    2004-02-17  Bernhard Herzog  <[email protected]>
3235    
3236            Fix for RT#2245
3237    
3238            * Thuban/UI/application.py (ThubanApplication.OnInit): Initialize
3239            instance variables before trying to create any windows.  Creating
3240            windows can start an event loop if e.g. message boxes are popped
3241            up for some reason, and event handlers, especially EVT_UPDATE_UI
3242            may want to access things from the application.
3243            (ThubanApplication.maps_changed): The mainwindow may not have been
3244            created yet, so check whether it has been created before calling
3245            its methods
3246    
3247            * Thuban/UI/view.py (MapCanvas.OnIdle): Only try to redraw if we
3248            have a map
3249    
3250    2004-02-17  Bernhard Herzog  <[email protected]>
3251    
3252            * test/test_svgmapwriter.py, Extensions/svgsaver.py,
3253            Extensions/svgmapwriter.py, Extensions/maplegend.py,
3254            extensions/svgexport/svgsaver.py,
3255            extensions/svgexport/svgmapwriter.py,
3256            extensions/svgexport/maplegend.py: Removed.  These files were in
3257            the wrong places or didn't work at all.
3258    
3259    2004-02-16  Bernhard Herzog  <[email protected]>
3260    
3261            * Thuban/UI/view.py (MapCanvas.Export): Remove accidentally added
3262            line
3263    
3264    2004-02-16  Bernhard Herzog  <[email protected]>
3265    
3266            * Thuban/UI/view.py (MapCanvas.Export): Avoid UnboundLocalError.
3267    
3268    2004-02-15  Markus Rechtien  <[email protected]>
3269            
3270            * Extensions/svgexport/svgmapwriter.py: New. Adds the capability
3271            to write a session to a file in SVG format.
3272            * Extensions/svgexport/svgsaver.py: New. Uses svgmapwriter.py
3273            to write a SVG map of a session.
3274            * Extensions/svgexport/maplegend: New. Writes a basic maplegend
3275            in SVG format for the current session.
3276    
3277    2004-02-13  Bernhard Herzog  <[email protected]>
3278    
3279            * Thuban/UI/mainwindow.py (MainWindow.AddDBLayer): When the layer
3280            can't be created, return immediately after displaying the error
3281            message.
3282    
3283    2004-02-11  Bernhard Herzog  <[email protected]>
3284    
3285            Handle postgis tables with more than one geometry column.
3286    
3287            * Thuban/Model/postgisdb.py
3288            (PostGISTable._fetch_table_information): Delegate the creation of
3289            column objects to a different method so that we can extend that in
3290            derived classes
3291            (PostGISTable._create_col_from_description): New. Column object
3292            creation part of _fetch_table_information
3293            (PostGISShapeStore._create_col_from_description): New. Extend
3294            inherited method to handle geometry columns
3295            (PostGISShapeStore.__init__): New parameter geometry_column to
3296            specify which geometry column to use.  Optional but mandatory for
3297            tables with more than one geometry column
3298            (PostGISShapeStore._fetch_table_information): Also use the name of
3299            the geometry column when looking for the srid
3300            (PostGISShapeStore.ShapeType): Also use the name of the geometry
3301            column when looking for the shape type
3302    
3303            * test/test_save.py (SaveSessionTest.test_save_postgis): Adapt
3304            NonConnectionStore to changes in the PostGISShapeStore
3305    
3306            * test/test_postgis_db.py
3307            (TestPostGISSpecialCases.test_shapestore_two_geom_cols): Test
3308            PostGISShapeStore with tables having two geometry columns.
3309    
3310    2004-02-10  Bernhard Herzog  <[email protected]>
3311    
3312            Fix some postgis problems.  What remains to be done is real
3313            handling of SRIDs as they affect how reprojection is done
3314    
3315            * Thuban/Model/postgisdb.py (quote_identifier): Fix typo in
3316            doc-string
3317            (PostGISShapeStore._fetch_table_information): New. Extend
3318            inherited method to retrieve srid
3319            (PostGISShapeStore.BoundingBox): Handle tables without data.
3320            extent yields NULL for those
3321            (PostGISShapeStore.ShapesInRegion): Use the srid of the table.
3322    
3323            * test/test_postgis_db.py
3324            (TestPostGISSpecialCases.test_shapestore_empty_table): New test
3325            for the special case of a table without any data
3326            (TestPostGISShapestorePointSRID): New class with tests for a table
3327            that uses srids
3328            (PolygonTests): Fix a doc-string typo
3329    
3330            * test/postgissupport.py (PostGISDatabase.__init__): New parameter
3331            reference_systems with a specification of spacial reference
3332            systems to create in the new db.
3333            (PostgreSQLServer.new_postgis_db)
3334            (PostgreSQLServer.get_static_data_db): New parameter
3335            reference_systems to be passed through ultimately to
3336            PostGISDatabase.  In new_postgis_db also check whether an existing
3337            db already has the right srids
3338            (PostgreSQLServer.get_default_static_data_db): Add srids and a
3339            table that uses srids
3340            (PostGISDatabase.initdb): Create the entries for the reference
3341            systems
3342            (PostGISDatabase.has_data): Add reference_systems parameter to
3343            check for those too
3344            (upload_shapefile): New parameter srid to create tables with a
3345            specific srid
3346    
3347    2004-02-06  Frank Koormann  <[email protected]>
3348    
3349            * po/pt_BR.po: Fixed charset
3350    
3351    2004-02-05  Frank Koormann  <[email protected]>
3352    
3353            * po/pt_BR.po: Fixed format string for error message, missing %s
3354            added (Thuban/UI/application.py:273)
3355    
3356    2004-02-03  Frank Koormann  <[email protected]>
3357            
3358            First version of Portuguese (Brazilian) translation
3359    
3360            * po/pt_BR.po: New, translation of pot (2004-01-15 16:07+0300) for
3361            Brazilian Portuguese by Eduardo Patto Kanegae.
3362    
3363            * Thuban/UI/about.py (About.__init.py__): Added Eduardo to the list of
3364            translators.
3365    
3366    
3367    2004-01-22  Frank Koormann  <[email protected]>
3368    
3369            * Doc/manual/thuban-manual.xml: Added section on installation of
3370            Thuban under Win32 systems. Fixed image path references in the postgis
3371            section. Some minor source formattings.
3372    
3373    2004-01-21  Frank Koormann  <[email protected]>
3374    
3375            Make Thuban remember path selections (at least for one application run).
3376    
3377            * Thuban/UI/application.py (Application.OnInit): Initialize path as a
3378            attribute of application object. Path is a dictionary of
3379            strings, currently with the items "data" and "projection".  
3380            (Application.SetPath): New, stores path for the specified item.
3381            (Application.Path): New, return path for the specified item.
3382    
3383            * Thuban/UI/mainwindow.py
3384            (MainWindow.OpenSession, MainWindow.SaveSessionAs,
3385            MainWindow.AddLayer, MainWindow.AddRasterLayer,
3386            MainWindow.TableOpen): Access "data" path information of the
3387            application.
3388            
3389            * Thuban/UI/projdialog.py (ProjFrame._OnImport, ProjFrame._OnExport):
3390            Access "projection" path information of the application.
3391    
3392    2004-01-05  Bernhard Herzog  <[email protected]>
3393    
3394            * po/ru.po: Updated translations from Alex Shevlakov
3395    
3396    2004-01-05  Bernhard Herzog  <[email protected]>
3397    
3398            * po/Makefile, po/README: Move the description of how to generate
3399            the translation statistics to the README.
3400    
3401    2003-12-23  Bernhard Herzog  <[email protected]>
3402    
3403            * NEWS: Update for 1.0.0
3404    
3405            * po/it.po: Another update from Maurizio Napolitano
3406    
3407    2003-12-23  Bernhard Herzog  <[email protected]>
3408    
3409            * po/it.po: Updated translation from Maurizio Napolitano
3410    
3411    2003-12-23  Bernhard Herzog  <[email protected]>
3412    
3413            * Thuban/UI/join.py (JoinDialog.__init__): Mark one more string
3414            for translation
3415    
3416            * Thuban/UI/mainwindow.py (MainWindow.TableRename)
3417            (MainWindow.RenameMap, MainWindow.RenameLayer): Mark some more
3418            strings for translation
3419    
3420            * po/de.po: Update with the newly marked strings.
3421    
3422    2003-12-22  Bernhard Herzog  <[email protected]>
3423    
3424            * HOWTO-Release: Fix the places where version numbers have to be
3425            updated
3426    
3427    2003-12-22  Bernhard Herzog  <[email protected]>
3428    
3429            * setup.py (setup call): 1.0.0, yeah!
3430    
3431            * Thuban/version.py (longversion): 1.0.0, yeah!
3432    
3433            * Thuban/Model/load.py (SessionLoader.__init__): Accept the
3434            1.0.0 namespace too
3435    
3436            * Thuban/Model/save.py (SessionSaver.write_session): Save with
3437            1.0.0 namespace
3438    
3439            * test/test_load.py (LoadSessionTest.dtd)
3440            (TestSingleLayer.file_contents)
3441            (TestNonAsciiColumnName.file_contents)
3442            (TestLayerVisibility.file_contents)
3443            (TestClassification.file_contents, TestLabels.file_contents)
3444            (TestLayerProjection.file_contents)
3445            (TestRasterLayer.file_contents, TestJoinedTable.file_contents)
3446            (TestLabelLayer.file_contents, TestPostGISLayer.file_contents)
3447            (TestPostGISLayerPassword.file_contents)
3448            (TestLoadError.file_contents, TestLoadError.test): Update for
3449            1.0.0 namespace
3450    
3451            * test/test_save.py (SaveSessionTest.dtd)
3452            (SaveSessionTest.testEmptySession)
3453            (SaveSessionTest.testSingleLayer)
3454            (SaveSessionTest.testLayerProjection)
3455            (SaveSessionTest.testRasterLayer)
3456            (SaveSessionTest.testClassifiedLayer)
3457            (SaveSessionTest.test_dbf_table)
3458            (SaveSessionTest.test_joined_table)
3459            (SaveSessionTest.test_save_postgis): Update for 1.0.0 namespace
3460    
3461    2003-12-22  Bernhard Herzog  <[email protected]>
3462    
3463            * Thuban/Model/load.py (SessionLoader.start_label): Make sure the
3464            alignment flags are byte strings not unicode and that they have
3465            valid values
3466    
3467            * test/test_load.py (TestLabelLayer): New. Test loading (and
3468            indirectly saving) of maps with labels.
3469    
3470    2003-12-22  Bernhard Herzog  <[email protected]>
3471    
3472            * Thuban/UI/tableview.py (TableGrid.OnDestroy)
3473            (TableGrid.__init__): Handle EVT_WINDOW_DESTROY in the grid to
3474            unsubscribe all subscribers.
3475            (LayerTableFrame.OnDestroy): Do not unsubscribe any messages from
3476            self.grid since it may already have been destroyed.
3477            Fixes RT #2256
3478    
3479    2003-12-19  Bernhard Herzog  <[email protected]>
3480    
3481            * po/fr.po, po/es.po: Updated translations from Daniel Calvelo
3482    
3483    2003-12-16  Bernhard Herzog  <[email protected]>
3484            
3485            * debian/bitmappath.patch, debian/setup.py.patch:
3486                    added to ensure compliance with FHS for debian
3487            * debian/rules, debian/changelog:
3488                added patches in rules to ensure compliance with FHS for debian
3489    
3490    2003-12-16  Bernhard Herzog  <[email protected]>
3491    
3492            * po/Makefile (mo): Make the output a bit nicer so that it prints
3493            statistics about the translations. Add a comment how produce even
3494            nicer statistics with sed.
3495    
3496    2003-12-09  Frank Koormann   <[email protected]>
3497    
3498            * Resources/Projections/defaults.proj:
3499            French projection sample with correct accents (UNICODE).
3500    
3501    2003-12-05  Bernhard Herzog  <[email protected]>
3502    
3503            * MANIFEST.in: Add the devtools directory
3504    
3505            * setup.py (setup call): Use license instead of licence. This
3506            silences a deprecation warning on Python 2.3
3507    
3508    2003-12-05  Frank Koormann   <[email protected]>
3509    
3510            Documentation synced with 1.0rc1
3511    
3512            * Doc/manual/thuban-manual.xml:
3513            Minor formatting changes and references to database layers .
3514            Introduction.Internationalization: New section on i18n.
3515            MapManagement.AddingandRemovingLayers: Added item on database layers.  
3516            MapManagement.TheLegend: Added section and screenshot on popup menu.
3517            ProjectionManagement: Updated screenshot and sentence on EPSG.
3518            Appendix.SupportedDataSources: Added PostGIS.
3519            Appendix.WorkingwithPostGIS: New section.
3520    
3521            * Doc/manual/images/6_projection.png: Updated screenshot including
3522            EPSG checkboxes.
3523    
3524            * Doc/manual/images/3_5_popup_menu.png: New, popup menu screenshot.
3525    
3526            * Doc/manual/images/app_postgis_add_layer.png,
3527            Doc/manual/images/app_postgis_db_add.png,
3528            Doc/manual/images/app_postgis_db_management.png:
3529            New screenshots focussing on database layers
3530    
3531    2003-12-05  Frank Koormann   <[email protected]>
3532    
3533            * Thuban/UI/projdialog.py (load_user_proj): If user.proj is missing
3534            write warning to stderr instead of rising a warning dialog
3535    
3536    2003-12-03  Bernhard Herzog  <[email protected]>
3537    
3538            Fix for RT #2243
3539    
3540            * Thuban/UI/mainwindow.py (MainWindow.has_selected_shape_layer):
3541            New. Like has_selected_layer but for shape layers only
3542            (_has_selected_shape_layer): New. Like _has_selected_layer but for
3543            shape layers only
3544            (layer_show_table command, layer_jointable command): Use these
3545            commands should only be available for shape layers
3546    
3547    2003-12-03  Bernhard Herzog  <[email protected]>
3548    
3549            * Thuban/UI/mainwindow.py (MainWindow.Unsubscribe): Deal with
3550            publishers that are wx objects and may have been destroyed by wx
3551            already. Fixes RT #2242.
3552    
3553    2003-12-03  Bernhard Herzog  <[email protected]>
3554    
3555            * po/ru.po: Updates from Alex Shevlakov
3556    
3557    2003-12-03  Silke Reimer <silkeintevation.de>
3558    
3559            * debian/control, debian/changelog: Added gdal-support to
3560                    debian package, updated to new thuban version
3561    
3562    
3563    2003-12-03  Bernhard Herzog  <[email protected]>
3564    
3565            * Thuban/Lib/version.py: New. Module for version number
3566            manipulations. The version of make_tuple here also deals better
3567            with more unusual version number strings, such as e.g.
3568            "1.2+cvs20031111"
3569    
3570            * Thuban/version.py (make_tuple): Removed. It's now in
3571            Thuban.Lib.version. Use that implementation instead.
3572    
3573            * test/test_lib_version.py: New. Tests for Thuban/Lib/version.py
3574    
3575    2003-12-02  Bernhard Herzog  <[email protected]>
3576    
3577            * MANIFEST.in: Add debian files
3578    
3579            * setup.py (setup call): Add packages for the Extensions so that
3580            they're installed too
3581            (data_files): Add READMEs and sample data from some Extensions
3582    
3583            * NEWS: Add note about the extensions in binary packages
3584    
3585    2003-12-02  Bernhard Herzog  <[email protected]>
3586    
3587            * Thuban/Model/save.py (SessionSaver.write_session): Save files
3588            with the thuban-1.0rc1
3589    
3590            * Thuban/Model/load.py (SessionLoader.__init__): Recognize the
3591            thuban-1.0rc1 namespace too
3592    
3593            * test/test_save.py (SaveSessionTest.dtd)
3594            (SaveSessionTest.testEmptySession)
3595            (SaveSessionTest.testSingleLayer)
3596            (SaveSessionTest.testLayerProjection)
3597            (SaveSessionTest.testRasterLayer)
3598            (SaveSessionTest.testClassifiedLayer)
3599            (SaveSessionTest.test_dbf_table)
3600            (SaveSessionTest.test_joined_table)
3601            (SaveSessionTest.test_save_postgis): Update to thuban-1.0rc1
3602            namespace
3603    
3604            * test/test_load.py (LoadSessionTest.dtd): Update to thuban-1.0rc1
3605            namespace
3606            (TestSingleLayer.file_contents)
3607            (TestNonAsciiColumnName.file_contents)
3608            (TestLayerVisibility.file_contents)
3609            (TestClassification.file_contents, TestLabels.file_contents)
3610            (TestLayerProjection.file_contents)
3611            (TestRasterLayer.file_contents, TestJoinedTable.file_contents)
3612            (TestPostGISLayer.file_contents)
3613            (TestPostGISLayerPassword.file_contents)
3614            (TestLoadError.file_contents, TestLoadError.test): Update to
3615            thuban-1.0rc1 namespace
3616    
3617    2003-12-01  Bernhard Herzog  <[email protected]>
3618    
3619            * setup.py (proj4_prefix, wx_prefix, gdal_prefix): Fix these for
3620            nt to better match Intevation's current w32 setup
3621    
3622            * HOWTO-Release: Add note about updating MANIFEST.in
3623    
3624            * MANIFEST.in: Add the Extensions
3625    
3626            * NEWS: Update for 1.0rc1
3627    
3628    2003-12-01  Bernhard Herzog  <[email protected]>
3629    
3630            * Thuban/UI/mainwindow.py (MainWindow.AddLayer): Change the wild
3631            cards for the dialog so that shapefiles ending in all uppercase
3632            SHP are listed too
3633    
3634    2003-11-28  Bernhard Herzog  <[email protected]>
3635    
3636            * Thuban/version.py (longversion): Update to 1.0rc1
3637    
3638            * setup.py (setup call): Update version to 1.0rc1. Use the
3639            [email protected] email address as author email instead of my
3640            personal one.
3641    
3642    2003-11-28  Bernhard Herzog  <[email protected]>
3643    
3644            * po/de.po: Update german translation.
3645    
3646    2003-11-28  Bernhard Herzog  <[email protected]>
3647    
3648            Unify the filenames stored in .thuban files so that the .thuban
3649            files are more platform independend
3650    
3651            * Thuban/Model/save.py (unify_filename): New. Unify filenames so
3652            that they can be used on both windows and unix
3653            (SessionSaver.prepare_filename): New. Handle all filename
3654            transformations for filenames stored in the thuban file
3655            (SessionSaver.write_data_containers, SessionSaver.write_layer):
3656            Use prepare_filename
3657    
3658            * test/test_save.py (SaveSessionTest.testSingleLayer)
3659            (SaveSessionTest.testLayerProjection)
3660            (SaveSessionTest.testRasterLayer)
3661            (SaveSessionTest.testClassifiedLayer)
3662            (SaveSessionTest.test_dbf_table)
3663            (SaveSessionTest.test_joined_table): Filenames are always stored
3664            with slashes on all currently supported platforms so adapt all
3665            tests to this
3666    
3667            * test/test_load.py (LoadSessionTest.filenames): With the new
3668            filename scheme the filenames in the tests should be
3669            understandable on all currently supported platforms so we turn
3670            this into an empty list because we don't have to normalize them
3671            anymore
3672    
3673    2003-11-28  Bernhard Herzog  <[email protected]>
3674    
3675            * test/test_layer.py (TestLayer.test_arc_layer_with_projection):
3676            Add the ellipsoid to the projection since some Proj versions
3677            complain if it's missing.
3678    
3679    2003-11-27  Bernhard Herzog  <[email protected]>
3680    
3681            Corect some bounding box projection problems
3682    
3683            * Thuban/Model/proj.py (Projection.InverseBBox): New. Inverse
3684            version of ForwardBBox
3685            (Projection._transform_bbox): New. common implementation of
3686            ForwardBBox and InverseBBox
3687            (Projection.ForwardBBox): Use _transform_bbox.
3688    
3689            * test/test_proj.py (TestProjection.test): Add test for
3690            InverseBBox
3691    
3692            * Thuban/Model/layer.py (Layer.LatLongBoundingBox)
3693            (Layer.ShapesBoundingBox, RasterLayer.LatLongBoundingBox): Use the
3694            new InverseBBox method to determine the unprojected bounding box
3695            (Layer.ShapesInRegion): Use the ForwardBBox method to project the
3696            bbox.
3697    
3698            * test/test_layer.py (TestLayer.test_point_layer_with_projection):
3699            Removed.
3700            (TestLayer.test_arc_layer_with_projection): New. This test is
3701            better able to test whether bounding boxes are projected correctly
3702            than test_point_layer_with_projection
3703    
3704            * Thuban/UI/viewport.py (ViewPort.map_projection_changed): Use
3705            InverseBBox to unproject bboxes
3706    
3707    2003-11-25  Bernhard Herzog  <[email protected]>
3708    
3709            * Thuban/UI/about.py (About.__init__): Make sure we have ASCII
3710            source code.
3711    
3712    2003-11-25  Bernhard Herzog  <[email protected]>
3713    
3714            * Thuban/Model/layer.py (Layer.__getattr__): Removed. It was only
3715            there for backwards compatibility and all code relying on that
3716            should have been updated by now.
3717    
3718    2003-11-25  Bernhard Herzog  <[email protected]>
3719    
3720            * test/test_load.py (TestClassification.test): Add the missing
3721            round trip test.
3722            (TestClassification.file_contents): Update to the newest file
3723            format
3724    
3725    2003-11-25  Bernhard Herzog  <[email protected]>
3726    
3727            Add very experimental (and possibly dangerous) extension to draw
3728            polygons:
3729    
3730            * Extensions/drawshape/README: New. Brief installation
3731            instructions
3732    
3733            * Extensions/drawshape/drawshape.py: New. Implementation of the
3734            drawshape extensions
3735    
3736            * Extensions/drawshape/patch.diff: Patch to apply before the
3737            extension can be used.
3738    
3739    2003-11-24  Bernhard Herzog  <[email protected]>
3740    
3741            * Thuban/Model/data.py (ShapefileStore._open_shapefile)
3742            (ShapefileStore.__init__): Factor opening the shapefile into a
3743            separate method (the new _open_shapefile). This makes the code a
3744            bit more readable but the real reason is that it makes some evil
3745            hacks easier. :-)
3746    
3747    2003-11-24  Bernhard Herzog  <[email protected]>
3748    
3749            * Thuban/Model/load.py (SessionLoader.check_attrs): If no
3750            converter is specified for an attribute assume it's a string
3751            containing only Latin1 characters. Update doc-string accordingly.
3752            This change should fix many places where unicode objects might
3753            accidentally enter Thuban.
3754    
3755            * test/test_load.py (TestNonAsciiColumnName): New test to check
3756            what happens with column names in DBF files that contain non-ascii
3757            characters
3758    
3759    2003-11-21  Bernhard Herzog  <[email protected]>
3760    
3761            Enable the experimental attribute editing again and introduce a
3762            command line switch to actually activate it
3763    
3764            * Thuban/UI/main.py (options): New. Container for options set on
3765            the commmand line
3766            (main): Add the --enable-attribute-editing flag.
3767    
3768            * Thuban/UI/identifyview.py (IdentifyView.__init__): If attribute
3769            editing is enabled use the grid ctrl which allows editing of the
3770            values
3771    
3772            * Thuban/Model/transientdb.py (AutoTransientTable.write_record):
3773            New. Just delegate this to the underlying table.
3774    
3775    2003-11-20  Bernhard Herzog  <[email protected]>
3776    
3777            * test/test_proj.py (ProjFileReadTests.test_read_unreadable_file):
3778            Skip this test if run under non-posix systems since it only works
3779            there
3780    
3781    2003-11-19  Bernhard Herzog  <[email protected]>
3782    
3783            * Thuban/Model/resource.py: Rework the way gdal support is
3784            determined so that we can give a reason in the about why gdal is
3785            not supported.
3786            (gdal_support_status): New. Variable holding a string with the
3787            reason for no gdal support
3788    
3789            * Thuban/UI/about.py (About.__init__): Add the reason why gdal is
3790            not supported to the message
3791    
3792    2003-11-19  Bernhard Herzog  <[email protected]>
3793    
3794            Remove the old table interface and its test cases
3795    
3796            * Thuban/Model/table.py (OldTableInterfaceMixin): Removed.
3797            (DBFTable, MemoryTable): Do not derive from OldTableInterfaceMixin
3798            anymore
3799    
3800            * Thuban/Model/transientdb.py (TransientTableBase)
3801            (AutoTransientTable): Do not derive from OldTableInterfaceMixin
3802            anymore
3803    
3804            * test/test_table.py: Removed since the old interface it tests is
3805            gone.
3806    
3807            * test/runtests.py (main): The old table interface is gone and
3808            with it the deprecation warnings so remove the code that turns
3809            these warnings into errors
3810    
3811    2003-11-19  Bernhard Herzog  <[email protected]>
3812    
3813            * test/test_table.py: Revert to revision 1.5 again. Changing the
3814            tests to use the new table interface is completely wrong since the
3815            whole purpose of the tests in this module is to test the old
3816            interface.
3817    
3818    2003-11-18  Bernhard Herzog  <[email protected]>
3819    
3820            * Thuban/Model/postgisdb.py (PostGISConnection.MatchesParameters):
3821            New. Test whether the connection matches a set of connection
3822            parameters
3823    
3824            * Thuban/UI/dbdialog.py (DBFrame.conns_changed): Fix doc-string
3825            (DBFrame.OnAdd): Use the new MatchesParameters method when looking
3826            for existing connections with the same parameters and break out of
3827            the loop correctly.
3828    
3829            * test/test_postgis_db.py (TestBriefDescription)
3830            (TestPostGISSimple.test_brief_description): Rename
3831            TestBriefDescription to TestPostGISSimple and the test method to
3832            test_brief_description so that we can add more test methods.
3833            (TestPostGISSimple.test_matches_parameters): New. Test the new
3834            MatchesParameters method
3835    
3836    2003-11-18  Bernhard Herzog  <[email protected]>
3837    
3838            * Thuban/Lib/connector.py (Publisher): Introduce a new flag,
3839            _was_destroyed, to indicate whether an publisher instance has
3840            already been destroyed.
3841            (Publisher.Unsubscribe): Only disconnect if the publisher has not
3842            been destroyed yet.
3843            (Publisher.Destroy): Set the _was_destroyed flag to true.
3844    
3845            * test/test_connector.py
3846            (TestPublisher.test_unsubscribe_after_destroy): New. Test that
3847            calling Unsubscribe after Destroy doesn't raise an exception
3848    
3849    2003-11-14  Bernhard Herzog  <[email protected]>
3850    
3851            * Thuban/UI/identifyview.py (IdentifyView.selected_shape): Fix
3852            typo in doc-string
3853    
3854    2003-11-13  Bernhard Herzog  <[email protected]>
3855    
3856            Quote table and column names properly for postgis.
3857    
3858            * Thuban/Model/postgisdb.py (quote_identifier): New. Function to
3859            quote an identifier for use in an sql statement
3860            (PostGISColumn.__init__): Add the quoted_name attribute
3861            (PostGISTable.__init__): New instance variable quoted_tablename
3862            (PostGISTable._fetch_table_information): Use the quoted table
3863            name. New isntance variable quoted_geo_col with a quoted version
3864            of geometry_column
3865            (PostGISTable.NumRows, PostGISTable.RowIdToOrdinal)
3866            (PostGISTable.RowOrdinalToId): Use the quoted table name
3867            (PostGISTable.ReadValue, PostGISTable.ValueRange)
3868            (PostGISTable.UniqueValues, PostGISTable.SimpleQuery)
3869            (PostGISShapeStore.BoundingBox, PostGISShapeStore.Shape)
3870            (PostGISShapeStore.AllShapes, PostGISShapeStore.ShapesInRegion):
3871            Use quoted table and column names
3872    
3873            * test/test_postgis_db.py (TestPostGISSpecialCases)
3874            (TestPostGISIgnoredColumns): Rename the class to
3875            TestPostGISSpecialCases because that better describes the new
3876            cases
3877            (TestPostGISSpecialCases.test_unsupported_types)
3878            (TestPostGISSpecialCases.test): Rename the method to
3879            test_unsupported_types because we need a more descriptive name now
3880            that there are more methods
3881            (TestPostGISSpecialCases.test_table_name_quoting)
3882            (TestPostGISSpecialCases.test_column_name_quoting)
3883            (TestPostGISSpecialCases.test_shapestore_name_quoting): New test
3884            cases to test quoting of table and column names in PostGISTable
3885            and PostGISShapeStore
3886    
3887            * test/postgissupport.py
3888            (skip_if_addgeometrycolumn_does_not_use_quote_ident): New. Skip if
3889            AddGeometryColumn desn't support table or column names with sapces
3890            or double quotes
3891    
3892    2003-11-12  Jan-Oliver Wagner <[email protected]>
3893    
3894            * Extensions/wms/__init__.py: New: Init to make this
3895            directory a package.
3896    
3897            * Extensions/wms/wms.py: New: Provide layers via OGC WMS.
3898    
3899    2003-11-11  Bernhard Herzog  <[email protected]>
3900    
3901            * Thuban/Model/resource.py (EPSG_DEPRECATED_PROJ_FILE): New.
3902            Constant for the file woth deprecated epsg projections
3903            (get_system_proj_file): Update doc-string
3904    
3905            * Thuban/UI/projdialog.py (ProjFrame.build_dialog): Add a space
3906            above the EPS widgets, introduce a check box for the deprecated
3907            eps projections and a label for the epsg widgets
3908            (ProjFrame._OnShowEPSG): Handle the deprecated EPSG projections
3909            too
3910    
3911    2003-11-11  Bernhard Herzog  <[email protected]>
3912    
3913            Avoid warnings when run under Python 2.3
3914    
3915            * Thuban/UI/baserenderer.py (BaseRenderer.draw_point_shape)
3916            (BaseRenderer.draw_label_layer): Coordinates must be ints.
3917    
3918            * Thuban/UI/renderer.py (MapRenderer.make_point): Turn this into a
3919            real method so that we can convert to int.
3920            (MapRenderer.label_font): The font size mist be an int.
3921    
3922            * Thuban/UI/common.py (Color2wxColour): The color values must be
3923            ints. Also, remove the unnecessary asserts.
3924    
3925            * test/test_load_0_8.py (TestUnicodeStrings.file_contents)
3926            (TestUnicodeStrings.test): Python source code should not contain
3927            non-ascii characters unless an encoding is specified in the file.
3928            Therefore use \x escapes in the string literals for non-ascii
3929            characters.
3930    
3931    2003-11-11  Bernhard Herzog  <[email protected]>
3932    
3933            * Thuban/Model/resource.py (get_system_proj_file): Add a filename
3934            parameter so that this function can be used for all proj files in
3935            Resource/Projections
3936            (DEFAULT_PROJ_FILE, EPSG_PROJ_FILE): New. Predefined filenames for
3937            get_system_proj_file
3938    
3939            * Thuban/UI/projdialog.py (ProjFrame.__init__): Instead of one
3940            ProjFile self.__sysProjFile use a dictionary of system ProjFile
3941            objects self._sys_proj_files
3942            (ProjFrame.build_dialog): Adapt to the new changes in the
3943            ProjectionList constructor. Add a check button to toggle whether
3944            EPSG projections are shown
3945            (ProjFrame._OnShowEPSG): New. Handler for the epsg check button
3946            events.
3947            (ProjFrame.load_user_proj, ProjFrame.load_system_proj): Only show
3948            the busy cursor if the files have not yet been loaded by the
3949            dialog.
3950            (ProjFrame.load_system_proj): Add a parameter for the name of the
3951            proj file. Maintain the dictionary of system projections
3952            self._sys_proj_files
3953    
3954            * Thuban/UI/projlist.py (ProjectionList): Merge the system_projs,
3955            user_projs parameters into one parameter proj_files which is a
3956            list of proj files.
3957            (ProjectionList._subscribe_proj_files)
3958            (ProjectionList._unsubscribe_proj_files): New. Move
3959            subscription/unsubscription of projfile messages to separate
3960            methods
3961            (ProjectionList.Destroy): The unsubscribe is now done in
3962            _unsubscribe_proj_files
3963            (ProjectionList.update_projections): We now have a list of proj
3964            file objects
3965            (ProjectionList.SetProjFiles): New method to set a new list of
3966            proj file objects
3967    
3968            * test/test_proj.py (ProjFileReadTests.test_get_system_proj_file):
3969            Specify explicitly which system proj file to load.
3970    
3971    2003-11-11  Bernhard Herzog  <[email protected]>
3972    
3973            * Thuban/Model/load.py (SessionLoader.Destroy): New. Clear all
3974            instance variables to cut cyclic references. The GC would have
3975            collected the loader eventually but it can happen that it doesn't
3976            run at all until thuban is closed (2.3 but not 2.2 tries a bit
3977            harder and forces a collection when the interpreter terminates)
3978            (load_session): Call the handler's Destroy method to make sure
3979            that it gets garbage collected early. Otherwise it will be
3980            collected very late if at all and it holds some references to e.g.
3981            shapestores and the session which can lead to leaks (of e.g. the
3982            temporary files)
3983    
3984            * test/test_load.py (TestSingleLayer.test_leak): New. test for the
3985            resource leak in load_session
3986    
3987    2003-11-10  Bernhard Herzog  <[email protected]>
3988    
3989            * Thuban/UI/baserenderer.py: Add a way to specify how layers in
3990            extensions are to be rendered.
3991            (_renderer_extensions): New. List with renderer for layers in
3992            extensions
3993            (add_renderer_extension): New. Add a renderer extension
3994            (init_renderer_extensions): New. Init the renderer extensions
3995            (BaseRenderer.render_map_incrementally): Search
3996            _renderer_extensions for how to draw unknown layer types
3997            (BaseRenderer.draw_raster_data): Add format parameter so that
3998            formats other than BMP can be drawn
3999            (BaseRenderer.draw_raster_layer): Pass an explicit format to
4000            draw_raster_data
4001    
4002            * Thuban/UI/renderer.py (raster_format_map): New. Mapping form the
4003            strings of the format parameter of draw_raster_data method to wx
4004            constants
4005            (MapRenderer.draw_raster_data): Add the format parameter and use
4006            raster_format_map to map it to the right wxwindows constant for
4007            wxImageFromStream
4008    
4009            * test/test_baserenderer.py (SimpleRenderer.draw_raster_data): Add
4010            the format parameter and record it
4011            (TestBaseRenderer.test_raster_no_projection): check the format
4012            paramter of the draw_raster_data method
4013            (TestBaseRenderer.test_renderer_extension): New. Test the renderer
4014            extension facility
4015    
4016    2003-11-07  Bernhard Herzog  <[email protected]>
4017    
4018            Tweak the usage of the sqlite database to make common use cases
4019            more responsive. In most cases copying the data to the sqlite
4020            database takes so long that using sqlite doesn't have enough
4021            advantages.
4022    
4023            * Thuban/Model/transientdb.py (TransientTableBase.ValueRange): Add
4024            comments about performance and query the min and max in separate
4025            statements because only that way will indexes be used.
4026            (TransientTableBase.UniqueValues): Add some comments about
4027            performance.
4028            (AutoTransientTable.ValueRange, AutoTransientTable.UniqueValues):
4029            Do not copy the data to the transient DB but use the transient
4030            copy if it exists. See the new comments for the performance trade
4031            offs
4032    
4033            * test/test_transientdb.py
4034            (TestTransientTable.test_auto_transient_table): Make sure that the
4035            data is copied to the transient database at some point.
4036    
4037    2003-11-03  Bernhard Herzog  <[email protected]>
4038    
4039            * Thuban/Model/data.py (ShapefileStore.ShapesInRegion): Bind some
4040            globals to locals so that it's a bit faster
4041    
4042    2003-11-03  Bernhard Herzog  <[email protected]>
4043    
4044            * Thuban/UI/baserenderer.py
4045            (BaseRenderer.draw_shape_layer_incrementally): Use the ReadValue
4046            method. ReadValue is faster than ReadRowAsDict since it only reads
4047            one cell especially now that the dbf file objects actually
4048            implement it.
4049    
4050            * Thuban/Model/table.py (DBFTable.ReadValue): Use the new
4051            read_attribute method of the dbf objects
4052    
4053    2003-11-03  Bernhard Herzog  <[email protected]>
4054    
4055            * Extensions/profiling/profiling.py (popup_dialog_box): New config
4056            variable to indicate whether the result should be shown in a
4057            dialog box
4058            (profile_screen_renderer, time_screen_renderer): Only show a
4059            dialog box if popup_dialog_box is true.
4060            (profile_screen_renderer): Flush stdout after the printing the
4061            first part of the "profiling..." message
4062    
4063            * Thuban/UI/baserenderer.py
4064            (BaseRenderer.draw_shape_layer_incrementally): Cache the pens and
4065            brushes for the groups so that they're not created over and over
4066            again
4067    
4068            * Thuban/Model/classification.py (Classification.__getattr__)
4069            (Classification._compile_classification)
4070            (Classification._clear_compiled_classification): New. Methods to
4071            manage a 'compiled' representation of the classification groups
4072            which is created on demand
4073            (Classification.InsertGroup, Classification.RemoveGroup)
4074            (Classification.ReplaceGroup): reset the compiled representation
4075            (Classification.FindGroup): Use the compiled representation to
4076            find the matching group
4077            (ClassGroupRange.GetRangeTuple): New. Return the range as a tuple
4078    
4079    2003-10-31  Bernhard Herzog  <[email protected]>
4080    
4081            * Thuban/Model/classification.py (Classification.SetDefaultGroup):
4082            Send a CLASS_CHANGED message
4083            (Classification.RemoveGroup): Send a CLASS_CHANGED message and do
4084            not return the removed group since it wasn't used.
4085    
4086            * test/test_classification.py
4087            (TestClassification.test_set_default_group): New. Test the
4088            SetDefaultGroup method
4089            (TestClassification.test_insert_group): New. Test the InsertGroup
4090            method
4091            (TestClassification.test_remove_group): New. Test the RemoveGroup
4092            method
4093            (TestClassification.test_replace_group): New. Test the
4094            ReplaceGroup method
4095    
4096    2003-10-31  Bernhard Herzog  <[email protected]>
4097    
4098            * test/test_classification.py (TestClassification.setUp):
4099            Subscribe to the CLASS_CHANGED messages
4100            (TestClassification.tearDown): New. Destroy the classification
4101            properly
4102            (TestClassification.test_defaults): Add tests for the default line
4103            width and whether no messages were sent yet
4104            (TestClassification.test_set_default_properties): Add tests for
4105            messages and setting the default line width
4106            (TestClassification.test_add_singleton)
4107            (TestClassification.test_add_range)
4108            (TestClassification.test_multiple_groups): Add tests for messages
4109    
4110    2003-10-31  Bernhard Herzog  <[email protected]>
4111    
4112            Some more refactoring in preparation for new tests:
4113    
4114            * test/test_classification.py (TestClassification.setUp): New.
4115            Instantiate the classification here. Update the test methods
4116            accordingly.
4117            (TestClassification.test_multiple_groups): Make sure that the two
4118            singletons matching 1 are considered different.
4119    
4120    2003-10-31  Bernhard Herzog  <[email protected]>
4121    
4122            * test/test_classification.py (red, green, blue): New. These
4123            constants were used in several cases. Update the relevant methods.
4124            (TestClassification.test_defaults)
4125            (TestClassification.test_set_default_properties)
4126            (TestClassification.test_add_singleton)
4127            (TestClassification.test_add_range)
4128            (TestClassification.test_multiple_groups)
4129            (TestClassification.test_deepcopy): New. These were formerly all
4130            part of the single method test.
4131            (TestClassification.test_deepcopy): Removed.
4132            (TestClassIterator): Removed. The test case is now a method of
4133            TestClassification since it tests part of the public interface of
4134            Classification
4135            (TestClassification.test_iterator): New. Used to be
4136            TestClassIterator effectively
4137    
4138    2003-10-31  Jan-Oliver Wagner <[email protected]>
4139    
4140            GUIfied the functions of the profiling extension.
4141    
4142            * /Extensions/profiling/__init__.py: New: Init to make this
4143            directory a package.
4144    
4145            * Extensions/profiling/profiling.py: Moved menu entries to
4146            the Extensions menu. Applied _() for strings.
4147            (profile_screen_renderer): Catch the detailed printout and present
4148            it in a dialog.
4149            (time_screen_renderer): Raise a dialog to present the result instead
4150            of printing it to stdout.
4151    
4152    2003-10-31  Bernhard Herzog  <[email protected]>
4153    
4154            * test/test_classification.py (TestClassGroupProperties)
4155            (TestClassGroup, TestClassGroupDefault, TestClassGroupRange)
4156            (TestClassGroupSingleton, TestClassIterator, TestClassification):
4157            Split TestClassification into several classes, one for each class
4158            being tested. TestClassification itself now only tests
4159            Classification. This split makes changes to the tests a bit easier
4160    
4161    2003-10-31  Bernhard Herzog  <[email protected]>
4162    
4163            * Extensions/profiling/profiling.py: New. Extension to measure
4164            Thuban performance
4165    
4166    2003-10-31  Frank Koormann <[email protected]>
4167    
4168            Added two items to legend popup menu: Remove Layer and Show Layer Table
4169    
4170            * Thuban/UI/legend.py (LegendPanel._OnRemoveLayer,
4171            LegendPanel._OnShowTable): New event handlers, call the corresponding
4172            mainwindow methods.
4173            (LegendTree._OnRightClick): Added items to popup menu.
4174    
4175    2003-10-30  Bernhard Herzog  <[email protected]>
4176    
4177            * Thuban/UI/dialogs.py (ThubanFrame.__init__): Handle
4178            EVT_WINDOW_DESTROY
4179            (ThubanFrame.OnDestroy): New. Handler for EVT_WINDOW_DESTROY. Does
4180            nothing but is convenient for the derived classes.
4181    
4182            * Thuban/UI/tableview.py
4183            (TableFrame.OnDestroy, LayerTableFrame.OnDestroy): New.
4184            Unsubscribe the messages here not in OnClose because that might
4185            get called multiple times. Fixes RT #2196
4186            (TableFrame.OnClose, LayerTableFrame.OnClose): Removed. Not needed
4187            anymore.
4188    
4189            * README: Update the minimum requirement for wxPython. Since we
4190            now use the EVT_WINDOW_DESTROY event, we need at least 2.4.0.4,
4191            the version in which that was introduced for all platforms
4192    
4193    2003-10-30  Frank Koormann <[email protected]>
4194    
4195            * Thuban/UI/join.py (JoinDialog.OnJoin): Wrapped the major parts of
4196            the join process in a ThubanBeginBusyCursor, ThubanEndBusyCursor
4197            frame.
4198    
4199    2003-10-30  Jan-Oliver Wagner <[email protected]>
4200    
4201            Improved APR import extension, added further EPSG definitions
4202            and some cleanup regarding string class.
4203    
4204            * test/test_proj.py (TestProjection.test_get_projection_units_geo):
4205            Added test for alias 'longlat'.
4206    
4207            * Resources/Projections/epsg-deprecated.proj: New. Contains
4208            deprecated EPSG definitions.
4209    
4210            * Extensions/importAPR/odb.py (ODBBaseObject.TreeInfo): Added
4211            the variable names for objects.
4212    
4213            * Extensions/importAPR/apr.py (APR_BLnSym, APR_BMkSym, APR_BShSym): New.
4214            Copied from importAPR and provided with documentation.
4215    
4216            * Extensions/importAPR/importAPR.py (APR_BLnSym, APR_BMkSym, APR_BShSym):
4217            Moved to apr.py.
4218            (APR_View): Added object ref 'ITheme'.
4219    
4220            * Thuban/Lib/fileutil.py, Thuban/UI/proj4dialog.py: Replaced string
4221            split function by corresponding use of the string class method.
4222    
4223            * Thuban/Model/xmlwriter.py: Replaced string replace function by
4224            corresponding string method.
4225    
4226    2003-10-29  Bernhard Herzog  <[email protected]>
4227    
4228            * Thuban/UI/baserenderer.py
4229            (BaseRenderer.draw_shape_layer_incrementally): Speed up the
4230            special case of a classification that only has the default group
4231    
4232    2003-10-27  Bernhard Herzog  <[email protected]>
4233    
4234            * po/fr.po, po/es.po: Updated translations from Daniel Calvelo
4235    
4236            * po/de.po: Update.
4237    
4238            * Thuban/UI/application.py
4239            (ThubanApplication.ShowExceptionDialog): Handle translation of the
4240            dialog message properly
4241    
4242    2003-10-27  Bernhard Herzog  <[email protected]>
4243    
4244            Rework how localization works so that we use wx's translation
4245            functions when running Thuban as a normal application but not when
4246            we don't need any UI, such as in the test suite. See the comment
4247            in Thuban/__init__.py for details
4248    
4249            * Thuban/__init__.py (_): Add one level of indirection to make the
4250            translation handling more flexible and to make it possible to use
4251            either wx's translation services or not.
4252            (gettext_identity, translation_function_installed)
4253            (install_translation_function): New function to help with this
4254    
4255            * Thuban/UI/__init__.py: Install the wx specific translation
4256            function if it's OK to do that
4257    
4258            * test/support.py (initthuban): Install a dummy translation
4259            function so that importing Thuban.UI doesn't install a wx specific
4260            one for which would need to import wxPython
4261    
4262    2003-10-27  Bernhard Herzog  <[email protected]>
4263    
4264            * HOWTO-Release: Source archives should be created first and the
4265            binary packages should be created from the source archives.
4266            There's an official debian package now so there's no need to test
4267            the rpm on debian anymore
4268    
4269    2003-10-27  Bernhard Herzog  <[email protected]>
4270    
4271            Several rendering changes:
4272    
4273             - Render the selection into a separate bitmap so that only that
4274               bitmap needs to be redrawn when the selection changes
4275    
4276             - Render incrementally showing previews and allowing interaction
4277               before rendering is complete
4278    
4279             - Update the renderer interface a bit. Most parameters of
4280               RenderMap are now parameters of the constructor
4281    
4282            * Thuban/UI/baserenderer.py (BaseRenderer.__init__): Add the map
4283            and the update region as parameters. Update the doc-string
4284            (BaseRenderer.render_map_incrementally): New. Generator function
4285            to renders the map incrementally
4286            (BaseRenderer.render_map): Remove the map argument (it's now in
4287            the constructor) and simply iterate over the
4288            render_map_incrementally generator to draw the map.
4289            (BaseRenderer.draw_shape_layer_incrementally)
4290            (BaseRenderer.draw_shape_layer): Renamed to
4291            draw_shape_layer_incrementally and changed into a generator that
4292            yields True every 500 shapes. Used by render_map_incrementally to
4293            render shape layers incrementally
4294    
4295            * Thuban/UI/renderer.py (ScreenRenderer.RenderMap): Removed the
4296            map and region parameters which are now in the constructor
4297            (ScreenRenderer.RenderMapIncrementally): New. Public frontend for
4298            the inherited render_map_incrementally.
4299            (BaseRenderer.draw_shape_layer): Removed.
4300            (ScreenRenderer.draw_selection_incrementally): New. The selection
4301            drawing part of the removed draw_shape_layer as a generator
4302            (ScreenRenderer.layer_shapes): Update because of the region
4303            parameter change
4304            (ExportRenderer.__init__): New. Extend the inherited constructor
4305            with the destination region for the drawing
4306            (ExportRenderer.RenderMap): Removed the map and region parameters
4307            which are now in the constructor
4308    
4309            * Thuban/UI/view.py (MapCanvas.PreviewBitmap): New. Return a
4310            bitmap suitable for a preview in a tool
4311            (CanvasPanTool.MouseMove): Use the PreviewBitmap method to get the
4312            bitmap
4313            (MapPrintout.draw_on_dc): Adapt to new renderer interface
4314            (MapCanvas.OnPaint): Handle drawing the selection bitmap if it
4315            exists
4316            (MapCanvas.OnIdle): Update the logic to deal with incremental
4317            rendering and the selection bitmap
4318            (MapCanvas._do_redraw): Handle the instantiation of the render
4319            iterator and the redraws during rendering
4320            (MapCanvas._render_iterator): New. Generator to incrementally
4321            redraw both bitmaps
4322            (MapCanvas.Export): Adapt to new renderer interface.
4323            (MapCanvas.full_redraw): Reset the selection bitmap and the
4324            renderer iterator too
4325            (MapCanvas.redraw_selection): New. Force a redraw of the selection
4326            bitmap
4327            (MapCanvas.shape_selected): Only redraw the selection bitmap
4328    
4329            * test/test_baserenderer.py
4330            (TestBaseRenderer.test_polygon_no_projection)
4331            (TestBaseRenderer.test_raster_no_projection)
4332            (TestBaseRenderer.test_point_map_projection)
4333            (TestBaseRenderer.test_point_layer_and_map_projection)
4334            (TestBaseRenderer.test_point_layer_projection)
4335            (TestBaseRenderer.test_point_with_classification): Adapt to new
4336            renderer interface
4337    
4338    2003-10-24  Bernhard Herzog  <[email protected]>
4339    
4340            * libraries/thuban/wxproj.cpp (draw_polygon_shape)
4341            (point_in_polygon_shape, shape_centroid): Raise an exception if
4342            the shape can't be read. Previously invalid shape ids would lead
4343            to a segfault.
4344    
4345            * test/test_wxproj.py (TestShapeCentroid.test_invalid_shape_id):
4346            New. test whether an exception is raised for invalid shape ids
4347    
4348    2003-10-24  Jan-Oliver Wagner <[email protected]>
4349    
4350            * Thuban/Model/proj.py (Projection.GetProjectedUnits): Added 'longlat'
4351            as alias for 'latlong'.
4352    
4353            * Thuban/UI/projdialog.py (ProjFrame.__init__): Added 'longlat'
4354            as alias for 'latlong'.
4355    
4356    2003-10-24  Jan-Oliver Wagner <[email protected]>
4357    
4358            * Thuban/UI/projdialog.py (ProjFrame.proj_selection_changed): Set
4359            the projection even for the UnknownPanel.
4360            (UnknownProjPanel.__init__): Define the text and create the textctrl
4361            widget.
4362            (UnknownProjPanel._DoLayout): Replaced static text widget by the
4363            textctrl created in __init__.
4364            (UnknownProjPanel.SetProjection): Set the text for the text ctrl
4365            including the parameters of the projection.
4366            
4367    2003-10-24  Jan-Oliver Wagner <[email protected]>
4368    
4369            * Resources/Projections/epsg.proj: New. This is a list of
4370            EPSG codes with parameters for proj. The list has been
4371            generated using devtools/create_epsg.py based on the
4372            file nad/epsg of the proj 4.4.7 package. Four projection
4373            definitions have been deleted as they are not accepted by proj:
4374            "CH1903+ / LV95", "Bern 1898 (Bern) / LV03C", "CH1903 / LV03"
4375            and "HD72 / EOV".
4376    
4377    2003-10-22  Bernhard Herzog  <[email protected]>
4378    
4379            Some more tweaks to the projection dialog which should fix RT
4380            #1886.
4381    
4382            * Thuban/UI/projlist.py (ProjectionList.Destroy): Unsubscribe from
4383            the ProjFile's messages and call the base class methods correctly
4384            (ProjectionList.SelectProjection): Set the wxLIST_STATE_FOCUSED
4385            flag on the newly selected item too. Otherwise some other item is
4386            focused and the first time the focus is moved with the keyboard
4387            the selection moves in unexpected ways.
4388    
4389            * Thuban/UI/projdialog.py (ProjFrame.__init__): Do not set the
4390            focus on the OK button, only on the projection list. That way the
4391            list really has the focus initially
4392            (ProjFrame.OnClose): Call the projection list's Destroy method to
4393            make it unsubscribe all messages
4394    
4395    2003-10-21  Bernhard Herzog  <[email protected]>
4396    
4397            Rework the projection dialog to fix a few bugs, including RT 2166
4398            and most of 2168
4399    
4400            * Thuban/UI/projlist.py: New. The class ProjectionList is a
4401            special wxListCtrl to show a list of projections in a more MVC
4402            fashion
4403    
4404            * Thuban/UI/projdialog.py (ProjFrame): Substantial changes
4405            throughout the class. The main change is to use the ProjectionList
4406            class instead of a normal wxListBox. Also, add an explicit
4407            "Unknown" projection to the projection choice control.
4408            (ProjPanel.__init__): Add an "unknown" ellipsoid
4409            (TMPanel.__init__, LCCPanel.__init__): Tweak the order of
4410            instantiation of the panel's controls to make the tab-order more
4411            natural
4412    
4413    2003-10-21  Bernhard Herzog  <[email protected]>
4414    
4415            * test/test_load.py (TestSingleLayer.file_contents)
4416            (TestSingleLayer.test): Add non-ascii characters to the titles of
4417            session, map and layer. This is effectively a port of the
4418            TestUnicodeStrings test in test_load_0_8.py which for some reason
4419            was only added there.
4420    
4421            * test/test_load_0_9.py (TestSingleLayer.file_contents)
4422            (TestSingleLayer.test): Same as in test_load.py: add non-ascii
4423            characters to the titles of session, map and layer,.
4424    
4425    2003-10-21  Bernhard Herzog  <[email protected]>
4426    
4427            Add EPSG projection handling to .thuban files
4428    
4429            * test/test_save.py (SaveSessionTest.dtd)
4430            (SaveSessionTest.testEmptySession)
4431            (SaveSessionTest.testLayerProjection)
4432            (SaveSessionTest.testRasterLayer)
4433            (SaveSessionTest.testClassifiedLayer)
4434            (SaveSessionTest.test_dbf_table)
4435            (SaveSessionTest.test_joined_table)
4436            (SaveSessionTest.test_save_postgis): Update to 1.0-dev namespace
4437            (SaveSessionTest.testSingleLayer): Update to 1.0-dev namespace and
4438            use a and epsg projection to test saving them
4439    
4440            * test/test_load.py (LoadSessionTest.dtd): Update to 1.0-dev
4441            namespace
4442            (TestLayerVisibility.file_contents, TestLabels.file_contents)
4443            (TestLayerProjection.file_contents)
4444            (TestRasterLayer.file_contents, TestJoinedTable.file_contents)
4445            (TestPostGISLayer.file_contents)
4446            (TestPostGISLayerPassword.file_contents)
4447            (TestLoadError.file_contents, TestLoadError.test): Update to use
4448            1.0-dev namespace
4449            (TestSingleLayer.file_contents, TestSingleLayer.test): Update to
4450            use 1.0-dev namespace and use an EPSG projection to test whether
4451            loading it works
4452    
4453            * test/test_load_0_9.py: New. Effectively a copy of test_load.py
4454            as of Thuban 0.9. These are now tests to determine whether Thuban
4455            can still read files generated by Thuban 0.9
4456    
4457            * Thuban/Model/save.py (SessionSaver.write)
4458            (SessionSaver.write_session): Use the 1.0 dtd and 1.0-dev
4459            namespace
4460            (SessionSaver.write_projection): Write the projection's epsg
4461            attribute
4462    
4463            * Thuban/Model/load.py (SessionLoader.__init__): Also accept the
4464            thuban-1.0-dev.dtd namespace
4465            (SessionLoader.check_attrs): Allow a callable object as conversion
4466            too
4467            (SessionLoader.start_projection, SessionLoader.end_projection)
4468            (SessionLoader.start_parameter): Handle the epsg attribute and
4469            rename a few instance variables to lower case
4470    
4471            * Resources/XML/thuban-1.0.dtd: New. Only difference to
4472            thuban-0.9.dtd is the epsg attribute for projections.
4473    
4474    2003-10-21  Bernhard Herzog  <[email protected]>
4475    
4476            * test/runtests.py (main): Let the user specify which tests to run
4477            on the command line
4478    
4479            * test/support.py (ThubanTestResult.getDescription): Override to
4480            give a better short description. The description can be used as a
4481            parameter to run_tests to run that particular test in isolation.
4482    
4483    2003-10-21  Frank Koormann   <[email protected]>
4484    
4485            Popup menu for legend. Scheduled for the 1.2 release this was too
4486            simple to implement: The popup menu is bound to the legend tree, while
4487            the events are hanlded by its anchestor, the legend panel. This
4488            allows reuse of all the event handlers already implemented for the
4489            legend toolbar buttons.
4490    
4491            * Thuban/UI/legend.py (LegendPanel.__init__): EVT_MENU macros
4492            to add handlers for the events issued by the popup menu.
4493            (LegendPanel._OnToggleVisibility): Handler for toggling layer
4494            visibility event
4495            (LegendPanel._OnProjection): Handler for layer projection event.
4496            (LegendTree.__init__): Added EVT_TREE_ITEM_RIGHT_CLICK
4497            (LegendTree._OnRightClick): Event handler for right click, select item
4498            and pop up menu.
4499            (LegendTree.ToggleVisibility): Toggle layer visibility
4500            (LegendTree.LayerProjection): Raise layer projection dialog for
4501            current layer.
4502    
4503    2003-10-21  Bernhard Herzog  <[email protected]>
4504    
4505            * Resources/Projections/defaults.proj: Use correct DOCTYPE
4506            declaration. The top-level element is projectionlist not projfile
4507    
4508    2003-10-20  Bernhard Herzog  <[email protected]>
4509    
4510            * Thuban/UI/projdialog.py (ProjFrame.write_proj_file): New. helper
4511            method to write a projfile and display a busy cursor and error
4512            dialogs.
4513            (ProjFrame._OnSave, ProjFrame._OnAddToList, ProjFrame._OnImport)
4514            (ProjFrame._OnExport, ProjFrame._OnRemove): Use write_proj_file
4515            (ProjFrame.__FillAvailList): Translate "<None>" too and display a
4516            busy cursor while loading the user and system prj files.
4517    
4518    2003-10-16  Bernhard Herzog  <[email protected]>
4519    
4520            * Thuban/Model/resource.py (projfile_cache): Introduce a cache for
4521            ProjFile objects
4522            (clear_proj_file_cache): New function to clear the cache. Mainly
4523            useful for use by the test suite
4524            (read_proj_file): Use the cache.
4525    
4526            * test/test_proj.py (TestProjFile): Clarify the doc-string
4527            (ProjFileReadTests): Update doc-string
4528            (ProjFileReadTests.test_get_system_proj_file): Check whether the
4529            system proj files is cached.
4530            (ProjFileLoadTestCase): New base class for the proj file tests
4531            derived from support.FileLoadTestCase to provide some common
4532            behavior.
4533            (TestLoadingProjFile)
4534            (TestLoadingProjFileWithEmptyProjectionlist.file_contents)
4535            (TestProjFileWithInvalidParameters.file_contents): Derive from
4536            ProjFileLoadTestCase
4537            (TestLoadingProjFile.test_caching): New. Test whether the cache
4538            works
4539    
4540    2003-10-16      Silke Reimer    <[email protected]>
4541    
4542            * debian/*: New directory with configuration files for building a thuban
4543              deb-package.
4544    
4545    2003-10-14  Bernhard Herzog  <[email protected]>
4546    
4547            * test/test_proj.py: Execute support.run_tests when run as
4548            __main__ so that missing unsubscribes are detected
4549            (TestProjFile.tearDown): Destroy the proj_file properly
4550    
4551    2003-10-14  Bernhard Herzog  <[email protected]>
4552    
4553            * Thuban/Model/messages.py (PROJECTION_ADDED)
4554            (PROJECTION_REPLACED, PROJECTION_REMOVED): New message types for
4555            the ProjFile objects
4556    
4557            * Thuban/Model/proj.py (ProjFile): Derive from Publisher so we can
4558            easily send messages when the projections change
4559            (ProjFile.Add, ProjFile.Remove, ProjFile.Replace): Issue messages
4560            when the change was successful
4561    
4562            * test/test_proj.py (TestProjFile.setUp): Subscribe to some of the
4563            proj file messages
4564            (TestProjFile.test_add_remove)
4565            (TestProjFile.test_remove_non_existing)
4566            (TestProjFile.test_replace)
4567            (TestProjFile.test_replace_non_existing): Test whether the right
4568            messages are sent
4569    
4570    2003-10-14  Bernhard Herzog  <[email protected]>
4571    
4572            * test/test_proj.py (TestProjFile.test): Refactor into several
4573            tests
4574            (TestProjFile.test_add_remove)
4575            (TestProjFile.test_remove_non_existing)
4576            (TestProjFile.test_replace)
4577            (TestProjFile.test_replace_non_existing): Some of the new
4578            individual test cases
4579            (TestProjFileSimple): New class for the rest of the test cases
4580            that came out of the refactoring
4581            (ProjFileTest): Derive from xmlsupport.ValidationTest so that the
4582            derived classes don't have to
4583    
4584    2003-10-13  Bernhard Herzog  <[email protected]>
4585    
4586            Add an optional EPSG code to the projection objects and extend the
4587            .proj file format accordingly.
4588    
4589            * Resources/XML/projfile.dtd (element projection): Add epsg
4590            attribute
4591    
4592            * Thuban/Model/proj.py (Projection.__init__): New parameter and
4593            instance variable epsg. Update doc-string
4594            (Projection.EPSGCode, Projection.Label): New methods to provide
4595            access to EPSG code and a label for use in dialogs
4596    
4597            * Thuban/Model/resource.py (ProjFileReader.start_projection)
4598            (ProjFileReader.end_projection, ProjFileSaver.write_projfile):
4599            Handle the epsg code attribute when reading or writing proj files
4600    
4601            * Thuban/UI/projdialog.py (ProjFrame._OnSave)
4602            (ProjFrame._OnAddToList, ProjFrame.__DoOnProjAvail)
4603            (ProjFrame.__FillAvailList): Use the projection's Label method to
4604            get the string for the list box
4605    
4606            * test/test_proj.py (TestProjection.test_label)
4607            (TestProjection.test_label_epsg)
4608            (TestProjection.test_epsgcode_for_non_epsg_projection)
4609            (TestProjection.test_epsgcode_for_real_epsg_projection): New tests
4610            for the label and EPSGCode methods
4611            (WriteProjFileTests.doTestWrite, WriteProjFileTests.test_write)
4612            (WriteProjFileTests.test_write_empty_file): Create the ProjFile
4613            objects in the test cases and put the expected contents into the
4614            test case methods too. Update doTestWrite accordingly
4615            (TestLoadingProjFile)
4616            (TestLoadingProjFileWithEmptyProjectionlist): New classes with the
4617            read tests from TestProjFile.
4618            (TestProjFile.doTestRead, TestProjFile.testRead): Removed. These
4619            tests are now in the new classes.
4620            (sample_projfile, sample_projfile_data)
4621            (sample_projfile2, sample_projfile_data2): Removed. Not used
4622            anymore.
4623            (TestProjFile.test_read_unreadable_file): No need to reset the
4624            permissions at the end anymore since we use a unique filename
4625    
4626    2003-10-13  Bernhard Herzog  <[email protected]>
4627    
4628            * test/test_proj.py: Some more refactoring of the test cases
4629            (ProjFileTest): New base class for the proj file tests.
4630            (TestProjFile): Derive from ProjFileTest
4631            (TestProjFile.test_read_unreadable_file)
4632            (TestProjFile.test_read_empty_file, TestProjFile.doTestRead): Use
4633            the new filename method to get a unique filename
4634            (TestProjFile.doTestWrite, TestProjFile.testWrite): Removed.
4635            (WriteProjFileTests): New class for proj file write tests.
4636            Contains the write test that were in TestProjFile originally.
4637    
4638    2003-10-13  Bernhard Herzog  <[email protected]>
4639    
4640            * test/test_proj.py (TestProjFile.testRead)
4641            (TestProjFile.test_read_non_existing_file)
4642            (TestProjFile.test_read_unreadable_file)
4643            (TestProjFile.test_read_empty_file): Split into several methods.
4644    
4645    2003-10-10  Bernhard Herzog  <[email protected]>
4646    
4647            * Thuban/UI/sizers.py: New file with custom sizers.
4648    
4649            * Thuban/UI/projdialog.py (ProjFrame.build_dialog): Instantiate
4650            all projection type specific panels and put them into a
4651            NotebookLikeSizer. This way the dialog doesn't change its size
4652            when a different projection is selected
4653            (ProjFrame.__init__): Rename projection_panels
4654            projection_panel_defs and reuse projection_panels for a list of
4655            the instantiated panels.
4656            (ProjFrame._show_proj_panel, ProjFrame.__DoOnProjAvail)
4657            (ProjFrame.__DoOnProjChoice): Changes due to the new handling of
4658            the panels
4659            (UnknownProjPanel._DoLayout): Place the newlines in the message
4660            differently to make the panel narrower.
4661            (TMPanel._DoLayout): Layout the parameters in one column.
4662    
4663    2003-10-10  Bernhard Herzog  <[email protected]>
4664    
4665            * Thuban/UI/projdialog.py (ProjFrame.build_dialog): New method
4666            that contains all the setup for the dialog's widgets, layout and
4667            event handling.
4668            (__): Call build_dialog to build the dialog.
4669            (ProjFrame.__set_properties, ProjFrame.__do_layout): Removed.
4670            Their functionality is now in build_dialog
4671            (ProjFrame.__VerifyButtons, ProjFrame.__VerifyButtons)
4672            (ProjFrame.__DoOnProjAvail, ProjFrame.__DoOnProjAvail)
4673            (ProjFrame.__DoOnProjChoice): Small updates due to slightly
4674            different widget names and hierarchy introduced with build_dialog.
4675    
4676    2003-10-10  Bernhard Herzog  <[email protected]>
4677    
4678            * README: Fix typo.
4679    
4680    2003-10-09  Bernhard Herzog  <[email protected]>
4681    
4682            * Thuban/Model/proj.py (ProjFile.Add): Do not check whether the
4683            projection is already in the list. This is *a lot* faster when
4684            loading files with hundreds of projections since it saves a linear
4685            search. OTOH this will allow adding the same projection to the
4686            user.proj file multiple times in the projection dialog but we'll
4687            deal with that later
4688    
4689    2003-10-09  Jan-Oliver Wagner <[email protected]>
4690    
4691            * devtools: New. Directory for developer tools that are not intended
4692            for the regular user.
4693    
4694            * devtools/create_epsg.py: New. Convert the epsg file of proj into
4695            a python .proj file.
4696    
4697    2003-10-09  Bernhard Herzog  <[email protected]>
4698    
4699            * test/test_proj.py
4700            (TestProjection.test_get_parameter_without_equals_sign): New. Test
4701            whether GetParameter handles parameters without "=" sign correctly
4702    
4703            * Thuban/Model/proj.py (Projection.GetParameter): Handle
4704            parameters that do not contain a "=". Update the doc-string
4705    
4706    2003-10-08  Bernhard Herzog  <[email protected]>
4707    
4708            * Thuban/UI/projdialog.py (ProjFrame.__set_properties): Remove the
4709            length limit on the projname text control
4710    
4711    2003-10-08  Bernhard Herzog  <[email protected]>
4712    
4713            * test/test_proj.py (TestProjection.test_get_projection_units_geo)
4714            (TestProjection.test_get_projection_units_normal): New. Tests for
4715            the Projection.GetProjectedUnits method
4716    
4717    2003-10-08  Jan-Oliver Wagner <[email protected]>
4718    
4719            * Thuban/Model/resource.py (get_user_proj_file): small bug-fix:
4720            Added missing 'val' parameter.
4721    
4722    2003-10-08  Bernhard Herzog  <[email protected]>
4723    
4724            * Thuban/UI/projdialog.py (ProjFrame.__DoOnProjAvail): When the
4725            projection type of the currently selected projection is not known,
4726            i.e. there's no panel for it, use the UnknownProjPanel
4727            (ProjFrame.__DoOnProjChoice, ProjFrame._show_proj_panel): Split
4728            the actual replacing of the proj panel into the new method
4729            _show_proj_panel.
4730            (UnknownProjPanel): Add doc-string.
4731            (UnknownProjPanel._DoLayout): Insert a newline into the text so
4732            that the panel is not so wide.
4733    
4734    2003-10-08  Bernhard Herzog  <[email protected]>
4735    
4736            * Thuban/Model/resource.py (read_proj_file): Return the warnings
4737            too. Update the doc-string
4738            (get_proj_files): Removed. It wasn't used anywhere
4739            (get_system_proj_files, get_system_proj_file): Rename to
4740            get_system_proj_file and return the ProjFile object and not a list
4741            of ProjFile objects. Update the callers.
4742            (get_user_proj_files, get_user_proj_file): Rename to
4743            get_user_proj_file return the ProjFile object and not a list of
4744            ProjFile objects. Update the callers.
4745            (ProjFileReader.__init__): New instance variable for the warnings.
4746            Rename the __pf ivar to projfile. Update the methods referring to
4747            __pf
4748            (ProjFileReader.end_projection): Catch any errors raised when
4749            instantiating the projection and record that as an error. The
4750            projection will not be in the final ProjFile object.
4751            (ProjFileReader.GetWarnings): New method to return the warnings.
4752    
4753            * Thuban/UI/projdialog.py (ProjFrame.show_warnings): New method to
4754            show the warnings from the projfile reader
4755            (ProjFrame._OnImport): Deal with any warnings returned by
4756            read_proj_file
4757            (ProjFrame.__FillAvailList): Deal with any warnings returned by
4758            get_system_proj_file or get_user_proj_file.
4759    
4760            * test/test_proj.py (TestProjFile.doTestRead): Check the warnings.
4761            (TestProjFileWithInvalidParameters.file_contents): New test cases
4762            to test whether read_proj_file handles invalid projection
4763            parameters correctly
4764            (TestProjFile.test_get_system_proj_file): New. Simple test for
4765            resource.get_system_proj_file
4766    
4767    2003-10-07  Bernhard Herzog  <[email protected]>
4768    
4769            * test/test_derivedshapestore.py
4770            (TestDerivedShapeStoreExceptions.tearDown): Clear the session
4771            properly so that the temporary directories get deleted correctly
4772    
4773    2003-10-06  Bernhard Herzog  <[email protected]>
4774    
4775            Handle the title changes in a proper MVC way.
4776    
4777            * Thuban/UI/mainwindow.py (MainWindow.__init__): Subscribe to the
4778            canvas' TITLE_CHANGED messages
4779            (MainWindow.update_title): New. Update the main window's title
4780            (MainWindow.__SetTitle): Removed. Use update_title instead.
4781            (MainWindow.SetMap): Use update_title instead of __SetTitle
4782            (MainWindow.RenameMap): Do change the window title explicitly
4783            here. That's handled in a proper MVC way now.
4784            (MainWindow.title_changed): New. Subscriber for the TITLE_CHANGED
4785            messages
4786    
4787            * Thuban/Lib/connector.py (Conduit): New class to help classes
4788            that forward messages
4789    
4790            * Thuban/UI/viewport.py: Forward the map's TITLE_CHANGED messages
4791            (ViewPort): Derive from Conduit instead of Publisher
4792            (ViewPort.Subscribe, ViewPort.Unsubscribe): Use the new base class
4793            when calling the inherited versions
4794            (ViewPort._subscribe_map, ViewPort._unsubscribe_map): New helper
4795            methods to subscribe and unsubscribe map messages
4796            (ViewPort.SetMap, ViewPort.Destroy): Use the new helper methods to
4797            handle the map subscriptions
4798            (ViewPort.Map, ViewPort.map_projection_changed)
4799            (ViewPort.layer_projection_changed): Add or update doc-strings
4800    
4801            * test/test_connector.py (TestPublisher.test_issue_simple): Fix
4802            typo
4803            (MyConduit): Helper class for the Conduit test.
4804            (TestConduit): Test cases for Conduit
4805    
4806            * test/test_connector.py: Use support.run_tests as main.
4807    
4808            * test/test_viewport.py (ViewPortTest.setUp): Also subscribe to
4809            the TITLE_CHANGED messages
4810            (ViewPortTest.test_forwarding_title_changed): New test to check
4811            whether the viewport forwards the map's TITLE_CHANGED messages
4812            (TestViewportWithPostGIS.tearDown): Call the map's Destroy method
4813            after the port's because the latter may require a still functional
4814            map.
4815    
4816    2003-10-06  Bernhard Herzog  <[email protected]>
4817    
4818            * Thuban/UI/application.py (ThubanApplication.maps_changed): Add
4819            doc-string
4820    
4821    2003-10-06  Bernhard Herzog  <[email protected]>
4822    
4823            * test/test_viewport.py (ViewPortTest.setUp)
4824            (SimpleViewPortTest.test_init_with_size): Move the test for the
4825            initial size as a constructor parameter from ViewPortTest.setUp
4826            method to a new separate test in SimpleViewPortTest.
4827    
4828    2003-10-06  Bernhard Herzog  <[email protected]>
4829    
4830            * test/test_viewport.py (MockView): New class derived from
4831            ViewPort with a mock implementation of GetTextExtent to be used in
4832            the test cases
4833            (ViewPortTest.setUp): Use MockView instead of ViewPort
4834    
4835            * Thuban/UI/viewport.py (ViewPort.GetTextExtent): Turn this method
4836            into what would be a "pure virtual function" in C++: always raise
4837            NotImplementedError. Mock implementations for test cases don't
4838            belong into the real code
4839    
4840    2003-10-02  Bernhard Herzog  <[email protected]>
4841    
4842            * test/test_layer.py (TestLayer.test_empty_layer): Explicitly
4843            close the dbf file we create so that it's contents have been
4844            written properly.
4845    
4846            * libraries/shapelib/shptree.c, libraries/shapelib/shpopen.c,
4847            libraries/shapelib/shapefil.h, libraries/shapelib/dbfopen.c:
4848            Update to shapelib 1.2.10
4849    
4850    2003-10-01  Jan-Oliver Wagner <[email protected]>
4851    
4852            * Thuban/UI/tree.py, Thuban/UI/main.py: Remove the #! line as
4853            it annoys lintian which warns about these files not being
4854            executable. The #! isn't necessary here since if you absolutely
4855            must execute them you can always say "python <filename>".
4856    
4857  2003-09-26  Bernhard Herzog  <[email protected]>  2003-09-26  Bernhard Herzog  <[email protected]>
4858    
4859          * Thuban/Model/classgen.py (GenQuantiles0): Removed since it's          * Thuban/Model/classgen.py (GenQuantiles0): Removed since it's
# Line 1421  Line 6277 
6277    
6278          * Thuban/Model/range.py, Thuban/version.py: Remove the #! line as          * Thuban/Model/range.py, Thuban/version.py: Remove the #! line as
6279          it annoys lintian which warns about these files not being          it annoys lintian which warns about these files not being
6280          executable. The #1 isn't necessary here since if you absolutely          executable. The #! isn't necessary here since if you absolutely
6281          must execute them you can always say "python <filename>".          must execute them you can always say "python <filename>".
6282    
6283          * Thuban/UI/renderer.py (ScreenRenderer.draw_shape_layer): Remove          * Thuban/UI/renderer.py (ScreenRenderer.draw_shape_layer): Remove
# Line 2536  Line 7392 
7392          Fix problem of hidden properties dialog under windows after double          Fix problem of hidden properties dialog under windows after double
7393          click on layer tree:          click on layer tree:
7394          The tree control always gets an Expanded / Collapsed event after          The tree control always gets an Expanded / Collapsed event after
7395          the ItemActivated  on double click, which raises the main window again.         We add a second ItemActivated event to the queue, which simply          the ItemActivated  on double click, which raises the main window again.
7396            We add a second ItemActivated event to the queue, which simply
7397          raises the already displayed window.          raises the already displayed window.
7398    
7399          * Thuban/UI/legend.py (LegendTree.__init__): Instance variable          * Thuban/UI/legend.py (LegendTree.__init__): Instance variable

Legend:
Removed from v.1760  
changed lines
  Added in v.2712

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26