/[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 2250 by jschuengel, Wed Jun 16 11:01:42 2004 UTC revision 2709 by dpinte, Tue Oct 3 09:34:51 2006 UTC
# Line 1  Line 1 
1    2006-09-28 Didrik Pinte <[email protected]>
2    
3            * Thuban/UI/classgen.py: bugfix due to wx2.6 update
4    
5            * Thuban/UI/view.py: removed non needed declaration
6    
7            * Thuban/UI/selection.py : typo correction
8    
9    2006-09-24 Bernhard Reiter <[email protected]>
10    
11            * Thuban/Model/proj.py(_do_we_have_to_work_around_broken_proj):
12            Making the test more robust for observed python 2.3 problems
13            with setlocale().
14    
15            * test/runtests.py: Added new option ---setdecimalcommalocale
16            to run all tests with an LC_NUMERIC that uses comma as decimal_point.
17            Minor: Added (c) year 2006. Fixed typo in a docstring.
18    
19            * test/test_transientdb.py: Minor: Added (c) year 2006. Fixed typo in
20            a docstring.
21    
22    2006-09-23 Bernhard Reiter <[email protected]>
23    
24            * Extensions/ogr/test/test_OGRShapestore.py: fixed skip_if_no_ogr()
25            and added it to TestOGRTable.setUp() so that all tests get skipped
26            if ogr cannot be imported. Added (c) year 2006.
27    
28    2006-09-18 Didrik Pinte <[email protected]>
29            
30            * wxPython 2.6 update : wx 2.4 syntax has been updated to 2.6
31            
32    2006-09-18 Bernhard Reiter <[email protected]>
33    
34            Fixed proj behaviour with python >=2.4 when decimal_point != '.'.
35    
36            * Thuban/UI/application.py: Fixed warning dialog when gdal is missing.
37    
38            * test/test_proj.py: new test_lc_numeric_robustness(). Added author
39            Bernhard Reiter and new copyright year 2006.
40    
41            * Thuban/Model/proj.py: New _do_we_have_to_work_around_broken_proj()
42            and Projection.assuregoodlocale(), Projection.assureinitlocale().
43            Added author Bernhard Reiter and (c) 2006.
44    
45    2006-09-15 Bernhard Reiter <[email protected]>
46    
47            * README: added RXP and pyRXP as optional for tests.
48    
49            * test/localessupport.py: New. Contains a helper function
50            to find a locale with comma used as decimal_point.
51    
52    2006-08-31 Bernhard Reiter <[email protected]>
53    
54            * README: fixed URLs to sqlite and pysqlite.
55    
56            * Thuban/UI/about.py: Added Didrik Pinte as contributor. Extended
57              copyright range to include 2006.
58    
59    2006-06-29 Didrik Pinte <[email protected]>
60    
61            * Thuban/UI/main.py: circular import fix.
62    
63    2006-06-27 Frank Koormann <[email protected]>
64    
65            New Classification "Pattern": Classify text attributes by regexp.
66    
67            * Thuban/Model/classification.py (class ClassGroupPattern):
68            New, group is associated with a regular expression.
69            (Classification._compile_classification): Store compiled regexp and
70            original group for pattern.
71            (Classification.FindGroup): Added pattern.
72    
73            * Thuban/UI/classifier.py
74            (ClassGrid._OnLabelRightClicked, ClassGrid.labelPopup):
75            New, add popup to select singleton/pattern.
76            (ClassTable.GetRowLabelValue, ClassTable.GetValueAsCustom,
77            ClassTable.SetValueAsCustom): Added pattern.
78            (ClassTable.__ParseInput): Autodetect singleton/pattern.
79    
80            * Thuban/Model/save.py (SessionSaver.write_classification):
81            Added pattern.
82    
83            * Thuban/Model/load.py (SessionLoader.start_clpattern,
84            SessionLoader.end_clpattern): New, process pattern elements.
85    
86            * test/test_classification.py (class TestClassGroupPattern): New.
87            (TestClassification.test_add_pattern,
88            TestClassification.test_multiple_groups_textual,
89            TestClassification.test_deepcopy_textual): New.
90            (TestClassification.test_multiple_groups_numerical):
91            Renamed test_multiple_groups.
92            (TestClassification.test_deepcopy_numerical): Renamed test_deepcopy.
93    
94            * test/test_save.py (SaveSessionTest.testClassifiedLayer):
95            Added pattern.
96    
97            * test/test_load.py (ClassificationTest.TestLayers, TestClassification):
98            Added pattern.
99    
100            * test/test_layer.py
101            (TestLayerModification.test_set_classification_textual): New
102            (TestLayerModification.test_set_classification_numerical):
103            Renamed test_set_classification.
104    
105            * Doc/manual/thuban-manual.xml: Added pattern to layer classification
106            description.
107    
108            * Resources/XML/thuban-1.1.dtd: Added clpattern element and attribs.
109    
110    2006-06-29 Didrik Pinte <[email protected]>
111    
112            * Thuban/version.py: Bugfix determination of SQLite, the wright one !
113              
114    2006-06-28 Didrik Pinte <[email protected]>
115    
116            * packaging/windows/thubanstart.py: sample file loading all the stable
117            extensions
118            
119    2006-06-28 Didrik Pinte <[email protected]>
120    
121            * Thuban/version.py: Bugfix determination of SQLite on old and recent
122            systems (support pysqlite1 and pysqlite2)
123    
124    2006-06-27 Frank Koormann <[email protected]>
125    
126            * Thuban/version.py: Bugfix determination of SQLite on old systems.
127    
128    2006-05-17 Didrik Pinte <[email protected]>
129            * Extensions/ogr/__init__.py : updated test for win32 and correct
130            imports
131    
132    2006-05-15 Didrik Pinte <[email protected]>
133            Ashamed ... still some tabs in the files
134    
135      * Thuban/version.py : tabs removed    
136      * Thuban/Model/transientdb.py : tabs removed
137    
138    2006-05-15 Didrik Pinte <[email protected]>
139    
140      * Thuban/version.py : coding style correction
141      * Thuban/Model/transientdb.py : coding style correction
142    
143    2006-05-15 Didrik Pinte <[email protected]>
144    
145      * Thuban/version.py : Updated imports to support pysqlite2
146    
147      * Thuban/Model/transientdb.py : Updated imports to support pysqlite2
148            Patched the querying system to support the param style of pysqlite2
149    
150    2006-04-24 Didrik Pinte <[email protected]>
151            * Extensions/svgexport/__init__.py: The extension now works on win32
152            architecture. Bug #87 corrected.
153    
154    2006-04-20 Bernhard Reiter <[email protected]>
155            * Doc/technotes/coding_guidelines.txt: Changed text from CVS to SVN.
156            Removed emacs specific hint and replaced it with a general hint
157            that editors might support writing changelogs.
158    
159    2006-04-12 Bernhard Reiter <[email protected]>
160    
161            * Thuban/version.py: Changed thuban_release mechanism to use "svn"
162            instead of "cvs".
163    
164    2006-03-31  Bernhard Reiter <[email protected]>
165    
166            * libraries/thuban/wxproj.cpp: including proj_api.h instead of
167            projects.h now. According the Frank Warmerdam and man pj_init
168            this is the public interface to proj. Thus I have changed PJ to projPJ.
169            And I could remove the hack to avoid clashes with typedef PVALUE
170            and #define LP in projects.h clashing with symbols when trying to
171            build on windows. The file is cleaner and nicer now.
172    
173    2006-03-29  Bernhard Reiter <[email protected]>
174    
175            * libraries/thuban/wxproj.cpp: undef LP to avoid clash when
176            trying to build with mingw.
177    
178    2005-10-18  Bernhard Reiter <[email protected]>
179    
180            * Thuban/UI/about.py: remove unused import of getdefaultlocale.
181            Added display of internal encoding to the about dialog text.
182    
183            * Extensions/svgexport/__init__.py: changed version to "1.0.0+cvs".
184    
185    2005-10-18  Bernhard Reiter <[email protected]>
186    
187            Startup improved: We fail right away if the internal encoding could
188            not be determined.
189    
190            * Thuban/__init__.py (get_internal_encoding): new.
191    
192            * test/test_stringrepresentation.py (class TestInternalEncoding):
193            Preserve the internal encoding for the tests in this class.
194    
195    2005-10-17  Bernhard Reiter <[email protected]>
196    
197            * test/test_stringrepresentation.py: New file, for now testing
198            that set_internal_coding() is throwing an exception for bad exceptions.
199    
200            * Thuban/__init__.py (set_internal_encoding): added a forwards
201            and backward translation, so that we fail early if the
202            internal_encoding is bad.
203    
204    2005-10-17  Bernhard Reiter <[email protected]>
205    
206            svgexport 1.0.0cvs: Fixed ARC layer writing: No filling is done.
207            You could actually get polylines with filling in between,
208            when the classification for the lines had a fill color.
209            E.g. this happens when you generate a classification from a ramp.
210    
211            * Extensions/svgexport/test/test_svgmapwriter.py:
212            New test_export_arc_no_fill(). Extend copyright notice to 2005.
213    
214            * Extensions/svgexport/svgmapwriter.py
215            (SVGRenderer.draw_shape_layer_incrementally()):
216            Setting TRANSPARENT_BRUSH for shaptype ARC.
217            Extend copyright notice to 2005.
218    
219            * Extensions/svgexport/__init__.py: Extend copyright notice to 2005.
220    
221    2005-09-08  Frank Koormann <[email protected]>
222    
223            * Doc/manual/thuban-manual.xml (Map Management): Fixed typo reported
224            by Erik (sigra.at.home.se)
225    
226    2005-08-18  Jan-Oliver Wagner <[email protected]>
227    
228            * Thuban/UI/renderer.py (ScreenRenderer.draw_selection_incrementally):
229            Call the right method for the default size.
230    
231    2005-08-11  Jan-Oliver Wagner <[email protected]>
232    
233            * Extensions/export_shapefile: New.
234    
235            * Extensions/export_shapefile/__init__.py: New. Initialize
236            the export_shapefile extension.
237    
238            * Extensions/export_shapefile/export_shapefile.py: New.
239            Exports a layer as a Shapefile.
240    
241    2005-08-08  Jan-Oliver Wagner <[email protected]>
242    
243            * po/de.po: String fixes. This fixes Debian bug #313843.
244    
245    2005-07-27  Jan-Oliver Wagner <[email protected]>
246    
247            Remove the attributes from the layer element in
248            .thuban files for the save routine.
249            This also solves RT bug #3149,
250            https://intevation.de/rt/webrt?serial_num=3149
251    
252            * test/test_load.py: (TestSingleLayer, TestNonAsciiColumnName,
253            TestLayerVisibility, TestSymbolSize, TestClassification, TestLabels,
254            TestLayerProjection, TestJoinedTable, TestLabelLayer): Removed
255            attributes from layer element to classification clnull element.
256    
257            * test/test_save.py (SaveSessionTest.testSingleLayer,
258            SaveSessionTest.testLayerProjection,
259            SaveSessionTest.testClassifiedLayer,
260            SaveSessionTest.test_joined_table, SaveSessionTest.test_save_postgis):
261            Removed attributes from layer element to classification clnull element.
262            (test_save_postgis.NonConnectionStore._fetch_table_information):
263            added pretending to have a shape_type.
264    
265            * Resources/XML/thuban-1.1.dtd: Make the attributes field
266            and field_type of classification optional.
267    
268            * Thuban/Model/classification.py (Classification.TreeItem.build_info):
269            Added output of size.
270    
271            * Thuban/Model/load.py (SessionLoader.start_classification):
272            Change attribute 'field' and 'field_type' from obligatory to
273            optional to allow empty classes (ie.  only with a default=clnull).
274    
275            * Thuban/Model/save.py (SessionSaver.write_layer): Don't write
276            any attributes anymore for the layer element.
277            (SessionSaver.write_classification): Even if there is no
278            classification field, still write the classification because
279            the clnull (default) symbol will not be defined anymore as
280            part of the layer element.
281    
282    2005-07-05  Bernhard Herzog  <[email protected]>
283    
284            * setup.py (setup call): Version 1.1.0
285    
286            * NEWS: Update for 1.1.0
287    
288            * MANIFEST.in: Add *.txt to files taken from Doc.  Otherwise the
289            technores won't be included
290    
291            * Thuban/UI/about.py (About.__init__): Extend copyright notice to
292            2005
293    
294            * po/de.po: Updated.
295    
296    2005-07-05  Bernhard Herzog  <[email protected]>
297    
298            * README: gdal 1.1.8 is too old.  1.2.5 works.
299    
300    2005-07-05  Bernhard Herzog  <[email protected]>
301    
302            * Resources/XML/thuban-1.1.dtd (rasterlayer): Add the opacity and
303            masktype attributes.
304    
305    2005-07-05  Bernhard Herzog  <[email protected]>
306    
307            * Thuban/Model/layer.py (Layer.__mangle_bounding_box)
308            (Layer.ClipBoundingBox): Rename ClipBoundingBox to
309            __mangle_bounding_box.  See the comments in the code and RT #2845
310    
311            * test/test_layer.py (TestLayer.test_arc_layer_with_projection):
312            Remove the explicit test of ClipBoundingBox.  The method isn't
313            public anymore and the direct call in the test wasn't necessary in
314            the first place.  If ClipBoundingBox (now __mangle_bounding_box)
315            isn't called, the return value of ShapesInRegion will be
316            different.
317    
318    2005-07-05  Bernhard Herzog  <[email protected]>
319    
320            * Thuban/UI/viewport.py (ViewPort.set_view_transform): Handle
321            ZeroDivisionError exceptions.  I don't know when they happen
322            exactly.  It probably happens when the projections aren't set
323            properly.
324    
325    2005-07-01  Bernhard Herzog  <[email protected]>
326    
327            First step towards unicode.  With this roughly we're at step 1
328            string_representation.txt
329    
330            * Doc/technotes/string_representation.txt: New.  Document how
331            strings are represented in Thuban and how to get to a Unicode
332            Thuban.
333    
334            * Thuban/__init__.py (set_internal_encoding)
335            (unicode_from_internal, internal_from_unicode): New. The first few
336            functions for the internal string representation
337    
338            * Thuban/UI/about.py (unicodeToLocale): Removed.  Use
339            internal_from_unicode instead.
340    
341            * Thuban/UI/__init__.py (install_wx_translation): Determine the
342            encoding to use for the internal string representation.  Also,
343            change the translation function to return strings in internal
344            representation even on unicode builds of wxPython
345    
346            * Thuban/Model/load.py (SessionLoader.check_attrs): Decode
347            filenames too.
348            (SessionLoader.start_clrange): Use check_attrs to decode and check
349            the attributes.
350    
351            * Thuban/Model/xmlreader.py (XMLReader.encode): Use
352            internal_from_unicode to convert unicode strings.
353    
354            * Thuban/Model/xmlwriter.py (XMLWriter.encode): Use
355            unicode_from_internal when applicable
356    
357            * test/runtests.py (main): New command line option:
358            internal-encoding to specify the internal string encoding to use
359            in the tests.
360    
361            * test/support.py (initthuban): Set the internal encoding to
362            latin-1
363    
364            * test/test_load.py (TestSingleLayer.test, TestClassification.test)
365            (TestLabelLayer.test): Use the internal string representation when
366            dealing with non-ascii characters
367    
368            * test/test_load_1_0.py (TestSingleLayer.test)
369            (TestClassification.test, TestLabelLayer.test): Use the internal
370            string representation when dealing with non-ascii characters
371    
372            * test/test_load_0_9.py (TestSingleLayer.test)
373            (TestClassification.test): Use the internal string representation
374            when dealing with non-ascii characters
375    
376            * test/test_load_0_8.py (TestUnicodeStrings.test): Use the
377            internal string representation when dealing with non-ascii
378            characters
379    
380            * test/test_save.py (XMLWriterTest.testEncode)
381            (SaveSessionTest.testClassifiedLayer): Use the internal string
382            representation when dealing with non-ascii characters where
383            applicable
384    
385    2005-06-30  Bernhard Herzog  <[email protected]>
386    
387            * test/runtests.py: Untabify.
388    
389    2005-06-30  Bernhard Herzog  <[email protected]>
390    
391            * Thuban/UI/renderer.py (ScreenRenderer.draw_selection_incrementally):
392            untabify.
393    
394    2005-06-30  Bernhard Herzog  <[email protected]>
395    
396            * Extensions/ogr/test/__init__.py: Add missing coding directive
397    
398    2005-06-28  Jan-Oliver Wagner <[email protected]>
399    
400            * Thuban/UI/renderer.py (ScreenRenderer.draw_selection_incrementally):
401            Use the default size for rendering selected items of default type.
402            Fixes part 2 of https://intevation.de/rt/webrt?serial_num=3149
403    
404    2005-06-28  Jan-Oliver Wagner <[email protected]>
405    
406            * Extensions/importAPR/apr.py (APR_BShSym): Extend by 'Stripple'.
407            (APR_TClr.GetThubanColor): Fix bug in color interpretation.
408            Thanks to Frank Koormann who identified this problem.
409    
410            * Extensions/importAPR/importAPR.py (APR_VShSym): New. Just
411            another symbol identified.
412    
413    2005-06-27  Jan-Oliver Wagner <[email protected]>
414    
415            * Doc/manual/thuban-manual-de.xml: More translations.
416    
417    2005-05-12  Jonathan Coles <[email protected]>
418            
419            * Thuban/UI/projdialog.py: Add missing import, which led to an
420            exception when opening a layer's projection.
421    
422    2005-05-09  Bernhard Herzog  <[email protected]>
423    
424            * test/support.py (FileLoadTestCase.filename): Fix doc-string.
425    
426    2005-05-09  Bernhard Herzog  <[email protected]>
427    
428            * Thuban/Model/postgisdb.py (PostGISConnection.connect): Set the
429            connection to autoconnect.  Fixes RT#3148.
430    
431            * test/test_postgis_db.py
432            (TestPostGISSpecialCases.test_simple_error_handling): New test
433            that attempts to reproduce RT#3148.
434    
435    2005-05-06  Jonathan Coles <[email protected]>
436    
437            Add support for saving and loading the opacity and mask type
438            properties of RasterLayers. Also add support for proper use
439            of alpha information while drawing images not in 'RAW' format.
440            If transparency in an image format (e.g, PNG) is supported by
441            wxWidgets then the image would previously have been draw with
442            transparent regions, but the opaque regions would have been
443            unaffected by a change in the layer's opacity. This patch
444            corrects the problem.
445    
446            * Thuban/Model/layer.py (RasterLayer): Added opacity and
447            masktype parameters to the constructor, and set the
448            appropriate variables to those values.
449    
450            * Thuban/Model/load.py (SessionLoader.start_rasterlayer): Added
451            code to read the opacity and mask type of the layer and construct
452            a new layer with the additional parameters.
453    
454            * Thuban/Model/save.py (SessionSaver.write_layer): Added code
455            to save the opacity and mask type of a layer.
456    
457            * Thuban/UI/baserenderer.py (BaseRenderer.draw_raster_layer): Pass
458            the opacity of the layer to draw_raster_data rather than the layer.
459            (BaseRenderer.draw_raster_data): Remove the layer parameter because
460            the function doesn't need to know about the layer. Add the optional
461            opacity parameter whose default is 1.0. Add 'PNG' as a supported
462            graphics format.
463    
464            * Thuban/UI/renderer.py (MapRenderer.draw_raster_data): Fixed
465            signature to match that in BaseRenderer. Use the new opacity argument
466            in place of calling layer.Opacity(). In the case where the
467            format is not 'RAW', alpha_data is None and the loaded image has
468            alpha information, use the file's alpha information. This is
469            still subject to the layer's opacity setting.
470    
471            * test/test_baserenderer.py (SimpleRenderer.draw_raster_data):
472            Fixed signature to match that in BaseRenderer.
473    
474            * test/test_load.py (TestRasterLayer): Change file_contents to
475            include opacity and masktype variables.
476            (TestRasterLayer.test): Include tests for opacity and masktype
477            changes.
478    
479            * test/test_save.py (SaveSessionTest.testRasterLayer): Restructure
480            test to cover a variety of combinations of masktype and opacity
481            settings.
482    
483    2005-05-02  Jan-Oliver Wagner <[email protected]>
484    
485            * debian/rules: add --use-wx-python-swig-hack
486            to the build command.
487            Thanks to Moritz Lennert for pointing this out.
488    
489    2005-04-28  Jan-Oliver Wagner <[email protected]>
490    
491            Introduce OGRFileShapeStore in ogr extension.
492            This allows at least that loaded shapefile shape stores
493            can be saved correctly in the thuban session file
494            and reloaded again (reload is via core shapefile
495            routine, not OGR). For other types, .thuban files
496            can not be reloaded for the time being.
497    
498            * Extensions/ogr/ogrshapes.py (OGRFileShapeStore): New. This
499            class ist to be used for any file-based shape stores
500            accessed through OGR.
501    
502            * Extensions/ogr/ogrstart.py (open_with_ogr): Added
503            forgotten _ for i18n. Adapted call OpenFileShapestore
504            regarding new parameter.
505            (OpenFileShapestore): Use OGRFileShapeStore instead of
506            OGRShapeStore. Fix return value (None instead of null).
507            Add new parameter "mainwindow" to avoid accessing global
508            context.
509    
510    2005-04-27  Jan-Oliver Wagner <[email protected]>
511    
512            Introduce FileShapeStore as generalization for
513            file-based shape stores. In a first instance
514            this allows additional modules to handle shapefile
515            format as well, namely the OGR extension.
516    
517            * Thuban/Model/data.py: Various small fixes in doc-strings.
518            (FileShapeStore): New class.
519            (ShapefileStore): Derive from FileShapeStore.
520            (ShapefileStore.__init__): Call __init__ of FileShapeStore,
521            rename self.table to self._table, initialize self._bbox
522            (ShapefileStore._open_shapefile): Use self._bbox instead of self.bbox
523            and self.FileName() instead of self.filename.
524            (ShapefileStore.Table): Use self._table instead of self.table.
525            (ShapefileStore.FileName): Removed (moved to FileShapeStore).
526            (ShapefileStore.BoundingBox):  Use self._bbox instead of self.bbox.
527    
528            * Thuban/Model/save.py: Replace ShapefileStore by FileShapeStore.
529            (SessionSaver.write_data_containers): Only use methods of the
530            base class FileShapeStore.
531    
532    2005-04-26  Martin Schulze  <[email protected]>
533    
534            * Extensions/wms/wms.py (render_wms_layer): Adjusted the render
535            function to the modified render engine
536    
537    2005-04-25  Martin Schulze  <[email protected]>
538    
539            * Thuban/UI/renderer.py (MapRenderer.projected_raster_layer):
540            Added a description according to the CVS log message
541    
542    2005-04-23  Martin Schulze  <[email protected]>
543    
544            * Thuban/UI/renderer.py: Added a missing import
545    
546    2005-04-23  Russell Nelson  <[email protected]>
547    
548            * Thuban/UI/view.py (MapCanvas.OnMiddle{Up,Down}): Changed the
549            way the previous tool is remembered, so that middle-button
550            panning works even if you haven't selected a tool.
551    
552    2005-04-11  Bernhard Herzog  <[email protected]>
553    
554            * libraries/thuban/wxproj.cpp: Move the compatibility code that
555            deals with the wxPython 2.4 version of wxPython.h into the #ifdef
556            branch that includes wxPython.h because it's only needed when
557            wxPython.h is used.  Also, it won't compile when
558            USE_WX_PYTHON_SWIG_HACK is set otherwise.
559    
560    2005-04-07  Bernhard Herzog  <[email protected]>
561    
562            * Thuban/UI/classifier.py (ClassGrid.__init__): Use -1 as the ID.
563            (ID_CLASS_TABLE): Removed. It wasn't used anywhere except in
564            ClassGrid.__init__ and it's value is outside of the valid
565            range (must be < 32768).  wxPython 2.5 complains about it with an
566            exception.
567    
568    2005-04-05  Jan-Oliver Wagner <[email protected]>
569    
570            * Doc/manual/thuban-manual-de.xml: More translations.
571    
572    2005-04-05  Bernhard Herzog  <[email protected]>
573    
574            * libraries/thuban/wxproj.cpp: Make it work with a wxPython.h from
575            wxPython 2.4 as well.  Also, remove a now obsolete comment.
576    
577    2005-04-05  Bernhard Herzog  <[email protected]>
578    
579            Use wxPython.h by default but provide a workaround when it isn't
580            available.
581    
582            * setup.py (wxproj_extension): New variable.  Assign the Extension
583            instance for Lib.wxproj to this variable instead of putting it
584            directly into the listso that it can be accessed by other code
585            later.
586            (thuban_build_ext.user_options): Added boolean option
587            --use-wx-python-swig-hack.
588            (thuban_build_ext.initialize_options): Initialize the new option
589            to False.
590            (thuban_build_ext.finalize_options): If the new option was given,
591            define the preprocesser macro USE_WX_PYTHON_SWIG_HACK.
592            (thuban_build_ext): Update the doc-string
593    
594            * libraries/thuban/wxproj.cpp: Normally we use
595            wx/wxPython/wxPython.h now.  Only if USE_WX_PYTHON_SWIG_HACK is
596            defined, use swigPtrConvertHack.h instead.
597    
598            * libraries/thuban/swigPtrConvertHack.h: Remove the code that was
599            copied over from wxPython.h.
600            (decode_pointer_new): New.  Equivalent of decode_pointer for
601            wxPython 2.5.
602            (wxPyConvertSwigPtr): Modified to cope with wxPython 2.5 as well.
603    
604            * README: Add section on potential build problems which explains
605            how the work-around for a missing wxPython.h is activated.
606    
607    2005-03-29  Bernhard Herzog  <[email protected]>
608    
609            * test/postgissupport.py (find_postgis_sql): Added yet another
610            potential location for (lw)postgis.sql because the file has moved
611            again in postgis 1.0.0 rc4.
612    
613    2005-03-29  Bernhard Herzog  <[email protected]>
614    
615            * Thuban/UI/legend.py (BMP_SIZE_W, BMP_SIZE_H): Set both to 16 to
616            match the site of the legend_icon_layer icon.  Otherwise wxpython
617            2.5 complains when the legend is created with the error:
618    
619            PyAssertionError: C++ assertion "(bitmap.GetWidth() == m_width &&
620            bitmap.GetHeight() == m_height) || (m_width == 0 && m_height ==
621            0)" failed in ./src/generic/imaglist.cpp(81): invalid bitmap size
622            in wxImageList: this might work on this platform but definitely
623            won't under Windows.
624    
625    2005-03-23  Jonathan Coles <[email protected]>
626    
627            These changes add support for adjusting the opacity of a raster layer.
628    
629            * Thuban/Model/layer.py (RasterLayer.Opacity): Replaces AlphaOpacity.
630            (RasterLayer.SetOpacity): Replaces SetAlphaOpacity. Also triggers
631            a LAYER_CHANGED event if the opacity actually changes.
632    
633            * Thuban/UI/baserenderer.py (BaseRenderer.draw_raster_data): Added
634            layer parameter needed in the implementation of this method in
635            renderer.py.
636    
637            * Thuban/UI/layerproperties.py (LayerProperties.dialog_layout): Fixed
638            typo 00 -> 0.
639    
640            * Thuban/UI/rasterlayerproperties.py (RasterLayerProperties): Added
641            control to adjust opacity.
642    
643            * Thuban/UI/renderer.py (MapRenderer.draw_raster_data): Scale the
644            alpha data based on the opacity level of the layer.
645    
646            * test/test_baserenderer.py (SimpleRenderer.draw_raster_data): Now
647            accepts a layer parameter.
648    
649            * test/test_layer.py (TestLayerModification.test_raster_layer):
650            Rename opacity method calls and add test for LAYER_CHANGED.
651    
652    2005-03-16  Bernhard Herzog  <[email protected]>
653    
654            * test/test_connector.py (DeletionTestMixin.check_deletions)
655            (DeletionTestMixin.check_deletetions): renamed to check_deletions.
656            update the callers.
657    
658    2005-03-14  Jan-Oliver Wagner <[email protected]>
659    
660            * Doc/manual/thuban-manual-de.xml: More translations.
661    
662    2005-03-10  Jan-Oliver Wagner <[email protected]>
663    
664            Introducing initialization callbacks for extensions.
665    
666            * Thuban/UI/extensionregistry.py (ExtensionDesc.__init__): Added
667            optional parameter init_callback.
668            (ExtensionDesc.init_ext): New. Executes the callback and sets
669            a status.
670    
671            * Thuban/UI/application.py (ThubanApplication.OnInit): Add the
672            initialization of the extensions.
673            (ThubanApplication.init_extensions): Init all extensions.
674    
675            * Thuban/UI/about.py (About.__init__): Added status of the extensions
676            to the about text.
677    
678            * Extensions/gns2shp/__init__.py: Added init method for Extension
679            description.
680            (init): New. Contains the initialization of the module.
681    
682    2005-03-04  Nina H�ffmeyer <[email protected]>
683    
684            * Extensions/ogr/ogrdialog.py: Added a dialog, which asks for
685            OGRConnection to open a datasource. Removed dialog to display all
686            available drivers. Added some doc strings.
687    
688            * Extensions/ogr/ogrstart.py: Added menu entry for opening an
689            OGRDatasource with a string. Added two opening methods which return an
690            OGRDatasource (either data from file or from DB).
691    
692            * Extensions/ogr/ogrshapes.py: Added class OGRGeometry, which
693            represents a geometry reference of an OGRFeature. OGRShape now has a
694            list of referenced geometry objects (important for geometry
695            collections).
696            For OGRShapeStores loaded from a DB an ID column can be specified now.
697    
698    2005-02-22  Jan-Oliver Wagner <[email protected]>
699    
700            * test/test_map.py (TestMapWithContents.test_tree_info):
701            Added label layer for comparison.
702    
703    2005-02-18  Jonathan Coles <[email protected]>
704    
705            * libraries/thuban/gdalwarp.cpp (GetImageData): Optimize the loop
706            which builds a mask. Handle the majority of an image in a loop,
707            creating 8 bits at a time. Later, handle the edge case where less
708            than 8 bits are packed.
709    
710    2005-02-18  Bernhard Herzog  <[email protected]>
711    
712            * test/test_baserenderer.py (TestBaseRenderer.setUp): Fix
713            doc-string
714    
715    2005-02-18  Jonathan Coles <[email protected]>
716    
717            * setup.py: Remove wx_cs_params from gdal compile options.
718    
719    2005-02-18  Jonathan Coles <[email protected]>
720    
721            Refactored baserenderer.py and renderer.py to remove baserenderer.py's
722            dependencies on wxPython. Added a new method projected_raster_layer()
723            that returns a raster layer image in projected space. This must be
724            implemented in classes derived from BaseRenderer. This also eliminates
725            the dependency on gdal in baserenderer.py.
726    
727            * Thuban/UI/baserenderer.py (BaseRenderer.draw_raster_layer): Call
728            new projected_raster_layer() to get projected raster image instead
729            of directly calling ProjectRasterFile().
730            (BaseRenderer.projected_raster_layer): New. This must be implemented
731            by derived classes. It takes almost the same arguments as ProjectRasterFile
732            did and returns a projected image with mask and alpha data (if requested).
733            (BaseRenderer.render_map_incrementally): Remove the check for gdal since
734            that check will be done in MapRenderer.projected_raster_layer(). This
735            also allows other implementations to use different projection code.
736    
737            * Thuban/UI/renderer.py (MapRenderer.projected_raster_layer):
738            Implementation of BaseRenderer.projected_raster_layer. Checks for
739            gdal support and wxPython version. Also handles exceptions from
740            ProjectRasterFile.
741    
742            * libraries/thuban/gdalwarp.cpp: Removed checks for wxPython versions
743            and added a variable which can be set through the options argument
744            of ProjectRasterFile.
745    
746            * test/test_baserenderer.py (SimpleRenderer.projected_raster_layer): New.
747            Calls ProjectRasterFile and returns the result.
748            (TestBaseRenderer.test_projected_raster_layer): New. Tests the results
749            of calling projected_raster_layer() with different options.
750            (TestBaseRenderer.test_raster_no_projection): Removed tests based on
751            wxPython version and all tests of masks and alpha channels. These are
752            now in test_projected_raster_layer().
753    
754    2005-02-17  Jan-Oliver Wagner <[email protected]>
755    
756            * Thuban/Model/map.py, Thuban/Model/label.py: Fixed
757            doc-strings to comply with coding_guidelines.
758    
759    2005-02-17  Jan-Oliver Wagner <[email protected]>
760    
761            Docstring improvements and minor fixes for labellayer.
762    
763            * Thuban/Model/map.py:
764            (Map, Map.Destroy, Map.RemoveLayer, Map.ClearLayers,
765            Map.Layers, Map.HasLayers, Map.MoveLayerToTop,
766            Map.RaiseLayer, Map.LowerLayer, Map.MoveLayerToBottom,
767            Map.ProjectedBoundingBox, Map.GetProjection): Improved/added
768            doc string.
769            (Map.BoundingBox): Removed superfluous test for label_layer
770            and improved doc string.
771            (Map.TreeInfo): Added label_layer and improved sdo string.
772    
773            * Thuban/Model/label.py: Added import of _.
774            (Label, Label.__init__): Improved/added doc string.
775            (LabelLayer, LabelLayer.__init__, LabelLayer.Labels,
776            LabelLayer.RemoveLabel, LabelLayer.ClearLabels):
777            Improved/added doc string.
778            (LabelLayer.AddLabel): Use already defined names for
779            align strings and improved doc string.
780            (LabelLayer.TreeInfo): New. Return the object data for
781            the tree view.
782    
783    2005-02-16  Jonathan Coles <[email protected]>
784    
785            Further wxPython 2.5 changes using patches from Daniel Calvelo Aros
786            so that that wxproj doesn't crash. Added GUI support for selecting
787            alpha channel (opacity can't be selected yet).
788    
789            NOTE: If wxPython.h is including in future distribution packages
790            then it will not be necessary to have the files swigPtrConvertHack.h
791            and wxPython_int.h included with Thuban. This is hopefully
792            a temporary workaround.
793    
794            * setup.py (thuban_build_ext.finalize_options): gdalwarp needs
795            access to the macro wxCHECK_VERSION so that it will properly
796            generate a bit mask. There was a problem between wx2.4 and wx2.5
797            that this works around.
798    
799            * Thuban/Model/layer.py (RasterLayer.UseMask): Removed in favor
800            of RasterLayer.MaskType.
801            (RasterLayer.SetUseMask): Removed in favor of RasterLayer.SetMaskType
802            (RasterLayer.MaskType): New. Returns the type of mask to use. Can
803            specify none, a bitmap, or an alpha channel.
804            (RasterLayer.SetMaskType): New. Set what kind of mask to use.
805    
806            * Thuban/UI/baserenderer.py (BaseRenderer.draw_raster_layer):
807            Set the raster warping options for the mask based on the value
808            of RasterLayer.MaskType.
809    
810            * Thuban/UI/legend.py (LegendTree.__FillTreeLayer): Remove
811            deprecated calls to SetItemSelectedImage in favor of SetItemImage
812            with wxTreeItemIcon_Selected.
813    
814            * Thuban/UI/rasterlayerproperties.py: Support selecting to use
815            an alpha channel for the mask.
816    
817            * Thuban/UI/renderer.py (MapRenderer.draw_raster_data): Use alpha
818            data if it is available and an alpha channel is supported under
819            the current version of wxPython.
820    
821            * libraries/thuban/gdalwarp.cpp (GetImageData): Added compiler define
822            to select whether 1's or 0's select the desired portion of an image
823            in the bit mask. wx2.4 has a bug where the documentation is the opposite
824            from behavior.
825            (ProjectRasterFile): Only generate an alpha channel if the version
826            of wxPython is >= 2.5.3.
827    
828            * libraries/thuban/wxproj.cpp: Applied patches from Daniel Calvelo Aros.
829            When wxPython >= 2.5.3 use the special swig functions to decode an
830            object's address.
831    
832            * libraries/thuban/swigPtrConvertHack.h: Includes conditional code
833            based on the version of wxPython. If >= 2.5.3 use the special swig
834            functions from wxPython to decode wxPython objects, otherwise use
835            the old method of retrieving the address from the object __repr__ string.
836    
837            * libraries/thuban/wxPython_int.h: Copied from wxPython source.
838            Unnecessary code was removed to make it smaller.
839    
840            * test/test_baserenderer.py (TestBaseRenderer.test_raster_no_projection):
841            Add tests for returning an alpha channel.
842    
843            * test/test_layer.py (TestLayerModification.test_raster_layer): Fix
844            tests that used removed functions UseMask and SetUseMask
845    
846    
847    2005-02-08  Bernhard Herzog  <[email protected]>
848    
849            More wxPython 2.5 changes.  This time taken from a patch from
850            Daniel Calvelo Aros.
851    
852            * Thuban/UI/tableview.py (QueryTableFrame.__init__)
853            (QueryTableFrame.__init__): Pass the size of a spacer as a single
854            item.
855    
856            * Thuban/UI/projdialog.py (ProjFrame.build_dialog)
857            (ProjFrame.build_dialog): Pass the size of a spacer as a single
858            item.
859    
860            * Thuban/UI/dbdialog.py (ChooseDBTableDialog.__init__): Pass the
861            size of a spacer as a single item.
862    
863            * Thuban/UI/classifier.py (Classifier.dialog_layout): Pass the
864            size of a spacer as a single item.
865    
866    2005-02-08  Bernhard Herzog  <[email protected]>
867    
868            Compatibility with wxPython 2.5.  The changes should make it work
869            better with 2.5 while still keeping compatibility with 2.4.  There
870            are still problems with 2.5, though.
871    
872            * Thuban/UI/dock.py (DockableWindow.__CreateBorder): Pass the size
873            of a spacer as a single item.
874    
875            * Thuban/UI/classifier.py (ClassGroupPropertiesCtrl): Derive only
876            from wxControl
877    
878            * Thuban/UI/legend.py (LegendTree): When running with wxPython <
879            2.5, add an implementation of the GetFirstChild method that does
880            not require the second parameter.
881            (LegendTree.find_layer, LegendTree._OnMsgMapLayersAdded)
882            (LegendTree._OnMsgMapLayersRemoved, LegendTree.DeleteAllItems)
883            (LegendTree.DeleteChildren, LegendTree.__ShowHideLayer): Do not
884            pass the second parameter to GetFirstChild
885    
886    2005-02-08  Nina H�ffmeyer <[email protected]>
887    
888            * Extensions/ogr/ogrshapes.py: Removed some print commands.
889    
890            * Extensions/ogr/ogrstart.py: Changed the GUI. OGR is no longer an
891            additional menu but appears as a possibility in the menu Map.
892    
893    2005-02-07  Jonathan Coles <[email protected]>
894            * libraries/thuban/gdalwarp.cpp: Removed the macros PYTHON_ERR
895            and PYTHON_ERRF since they were no longer necessary.
896    
897    2005-02-07  Bernhard Reiter <[email protected]>
898            * Thuban/UI/classifier.py (ClassGrid.DeleteSelectedRows):
899            Enable translation for message string.
900    
901    2005-02-06  Martin Schulze  <[email protected]>
902    
903            * Extensions/wms/infodialog.py (wmsInfoDialog.__init__): Adjusted
904            the arguments of the contstructor to fit the global scheme
905    
906    2005-01-31  Nina H�ffmeyer <[email protected]>
907    
908            * Extensions/ogr/ogrdialog.py: Added class ogrdialog.py, which provides
909            some dialogs needed to start ogr.
910            
911            * Extensions/ogr/__init__.py: Changed comments to avoid encoding
912            warnings.
913    
914            * Extensions/ogr/test/test_OGRShapestore.py: Changed comments to avoid
915            encoding warnings.
916    
917    2005-01-28  Jonathan Coles <[email protected]>
918    
919            * libraries/thuban/gdalwarp.cpp (GetImageData): Recode how the
920            mask is packed into a bit array. It's now slightly faster.
921    
922    2005-01-28  Jonathan Coles <[email protected]>
923    
924            * Thuban/Model/layer.py (RasterLayer.__init__): Make use_mask
925            default to true.
926    
927            * Thuban/Model/load.py (SessionLoader.start_rasterlayer): Remove
928            code that loads the state of the layer's use_mask flag. Its
929            usefulness is still being debated.
930    
931            * Thuban/Model/save.py (SessionSaver.write_layer): Remove
932            code that saves the state of the layer's use_mask flag. Its
933            usefulness is still being debated.
934    
935            * Thuban/UI/baserenderer.py (BaseRenderer.draw_raster_layer): Pass
936            options to ProjectRasterFile based on the state of layer.UseMask().
937            Catch more exceptions from ProjectRasterFile so that Thuban doesn't
938            quit is there is a problem projecting.
939            (BaseRenderer.draw_raster_data): Change the documentation to
940            describe the new format (XBM) that the mask data will be in.
941    
942            * Thuban/UI/renderer.py (MapRenderer.draw_raster_data): The mask
943            data is in XBM format when format='RAW' which means it doesn't
944            need to be converted to a wxImage before being used as a mask
945            for a wxBitmap. Assume that if format != 'RAW' that the image
946            data and mask data are in the same format.
947    
948            * libraries/thuban/gdalwarp.cpp (GetImageData): If alpha is enabled
949            and a mask is requested, convert the alpha band to a bit array in
950            XBM format. if an alpha channel is requested, simply return the
951            data in the alpha band. Provide better error handling by returning
952            python error messages (also fixes RT #2947).
953            (ProjectRasterFile): Support multiple mask options, rather than simply
954            a flag indicating that a mask should or should not be used. Provide
955            better error handling by returning python error messages.
956    
957            * test/test_baserenderer.py (TestBaseRenderer.test_raster_no_projection):
958            Add mask data to test.
959    
960            * test/test_layer.py (TestLayer.test_raster_layer): Test that a layer
961            should use the mask by default.
962            (TestLayerModificaton.test_raster_layer): Test that a layer should use
963            the mask by default.
964    
965            * test/test_load.py (TestRasterLayer.test): Remove testing for
966            use_mask flag in file.
967    
968            * test/test_save.py (SaveSessionTest.testRasterLayer): Remove testing
969            for use_mask in file.
970    
971            * test/test_load_1_0_1.py: Removed. Shouldn't have been checked in.
972            
973    2005-01-26  Jonathan Coles <[email protected]>
974    
975            Add a new dialog box for raster layers. The dialog box allows
976            the user to toggle a mask that is generated by ProjectRasterFile
977            and is used to only draw the real parts of the projected image.
978    
979            * Thuban/UI/baserenderer.py (BaseRenderer.draw_raster_layer):
980            Instruct the warping code to generate a mask if the raster layer
981            requests one.
982            (BaseRenderer.draw_raster_data): Removed obsolete optional mask argument.
983    
984            * Thuban/UI/renderer.py (MapRenderer.draw_raster_data): Removed
985            obsolete optional mask argument.
986    
987            * Thuban/UI/classifier.py (Classifier): Change the parent class
988            to LayerProperties and rework the code to support layout calls
989            from the parent.
990            (Classifier.dialog_layout): New. Layout the dialog box.
991            (Classifier.map_layers_removed): Removed. Moved to parent class.
992            (Classifier.map_replaced): Removed. Moved to parent class.
993            (Classifier._OnTry): Renamed to OnTry to support parent class.
994            (Classifier.OnClose): Removed. Supplied in parent class.
995            (Classifier._OnCloseBtn): Removed. Supplied in parent class as OnCloseBtn.
996            (Classifier._OnOK): Renamed to OnOK to support parent class.
997            (Classifier._OnRevert): Renamed to OnRevert to support parent class.
998    
999            * Thuban/UI/layerproperties.py: New. Base class for layer properties
1000            dialog boxes.
1001    
1002            * Thuban/UI/rasterlayerproperties.py: New. Class for displaying
1003            raster layer properties.
1004    
1005            * libraries/thuban/gdalwarp.cpp: Replace the old gdalwarp.cpp code
1006            with the non-simple version supplied with gdal. This allows added
1007            features such as creating an alpha band.
1008            (GetImageData): Generate a mask array from the alpha band that is
1009            generated by gdal if the user has selected it. Try to support images
1010            that have more than three bands, such as images with RGB plus an
1011            alpha band.
1012            (ProjectRasterFile): Convert python argument for mask and tell
1013            gdal to enable or disable an alpha band.
1014    
1015            * Thuban/Model/layer.py (BaseLayer.Type): New. Returns a string
1016            describing what kind of layer the class is. Defaults to "Unknown",
1017            but should be overridden by subclasses.
1018            (Layer.Type): New. Override base class method.
1019            (RasterLayer.__init__): Create a flag for using a mask. Record extra
1020            data from gdal for display in the properties dialog.
1021            (RasterLayer.Type): New. Override base class method.
1022            (RasterLayer.UseMask): New. Returns True if the mask should be used.
1023            (RasterLayer.SetUseMask): New. Set if the mask should be used.
1024            (RasterLayer.ImageInfo): New. Return extra information about the image.
1025    
1026            * Thuban/Model/load.py (SessionLoader.start_rasterlayer): Load
1027            the mask information.
1028    
1029            * Thuban/Model/save.py (SessionSaver.write_layer): Save mask information.
1030    
1031            * Thuban/UI/mainwindow.py: Register the RasterLayerProperties and
1032            Classifier classes as dialogs to use with the proper layer types.
1033    
1034            * test/test_baserenderer.py (TestBaseRenderer.test_raster_no_projection):
1035            Fix test.
1036    
1037            * test/test_layer.py (TestLayer.test_raster_layer): Test new methods.
1038            (TestLayerModification.build_path): New. Support function.
1039            (TestLayerModification.test_raster_layer): New. Test new methods.
1040    
1041            * test/test_save.py (SaveSessionTest.testRasterLayer): Add tests for mask.
1042    
1043            * test/test_load.py (TestRasterLayer): Add tests for mask.
1044    
1045            * test/test_load_1_0_1.py: New. Copied from test_load.py.
1046    
1047            * test/test_baserenderer.py (SimpleRenderer.draw_raster_data): Removed
1048            obsolete optional mask argument.
1049    
1050    2005-01-26  Nina H�ffmeyer <[email protected]>
1051    
1052            * Extensions/ogr/ogrshapes.py: Added two dictionaries to ShapeStore
1053            which maps the ids and the ordinals. Fixed RowIdToOrdinal(),
1054            RowOrdinalToId() and ReadRowAsDict().
1055    
1056            * Extensions/ogr/ogrstart.py: Added menu item which opens database
1057            layers for existing database connections.
1058    
1059            * Extensions/ogr/test/test_OGRShapestore.py: Fixed a message string.
1060    
1061    
1062    2005-01-26  Jan-Oliver Wagner <[email protected]>
1063    
1064            * Doc/manual/thuban-manual-de.xml: More translations.
1065    
1066    2005-01-24  Bernhard Herzog  <[email protected]>
1067    
1068            Rework the status bar updates a bit to make sure the message about
1069            the projections is produced at the right times.
1070    
1071            * Thuban/UI/mainwindow.py (MainWindow.update_status_bar_messages):
1072            New class variable with messages that may require a status bar
1073            update.
1074            (MainWindow.view_position_changed)
1075            (MainWindow.update_status_bar): Rename from view_position_changed
1076            to update_status_bar.  It's meaning has changed now that it may
1077            also generate messages about problems with projection settings.
1078            (MainWindow.__init__): Use the new update_status_bar_messages
1079            class variable to subscribe update_status_bar
1080            (MainWindow.set_position_text): Update doc-string.  This method
1081            has to be renamed at some point.  See doc-string and comments.
1082            (MainWindow.OnClose): Unsubscribe update_status_bar from all
1083            messages in update_status_bar_messages
1084    
1085            * Thuban/UI/viewport.py (ViewPort.forwarded_map_messages): New
1086            class attribute.  map messages to be forwarded by the viewport.
1087            (ViewPort._subscribe_map, ViewPort._unsubscribe_map): (un)subscribe
1088            the messages in forwarded_map_messages
1089    
1090    2005-01-21  Bernhard Herzog  <[email protected]>
1091    
1092            * test/postgissupport.py (PostGISDatabase.__init__): Tweak
1093            doc-string
1094            (find_postgis_sql): Update for postgis-1.0.0-rc1, which uses a
1095            different name for the initialization SQL file.
1096    
1097    2005-01-21  Jonathan Coles <[email protected]>
1098    
1099            * Thuban/UI/baserenderer.py (proj_params_to_str): New. Takes
1100            a projection and returns a formatted string representing the
1101            parameters to feed to gdalwarp. This function eliminates
1102            redundancy in draw_raster_layer().
1103            (BaseRenderer.render_map_incrementally): Removed the optimization which
1104            drew the top most raster layer first and then only those vector-
1105            based layers that are above it. With the support for transparency
1106            this optimization breaks correct behaviour.
1107            (BaseRenderer.draw_raster_layer): Reorganize code to support possible
1108            future enhancements to raster layer bounding box. The old behaviour has
1109            not changed. Also, change calling parameters to draw_raster_data()
1110            to specify new RAW data format and mask.
1111            (BaseRenderer.draw_raster_data): Change signature to include an optional
1112            parameter for mask information. Change documentation to mention
1113            support for new parameter and added option for RAW data format.
1114            The data argument is now a list of [width, height, data].
1115    
1116            * Thuban/UI/renderer.py (MapRenderer.draw_raster_data): Add new optional
1117            mask parameter. Add new condition for RAW format, which
1118            significantly reduces rendering time. Add condition for
1119            mask parameter.
1120    
1121            * libraries/thuban/gdalwarp.cpp (GetImageData): New. Creates a
1122            data array of RGB values from the projected image returned from
1123            the gdal warping functions. In the case of palette based images, it
1124            converts the NO_DATA index to the mask color.
1125            (ProjectRasterFile): Removed all custom memory driver references
1126            and replaced it with the standard in-memory dataset provided
1127            by gdal. The return data is no longer a BMP file, but an array
1128            of RGB values, one set triple per pixel.
1129    
1130            * libraries/thuban/bmpdataset.cpp: Removed. Unnecessary.
1131            * libraries/thuban/cpl_mfile.h: Removed. Unnecessary.
1132            * libraries/thuban/cpl_mfile.cpp: Removed. Unnecessary.
1133    
1134            * setup.py (thuban_build_ext.finalize_options): Removed mention
1135            of cpl_mfile.cpp and bmpdataset.cpp files in the list of source
1136            files. These are obsolete with the new version of gdalwarp.cpp
1137    
1138            * test/test_baserenderer.py (SimpleRenderer.draw_raster_data):
1139            Updated signature.
1140            (TestBaseRenderer.test_raster_no_projection): Changed the test
1141            data to be data in the uncompressed RAW format returned from
1142            ProjectRasterFile.
1143    
1144    2005-01-21  Jan-Oliver Wagner <[email protected]>
1145    
1146            * Thuban/UI/mainwindow.py (MainWindow.view_position_changed): Made
1147            string available for i18n.
1148    
1149    2005-01-20  Russell Nelson  <[email protected]>
1150    
1151            * Resources/Projections/defaults.proj: Ruin the speling of the
1152            Lambert-93 projection so it doesn't run into the wx UTF-8 bug.
1153            It's the wrong thing to do in the long run, but it's necessary for
1154            those users until that bug is fixed.  Otherwise the projection
1155            dialog segfaults.  Better to annoy some Lambert-93 users with a
1156            spelling mistake than every Fedora Core 3 user of Thuban-CVS.
1157    
1158    2005-01-20  Bernhard Reiter <[email protected]>
1159    
1160            * Thuban/UI/mainwindow.py (MainWindow.view_position_changed): Added
1161            docstring and comment that the warning code here is a hack.
1162    
1163    2005-01-20  Russell Nelson  <[email protected]>
1164    
1165            * Thuban/UI/mainwindow.py (MainWindow.view_position_changed): Warn
1166            user about misprojected layers when their lat/lon bounding
1167            box exceeds rational lat/lon values.
1168    
1169    2005-01-20  Bernhard Reiter <[email protected]>
1170    
1171            * Thuban/UI/about.py (unicodeToLocale): Improved:
1172            Use 'ascii' and then 'replace' for other characters
1173            when getdefaultlocale returns None. Thanks to Bernhard H. .
1174    
1175    2005-01-20  Bernhard Reiter <[email protected]>
1176    
1177            * Thuban/UI/classgen.py (GenQuantilesPanel.OnRetrieve): Added a comment
1178            that OnRangeText might be called twice and using None as argument.
1179    
1180    2005-01-20  Bernhard Reiter <[email protected]>
1181    
1182            * Thuban/UI/classgen.py (GenQuantilesPanel.OnRetrieve): Add a
1183            OnRangeText(0) to work around a different in wx Behaviour noticed
1184            on MacOSX, thanks to Lorenzo Moretti and Daniel Calvelo for the fix.
1185    
1186    2005-01-20  Bernhard Reiter <[email protected]>
1187    
1188            * Thuban/UI/about.py: take iso-8859-15 when getdefaultlocale returns
1189            None. (Fixes rt#2910.)
1190            
1191    2005-01-18  Frank Koormann <[email protected]>
1192    
1193            New Extension: mouseposition
1194            Tool to collect mouse click positions (map coordinates) in a dialog.
1195    
1196            * Extensions/mouseposition/__init__.py: New, extension registration
1197    
1198            * Extensions/mouseposition/mouseposition.py: New, implements the
1199            dialog and adds a tool to Thuban mainwindow.
1200    
1201            * Extensions/mouseposition/position.xpm: New, icon for tool.
1202    
1203    2005-01-14  Jan-Oliver Wagner <[email protected]>
1204    
1205            * Doc/manual/thuban-manual-de.xml: More translations.
1206    
1207    2005-01-11  Frank Koormann <[email protected]>
1208    
1209            * Thuban/UI/mainwindow.py (MainWindow.DuplicateLayer):
1210            Fix indention bug.
1211    
1212    2005-01-09  Frank Koormann <[email protected]>
1213    
1214            * Thuban/UI/mainwindow.py (MainWindow.DuplicateLayer):
1215            BugFix 2901: Explicitly copy layers ClassificationColumn since it
1216            is not part of the layers Classification.
1217    
1218    2005-01-03  Frank Koormann <[email protected]>
1219    
1220            * Thuban/UI/renderer.py (ScreenRendererdraw_selection_incrementally):
1221            BugFix 2883: Former implementation only worked on classified point
1222            layers: KeyError was raised, now use the default size if field is None.
1223    
1224    2004-12-27  Bernhard Reiter <[email protected]>
1225    
1226            svgexport 1.0.0cvs: Fixed label export.
1227    
1228            * Extensions/svgexport/test/test_svgmapwriter.py:
1229            class TestSVGRenderer(): New class; new test test_label_font().
1230    
1231            * Extensions/svgexport/svgmapwriter.py
1232            (SVGRenderer.label_font()): initialised Font size with self.factor now,
1233            makes test_label_font happy.
1234    
1235            * Extensions/svgexport/TODO: crossed out fixed label export item.
1236            Added item for options.
1237    
1238            * Extensions/svgexport/__init__.py: Bumped version to 1.0.0cvs.
1239    
1240    2004-12-27  Russell Nelson  <[email protected]>
1241    
1242            Middle mouse button pans.
1243    
1244            * Thuban/UI/view.py (MapCanvas.__init__): Subscribe also
1245            OnMiddleDown and OnMiddleUp events.
1246            (MapCanvas.OnMiddleDown): New. Activate the pan tool and remember the
1247            previously used tool.
1248            (MapCanvas.OnMiddleUp): New. Reactivate the remebered tool used before
1249            pressing the middle mouse button.
1250    
1251    2004-12-27  Jan-Oliver Wagner <[email protected]>
1252    
1253            * Doc/manual/thuban-manual-de.xml: More translations.
1254    
1255    2004-12-23  Jan-Oliver Wagner <[email protected]>
1256    
1257            * Thuban/UI/projdialog.py (ProjFrame.load_user_proj): Added a
1258            \n to stderr after the warnings. Thanks to Russell Nelson.
1259    
1260    2004-12-20  Nina Hueffmeyer <[email protected]>
1261    
1262            * Extensions/ogr/ogrshapes.py: Fixed some issues from
1263            Bernhard (coding guidelines etc.). Additionally it is now possible to
1264            display shapefiles containing feature collections (e.g.polygons
1265            with holes). Works with gdal 1.2.1 now.
1266    
1267            * Extensions/ogr/test/test_OGRShapestore.py: Fixed some issues
1268            from Bernhard (coding guidelines etc.). If ogr can't be imported,
1269            tests are skipped now.
1270    
1271            * Extensions/ogr/ogrstart.py: Fixed some typings.
1272    
1273    2004-12-20  Bernhard Reiter <[email protected]>
1274    
1275            * Extensions/svgexport/TODO: updated to add support for
1276            raster layers and labels for 1.0.1.
1277    
1278            * Extensions/svgexport/svgmapwriter.py (draw_raster_layer):
1279            Issue a warning now.
1280    
1281    2004-12-19  Bernhard Reiter <[email protected]>
1282    
1283            * Extensions/svgexport/TODO: Added idea to support triggering
1284            the application down the pipe.
1285    
1286    2004-12-19  Bernhard Reiter <[email protected]>
1287    
1288            svgexport: Improved code quality, mainly by better naming.
1289    
1290            * Extensions/svgexport/svgmapwriter.py:
1291            DrawPath() renamed to DrawPolygonPath(),
1292            added documentation, improved comments and variable names.
1293            
1294            * Extensions/svgexport/svgmapwriter.py,
1295              Extensions/svgexport/test/test_svgmapwriter.py:
1296            All using DrawPolygonPath() now, the default parameter closed=True
1297            omitted.
1298    
1299            * Extensions/svgexport/test/test_svgmapwriter.py:
1300            renamed test_polygon_opened() to test_polyline()
1301            renamed test_transparent_polygon() to test_transparent_polyline()
1302    
1303    2004-12-18  Jan-Oliver Wagner <[email protected]>
1304    
1305            Some fixes of gns2shp extension.
1306    
1307            * Extensions/gns2shp/test/__init__.py: New. Make this directory a
1308            package.
1309    
1310            * Extensions/gns2shp/test/test_gns2shp.py: Add some import paths
1311            dynamically.
1312    
1313            * Extensions/gns2shp/test/README: Simplified description how to test.
1314    
1315            * Extensions/gns2shp/gns2shp.py (gns2shp): Fixed doc-string,
1316            fixed some dimensions of fields according to the GNS documentation
1317            which seems to change undocumented.
1318            Now killing trailing \n and/or \r from MODIFY_DATE.
1319            This fixes RT#2453.
1320    
1321    2004-12-18  Bernhard Reiter <[email protected]>
1322    
1323            svgexport 1.0.0: Treats holes and islands nicely. Documentation added.
1324    
1325            * Extensions/svgexport/test/test_svgmapwriter.py:
1326            Added new tests: test_export_polygon_with_hole()
1327            and test_polygon_with_hole().
1328    
1329            * Extensions/svgexport/svgmapwriter.py
1330            (draw_polygon_shape()): Uses DrawPath correctly now.
1331    
1332            * Doc/manual/thuban-manual.xml: Added documentation for stable
1333            extention svgexport.    
1334            * Doc/manual/thuban-manual-de.xml: Copied English section about
1335            svexport over.
1336    
1337            * Extensions/svgexport/__init__.py: Bumped version number to 1.0.0.
1338    
1339            * Extensions/svgexport/svgsaver.py,maplegend.py:
1340            Moved from experimental to stable extension menu.
1341    
1342            * Extensions/svgexport/TODO: updated.
1343    
1344    
1345    2004-12-18  Bernhard Reiter <[email protected]>
1346    
1347            Added Extensions/svgexport/TODO
1348    
1349    2004-12-18  Bernhard Reiter <[email protected]>
1350    
1351            Refactored in svgexport:
1352            DrawPath replaces DrawPolygon; added newline in front of "M" in paths.
1353    
1354            * Extensions/svgexport/svgmapwriter.py
1355            Added verbosity level 3 to print out polygon points.
1356            (class Point): added __repr__
1357            (class Brush, __str__()): Added space after ,.
1358            (DrawPolygon): Renamed to DrawPath()
1359            (DrawPath): Takes list of polygons as input now, adds \n before "M"s.
1360            (DrawLines): Using DrawPath now.
1361    
1362            * Extensions/svgexport/test/test_svgmapwriter.py:
1363            Replaced DrawPolygon() calls with DrawPath() and put the first argument
1364            inside another list. Adapted test data with a newline before "M".
1365    
1366    2004-12-18  Bernhard Reiter <[email protected]>
1367            
1368            Refactored svgexport tests: 9 double tests runs eliminated;
1369            code size reduced by 8 lines.
1370    
1371            * Extensions/svgexport/test/test_svgmapwriter.py:
1372            (class TestWithDC): Renamed to BaseTestWithDC, moved to top.
1373            (class BaseWithDCtools): New, subclass from BaseTestWithDC.
1374            (class TestDrawSplines): now subclass from BaseTestWithDCtools,
1375            this fixed the double running of the nine tests of TestVirtualDC.
1376            (class TestVirtualDC): Using self.dc and self.file from setUp().
1377    
1378    2004-12-17  Bernhard Herzog  <[email protected]>
1379    
1380            Two windows specific fixes ported from thuban-1�0-branch:
1381    
1382            * Thuban/UI/about.py (unicodeToLocale): Use getdefaultlocale
1383            instead of getlocale because getlocale doesn't return a usable
1384            encoding name on a german windows 2000
1385    
1386            * setup.py: windows build: Removed the absolute path names and
1387            made all prfixes relative to the directory containing setup.py.
1388            Makes it a little easier to adapt to a different system.
1389    
1390    2004-12-16  Bernhard Herzog  <[email protected]>
1391    
1392            Add support for PostGIS tables with LINESTRING geometries.
1393            Fixes RT#2299
1394    
1395            * Thuban/Model/postgisdb.py (shapetype_map): Add LINESTRING
1396    
1397            * test/postgissupport.py
1398            (PostgreSQLServer.get_default_static_data_db): Rename the "roads"
1399            table to "roads-multi" because it now uses MULTILINESTRING
1400            geometries and introduce a new "roads" table that uses LINESTRING
1401            (coords_to_multilinestring): Make the doc string more precise
1402            (coords_to_linestring): New.  Create a LINESTRING WKT
1403            representatin
1404            (wkt_converter): Add coords_to_linestring
1405            (upload_shapefile): Rephrase the doc-string a bit.
1406    
1407            * test/test_postgis_db.py (TestPostGISShapestoreArc)
1408            (LineStringTests)
1409            (TestPostGISShapestoreLineString)
1410            (TestPostGISShapestoreMultiLineString): Split
1411            TestPostGISShapestoreArc into a base class LineStringTests and two
1412            derived classes TestPostGISShapestoreLineString for LINESTRING
1413            geometries and TestPostGISShapestoreMultiLineString for
1414            MULTILINESTRING geometries.  Most test methods are in the base
1415            class with the exception of tests that explicitly check the raw
1416            format.
1417    
1418    2004-12-16  Bernhard Herzog  <[email protected]>
1419    
1420            Make the test suite work with PostGIS 0.8.2 and PostgreSQL 7.4
1421    
1422            * test/postgissupport.py (find_postgis_sql): Different postgis
1423            versions put the postgis.sql file into slightly different places
1424            so we have to look in both.  The updated doc string describes this
1425            is more detail.
1426    
1427            * test/test_postgis_db.py
1428            (TestPostGISSpecialCases.test_column_name_quoting): The return
1429            value of UniqueValues is unsorted, so it has to be sorted for
1430            comparison.
1431    
1432    2004-12-16  Bernhard Herzog  <[email protected]>
1433    
1434            Fix for RT#2237
1435    
1436            * Thuban/UI/projdialog.py (ProjFrame._show_proj_panel): If the
1437            panel to be shown is the UnknownProjPanel disable the OK and Try
1438            buttons.  Otherwise enable them.
1439            (ProjFrame.__GetProjection): The UnknownProjPanel returns None for
1440            the parameters.  In that case __GetProjection also returns None
1441            now.
1442    
1443    2004-12-15  Bernhard Herzog  <[email protected]>
1444    
1445            * Thuban/UI/classgen.py (GenQuantilesPanel.__init__): Set the
1446            minimum number of classes to 2.  The calculate_quantiles needs at
1447            least two and raises an exception otherwise.  
1448            Fixes RT#2549
1449    
1450    2004-12-15  Bernhard Herzog  <[email protected]>
1451    
1452            * test/postgissupport.py (PostgreSQLServer.execute_sql): Extend to
1453            so that it returns a result for select statements.
1454            (PostgreSQLServer.server_version): New.  Return the version of the
1455            server software.
1456            (PostgreSQLServer.require_authentication): The format of
1457            pg_hba.conf has changed between PostgrSQL 7.2 and 7.3.  Check the
1458            server version and generate the file in the correct format
1459    
1460    2004-12-15  Bernhard Herzog  <[email protected]>
1461    
1462            * test/postgissupport.py (PostgreSQLServer.is_running): Fix typo
1463            in the doc string and rephrase it a little.
1464    
1465    2004-12-15  Frank Koormann <[email protected]>
1466    
1467            * test/test_load.py (TestAltPath.checkSession): New, extended checks if
1468            session has been loaded successfully. The check is called by the relevant
1469            tests after executing load_session().
1470    
1471    2004-12-13  Bernhard Herzog  <[email protected]>
1472    
1473            Make sure the region used to determine which shapes are visible
1474            actually matches the region on the printed page.  If this isn't
1475            done properly some shapes might not be printed.  
1476            Fixes RT #2692
1477    
1478            * Thuban/UI/view.py (MapPrintout.draw_on_dc): The region for the
1479            renderer has to be at the same position as the mapregion
1480    
1481            * Thuban/UI/renderer.py (ExportRenderer.RenderMap): self.region
1482            has to be moved by (self.shiftx, self.shifty) too.
1483    
1484    2004-12-13  Bernhard Herzog  <[email protected]>
1485    
1486            * libraries/pyprojection/Projection.i: Work around a bug in the
1487            generated python code which leads to exception in the __del__
1488            method when the constructor fails.  See the comments in the code
1489            for more details.
1490    
1491            * libraries/pyprojection/Projection.py: Updated from Projection.i
1492            with SWIG.
1493    
1494    2004-12-13  Bernhard Herzog  <[email protected]>
1495    
1496            * test/test_load.py (TestAltPath.test_01_single_path_error_fix)
1497            (TestAltPath.test_02_path_error_fix_from_list)
1498            (TestAltPath.test_05_path_error_fix_from_list_changed)
1499            (TestAltPath.test_06_path_error_fix_from_list_fails): self.session
1500            is destroyed in tearDown, so there's no need to do it in a test
1501            case.
1502    
1503            * Thuban/Model/load.py (SessionLoader.open_shapefile): Remove a
1504            debug print
1505    
1506    2004-12-13  Bernhard Herzog  <[email protected]>
1507    
1508            * Extensions/svgexport/test/test_svgmapwriter.py
1509            (TestDrawSplines.setUp): Do not use super with the unittest
1510            classes because in Python 2.2 they're still old-style classes.
1511    
1512    2004-12-13  Frank Koormann <[email protected]>
1513    
1514        Alternative Path feature: When loading a (moved) session where
1515            shapefiles cannot be found, ask the user. Use the specified path
1516            if further shapefiles are missing. However, ask the usr for confirmation
1517            in such cases.
1518    
1519            * test/test_load.py (TestAltPath): New, tests for alternative path feature
1520            in load_session()
1521            (Shapefile_CallBack): Helper, implements controllable callback.
1522    
1523            * Thuban/UI/application.py (ThubanApplication.OnInit):
1524            Added "alt_path" to self.path
1525            (ThubanApplication.OpenSession): Added shapefile_callback as second
1526            callback similar to db_connection_callback.
1527            (ThubanApplication.run_alt_path_dialog): New, implementaion of
1528            shapefile_callback. In addition to raising the dialog the control of
1529            self.path('alt_path') is implemented here.
1530    
1531            * Thuban/Model/load.py (SessionLoader.__init__): Added shapefile_callback.
1532            (SessionLoader.open_shapefile): Open shapefile, eventually with
1533            alternative path. This wrapps the "theSession.OpenShapefile(filename)"
1534            formerly used in start_fileshapesource()/start_layer().
1535            (SessionLoader.start_fileshapesource): Call open_shapefile().
1536            (SessionLoader.start_layer): Call open_shapefile().
1537            (load_session): Added shapefile_callback.
1538    
1539            * Thuban/UI/altpathdialog.py: New, implements dialogs for alternative path
1540            feature (search / check).
1541            
1542            * Doc/manual/thuban-manual.xml: Added documentation of new feature.
1543    
1544    2004-12-11  Bernhard Reiter <[email protected]>
1545    
1546             svgexport 0.9.2: Point size supports for maps.
1547    
1548            * Extensions/svgexport/svgmapwriter.py: Added import of SHAPETYPE_POINT
1549            (def draw_point_shape): new parameter size defaults to 2 as before.
1550            (draw_shape_layer_incrementally): Moved draw_func log line higher.
1551            Added draw_func call with size when dealing with a point layer.
1552    
1553            * Extensions/svgexport/__init__.py: bumped version to 0.9.2.
1554            
1555    2004-12-11  Bernhard Reiter <[email protected]>
1556    
1557            Made sure that newlines are inserted in the svg path d attributes
1558            to raise the chance that the line length will be below 255 characters,
1559            as recommended by REC SVG 1.1 in section 8.3.1.
1560    
1561            * Extensions/svgexport/svgmapwriter.py(DrawPolygon):
1562            Adding \n before L's and changed whitespace handling.
1563    
1564            * Extensions/svgexport/test/test_svgmapwriter.py:
1565            Adapted tests to new whitespace handling of DrawPolygon.
1566    
1567    2004-12-11  Bernhard Reiter <[email protected]>
1568    
1569            * Doc/technotes/coding_guidelines.txt: easy typo fixed.
1570    
1571            * Extensions/svgexport/test/test_svgmapwriter.py:
1572            Removed test_drawbezier in favour of new test_drawspline3 and
1573            test_drawspline4 within new class TestDrawSplines(TestVirtualDC).
1574            All only to test DrawSpline.
1575    
1576            * Extensions/svgexport/svgmapwriter.py(DrawSpline):
1577            New implementation now really using the strange algorithm of
1578            xfig 3.1's approximated splines and its conversion to postscript
1579            with one twist: SVG can do quadratic beziers, so skipped translation
1580            to cubic beziers.
1581            (TestWithDC): Typo in comment fixed.
1582    
1583    2004-12-09  Martin Schulze  <[email protected]>
1584    
1585            * Thuban/Model/classgen.py: Added missing character encoding
1586    
1587            * Extensions/wms/properties.py (OpenWMSProperties): removed
1588    
1589            * Extensions/wms/parser.py (WMSCapabilitiesParser.error): Dropped
1590            support for get_srs_discrepancies() since there are no
1591            discrepancies anymore (was a thinko)
1592    
1593            * Extensions/wms/layer.py (WMSLayer.GetMapImg): Improved graphic
1594            format priority now that more formats are supported globally by
1595            the render engine.
1596    
1597    2004-12-08  Silke Reimer <[email protected]>
1598            * Extensions/ogr/ogrshapes.py: Substituted ogr-method CloseRings
1599            because it is not available in all versions of ogr
1600    
1601    2004-12-08  Bernhard Reiter <[email protected]>
1602            * Extensions/ogr/__init__.py: Added empty __init__.py to heal
1603            global tests until a real one is commited.
1604    
1605    2004-12-07 Nina H�ffmeyer <[email protected]>
1606    
1607            * /Extensions/ogr/: Adding a new extension to read shapefiles with
1608            ogr. It is planned to add other vector formats.
1609    
1610            * /test/runtests.py: Adding tests from /Extensions/ogr/test/.
1611    
1612    2004-12-07  Jan-Oliver Wagner <[email protected]>
1613    
1614            * /Extensions/svgexport/test/test_svgmapwriter.py: Reverting
1615            part of a (non-)fix to renable that the tests are always
1616            executed.
1617    
1618    2004-12-07  Bernhard Reiter <[email protected]>
1619    
1620            * Extensions/svgexport/test/test_svgmapwriter.py:
1621            Added test_drawbezier() to test DrawSpline().
1622    
1623            * Extensions/svgexport/svgmapwriter.py(DrawSpline):
1624            Really implemented bezier drawing.
1625    
1626            * Extensions/svgexport/__init__.py: Bumped version of svgexport
1627            to 0.9.1 because now the legend examples lines styles
1628            will be drawing with beziers.
1629    
1630    2004-12-05  Martin Schulze  <[email protected]>
1631    
1632            * Thuban/UI/renderer.py (raster_format_map): Added PNG, TIFF and
1633            GIF as supported bitmap image formats (helpful for the WMS extension)
1634    
1635    2004-11-30  Martin Schulze  <[email protected]>
1636    
1637            * Extensions/wms/test/test_ogclib.py (TestOGCLib.test_compareURLs):
1638            Improved the test for the internal compare method
1639    
1640    2004-11-27  Jan-Oliver Wagner <[email protected]>
1641    
1642            * Thuban/UI/about.py (About.__init__): Added
1643            Norbert Solymosi for hungarian translation and Ole Rahn
1644            as contrbutor. Moved Bernhard Reiter from Contributor
1645            to Developer.
1646    
1647    2004-11-27  Bernhard Reiter <[email protected]>
1648    
1649            * Extensions/svgexport/test/test_svgmapwriter.py:
1650            Removed Jan from author list as he did not change enough significant
1651            lines yet.
1652    
1653            * Extensions/svgexport/__init__.py: Added Bernhard as author
1654            of the Extension.
1655    
1656    2004-11-27  Jan-Oliver Wagner <[email protected]>
1657    
1658            * po/hu.po: New. Hungarian translation. Contributed
1659            by Norbert Solymosi.
1660    
1661    2004-11-26  Bernhard Herzog  <[email protected]>
1662    
1663            * Extensions/svgexport/test/test_svgmapwriter.py
1664            (Testobjectexport.test_transparent_polygon): Commented out some
1665            debug prints
1666    
1667    2004-11-24  Jan-Oliver Wagner <[email protected]>
1668    
1669            Fix broken tests for svg extension and added svg legend
1670            to Experimental menu.
1671    
1672            * Extensions/svgexport/test/test_svgmapwriter.py: Fix to have
1673            the test run correctly even if the extension is a package.
1674            Also removed the "import Thuban" which makes no sense.
1675    
1676            * Extensions/svgexport/__init__.py: Fix to have the extensions'
1677            test module also be executed from the global test routine.
1678            This is done by looking for the absense of the DISPLAY variable.
1679    
1680            * Extensions/svgexport/maplegend.py: Moved the menu entry from Extensions
1681            to Experimental menu since this module has yet not reached a stable
1682            status (ie. 1.0).
1683    
1684    2004-11-22  Bernhard Reiter <[email protected]>
1685    
1686            * Extensions/svgexport/svgmapwriter.py:
1687            Added verbose variable and some logging depending on it.
1688            (class VirtualDC(XMLWriter)): Minor improvement in the polygon loop,
1689            because counting i is not necessary.
1690            (class Pen, class Brush): Added simple __str__ methods.
1691            (SVGRenderer.draw_polygone_shape): Fix #2698 (transparent polygons are
1692            not exported to svg file) Note: holes still unhandled.
1693    
1694            * Extensions/svgexport/test/test_svgmapwriter.py:
1695                    Made a baseclass TestWithDC for test needed a DC.
1696                    Added tests for bug #2698 (transparent polygons are not
1697                    exported to svg file):
1698                    Testobjectexport.test_transparent_polygon()
1699    
1700            * Thuban/Model/base.py (UnsetModified):
1701            Fixed some typos in docstring.
1702    
1703            * Thuban/UI/baserenderer.py (BaseRenderer.draw_polygon_shape()):
1704            Added hints on the used algorithm for handling holes.
1705    
1706    2004-11-20  Jan-Oliver Wagner <[email protected]>
1707    
1708            Some face lifting for the examples.
1709    
1710            * Examples/__init__.py: Make this directory a package.
1711    
1712            * Examples/simple_extensions/__init__.py: Make this directory a package.
1713    
1714            * Examples/simple_extensions/hello_world.py: Moved entry from Extensions
1715            menu to Examples menu.
1716    
1717            * Examples/simple_extensions/simple_command.py: Some more comments,
1718            minor changes.
1719    
1720            * Examples/simple_extensions/simple_tool.py: Minor changes.
1721    
1722    2004-11-20  Jan-Oliver Wagner <[email protected]>
1723    
1724            Changed way of extension registry for wms and added extension
1725            registry for umn_mapserver extension.
1726    
1727            * Extensions/wms/__init__.py: Added registry entry and the importing
1728            of the actual wms module. Included a test for the required PyOGCLib.
1729    
1730            * Extensions/wms/wms.py: Removed registry entry (moved to __init__.py).
1731    
1732            * Extensions/umn_mapserver/__init__.py: Added registry entry and the
1733            importing of the actual umn mapserver management modules.
1734            Included a test for the required Python MapScript.
1735    
1736    2004-11-20  Jan-Oliver Wagner <[email protected]>
1737    
1738            Changed way of extension registry for importAPR, bboxdump
1739            and added extension registry for svgexport.extension registry for
1740            svgexport.
1741    
1742            * Extensions/importAPR/__init__.py: Added registry entry and the importing
1743            of the actual importAPR module.
1744    
1745            * Extensions/importAPR/importAPR.py: Removed registry entry (moved to
1746            __init__.py).
1747    
1748            * Extensions/bboxdump/__init__.py: Added registry entry and the importing
1749            ����of the actual bboxdump module.
1750    
1751            * Extensions/bboxdump/bboxdump.py: Removed registry entry (moved to
1752            ����__init__.py).
1753    
1754            * Extensions/svgexport/__init__.py: Added registry entry and the importing
1755            of the svgsaver module.
1756    
1757            * Extensions/svgexport/svgsaver.py: Moved the menu entry from Extensions
1758            to Experimental menu since this module has yet not reached a stable
1759            status (ie. 1.0).
1760    
1761    2004-11-18  Jan-Oliver Wagner <[email protected]>
1762    
1763            Now the hit test considers the size of point symbols.
1764    
1765            * Thuban/UI/viewport.py (ViewPort._hit_point): Added optional parameter
1766            'size' defaulting to the previously fixed value 5.
1767            Extended doc-string.
1768            (Viewport._find_shape_in_layer): Resolved FIXME regarding flexibility
1769            for symbols.
1770            Now the size of the largest point symbol is determined to find out
1771            about whether the point has been hit.
1772            This fixes the problem that only clicks inside a fixed distance of
1773            5 where found.
1774    
1775    2004-11-17  Jan-Oliver Wagner <[email protected]>
1776    
1777            Another open issue fixed regarding sizeable symbols: correct rendering of
1778            selected symbols.
1779    
1780            * Thuban/UI/renderer.py (ScreenRenderer.draw_selection_incrementally):
1781            Added consideration of the specific size of point symbols.
1782            The property for each point symbol is retrieved and the size applied
1783            for the rendering method.
1784            Added doc-string.
1785    
1786    2004-11-16  Jan-Oliver Wagner <[email protected]>
1787    
1788            Changed way of Extension Registry for gns2shp and profiling.
1789    
1790            * Extensions/gns2shp/gns2shp.py: Removed registry entry (moved to
1791            __init__.py).
1792    
1793            * Extensions/gns2shp/__init__.py: Added registry entry and the importing
1794            of the actual gns2shp module.
1795    
1796            * Extensions/profiling/profiling.py: Removed registry entry (moved to
1797            __init__.py).
1798    
1799            * Extensions/profiling/__init__.py: Added registry entry and the importing
1800            of the actual profiling module.
1801    
1802    2004-10-28  Bernhard Reiter <[email protected]>
1803    
1804            * Extensions/svgexport/: Minor improvements to doc strings.
1805    
1806    2004-10-07  Jan-Oliver Wagner <[email protected]>
1807    
1808            Further elements for sizable point objects now
1809            making this feature usable though not yet complete.
1810    
1811            * Thuban/Model/save.py (SessionSaver.write_classification): Write
1812            attribute 'size' for cldata when the shape layer is of point type.
1813            This also now make the test_load.py tests happy.
1814    
1815            * Thuban/Model/classgen.py (CustomRamp.GetProperties): Added size
1816            gradient.
1817    
1818            * Thuban/UI/classifier.py (ID_SELPROP_SPINCTRL): Renamed to
1819            ID_SELPROP_SPINCTRL_LINEWIDTH.
1820            (ID_SELPROP_SPINCTRL_LINEWIDTH): New Id replaces ID_SELPROP_SPINCTRL.
1821            (ID_SELPROP_SPINCTRL_SIZE): New Id.
1822            (SelectPropertiesDialog.__init__): Added a second spin control
1823            for the size in case the corresponding layer is of point type.
1824            (SelectPropertiesDialog._OnSpin): Renamed to _OnSpinLineWidth.
1825            (SelectPropertiesDialog._OnSpinLineWidth): New. Former _OnSpin.
1826            (SelectPropertiesDialog._OnSpinSize): New. Set size of property
1827            and refresh preview.
1828    
1829    
1830    
1831    2004-10-04  Martin Schulze  <[email protected]>
1832    
1833            * Extensions/wms/test/test_parser.py
1834            (TestWMSCapabilitiesParser.test_compareLists): Added missing
1835            self-test for compareLists()
1836            (TestWMSCapabilitiesParser.test_compareDicts): Added missing
1837            self-test for compareDicts()
1838            (TestWMSCapabilitiesParser.test_compareLists): Adding more tests
1839            to verify the test routine fails with non-equal arguments
1840            (TestWMSCapabilitiesParser.test_compareDicts): Adding more tests
1841            to verify the test routine fails with non-equal arguments
1842    
1843    2004-10-03  Jan-Oliver Wagner <[email protected]>
1844    
1845            First elements for sizeable point objects.
1846    
1847            * Resources/XML/thuban-1.1.dtd: Added size attribute to cldata.
1848    
1849            * Data/iceland_sample_size.thuban: New. Sample for sized point objects.
1850    
1851            * test/test_load.py (ClassificationTest.TestLayers): Added SetSize in case
1852            of a corresponding argument is given.
1853            (TestSymbolSize): New. Test the size attribute of cldata.
1854    
1855            * Thuban/Model/classification.py: Removed some trailing whitespaces.
1856            (ClassGroupProperties.__init__): Set default size.
1857            (ClassGroupProperties.SetProperties): Set the size.
1858            (ClassGroupProperties.GetSize): New. Return the size.
1859            (ClassGroupProperties.SetSize): New. Set the size.
1860            (ClassGroupProperties__eq__): Compare also size.
1861            (ClassGroupProperties__repr__): Print also size.
1862    
1863            * Thuban/Model/load.py (SessionLoader.start_cldata): Also parse
1864            the size attribute.
1865    
1866            * Thuban/UI/classifier.py (ClassDataPreviewer.Draw): Added doc-string.
1867            Also, now there is a return value that indicates whether the drawing
1868            size exceeded the given rect extent and if so the new extent.
1869            Finally, point objects are drawn depending on the size. If either
1870            the width or height is exceeded, the new extent is returned.
1871            (ClassRenderer.Draw): Now when calling the previewer drawing function,
1872            evaluate the return value and, if not None, adapt the grid widget size
1873            accordingly and redraw again.
1874    
1875            * Thuban/UI/baserenderer.py (BaseRenderer.draw_shape_layer_incrementally):
1876            If the draw function is for points, call it with the size as additional
1877            parameter.
1878            (BaseRenderer.draw_point_shape): Added additional, optional parameter for
1879            the size. Compute the radius using the size.
1880    
1881            * Extensions/importAPR/apr.py (APR_BMkSym.GetThubanProp): Now
1882            that Thuban supports size, apply this correctly.
1883    
1884            * Extensions/importAPR/importAPR.py: Bumped version to 0.1.1.
1885    
1886    2004-10-03  Jan-Oliver Wagner <[email protected]>
1887    
1888            * Doc/manual/thuban-manual-de.xml: Started translation of
1889            Map chapter.
1890    
1891    2004-10-01  Martin Schulze  <[email protected]>
1892    
1893            * Extensions/wms/properties.py (wmsProperties.__init__): Extended
1894            argument for general use through properties-dialog selector
1895            
1896            * Thuban/UI/classifier.py: Register properties dialog classes for
1897            both provided layer classes/types.
1898    
1899            * Thuban/UI/mainwindow.py (MainWindow.OpenLayerProperties): The
1900            map can be retrieved through the parent which is passed to the
1901            constructor anyway and doesn't require an argument of its own,
1902            required for the unification of arguments for general use through
1903            properties-dialog selector.
1904            (MainWindow.OpenOrRaiseDialog): Move the logic for checking
1905            whether a dialog is already opened (and raising it to the users
1906            attention) and creating a new dialog into a function of its own
1907            (MainWindow.OpenLayerProperties): Use the new OpenOrRaiseDialog()
1908            method
1909            (MainWindow.OpenLayerProperties): Utilise the new ClassMapper for
1910            global registration of properties dialog classes (which are indeed
1911            layer-specific).
1912    
1913            * Thuban/UI/classifier.py (Classifier.__init__): Unify arguments
1914            for general use through properties-dialog selector, the map can be
1915            retrieved through the parent and doesn't require an argument of
1916            its own.
1917    
1918            * Extensions/wms/wms.py: Register the properties dialog class for
1919            the provided WMS layer
1920    
1921    2004-09-28  Jan-Oliver Wagner <[email protected]>
1922    
1923            New feature: Registry for Extensions.
1924    
1925            * Thuban/UI/extensionregistry.py: This module defines a registry for
1926            Extensions.
1927    
1928            * Thuban/UI/about.py (About.__init__): Added description
1929            of the registered extensions with all of the information.
1930    
1931            * Thuban/Model/extension.py (Extension): Improved doc-string.
1932    
1933            * Extensions/gns2shp/gns2shp.py, Extensions/importAPR/importAPR.py,
1934            Extensions/bboxdump/bboxdump.py, Extensions/profiling/profiling.py,
1935            Extensions/wms/wms.py: Added registration of the extension.
1936    
1937    2004-09-27  Bernhard Reiter <[email protected]>
1938    
1939            More fixes to svgexport to make used ids unique and
1940            conforming to XML's Name production.
1941    
1942            * Extensions/svgexport/test/test_svgmapwriter.py: Added new tests
1943            test_xml_id_constraints(), test_make_ide_nosetbaseid() and
1944            test_make_id_nonintegersetid().  Switched SetID and SetBaseID.
1945            Added Bernhard R. as author.
1946            * Extensions/svgexport/svgmapwriter.py (make_id): Using "_" as
1947            concatenation char now (makes test_make_ide_nosetbaseid() valid).
1948            Also transform second id part with "%d" and catch the TypeError
1949            to raise SVGMapWriterError (making test_make_id_nonintegersetid() ok).
1950            Corrected typo inBernhard's author line.
1951            (SetBaseID): Return the transformed base id. Transform characters
1952            which are not alnum() or in ".-_" to binascii.b2a_hex(). Added
1953            import binascii. If to be set string starts with "xml" or so, add "t".
1954            (draw_shape_layer_incrementally): use the returned value of SetBaseID
1955            for used_baseids checks.
1956    
1957    2004-09-25  Bernhard Herzog  <[email protected]>
1958    
1959            * test/test_layer.py (TestLayer.test_arc_layer_with_projection):
1960            Remove a debug print and some tab characters.
1961    
1962    2004-09-25  Bernhard Reiter <[email protected]>
1963    
1964            * Extensions/svgexport/svgmapwriter.py: Added Bernhard R. as Author.
1965            (SetBaseID, SetID, make_id): Improved docstring comments to explain
1966            the interaction of the three functions and the XML id contrains.
1967    
1968    
1969    2004-09-23  Jan-Oliver Wagner <[email protected]>
1970    
1971            * Doc/ThubanModel.xmi: New. UML file for Thuban Model
1972            Module.
1973    
1974            * Doc/README: Added info on ThubanModel.xmi.
1975    
1976    2004-09-23  Jan-Oliver Wagner <[email protected]>
1977    
1978            * Doc/README: New. Some info about how to generate technical
1979            documentation from the source code.
1980            This text was send to the Thuban developer mailing list on
1981            September 21st 2004 by Bernhard Reiter.
1982    
1983    2004-09-21  Bernhard Reiter <[email protected]>
1984    
1985            Improved the svgexport to only use unique ids. Will issues
1986            an error message dialoge when two layer names are the same.
1987            ShapeIDs are now added with a dash within the svg ids.
1988    
1989            * Extensions/svgexport/svgmapwriter.py (SVGMapWriterError): New.
1990            * Extensions/svgexport/test/test_svgmapwriter.py: Added imports
1991            (TestSVGRenderer): New test class with test_make_in() and
1992            test_check_for_layer_name_clash()
1993            * Extensions/svgexport/svgmapwriter.py (SVGRenderer): Fixed __init__()
1994            and draw_shape_layer_incrementally() to not use a baseid twice,
1995            satisfying test_check_for_layer_name_clash()
1996            (VirtualDC.make_id): Use a dash between baseit and id, satisfies
1997            test_make_in().
1998            * Extensions/svexport/svgsaver.py: Import SVGMapWriterError, wxOK
1999            and wxICON_HAND.
2000            (write_to_svg): Put dc and rendering in a try statement and on
2001            catching SVGmapWriterError notify the user and delete the target file.
2002    
2003    2004-09-20  Bernhard Reiter <[email protected]>
2004    
2005            * Model/base.by, Model/layer.py: Fixed typos in docstrings.
2006    
2007    2004-09-03  Jan Sch�ngel  <[email protected]>
2008    
2009            * Extensions/umn_mapserver/mapfile(MF_Class.add_thubanstyle): Fix a
2010            small bug with the line color. Now the line color will now only set
2011            if it is set in Thuban an not Transparent.
2012            
2013            * Extensions/umn_mapserver/mf_export(tblayer_to_map): Fixed a bug with
2014            deleting the layers from mapfile. Now all layers will delete backwards
2015            from the last.
2016    
2017    2004-08-20  Silke Reimer <[email protected]>
2018    
2019            * Thuban/Model/layer.py:
2020            Fixes bug in projection handling: Otherwise very large region might not
2021            have valid values in the layer's projection.
2022    
2023    2004-08-20  Silke Reimer <[email protected]>
2024    
2025            * Thuban/UI/about.py:
2026            small changes to be consistent with coding style.
2027              
2028    2004-08-13  Martin Schulze  <[email protected]>
2029    
2030            * Extensions/wms/test/test_ogclib.py (TestOGCLib.compare_URLs):
2031            Adjusted a comment
2032    
2033    2004-08-11  Silke Reimer <[email protected]>
2034    
2035            * Thuban/UI/about.py: Small changes to encoding related stuff to avoid
2036                    too many and too enhanced imports of locale
2037    
2038    2004-08-10  Silke Reimer <[email protected]>
2039    
2040            * Thuban/UI/about.py: Fixed encoding problem of about dialog: Added
2041                    function unicodeToLocale() to convert special characters to users
2042                    locale encoding
2043    
2044    2004-08-10  Jan-Oliver Wagner <[email protected]>
2045    
2046            * Doc/technotes/coding_guidelines.txt: Added rule 'Method names start with
2047            lower case letter'
2048    
2049    2004-08-09  Jan Sch�ngel  <[email protected]>
2050    
2051            * ChangeLog: Rewrite the last ChangeLog entry to follow
2052            the standard way.
2053    
2054            * Extensions/umn_mapserver/mapfile: Moved the import AnnotationLayer to
2055            the function where it is needed, because it don't works if it stands
2056            at the beginning.
2057            (MF_Layer.__init__): Removed the extra numclassed variable. Now
2058            numclasses from the mapscript will be used.
2059            (MF_Layer.get_index): New. Return the index of the layer in mapfile.
2060            (MF_Layer.set_classes): New. A Classlist will be set to the layer.
2061            (MF_Layer.set_metadata): New. A Metadata mapscript object will set.
2062            (MF_Layer.remove_allclasses): New. All class of the layer will remove.
2063            (MF_Map.create_new_layer): New. A new Layer is created and associated
2064            with the mapscript object.
2065            (MF_Map.set_layerorder): New. The Layer order like in thuban is set in
2066            the mapscript.
2067            (MF_Map.add_thubanlayer): Now a new layerobj is created if no one is
2068            linked to the layer in thuban, else the layerobject linked to the
2069            thubanlayer will be used.
2070            AnnotationLayer will now store the filename of the shapefile.
2071            (MF_Map.remove_layer): If a layer is removed the associated object
2072            must be set new.
2073            
2074            * Extensions/umn_mapserver/mf_export.py(tb_layer_to_map): Add all
2075            layers which are exists in thuban to the mapobj. All removed Layers
2076            will be removed from the mapobj.
2077            Added comments to all functions.
2078            (thuban_to_map): No layer will be removed here.
2079            
2080            * Extensions/umn_mapserver/mf_handle.py
2081            (_has_umn_mapobj_and_selectedlayer): Activating the layer menu. Now
2082            Layersettings for the mapserver kann be edited.
2083    
2084            * Extensions/umn_mapserver/mf_import.py: Now all layers which are
2085            imported, will be linked with the associated MF_Layer.
2086            (import_mapfile): All layers, which are not selected, will be removed.
2087            Disable the "import layer from mapfile" menu option.
2088    
2089            * Extensions/umn_mapserver/sample/iceland.map: Set the status of the
2090            Annotation Layer from DEFAULT to OFF. The DEFAULT setting turns the
2091            layer on permanently.
2092    
2093    2004-08-03  Jan Sch�ngel  <[email protected]>
2094    
2095            * Extensions/umn_mapserver/mapfile.py(MF_Metadata.remove_allmetadata):
2096            New. This function removes all metadata
2097            (MF_Layer.set_group): New. Set the group setting.
2098            (MF_Layer.get_group): New. Get the group setting.
2099            (MF_Map): Removed the extra numlayers variable, used the mapscript
2100            parameter instead.
2101            (MF_Map.get_numlayers): New. This get numlayers.
2102            (MF_Map.remove_all_layers): New. Removes all layers from the mapobj.
2103            (MF_Map.add_thubanlayer): Replaced the exception handling by a check
2104            if the object is an instance. Also added the annotation layer here to
2105            export, but only the layer is created in the mapfile.
2106    
2107            * Extensions/umn_mapserver/mf_export.py(export_mapfile): Removed
2108            the check if a mapobj exist, because its not needed anymore. The
2109            export function is only available if a mapobj exist.
2110            Use the new function to remove all layers.
2111            
2112            * Extensions/umn_mapserver/mf_handle.py(Layer_Dialog): Added a group
2113            option and the metadata button. The layer dialog is temporary disabled.
2114            (Metadata_CustomDataTable): Added some functions to show the grid
2115            correct.
2116    
2117            * Extensions/umn_mapserver/mf_import.py: Moved the code for showing
2118            the number of layer from import_mapfile to this function.
2119            (AnnotationLayer): New. This Class shows the Annotation layer in
2120            thuban. The layer don't do anything. It's only to show the layer
2121            and to save the layer order.
2122            (add_annotationlayer): New. Import an annotation layer to thuban.
2123            (select_layer2import): New. Import only layers to thuban and not
2124            the other settings like projection or scalebar.
2125            (create_new_mapfile): Moved the _has_umn_mapobj function and the
2126            create_new_mapfile functions from mf_handle.py to mf_import.py.
2127            
2128            * Extensions/umn_mapserver/sample/iceland.map: Added the group
2129            parameter to the roads and cultural layers. Also added a new
2130            Annotation Layer for the cultural points.
2131    
2132            * Extensions/umn_mapserver/sample/iceland.html: Added the select
2133            option for the annotation layer.
2134    
2135            * Extensions/umn_mapserver/sample/index.html: Added the start
2136            parameter for the annotation layer.
2137    
2138    2004-08-01  Jan-Oliver Wagner <[email protected]>
2139    
2140            * Doc/manual/thuban-manual-de.xml (Chapter Session Management):
2141            translation completed.
2142    
2143            * Doc/manual/thuban-manual.xml (Chapter Session Management):
2144            Fixed unprecise description for Save Session.
2145    
2146    2004-07-31  Jan-Oliver Wagner <[email protected]>
2147    
2148            Started translation of Users Manual into german.
2149    
2150            * Doc/manual/thuban-manual-de.xml: New. German Users Manual.
2151    
2152            * Doc/manual/Makefile: Added build instructions for german
2153            users manual.
2154    
2155            * Doc/manual/thuban-manual.xml: Minor corrections in Introduction.
2156    
2157    2004-07-28  Jan Sch�ngel  <[email protected]>
2158    
2159            * Extensions/umn_mapserver/mapfile.py(MF_Metadata): Changed all class
2160            functions. Now all metadata will handle by the function and its not
2161            needed to initialize it from outside. Therefor the associated mapobj
2162            will be stored in the Metadata Object. So we can use the special
2163            functions from the associated mapobj to get the Metadata.
2164            Therefor all initialization code for the metadata is removed from the
2165            other classes.
2166            (MF_Layer): Added a function to get the metadata object.
2167            (MF_Map): Added a function to set the mappath, the path where
2168            the mapfile ist stored.
2169    
2170            * Extensions/umn_mapserver/mf_export.py(thuban_to_map): Changed the code
2171            to set the extent in the mapfile. Now the code is set by the displayed
2172            data in the Thuban-view.
2173            (export_mapfile): The shapepath is now set empty, until relative
2174            pathnames are supported.
2175    
2176            * Extension/umn_mapserver/mf_handle.py: Added a dialog to handle
2177            metadata. Yet only mapfile metadata are supported. Layer and class
2178            supported are not implemented.
2179            Added a dialog to handle layer informations. The dialog only shows the
2180            selected layer at the moment.
2181    
2182            * Extensions/umn_mapserver/mf_import.py(import_mapfile): Changed the
2183            code for setting the extent in thuban. Now the extent is set to the
2184            given extent from the mapfile.
2185            Fixed a logical mistake. Now the extent is set when realy a layer is
2186            loaded, and not if one is selected to load.
2187    
2188            * Extensions/umn_mapserver/sample/iceland.html: Added code to zoom and
2189            move the shown map in the browser.
2190    
2191            * Extensions/umn_mapserver/sample/iceland.map: Added a new metadata
2192            line to the mapobj and added metadata to the political layer.
2193    
2194            * Extensions/umn_mapserver/test/test_mapserver.py: Changed the test
2195            for Metadata.
2196    
2197    2004-07-26  Martin Schulze  <[email protected]>
2198    
2199            * Thuban/Lib/classmapper.py (ClassMapper.has): Added the new
2200            ClassMapper
2201    
2202            * test/test_classmapper.py (TestMapping.test_mapper): Added a Test
2203            case for the new ClassMapper
2204    
2205    
2206    2004-07-22  Bernhard Herzog  <[email protected]>
2207    
2208            * Thuban/UI/viewport.py (ViewPort.VisibleExtent): New.  Return the
2209            visible extent of the map in projected coordinates
2210    
2211            * test/test_viewport.py (SimpleViewPortTest.test_default_size)
2212            (SimpleViewPortTest.test_init_with_size): Add some VisibleExtent()
2213            tests.
2214            (SimpleViewPortTest.test_visible_extent): New. The real test for
2215            VisibleExtent()
2216    
2217    2004-07-22  Bernhard Herzog  <[email protected]>
2218    
2219            * test/test_viewport.py: Use support.run_tests as the main
2220            function when running asa script.
2221    
2222    2004-07-22  Jan Sch�ngel <[email protected]>
2223    
2224            * Extensions/umn_mapserver/mf_export.py: Added "import os"
2225            Removed the old "import Thuban.UI.mainwindow" code.
2226            (tbextent_to_map): Removed the extra function and at the code direct
2227            to "thuban_to_map" function.
2228            (write_creatorcomment): Added. Now a short comment is added to the
2229            beginning of an generated mapfile.
2230            (export_mapfile): Now the Path and filename are saved in to variables,
2231            and not together in one variable. This is needed for the new
2232            write_creatorcomment function.
2233                    
2234            * Extensions/umn_mapserver/mf_import.py (import_mapfile): Added the
2235            import module "re". Also added Range and the ClassGroupRange import
2236            from Thuban. Both are needed for the new range expression import.
2237            (create_rangeexpression): Added. Creates a Range Expression in Thuban
2238            style from a given mapfile expression.
2239            (added_rasterlayer): Make some small code changes. The shapepath is
2240            now stored in an extra variable and the clazz_name is set empty if no
2241            class name set in the mapfile.
2242            Changed the Error message for Range Expressions, becaus the new
2243            function create a error string which will be shown in the dialog.
2244    
2245            * Extensions/umn_mapserver/test/test_mapserver.py: Added a test for the
2246            range expression import.
2247    
2248    2004-07-21  Jan-Oliver Wagner <[email protected]>
2249    
2250            * Extensions/umn_mapserver/README: Added hint that
2251            installation as root can be avoided. Removed all tabs.
2252    
2253    2004-07-16  Bernhard Herzog  <[email protected]>
2254    
2255            * test/test_viewport.py
2256            (ViewPortTest.test_changing_map_projection): Check that changing
2257            the projection of an empty map shown in a viewport doesn't lead to
2258            exceptions in the viewport's handler for the
2259            MAP_PROJECTION_CHANGED messages
2260    
2261            * Thuban/UI/viewport.py (ViewPort.map_projection_changed): Only
2262            try to keep the same region visible when the map actually contains
2263            something
2264    
2265    2004-07-15  Jan Sch�ngel <[email protected]>
2266    
2267            * Extensions/umn_mapserver/mapfile.py: Added a function to get the
2268            mappath directly from the mapobj. Is needed because of the changes
2269            in mf_import.py.
2270            (MF_Layer.add_thubanclass): Added a new comment.
2271            (MF_Map.set_extent): Fixed a bug with exporting empty mapobj. If the
2272            mapobj is empty there is no extent get from thuban an so no one can
2273            set to th mapobj.
2274            
2275            * Extensions/umn_mapserver/mf_import.py (import_mapfile): Updated
2276            the discription.
2277            Split the funktion in to three smaller ones. The new functions are
2278            add_rasterlayer, add_polygonlayer and select_layer2import.
2279            Removed the mapfilepath and filepath initialisation, because its know
2280            include in the new functions.
2281            Now nothing will be imported if cancel is pressed in the
2282            layer choice dialog.
2283    
2284    2004-07-14  Jan Sch�ngel <[email protected]>
2285    
2286            * Extensions/umn_mapserver/mapfile.py: Added ClassGroupDefault to
2287            import.
2288            (MF_Symbolset): Removed the extra variable for numsymbols.
2289            (MF_Class.__init__): Added a comment to the exception clause.
2290            Removed the extent init, because it was not needed anymore.
2291            (MF_Layer.add_thubanclass): Added the code to set the class name to
2292            the expression value from thuban if no label is defined.
2293            Added the code to export Range expressions from thuban to the mapfile.
2294            (MF_Map.set_extent): Removed the exception and replace it by some if
2295            code. If the size of a map is not defined the size will be set to 1,1.
2296            This is necessary because if the extent is set, mapscript checks if
2297            the size is greater than zero.
2298            (MF_Web): Added the get and set function for the template.
2299    
2300            * Extensions/umn_mapserver/mf_export.py: Added the function to check
2301            if a mapobject exists and used it to set the status of the menu items.
2302            If no mapfile exists the settings could not be edditied.
2303            Define after which menuitem the exportitem will include.
2304            
2305            * Extensions/umn_mapserver/mf_handle.py: Removed the import
2306            Thuban.UI.mainwindow clause, because it is not needed.
2307            Added the command Refresh() to all "OnChangeColor()" functions,
2308            because the color preview window was not updated on a color change.
2309            Added the function to check if a mapobject exists and used it to set the
2310            status of the menu items. If no mapobject exists the settings could not
2311            be edditied.
2312            (Map_Dialog): Moved the imagetype selector from the
2313            Outputformat_Dialog to Map_Dialog and removed Outputformat_Dialog.
2314            (Web_Dialog): Removed the name label and added the template textbox.
2315    
2316            * Extensions/umn_mapserver/mf_import.py (import_mapfile): Replace
2317            the exception handling on loading the layers by an if statement. It
2318            is not necessary to us the exception there.
2319            The Filepath creation now use os.path.join to build the path.
2320    
2321            * Extensions/umn_mapserver/test/test_mapserver.py: Moved the testMap
2322            definition from global to the setUp function. Now the testMap will
2323            initialize new on each test.
2324    
2325            * Extensions/umn_mapserver/sample/iceland.map: Include three new
2326            classes in the Line Layer, to test logical Expressions.
2327            Set the status of the class "Point9" in the Point Layer to off
2328            
2329    2004-07-13  Bernhard Herzog  <[email protected]>
2330    
2331            * Thuban/UI/baserenderer.py
2332            (BaseRenderer.render_map_incrementally): Fix a logic bug in the
2333            optimization that tries not to draw layers under a raster layer.
2334            The bug was harmless.  All it effectively did was to produce The a
2335            strange messages about not being able to draw Layer instances for
2336            all vector layers below a raster layer which would be invisible
2337            anyway because the raster layer currently always covers the entire
2338            window
2339    
2340    2004-07-08  Jan Sch�ngel <[email protected]>
2341    
2342            * Extensions/umn_mapserver/mapfile.py: Added code to generade and get
2343            a list of supported outputformats. This formats are not alle supported
2344            because there is no possibility to get the outputformat without the
2345            name known. Make some formal changes to the code.
2346            (MF_Map.set_name()): Fixed a bug if the name is None.
2347    
2348            * Extensions/umn_mapserver/mf_handle.py: Removed the image_type import
2349            statement, because its not needed anymore. The Outputformat is now
2350            given as string from the object. Make some formal changes to the code.
2351    
2352            * Extensions/umn_mapserver/test/test_mapserver.py: Added new test for
2353            most of the new setting which were added during the last changes.
2354            Removed the MF_Size Test.
2355            
2356            * Extensions/umn_mapserver/test/test.map: Added a new class to the
2357            cultural Layer to test expressions and the the status of that layer
2358            from on to default.
2359            Changed the data path the the correct Thuban Data
2360            Added the Outputformat Object and Symbol Object
2361            
2362    2004-07-07  Jan Sch�ngel <[email protected]>
2363    
2364            * Extensions/umn_mapserver/mapfile.py: Added some new
2365            settings to edit (outputformat, label, imagetype)
2366    
2367            * Extensions/umn_mapserver/mf_handle.py: Added some setting to
2368            the Label Dialog and add the OutputDialog.
2369            Make some changes to the code order.
2370    
2371    2004-07-06  Jan Sch�ngel <[email protected]>
2372    
2373            * Extensions/umn_mapserver/mapfile.py: Added the symbolObj, pointObj
2374            and line Obj and add the scalebar_status_type, scalebar_style_type and
2375            scalebar_position_type.
2376            Added the symbol- and symbolsetObject (MF_Symbol,MF_Symbolset). The
2377            are only used to create a Symbol like the circle in Thuban.
2378            Added the scalebarObject (MF_Scalebar)
2379            (MF_Class): Added set_status and get_status.
2380            (MF_Layer.add_thubanclass): Added code to set the class status
2381            (MF_Map): Added code to handle the symbols and scalebar
2382            (MF_Label): Added the set_partials and get_partials functions
2383            
2384            * Extensions/umn_mapserver/mf_export.py: Added MF_Symbol to import
2385            from mapfile. Added a function to create a circle object like the one
2386            from thuban if no one exists.
2387            
2388            * Extensions/umn_mapserver/mf_handle.py: All colors are now set when
2389            press ok in the assosiated dialog and not at the end of the
2390            colordialog.
2391            Added the Dialog for the Scalebar.
2392            (Label_Dialog): Added the offset option
2393    
2394            * Extensions/umn_mapserver/mf_import.py: Added code to import the
2395            status of the Classes.
2396            Fixed a bug with the projection. Now the to_meter parameter will be
2397            added to the Projection only if it doesn't exists.
2398    
2399    2004-07-01  Jan Sch�ngel <[email protected]>
2400    
2401            Added the functionality to handle the content thuban is not
2402            able to handle directly.
2403    
2404            * Extensions/umn_mapserver/mf_handle.py: New. This module extents
2405            Thuban with the possibility to edit the mapfile content.        
2406            
2407            * Extensions/umn_mapserver/mf_import.py: Added the possibility
2408            to import mapfiles without any layer selected. So it is possible
2409            to edit the other settings in a mapfile.
2410            (import_mapfile): Added code to use the editing functions.
2411            Added the possibility to import the projection to a layer if one
2412            is defined.
2413            Status settings (On,Off) will now set in thuban (visible, invisible).
2414            fixed a bug with with classnames. If no classname is set in mapfile
2415            the value in Thuban will set to the expression.
2416            
2417            * Extensions/umn_mapserver/mf_export.py(export_mapfile): Added the
2418            possibility to save a new mapfile or use the old one which is
2419            imported or new created.
2420            Added code to use the editing functions.
2421            Remove some not needed import statements
2422    
2423            * Extensions/umn_mapserver/mapfile.py: Added new types which are
2424            need for the editing functions.
2425            Added needed set-functions for the editing functions.
2426            Added the possibility to export rasterimages.
2427            Added new classes (MF_Web, MF_Label, MF_Legend, MF_Symbol,
2428            MF_SymbolSet). MF_Symbol and MF_SymbolSet are not needed at the
2429            moment.
2430            (MF_Class.set_thubanstyle): Now point layers will set to a default
2431            symbol to show a circle in mapserver and not only a 1px dot.
2432            (MF_Style.__init__): Fixed a bug with the color. Color was not set
2433            correct before.
2434            (MF_Size): Removed, because it is not needed.
2435            
2436            * Extensions/umn_mapserver/README: Added the hints to use the
2437            export and editing functions, too.
2438    
2439            * Extensions/umn_mapserver/sample/iceland.map: Added the
2440            new parameter "UNITS METERS".
2441            Change the political layer to status OFF.
2442    
2443            * Extensions/umn_mapserver/sample/README: Added some
2444            more details to setup the sample in the MapServer.
2445            
2446    2004-06-26  Bernhard Reiter <[email protected]>
2447    
2448            * Extensions/svgexport/test/test_svgmapwriter.py:
2449            Removed class VFile and used standard StringIO instead.
2450    
2451    2004-06-23  Jan Sch�ngel  <[email protected]>
2452    
2453            Add the export function to the umn_mapserver extension.
2454    
2455            * Extension/umn_mapserver/mf_export.py: New. This module extents
2456            Thuban with the possibility to export the Thuban content.
2457    
2458            * Extensions/umn_mapserver/mapfile.py: Expand the classes to use
2459            with the export module. Especially added the possibility to
2460            add thuban objects directly to the map objects.
2461    
2462            * Extensions/umn_mapserver/mf_import.py: Removed the wxCHANGE_DIR,
2463            because of the hint from Bernhard Herzog.
2464            Corrected the handling of absolute pathnames.
2465            Changed the Text of the Menu-Item, now the beginning is upper case.
2466    
2467            * Extensions/umn_mapserver/README: Added the --with-tiff statement.
2468    
2469  2004-06-16  Jan Sch�ngel  <[email protected]>  2004-06-16  Jan Sch�ngel  <[email protected]>
2470    
2471          Add a sample and make some changes.          Add a sample and make some changes.

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

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26