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

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

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26