/[thuban]/branches/WIP-pyshapelib-bramz/ChangeLog
ViewVC logotype

Diff of /branches/WIP-pyshapelib-bramz/ChangeLog

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1760 by bh, Fri Sep 26 18:36:12 2003 UTC revision 2429 by jan, Sat Nov 27 21:44:51 2004 UTC
# Line 1  Line 1 
1    2004-11-27  Jan-Oliver Wagner <[email protected]>
2    
3            * Thuban/UI/about.py (About.__init__): Added
4            Norbert Solymosi for hungarian translation and Ole Rahn
5            as contrbutor. Moved Bernhard Reiter from Contributor
6            to Developer.
7    
8    2004-11-27  Bernhard Reiter <[email protected]>
9    
10            * Extensions/svgexport/test/test_svgmapwriter.py:
11            Removed Jan from author list as he did not change enough significant
12            lines yet.
13    
14            * Extensions/svgexport/__init__.py: Added Bernhard as author
15            of the Extension.
16    
17    2004-11-27  Jan-Oliver Wagner <[email protected]>
18    
19            * po/hu.po: New. Hungarian translation. Contributed
20            by Norbert Solymosi.
21    
22    2004-11-26  Bernhard Herzog  <[email protected]>
23    
24            * Extensions/svgexport/test/test_svgmapwriter.py
25            (Testobjectexport.test_transparent_polygon): Commented out some
26            debug prints
27    
28    2004-11-24  Jan-Oliver Wagner <[email protected]>
29    
30            Fix broken tests for svg extension and added svg legend
31            to Experimental menu.
32    
33            * Extensions/svgexport/test/test_svgmapwriter.py: Fix to have
34            the test run correctly even if the extension is a package.
35            Also removed the "import Thuban" which makes no sense.
36    
37            * Extensions/svgexport/__init__.py: Fix to have the extensions'
38            test module also be executed from the global test routine.
39            This is done by looking for the absense of the DISPLAY variable.
40    
41            * Extensions/svgexport/maplegend.py: Moved the menu entry from Extensions
42            to Experimental menu since this module has yet not reached a stable
43            status (ie. 1.0).
44    
45    2004-11-22  Bernhard Reiter <[email protected]>
46    
47            * Extensions/svgexport/svgmapwriter.py:
48            Added verbose variable and some logging depending on it.
49            (class VirtualDC(XMLWriter)): Minor improvement in the polygon loop,
50            because counting i is not necessary.
51            (class Pen, class Brush): Added simple __str__ methods.
52            (SVGRenderer.draw_polygone_shape): Fix #2698 (transparent polygons are
53            not exported to svg file) Note: holes still unhandled.
54    
55            * Extensions/svgexport/test/test_svgmapwriter.py:
56                    Made a baseclass TestWithDC for test needed a DC.
57                    Added tests for bug #2698 (transparent polygons are not
58                    exported to svg file):
59                    Testobjectexport.test_transparent_polygon()
60    
61            * Thuban/Model/base.py (UnsetModified):
62            Fixed some typos in docstring.
63    
64            * Thuban/UI/baserenderer.py (BaseRenderer.draw_polygon_shape()):
65            Added hints on the used algorithm for handling holes.
66    
67    2004-11-20  Jan-Oliver Wagner <[email protected]>
68    
69            Some face lifting for the examples.
70    
71            * Examples/__init__.py: Make this directory a package.
72    
73            * Examples/simple_extensions/__init__.py: Make this directory a package.
74    
75            * Examples/simple_extensions/hello_world.py: Moved entry from Extensions
76            menu to Examples menu.
77    
78            * Examples/simple_extensions/simple_command.py: Some more comments,
79            minor changes.
80    
81            * Examples/simple_extensions/simple_tool.py: Minor changes.
82    
83    2004-11-20  Jan-Oliver Wagner <[email protected]>
84    
85            Changed way of extension registry for wms and added extension
86            registry for umn_mapserver extension.
87    
88            * Extensions/wms/__init__.py: Added registry entry and the importing
89            of the actual wms module. Included a test for the required PyOGCLib.
90    
91            * Extensions/wms/wms.py: Removed registry entry (moved to __init__.py).
92    
93            * Extensions/umn_mapserver/__init__.py: Added registry entry and the
94            importing of the actual umn mapserver management modules.
95            Included a test for the required Python MapScript.
96    
97    2004-11-20  Jan-Oliver Wagner <[email protected]>
98    
99            Changed way of extension registry for importAPR, bboxdump
100            and added extension registry for svgexport.extension registry for
101            svgexport.
102    
103            * Extensions/importAPR/__init__.py: Added registry entry and the importing
104            of the actual importAPR module.
105    
106            * Extensions/importAPR/importAPR.py: Removed registry entry (moved to
107            __init__.py).
108    
109            * Extensions/bboxdump/__init__.py: Added registry entry and the importing
110            ����of the actual bboxdump module.
111    
112            * Extensions/bboxdump/bboxdump.py: Removed registry entry (moved to
113            ����__init__.py).
114    
115            * Extensions/svgexport/__init__.py: Added registry entry and the importing
116            of the svgsaver module.
117    
118            * Extensions/svgexport/svgsaver.py: Moved the menu entry from Extensions
119            to Experimental menu since this module has yet not reached a stable
120            status (ie. 1.0).
121    
122    2004-11-18  Jan-Oliver Wagner <[email protected]>
123    
124            Now the hit test considers the size of point symbols.
125    
126            * Thuban/UI/viewport.py (ViewPort._hit_point): Added optional parameter
127            'size' defaulting to the previously fixed value 5.
128            Extended doc-string.
129            (Viewport._find_shape_in_layer): Resolved FIXME regarding flexibility
130            for symbols.
131            Now the size of the largest point symbol is determined to find out
132            about whether the point has been hit.
133            This fixes the problem that only clicks inside a fixed distance of
134            5 where found.
135    
136    2004-11-17  Jan-Oliver Wagner <[email protected]>
137    
138            Another open issue fixed regarding sizeable symbols: correct rendering of
139            selected symbols.
140    
141            * Thuban/UI/renderer.py (ScreenRenderer.draw_selection_incrementally):
142            Added consideration of the specific size of point symbols.
143            The property for each point symbol is retrieved and the size applied
144            for the rendering method.
145            Added doc-string.
146    
147    2004-11-16  Jan-Oliver Wagner <[email protected]>
148    
149            Changed way of Extension Registry for gns2shp and profiling.
150    
151            * Extensions/gns2shp/gns2shp.py: Removed registry entry (moved to
152            __init__.py).
153    
154            * Extensions/gns2shp/__init__.py: Added registry entry and the importing
155            of the actual gns2shp module.
156    
157            * Extensions/profiling/profiling.py: Removed registry entry (moved to
158            __init__.py).
159    
160            * Extensions/profiling/__init__.py: Added registry entry and the importing
161            of the actual profiling module.
162    
163    2004-10-28  Bernhard Reiter <[email protected]>
164    
165            * Extensions/svgexport/: Minor improvements to doc strings.
166    
167    2004-10-07  Jan-Oliver Wagner <[email protected]>
168    
169            Further elements for sizable point objects now
170            making this feature usable though not yet complete.
171    
172            * Thuban/Model/save.py (SessionSaver.write_classification): Write
173            attribute 'size' for cldata when the shape layer is of point type.
174            This also now make the test_load.py tests happy.
175    
176            * Thuban/Model/classgen.py (CustomRamp.GetProperties): Added size
177            gradient.
178    
179            * Thuban/UI/classifier.py (ID_SELPROP_SPINCTRL): Renamed to
180            ID_SELPROP_SPINCTRL_LINEWIDTH.
181            (ID_SELPROP_SPINCTRL_LINEWIDTH): New Id replaces ID_SELPROP_SPINCTRL.
182            (ID_SELPROP_SPINCTRL_SIZE): New Id.
183            (SelectPropertiesDialog.__init__): Added a second spin control
184            for the size in case the corresponding layer is of point type.
185            (SelectPropertiesDialog._OnSpin): Renamed to _OnSpinLineWidth.
186            (SelectPropertiesDialog._OnSpinLineWidth): New. Former _OnSpin.
187            (SelectPropertiesDialog._OnSpinSize): New. Set size of property
188            and refresh preview.
189    
190    
191    
192    2004-10-04  Martin Schulze  <[email protected]>
193    
194            * Extensions/wms/test/test_parser.py
195            (TestWMSCapabilitiesParser.test_compareLists): Added missing
196            self-test for compareLists()
197            (TestWMSCapabilitiesParser.test_compareDicts): Added missing
198            self-test for compareDicts()
199            (TestWMSCapabilitiesParser.test_compareLists): Adding more tests
200            to verify the test routine fails with non-equal arguments
201            (TestWMSCapabilitiesParser.test_compareDicts): Adding more tests
202            to verify the test routine fails with non-equal arguments
203    
204    2004-10-03  Jan-Oliver Wagner <[email protected]>
205    
206            First elements for sizeable point objects.
207    
208            * Resources/XML/thuban-1.1.dtd: Added size attribute to cldata.
209    
210            * Data/iceland_sample_size.thuban: New. Sample for sized point objects.
211    
212            * test/test_load.py (ClassificationTest.TestLayers): Added SetSize in case
213            of a corresponding argument is given.
214            (TestSymbolSize): New. Test the size attribute of cldata.
215    
216            * Thuban/Model/classification.py: Removed some trailing whitespaces.
217            (ClassGroupProperties.__init__): Set default size.
218            (ClassGroupProperties.SetProperties): Set the size.
219            (ClassGroupProperties.GetSize): New. Return the size.
220            (ClassGroupProperties.SetSize): New. Set the size.
221            (ClassGroupProperties__eq__): Compare also size.
222            (ClassGroupProperties__repr__): Print also size.
223    
224            * Thuban/Model/load.py (SessionLoader.start_cldata): Also parse
225            the size attribute.
226    
227            * Thuban/UI/classifier.py (ClassDataPreviewer.Draw): Added doc-string.
228            Also, now there is a return value that indicates whether the drawing
229            size exceeded the given rect extent and if so the new extent.
230            Finally, point objects are drawn depending on the size. If either
231            the width or height is exceeded, the new extent is returned.
232            (ClassRenderer.Draw): Now when calling the previewer drawing function,
233            evaluate the return value and, if not None, adapt the grid widget size
234            accordingly and redraw again.
235    
236            * Thuban/UI/baserenderer.py (BaseRenderer.draw_shape_layer_incrementally):
237            If the draw function is for points, call it with the size as additional
238            parameter.
239            (BaseRenderer.draw_point_shape): Added additional, optional parameter for
240            the size. Compute the radius using the size.
241    
242            * Extensions/importAPR/apr.py (APR_BMkSym.GetThubanProp): Now
243            that Thuban supports size, apply this correctly.
244    
245            * Extensions/importAPR/importAPR.py: Bumped version to 0.1.1.
246    
247    2004-10-03  Jan-Oliver Wagner <[email protected]>
248    
249            * Doc/manual/thuban-manual-de.xml: Started translation of
250            Map chapter.
251    
252    2004-10-01  Martin Schulze  <[email protected]>
253    
254            * Extensions/wms/properties.py (wmsProperties.__init__): Extended
255            argument for general use through properties-dialog selector
256            
257            * Thuban/UI/classifier.py: Register properties dialog classes for
258            both provided layer classes/types.
259    
260            * Thuban/UI/mainwindow.py (MainWindow.OpenLayerProperties): The
261            map can be retrieved through the parent which is passed to the
262            constructor anyway and doesn't require an argument of its own,
263            required for the unification of arguments for general use through
264            properties-dialog selector.
265            (MainWindow.OpenOrRaiseDialog): Move the logic for checking
266            whether a dialog is already opened (and raising it to the users
267            attention) and creating a new dialog into a function of its own
268            (MainWindow.OpenLayerProperties): Use the new OpenOrRaiseDialog()
269            method
270            (MainWindow.OpenLayerProperties): Utilise the new ClassMapper for
271            global registration of properties dialog classes (which are indeed
272            layer-specific).
273    
274            * Thuban/UI/classifier.py (Classifier.__init__): Unify arguments
275            for general use through properties-dialog selector, the map can be
276            retrieved through the parent and doesn't require an argument of
277            its own.
278    
279            * Extensions/wms/wms.py: Register the properties dialog class for
280            the provided WMS layer
281    
282    2004-09-28  Jan-Oliver Wagner <[email protected]>
283    
284            New feature: Registry for Extensions.
285    
286            * Thuban/UI/extensionregistry.py: This module defines a registry for
287            Extensions.
288    
289            * Thuban/UI/about.py (About.__init__): Added description
290            of the registered extensions with all of the information.
291    
292            * Thuban/Model/extension.py (Extension): Improved doc-string.
293    
294            * Extensions/gns2shp/gns2shp.py, Extensions/importAPR/importAPR.py,
295            Extensions/bboxdump/bboxdump.py, Extensions/profiling/profiling.py,
296            Extensions/wms/wms.py: Added registration of the extension.
297    
298    2004-09-27  Bernhard Reiter <[email protected]>
299    
300            More fixes to svgexport to make used ids unique and
301            conforming to XML's Name production.
302    
303            * Extensions/svgexport/test/test_svgmapwriter.py: Added new tests
304            test_xml_id_constraints(), test_make_ide_nosetbaseid() and
305            test_make_id_nonintegersetid().  Switched SetID and SetBaseID.
306            Added Bernhard R. as author.
307            * Extensions/svgexport/svgmapwriter.py (make_id): Using "_" as
308            concatenation char now (makes test_make_ide_nosetbaseid() valid).
309            Also transform second id part with "%d" and catch the TypeError
310            to raise SVGMapWriterError (making test_make_id_nonintegersetid() ok).
311            Corrected typo inBernhard's author line.
312            (SetBaseID): Return the transformed base id. Transform characters
313            which are not alnum() or in ".-_" to binascii.b2a_hex(). Added
314            import binascii. If to be set string starts with "xml" or so, add "t".
315            (draw_shape_layer_incrementally): use the returned value of SetBaseID
316            for used_baseids checks.
317    
318    2004-09-25  Bernhard Herzog  <[email protected]>
319    
320            * test/test_layer.py (TestLayer.test_arc_layer_with_projection):
321            Remove a debug print and some tab characters.
322    
323    2004-09-25  Bernhard Reiter <[email protected]>
324    
325            * Extensions/svgexport/svgmapwriter.py: Added Bernhard R. as Author.
326            (SetBaseID, SetID, make_id): Improved docstring comments to explain
327            the interaction of the three functions and the XML id contrains.
328    
329    
330    2004-09-23  Jan-Oliver Wagner <[email protected]>
331    
332            * Doc/ThubanModel.xmi: New. UML file for Thuban Model
333            Module.
334    
335            * Doc/README: Added info on ThubanModel.xmi.
336    
337    2004-09-23  Jan-Oliver Wagner <[email protected]>
338    
339            * Doc/README: New. Some info about how to generate technical
340            documentation from the source code.
341            This text was send to the Thuban developer mailing list on
342            September 21st 2004 by Bernhard Reiter.
343    
344    2004-09-21  Bernhard Reiter <[email protected]>
345    
346            Improved the svgexport to only use unique ids. Will issues
347            an error message dialoge when two layer names are the same.
348            ShapeIDs are now added with a dash within the svg ids.
349    
350            * Extensions/svgexport/svgmapwriter.py (SVGMapWriterError): New.
351            * Extensions/svgexport/test/test_svgmapwriter.py: Added imports
352            (TestSVGRenderer): New test class with test_make_in() and
353            test_check_for_layer_name_clash()
354            * Extensions/svgexport/svgmapwriter.py (SVGRenderer): Fixed __init__()
355            and draw_shape_layer_incrementally() to not use a baseid twice,
356            satisfying test_check_for_layer_name_clash()
357            (VirtualDC.make_id): Use a dash between baseit and id, satisfies
358            test_make_in().
359            * Extensions/svexport/svgsaver.py: Import SVGMapWriterError, wxOK
360            and wxICON_HAND.
361            (write_to_svg): Put dc and rendering in a try statement and on
362            catching SVGmapWriterError notify the user and delete the target file.
363    
364    2004-09-20  Bernhard Reiter <[email protected]>
365    
366            * Model/base.by, Model/layer.py: Fixed typos in docstrings.
367    
368    2004-09-03  Jan Sch�ngel  <[email protected]>
369    
370            * Extensions/umn_mapserver/mapfile(MF_Class.add_thubanstyle): Fix a
371            small bug with the line color. Now the line color will now only set
372            if it is set in Thuban an not Transparent.
373            
374            * Extensions/umn_mapserver/mf_export(tblayer_to_map): Fixed a bug with
375            deleting the layers from mapfile. Now all layers will delete backwards
376            from the last.
377    
378    2004-08-20  Silke Reimer <[email protected]>
379    
380            * Thuban/Model/layer.py:
381            Fixes bug in projection handling: Otherwise very large region might not
382            have valid values in the layer's projection.
383    
384    2004-08-20  Silke Reimer <[email protected]>
385    
386            * Thuban/UI/about.py:
387            small changes to be consistent with coding style.
388              
389    2004-08-13  Martin Schulze  <[email protected]>
390    
391            * Extensions/wms/test/test_ogclib.py (TestOGCLib.compare_URLs):
392            Adjusted a comment
393    
394    2004-08-11  Silke Reimer <[email protected]>
395    
396            * Thuban/UI/about.py: Small changes to encoding related stuff to avoid
397                    too many and too enhanced imports of locale
398    
399    2004-08-10  Silke Reimer <[email protected]>
400    
401            * Thuban/UI/about.py: Fixed encoding problem of about dialog: Added
402                    function unicodeToLocale() to convert special characters to users
403                    locale encoding
404    
405    2004-08-10  Jan-Oliver Wagner <[email protected]>
406    
407            * Doc/technotes/coding_guidelines.txt: Added rule 'Method names start with
408            lower case letter'
409    
410    2004-08-09  Jan Sch�ngel  <[email protected]>
411    
412            * ChangeLog: Rewrite the last ChangeLog entry to follow
413            the standard way.
414    
415            * Extensions/umn_mapserver/mapfile: Moved the import AnnotationLayer to
416            the function where it is needed, because it don't works if it stands
417            at the beginning.
418            (MF_Layer.__init__): Removed the extra numclassed variable. Now
419            numclasses from the mapscript will be used.
420            (MF_Layer.get_index): New. Return the index of the layer in mapfile.
421            (MF_Layer.set_classes): New. A Classlist will be set to the layer.
422            (MF_Layer.set_metadata): New. A Metadata mapscript object will set.
423            (MF_Layer.remove_allclasses): New. All class of the layer will remove.
424            (MF_Map.create_new_layer): New. A new Layer is created and associated
425            with the mapscript object.
426            (MF_Map.set_layerorder): New. The Layer order like in thuban is set in
427            the mapscript.
428            (MF_Map.add_thubanlayer): Now a new layerobj is created if no one is
429            linked to the layer in thuban, else the layerobject linked to the
430            thubanlayer will be used.
431            AnnotationLayer will now store the filename of the shapefile.
432            (MF_Map.remove_layer): If a layer is removed the associated object
433            must be set new.
434            
435            * Extensions/umn_mapserver/mf_export.py(tb_layer_to_map): Add all
436            layers which are exists in thuban to the mapobj. All removed Layers
437            will be removed from the mapobj.
438            Added comments to all functions.
439            (thuban_to_map): No layer will be removed here.
440            
441            * Extensions/umn_mapserver/mf_handle.py
442            (_has_umn_mapobj_and_selectedlayer): Activating the layer menu. Now
443            Layersettings for the mapserver kann be edited.
444    
445            * Extensions/umn_mapserver/mf_import.py: Now all layers which are
446            imported, will be linked with the associated MF_Layer.
447            (import_mapfile): All layers, which are not selected, will be removed.
448            Disable the "import layer from mapfile" menu option.
449    
450            * Extensions/umn_mapserver/sample/iceland.map: Set the status of the
451            Annotation Layer from DEFAULT to OFF. The DEFAULT setting turns the
452            layer on permanently.
453    
454    2004-08-03  Jan Sch�ngel  <[email protected]>
455    
456            * Extensions/umn_mapserver/mapfile.py(MF_Metadata.remove_allmetadata):
457            New. This function removes all metadata
458            (MF_Layer.set_group): New. Set the group setting.
459            (MF_Layer.get_group): New. Get the group setting.
460            (MF_Map): Removed the extra numlayers variable, used the mapscript
461            parameter instead.
462            (MF_Map.get_numlayers): New. This get numlayers.
463            (MF_Map.remove_all_layers): New. Removes all layers from the mapobj.
464            (MF_Map.add_thubanlayer): Replaced the exception handling by a check
465            if the object is an instance. Also added the annotation layer here to
466            export, but only the layer is created in the mapfile.
467    
468            * Extensions/umn_mapserver/mf_export.py(export_mapfile): Removed
469            the check if a mapobj exist, because its not needed anymore. The
470            export function is only available if a mapobj exist.
471            Use the new function to remove all layers.
472            
473            * Extensions/umn_mapserver/mf_handle.py(Layer_Dialog): Added a group
474            option and the metadata button. The layer dialog is temporary disabled.
475            (Metadata_CustomDataTable): Added some functions to show the grid
476            correct.
477    
478            * Extensions/umn_mapserver/mf_import.py: Moved the code for showing
479            the number of layer from import_mapfile to this function.
480            (AnnotationLayer): New. This Class shows the Annotation layer in
481            thuban. The layer don't do anything. It's only to show the layer
482            and to save the layer order.
483            (add_annotationlayer): New. Import an annotation layer to thuban.
484            (select_layer2import): New. Import only layers to thuban and not
485            the other settings like projection or scalebar.
486            (create_new_mapfile): Moved the _has_umn_mapobj function and the
487            create_new_mapfile functions from mf_handle.py to mf_import.py.
488            
489            * Extensions/umn_mapserver/sample/iceland.map: Added the group
490            parameter to the roads and cultural layers. Also added a new
491            Annotation Layer for the cultural points.
492    
493            * Extensions/umn_mapserver/sample/iceland.html: Added the select
494            option for the annotation layer.
495    
496            * Extensions/umn_mapserver/sample/index.html: Added the start
497            parameter for the annotation layer.
498    
499    2004-08-01  Jan-Oliver Wagner <[email protected]>
500    
501            * Doc/manual/thuban-manual-de.xml (Chapter Session Management):
502            translation completed.
503    
504            * Doc/manual/thuban-manual.xml (Chapter Session Management):
505            Fixed unprecise description for Save Session.
506    
507    2004-07-31  Jan-Oliver Wagner <[email protected]>
508    
509            Started translation of Users Manual into german.
510    
511            * Doc/manual/thuban-manual-de.xml: New. German Users Manual.
512    
513            * Doc/manual/Makefile: Added build instructions for german
514            users manual.
515    
516            * Doc/manual/thuban-manual.xml: Minor corrections in Introduction.
517    
518    2004-07-28  Jan Sch�ngel  <[email protected]>
519    
520            * Extensions/umn_mapserver/mapfile.py(MF_Metadata): Changed all class
521            functions. Now all metadata will handle by the function and its not
522            needed to initialize it from outside. Therefor the associated mapobj
523            will be stored in the Metadata Object. So we can use the special
524            functions from the associated mapobj to get the Metadata.
525            Therefor all initialization code for the metadata is removed from the
526            other classes.
527            (MF_Layer): Added a function to get the metadata object.
528            (MF_Map): Added a function to set the mappath, the path where
529            the mapfile ist stored.
530    
531            * Extensions/umn_mapserver/mf_export.py(thuban_to_map): Changed the code
532            to set the extent in the mapfile. Now the code is set by the displayed
533            data in the Thuban-view.
534            (export_mapfile): The shapepath is now set empty, until relative
535            pathnames are supported.
536    
537            * Extension/umn_mapserver/mf_handle.py: Added a dialog to handle
538            metadata. Yet only mapfile metadata are supported. Layer and class
539            supported are not implemented.
540            Added a dialog to handle layer informations. The dialog only shows the
541            selected layer at the moment.
542    
543            * Extensions/umn_mapserver/mf_import.py(import_mapfile): Changed the
544            code for setting the extent in thuban. Now the extent is set to the
545            given extent from the mapfile.
546            Fixed a logical mistake. Now the extent is set when realy a layer is
547            loaded, and not if one is selected to load.
548    
549            * Extensions/umn_mapserver/sample/iceland.html: Added code to zoom and
550            move the shown map in the browser.
551    
552            * Extensions/umn_mapserver/sample/iceland.map: Added a new metadata
553            line to the mapobj and added metadata to the political layer.
554    
555            * Extensions/umn_mapserver/test/test_mapserver.py: Changed the test
556            for Metadata.
557    
558    2004-07-26  Martin Schulze  <[email protected]>
559    
560            * Thuban/Lib/classmapper.py (ClassMapper.has): Added the new
561            ClassMapper
562    
563            * test/test_classmapper.py (TestMapping.test_mapper): Added a Test
564            case for the new ClassMapper
565    
566    
567    2004-07-22  Bernhard Herzog  <[email protected]>
568    
569            * Thuban/UI/viewport.py (ViewPort.VisibleExtent): New.  Return the
570            visible extent of the map in projected coordinates
571    
572            * test/test_viewport.py (SimpleViewPortTest.test_default_size)
573            (SimpleViewPortTest.test_init_with_size): Add some VisibleExtent()
574            tests.
575            (SimpleViewPortTest.test_visible_extent): New. The real test for
576            VisibleExtent()
577    
578    2004-07-22  Bernhard Herzog  <[email protected]>
579    
580            * test/test_viewport.py: Use support.run_tests as the main
581            function when running asa script.
582    
583    2004-07-22  Jan Sch�ngel <[email protected]>
584    
585            * Extensions/umn_mapserver/mf_export.py: Added "import os"
586            Removed the old "import Thuban.UI.mainwindow" code.
587            (tbextent_to_map): Removed the extra function and at the code direct
588            to "thuban_to_map" function.
589            (write_creatorcomment): Added. Now a short comment is added to the
590            beginning of an generated mapfile.
591            (export_mapfile): Now the Path and filename are saved in to variables,
592            and not together in one variable. This is needed for the new
593            write_creatorcomment function.
594                    
595            * Extensions/umn_mapserver/mf_import.py (import_mapfile): Added the
596            import module "re". Also added Range and the ClassGroupRange import
597            from Thuban. Both are needed for the new range expression import.
598            (create_rangeexpression): Added. Creates a Range Expression in Thuban
599            style from a given mapfile expression.
600            (added_rasterlayer): Make some small code changes. The shapepath is
601            now stored in an extra variable and the clazz_name is set empty if no
602            class name set in the mapfile.
603            Changed the Error message for Range Expressions, becaus the new
604            function create a error string which will be shown in the dialog.
605    
606            * Extensions/umn_mapserver/test/test_mapserver.py: Added a test for the
607            range expression import.
608    
609    2004-07-21  Jan-Oliver Wagner <[email protected]>
610    
611            * Extensions/umn_mapserver/README: Added hint that
612            installation as root can be avoided. Removed all tabs.
613    
614    2004-07-16  Bernhard Herzog  <[email protected]>
615    
616            * test/test_viewport.py
617            (ViewPortTest.test_changing_map_projection): Check that changing
618            the projection of an empty map shown in a viewport doesn't lead to
619            exceptions in the viewport's handler for the
620            MAP_PROJECTION_CHANGED messages
621    
622            * Thuban/UI/viewport.py (ViewPort.map_projection_changed): Only
623            try to keep the same region visible when the map actually contains
624            something
625    
626    2004-07-15  Jan Sch�ngel <[email protected]>
627    
628            * Extensions/umn_mapserver/mapfile.py: Added a function to get the
629            mappath directly from the mapobj. Is needed because of the changes
630            in mf_import.py.
631            (MF_Layer.add_thubanclass): Added a new comment.
632            (MF_Map.set_extent): Fixed a bug with exporting empty mapobj. If the
633            mapobj is empty there is no extent get from thuban an so no one can
634            set to th mapobj.
635            
636            * Extensions/umn_mapserver/mf_import.py (import_mapfile): Updated
637            the discription.
638            Split the funktion in to three smaller ones. The new functions are
639            add_rasterlayer, add_polygonlayer and select_layer2import.
640            Removed the mapfilepath and filepath initialisation, because its know
641            include in the new functions.
642            Now nothing will be imported if cancel is pressed in the
643            layer choice dialog.
644    
645    2004-07-14  Jan Sch�ngel <[email protected]>
646    
647            * Extensions/umn_mapserver/mapfile.py: Added ClassGroupDefault to
648            import.
649            (MF_Symbolset): Removed the extra variable for numsymbols.
650            (MF_Class.__init__): Added a comment to the exception clause.
651            Removed the extent init, because it was not needed anymore.
652            (MF_Layer.add_thubanclass): Added the code to set the class name to
653            the expression value from thuban if no label is defined.
654            Added the code to export Range expressions from thuban to the mapfile.
655            (MF_Map.set_extent): Removed the exception and replace it by some if
656            code. If the size of a map is not defined the size will be set to 1,1.
657            This is necessary because if the extent is set, mapscript checks if
658            the size is greater than zero.
659            (MF_Web): Added the get and set function for the template.
660    
661            * Extensions/umn_mapserver/mf_export.py: Added the function to check
662            if a mapobject exists and used it to set the status of the menu items.
663            If no mapfile exists the settings could not be edditied.
664            Define after which menuitem the exportitem will include.
665            
666            * Extensions/umn_mapserver/mf_handle.py: Removed the import
667            Thuban.UI.mainwindow clause, because it is not needed.
668            Added the command Refresh() to all "OnChangeColor()" functions,
669            because the color preview window was not updated on a color change.
670            Added the function to check if a mapobject exists and used it to set the
671            status of the menu items. If no mapobject exists the settings could not
672            be edditied.
673            (Map_Dialog): Moved the imagetype selector from the
674            Outputformat_Dialog to Map_Dialog and removed Outputformat_Dialog.
675            (Web_Dialog): Removed the name label and added the template textbox.
676    
677            * Extensions/umn_mapserver/mf_import.py (import_mapfile): Replace
678            the exception handling on loading the layers by an if statement. It
679            is not necessary to us the exception there.
680            The Filepath creation now use os.path.join to build the path.
681    
682            * Extensions/umn_mapserver/test/test_mapserver.py: Moved the testMap
683            definition from global to the setUp function. Now the testMap will
684            initialize new on each test.
685    
686            * Extensions/umn_mapserver/sample/iceland.map: Include three new
687            classes in the Line Layer, to test logical Expressions.
688            Set the status of the class "Point9" in the Point Layer to off
689            
690    2004-07-13  Bernhard Herzog  <[email protected]>
691    
692            * Thuban/UI/baserenderer.py
693            (BaseRenderer.render_map_incrementally): Fix a logic bug in the
694            optimization that tries not to draw layers under a raster layer.
695            The bug was harmless.  All it effectively did was to produce The a
696            strange messages about not being able to draw Layer instances for
697            all vector layers below a raster layer which would be invisible
698            anyway because the raster layer currently always covers the entire
699            window
700    
701    2004-07-08  Jan Sch�ngel <[email protected]>
702    
703            * Extensions/umn_mapserver/mapfile.py: Added code to generade and get
704            a list of supported outputformats. This formats are not alle supported
705            because there is no possibility to get the outputformat without the
706            name known. Make some formal changes to the code.
707            (MF_Map.set_name()): Fixed a bug if the name is None.
708    
709            * Extensions/umn_mapserver/mf_handle.py: Removed the image_type import
710            statement, because its not needed anymore. The Outputformat is now
711            given as string from the object. Make some formal changes to the code.
712    
713            * Extensions/umn_mapserver/test/test_mapserver.py: Added new test for
714            most of the new setting which were added during the last changes.
715            Removed the MF_Size Test.
716            
717            * Extensions/umn_mapserver/test/test.map: Added a new class to the
718            cultural Layer to test expressions and the the status of that layer
719            from on to default.
720            Changed the data path the the correct Thuban Data
721            Added the Outputformat Object and Symbol Object
722            
723    2004-07-07  Jan Sch�ngel <[email protected]>
724    
725            * Extensions/umn_mapserver/mapfile.py: Added some new
726            settings to edit (outputformat, label, imagetype)
727    
728            * Extensions/umn_mapserver/mf_handle.py: Added some setting to
729            the Label Dialog and add the OutputDialog.
730            Make some changes to the code order.
731    
732    2004-07-06  Jan Sch�ngel <[email protected]>
733    
734            * Extensions/umn_mapserver/mapfile.py: Added the symbolObj, pointObj
735            and line Obj and add the scalebar_status_type, scalebar_style_type and
736            scalebar_position_type.
737            Added the symbol- and symbolsetObject (MF_Symbol,MF_Symbolset). The
738            are only used to create a Symbol like the circle in Thuban.
739            Added the scalebarObject (MF_Scalebar)
740            (MF_Class): Added set_status and get_status.
741            (MF_Layer.add_thubanclass): Added code to set the class status
742            (MF_Map): Added code to handle the symbols and scalebar
743            (MF_Label): Added the set_partials and get_partials functions
744            
745            * Extensions/umn_mapserver/mf_export.py: Added MF_Symbol to import
746            from mapfile. Added a function to create a circle object like the one
747            from thuban if no one exists.
748            
749            * Extensions/umn_mapserver/mf_handle.py: All colors are now set when
750            press ok in the assosiated dialog and not at the end of the
751            colordialog.
752            Added the Dialog for the Scalebar.
753            (Label_Dialog): Added the offset option
754    
755            * Extensions/umn_mapserver/mf_import.py: Added code to import the
756            status of the Classes.
757            Fixed a bug with the projection. Now the to_meter parameter will be
758            added to the Projection only if it doesn't exists.
759    
760    2004-07-01  Jan Sch�ngel <[email protected]>
761    
762            Added the functionality to handle the content thuban is not
763            able to handle directly.
764    
765            * Extensions/umn_mapserver/mf_handle.py: New. This module extents
766            Thuban with the possibility to edit the mapfile content.        
767            
768            * Extensions/umn_mapserver/mf_import.py: Added the possibility
769            to import mapfiles without any layer selected. So it is possible
770            to edit the other settings in a mapfile.
771            (import_mapfile): Added code to use the editing functions.
772            Added the possibility to import the projection to a layer if one
773            is defined.
774            Status settings (On,Off) will now set in thuban (visible, invisible).
775            fixed a bug with with classnames. If no classname is set in mapfile
776            the value in Thuban will set to the expression.
777            
778            * Extensions/umn_mapserver/mf_export.py(export_mapfile): Added the
779            possibility to save a new mapfile or use the old one which is
780            imported or new created.
781            Added code to use the editing functions.
782            Remove some not needed import statements
783    
784            * Extensions/umn_mapserver/mapfile.py: Added new types which are
785            need for the editing functions.
786            Added needed set-functions for the editing functions.
787            Added the possibility to export rasterimages.
788            Added new classes (MF_Web, MF_Label, MF_Legend, MF_Symbol,
789            MF_SymbolSet). MF_Symbol and MF_SymbolSet are not needed at the
790            moment.
791            (MF_Class.set_thubanstyle): Now point layers will set to a default
792            symbol to show a circle in mapserver and not only a 1px dot.
793            (MF_Style.__init__): Fixed a bug with the color. Color was not set
794            correct before.
795            (MF_Size): Removed, because it is not needed.
796            
797            * Extensions/umn_mapserver/README: Added the hints to use the
798            export and editing functions, too.
799    
800            * Extensions/umn_mapserver/sample/iceland.map: Added the
801            new parameter "UNITS METERS".
802            Change the political layer to status OFF.
803    
804            * Extensions/umn_mapserver/sample/README: Added some
805            more details to setup the sample in the MapServer.
806            
807    2004-06-26  Bernhard Reiter <[email protected]>
808    
809            * Extensions/svgexport/test/test_svgmapwriter.py:
810            Removed class VFile and used standard StringIO instead.
811    
812    2004-06-23  Jan Sch�ngel  <[email protected]>
813    
814            Add the export function to the umn_mapserver extension.
815    
816            * Extension/umn_mapserver/mf_export.py: New. This module extents
817            Thuban with the possibility to export the Thuban content.
818    
819            * Extensions/umn_mapserver/mapfile.py: Expand the classes to use
820            with the export module. Especially added the possibility to
821            add thuban objects directly to the map objects.
822    
823            * Extensions/umn_mapserver/mf_import.py: Removed the wxCHANGE_DIR,
824            because of the hint from Bernhard Herzog.
825            Corrected the handling of absolute pathnames.
826            Changed the Text of the Menu-Item, now the beginning is upper case.
827    
828            * Extensions/umn_mapserver/README: Added the --with-tiff statement.
829    
830    2004-06-16  Jan Sch�ngel  <[email protected]>
831    
832            Add a sample and make some changes.
833    
834            * Extension/umn_mapserver/mf_import.py: Changed the wxPython.wx
835            import from * to explicit used statements. Changed the
836            Thuban.UI.mainwindow import phrase, too.
837            (import_mapfile):Corrected a clerical mistake.
838            Added wxCHANGE_DIR in OpenFile Dialog.
839            Added a MultipleChoiceDialog, to select the layers to load from
840            mapfile into thuban. Thereby the projection is only set if one layer
841            is selected.
842            Added the possibility to handle relative pathnames which uses
843            up-level references.
844            Removed some doubled code.
845            Corrected an error with integer values used as label in thuban
846            ClassGroup.
847            
848            * Extensions/umn_mapserver/sample: New.
849    
850            * Extensions/umn_mapserver/sample/README: New. Describes the
851            usage of the sample files.
852    
853            * Extensions/umn_mapserver/sample/iceland.map: New. This is
854            a suitable .map-file for the iceland data.
855    
856            * Extensions/umn_mapserver/sample/index.html: New. The template
857            for the mapfile.  
858    
859            * Extensions/umn_mapserver/sample/iceland.html: New. Initialisation
860            file for the Iceland Application on web.
861    
862            * Extensions/umn_mapserver/README: Corrected a inaccuracy and added
863            some details.
864    
865            * Extensions/umn_mapserver/test/test_mapserver
866            (mapserver_import_Test_generalClasses.test_MF_Color):
867            Corrected the thubancolor test.
868    
869    2004-06-15  Jan Sch�ngel  <[email protected]>
870    
871            * Extensions/umn_mapserver/README: New. Install instruction.
872    
873    2004-06-14  Bernhard Reiter <[email protected]>
874    
875            * libraries/thuban/cpl_mfile.h: Added copyright header.
876    
877            * libraries/thuban/ cpl_mfile.cpp, cpl_mfile.h: Added non-protecting
878            Free Software License so that it is most useful with gdalwarp
879            and bmpdataset.
880    
881    2004-06-14  Bernhard Herzog  <[email protected]>
882    
883            * Thuban/UI/multiplechoicedialog.py (__version__): Add missing
884            import of wxPython.wx itself (as opposed to the contents of
885            wxPython.wx).  For some reason wxPython.wx is available as
886            wxPython.wx.wx in at least some 2.4 releases.  Fixes RT#2482
887            wrt. wxPython 2.4.
888    
889    2004-06-10  Jan Sch�ngel  <[email protected]>
890    
891            Initial version of new extension "umn_mapserver".  This extension aims
892            to manage configuration for the UMN MapServer application.  This
893            inital version just imports the .map-files and displays all, Thuban is
894            capable of.
895    
896            * Extensions/umn_mapserver, Extensions/umn_mapserver/test: New.
897    
898            * Extensions/umn_mapserver/test/README: New. Describes how to run the
899            tests.
900    
901            * Extensions/umn_mapserver/test/test.map: New. This is a test
902            .map-file for automated tests of the umn_mapserver extension of
903            Thuban.
904    
905            * Extensions/umn_mapserver/test/test_mapserver.py: New. Tests for
906            UMN Mapserver classes.
907    
908            * Extensions/umn_mapserver/__init__.py: New. Init to make this
909            directory a package.
910    
911            * Extensions/umn_mapserver/mapfile.py: New. Classes to represent
912            '.map'-file objects.
913    
914            * Extensions/umn_mapserver/mf_import.py: New. This module extends
915            Thuban with the possibility to handle UMN MapServer mapfiles.
916    
917    2004-06-03  Bernhard Herzog  <[email protected]>
918    
919            * Thuban/Model/layer.py (Layer.TreeInfo): Convert the bounding box
920            to a tuple before using it as arguments to the % operator.  This
921            fixes the formatting issue filed in RT#2239 on 2004-01-13 and
922            reported today on thuban-list by Jan Sch�ngel
923    
924            * test/test_layer.py (TestLayerModification.setUp): Save the
925            filename as an instance variable so we can refer to it in tests
926            (TestLayerModification.test_tree_info): Uncomment this method
927            again and make it work.  This tests for the formatting issue
928            filed in RT#2239 on 2004-01-13
929    
930    2004-05-28  Bernhard Herzog  <[email protected]>
931    
932            * Thuban/UI/baserenderer.py: Fix some typos.
933    
934    2004-05-18  Jan-Oliver Wagner <[email protected]>
935    
936            * Extensions/gns2shp/gns2shp.py (gns2shp): Fixed a bug
937            by increasing a field size.
938    
939    2004-05-17  Bernhard Herzog  <[email protected]>
940    
941            Update to newest shapelib and get rid of Thuban specific
942            extensions, i.e. use the new DBFUpdateHeader instead of our
943            DBFCommit kludge
944    
945            * libraries/shapelib/shpopen.c: Update to version from current
946            shapelib CVS.
947    
948            * libraries/shapelib/shapefil.h: Update to version from current
949            shapelib CVS.
950    
951            * libraries/shapelib/dbfopen.c: Update to version from current
952            shapelib CVS.
953            (DBFCommit): Effectively removed since shapelib itself has
954            DBFUpdateHeader now which is better for what DBFCommit wanted to
955            achieve.  
956            We're now using an unmodified version of dbfopen.
957    
958            * setup.py (extensions): Add the HAVE_UPDATE_HEADER macro with
959            value '1' to the Lib.dbflibc extension.  This simply reflects the
960            shapelib and pyshapelib updates
961    
962    2004-05-16  Jan-Oliver Wagner <[email protected]>
963    
964            Finished introduction of Menu.FindOrInsertMenu.
965    
966            * Extensions/drawshape/drawshape.py: Add the command
967            to the experimental menu additionally to the toolbar.
968    
969            * Extensions/svgexport/svgsaver.py: Use FindOrInsertMenu() instead of
970            finding menu on its own.
971    
972            * Doc/manual/thuban-manual.xml: updated sample file
973            to use FindOrInsertMenu().
974    
975            * Examples/simple_extensions/hello_world.py: Use FindOrInsertMenu()
976            instead of finding menu on its own.
977    
978    2004-05-11  Jan-Oliver Wagner <[email protected]>
979    
980            * test/test_menu.py (MenuTest.test): Added testing
981            of method Menu.FindOrInsertMenu.
982    
983    2004-05-10  Jan-Oliver Wagner <[email protected]>
984    
985            Introduce and use Menu.FindOrInsertMenu.
986    
987            * Thuban/UI/menu.py (Menu.FindOrInsertMenu): New. Find a
988              given menu or, if not found, insert it.
989    
990            * Extensions/bboxdump/bboxdump.py, /Extensions/gns2shp/gns2shp.py,
991            /Extensions/importAPR/importAPR.py, Extensions/profiling/profiling.py,
992            /Extensions/wms/wms.py: Use FindOrInsertMenu() instead of finding
993            menu on its own.
994    
995    2004-05-06  Jan-Oliver Wagner <[email protected]>
996    
997            Introduce a abstract ColorDialog class and remove
998            and outdated file.
999    
1000            * Thuban/UI/proj4dialog.py: Removed. It is has been
1001            replaced by projdialog for quite a while and is not used
1002            anymore.
1003    
1004            * Thuban/UI/colordialog.py: New. Abstraction for color selection
1005            dialog(s).
1006    
1007            * Thuban/UI/classifier.py (SelectPropertiesDialog.__GetColor):
1008            Now calls the abstract ColorDialog instead of wxColourDialog.
1009            This also removed the dependency to Color class conversion
1010            from this function.
1011    
1012    2004-05-04  Frank Koormann  <[email protected]>
1013    
1014            * Extensions/bboxdump/__init__.py: Fixed string left over from
1015            copying.
1016    
1017            * Extensions/bboxdump/bboxdump.py (bboxdump):
1018            Use layer.ShapeStore().AllShapes() to loop over shapes instead of
1019            xrange(layer.NumShapes()). Compile the bboxmessage from a list
1020            of formatted outputs (string.join) instead of appending to the
1021            message. Two progress bar dialogs to report progress on the sometimes
1022            lenghty processing.
1023    
1024    2004-04-22  Frank Koormann  <[email protected]>
1025    
1026            New Extension to dump bounding boxes of all shapes of the selected
1027            layer. An optional column can be specified to group the objects,
1028            in this case the bounding box is a union of the separate boxes.
1029            Dump can be displayed in a ScrolledMessageDialog or written to file.
1030            The Extension is simply a combination of available and well tested
1031            Thuban functionality.
1032    
1033            * Extensions/bboxdump/__init__.py: New: Init to make this
1034            directory a package.
1035    
1036            * Extensions/bboxdump/bboxdump.py: New: Dump bounding boxes of
1037            all shapes of the selected layer.
1038    
1039    2004-04-22  Jan-Oliver Wagner <[email protected]>
1040    
1041            * Thuban/UI/classgen.py (GenUniquePanel.__init__): Fixed two
1042            strings to be i18n now.
1043    
1044    2004-04-18  Jan-Oliver Wagner <[email protected]>
1045    
1046            Changing popup menu of legend from direct building
1047            to using the Menu construction as used for the mainwindow.
1048    
1049            * Thuban/UI/mainwindow.py: New method commands: layer_to_top,
1050            layer_to_bottom, layer_visibility
1051            (MainWindow.LayerToTop): New. Put current layer to the top.
1052            (MainWindow.LayerToBottom): New. Put current layer to bottom.
1053            (MainWindow.HideLayer, MainWindow.ShowLayer, _has_visible_map):
1054            Replace 1,0 by True, False.
1055            (MainWindow.ToggleLayerVisibility): New. Toggle visibility of
1056            current layer.
1057            (MainWindow.LayerShowTable): Removed raising of dialog.
1058            (_has_selected_layer_visible): New. Support function.
1059    
1060            * Thuban/UI/legend.py: ID_POP_xxx: removed.
1061            (LegendPanel.__init__): Removed EVT_MENU bindings.
1062            (LegendTree._OnRightClick): Replace direct creation of
1063            menu via wx Classes by applying the menu definition
1064            as of Menu class of menu.py.
1065            
1066    2004-04-16  Jan-Oliver Wagner <[email protected]>
1067    
1068            * Thuban/UI/exceptiondialog.py (ExceptionDialog.dialog_layout): Improved
1069        button string to stronger clearify that Thuban will be closed when hitting
1070            the button.
1071    
1072            * Thuban/UI/mainwindow.py (MainWindow.LayerShowTable): Added docstring.
1073            Now for layers without a ShapeStore a corresponding message is given
1074            to the user, that this layer has no table to show.
1075    
1076    2004-04-15  Martin Schulze  <[email protected]>
1077    
1078            * Extensions/wms/layer.py (WMSLayer.setWMSFormat): Need to
1079            recalculate the format for the internal render engine as well.
1080    
1081            * Extensions/wms/properties.py (wmsProperties): First start for a
1082            properties dialog.  It's functional for a first selection of
1083            layers, but still has some weired wxWidgets/GTK problems but
1084            beautification can be done later.
1085    
1086            * Extensions/wms/layer.py: Added more documentation
1087            (WMSLayer.getFormats): New: Return list of supported image formats
1088            by the WMS server
1089            (WMSLayer.getLayers): New: Return the list of layer names
1090            supported by the WMS server
1091            (WMSLayer.getLayerTitle): New: Return the title of the named layer
1092            (WMSLayer.getWMSFormat): New: Return the image format that is used
1093            for WMS GetMap requests
1094            (WMSLayer.setWMSFormat): New: Set the image format that is used
1095            for WMS GetMap requests
1096            (WMSLayer.__init__): Move away from using only one layer to using
1097            a list of layers (unsorted at the moment, though).
1098            (WMSLayer.getVisibleLayers): New: Return the list of names for all
1099            visible layers
1100            (WMSLayer.setVisibleLayers): New: Set the list of names for all
1101            visible layers
1102    
1103            * Extensions/wms/wms.py: Moved the WMS layer into layer.py in
1104            order to establish a clean structure.
1105    
1106            * Extensions/wms/layer.py: Moved the WMS layer into a file on its
1107            own in order to establish a clean structure.
1108    
1109    2004-04-13  Martin Schulze  <[email protected]>
1110    
1111            * Extensions/wms/parser.py (WMSCapabilitiesParser.grok): Added
1112            support for oldstyle (WMS 1.0 apparently) image format
1113            specification.
1114    
1115            * Extensions/wms/wms.py (WMSLayer.calcFormat): Reduce the list of
1116            supported graphic formats back to JPEG and BMP, PNG and others are
1117            too *cough* experimental...  Sorry, I meant to filter this out
1118            before I committed this part.  This should make the WMS extension
1119            run from CVS again.
1120            (wms_dialog): Reset an empty URL to None so that the subsequent
1121            program can depend on this, since the dialog will indeed return an
1122            empty URL, causing another declaration of love by Python.
1123    
1124            * Extensions/wms/parser.py (WMSCapabilitiesParser.getLayerBBox):
1125            Whenever a native BoundingBox request cannot be fulfilled, check
1126            whether the requested SRS is EPSG:3426, in which case return the
1127            LatLonBoundingBox values.
1128    
1129            * Extensions/wms/test/test_parser.py
1130            (TestWMSCapabilitiesParser.test_LayerSRS): Added a test for
1131            ignoring AUTO:* SRS.
1132            (TestWMSCapabilitiesParser.test_LatLonBoundingBoxes_as_bboxes):
1133            Added another test method to test whether the LatLonBoundingBox
1134            values will be returned if BoundingBox values are requested with
1135            SRS set to EPSG:3426.
1136    
1137            * Extensions/wms/parser.py (WMSCapabilitiesParser.peekLayers):
1138            Added rudimentary support for non-EPSG SRS, i.e. ignore them for
1139            the moment by placing them into a variable which is currently
1140            unused.  Also test whether the EPSG SRS is numerical as it should
1141            be and add an error message if it is not.
1142    
1143            * Extensions/wms/test/sample.xml: Added AUTO:* SRS since they
1144            appear in the real world as well.  Since we cannot handle them yet
1145            (OGCLib can't either), we will ignore them for the moment.
1146    
1147            * Extensions/wms/parser.py: Use a variable for denoting the sample
1148            filename
1149            (WMSCapabilitiesParser.peekLayers): Added support for error
1150            messages during grok().  They will be aggregated in an array and
1151            may be displayed later.  We may have to add a classification
1152            "Warning" and "Error" to this.  That requires more experience,
1153            though, since not every error may be lethal.
1154    
1155            * Thuban/UI/mainwindow.py (MainWindow.LayerShowTable): Raise the
1156            ShowTable() dialog/frame when the user attempts to display it
1157            while it has been opened before already and not closed again.
1158    
1159    2004-04-11  Martin Schulze  <[email protected]>
1160    
1161            * Extensions/wms/infodialog.py: Adjusted the class documentation
1162    
1163            * Extensions/wms/wms.py (WMSLayer.__init__, WMSLayer.GetMapImg):
1164            Switch to using Thuban{Begin,End}BusyCursor instead of the pure
1165            wxWidgets variants.
1166            (WMSLayer.__init__): The epsg_id variable is named top_srs now.
1167    
1168            * Extensions/wms/infodialog.py: Added an information dialog that
1169            will display various information about the WMS current resource,
1170            so that additional information such as the title, the abstract,
1171            fees and access constraints can be displayed for the user if they
1172            are documented in the WMS XML.
1173    
1174    2004-04-10  Martin Schulze  <[email protected]>
1175    
1176            * Extensions/wms/parser.py (WMSCapabilitiesParser.grok): Adjusted
1177            string handling.  It's "foo".lower() and not lower(foo) without
1178            lower imported from strings or something.
1179    
1180            * Extensions/wms/wms.py (WMSLayer): Incorporated WMSCapabilities
1181            from capabilities.py and parser.py.  Implement priority list for
1182            supported graphics formats, take care of wbmp != bmp.  PNG, TIFF
1183            and GIF are supported here, but not yet by main Thuban.  Hence,
1184            support for them may be removed later.  Special contribution to
1185            usability: get wxWidgets to change the cursor when we're waiting
1186            for data from the network so the user won't start to worry.  This
1187            causes a redrawing error/warning, though.
1188    
1189            * Extensions/wms/parser.py (WMSCapabilitiesParser.grok): Unlink
1190            the DOM object.
1191    
1192    2004-04-01  Martin Schulze  <[email protected]>
1193    
1194            * Extensions/wms/capabilities.py: Adjusted documentation
1195            (WMSCapabilities.__init__): Improved documentation, fixed syntax
1196            (WMSCapabilities.saveCapabilities): Only catch IOError when
1197            handling files
1198            (WMSCapabilities.loadCapabilities): Only catch IOError when
1199            handling files
1200            __main__: corrected variable naming
1201            (WMSCapabilities.fetchCapabilities,loadCapabilities): Make this
1202            class a specialisation of WMSCapabilitiesParser as well.  Also
1203            execute grok() after loading or fetching capabilities, if that
1204            went well, so that subsequent calls can already access the data.
1205            (WMSCapabilities.getVersion): Export the used version of the
1206            GetCapabilities request, so we can use it for subsequent calls,
1207            i.e. for GetMap requests.
1208            (WMSCapabilities.fetchCapabilities): Added proper error handling
1209            when the GetCapabilities request failed, so that the surrounding
1210            program can act accordingly.
1211    
1212    2004-03-30  Martin Schulze  <[email protected]>
1213    
1214            * Extensions/wms/parser.py (WMSCapabilitiesParser.getLayerSRS):
1215            Adjusted the getLayerSRS method to return the list of SRSes
1216            extracted from <SRS> elements instead of <BoundingBox> elements.
1217            Added a bit of documentation as well.
1218            (WMSCapabilitiesParser.checkLayerSRS): Removed integrity test
1219            since it was only implemented due to a misunderstanding.
1220    
1221            * Extensions/wms/test/test_parser.py
1222            (TestWMSCapabilitiesParser.test_LayerSRS): Adjust the tests to
1223            reflect the corrected interpretation of the standard: i.e. a layer
1224            does not have to define a BoundingBox for all SRSes it supports.
1225            Hence the <SRS></SRS> specification is authoritative, not the list
1226            of BoundingBoxes.
1227            (TestWMSCapabilitiesParser.test_BoundingBoxes): Added a new test
1228            to ensure None is returned for a non-existing SRS.
1229            (TestWMSCapabilitiesParser.test_grok): Removed test_grok method
1230            since it is not applicable anymore.  Listing more SRSes in <SRS>
1231            elements is valid according to the specs.
1232    
1233    2004-03-26  Bernhard Reiter <[email protected]>
1234    
1235            * README: Nicer formatting of text. Improved descriptions.
1236            Reflected wxWidgets name change.
1237            
1238            * Thuban/UI/about.py: Extended copyright to 2004 and added
1239            information about the thuban-devel mailinglist.
1240    
1241    2004-03-24  Martin Schulze  <[email protected]>
1242    
1243            * Extensions/wms/capabilities.py: Renamed the class to contain
1244            'WMS', also added a linebreak where required
1245    
1246            * Extensions/wms/parser.py: Finally added the XML parser for the
1247            GetCapabilities response.
1248    
1249            * Extensions/wms/test/sample.xml: Adjusted the sample file so that
1250            <SRS> elements match the <BoundingBox> elements, except for the
1251            layer 'beschriftung'.
1252    
1253            * Extensions/wms/test/test_parser.py: Encode non-ascii strings
1254            since Python uses unicode strings internally, otherwise
1255            comparisons will fail.  Removed tests for getLayerBBoxSRS() since
1256            the SRS will be calculated anyway and this method is obsoleted by
1257            getLayerSRS().  Denote SRS as strings and not as cardinal numbers.
1258            Move loading the sample file into the setUp method.  Added a test
1259            for finding the integrity problem in the sample response.
1260            Improved formatting.
1261    
1262            * Extensions/wms/domutils.py: Added convenience routines for
1263            handling of Document Object Model (DOM) nodes.
1264    
1265            * Extensions/wms/test/test_domutils.py: Added a test for the
1266            domutils module
1267    
1268    2004-03-19  Martin Schulze  <[email protected]>
1269    
1270            * Extensions/wms/test/test_parser.py (TestWMSCapabilitiesParser):
1271            Moved path detection and adding into a module of its own,
1272            adjustpath, which exports thubandir as main Thuban directory.
1273    
1274            * Extensions/wms/test/test_ogclib.py (TestWMSLib): Moved path
1275            detection and adding into a module of its own, adjustpath, which
1276            exports thubandir as main Thuban directory.  Reorganised the
1277            module in order to support the SkipTest feature for Thuban test
1278            cases.
1279    
1280            * Extensions/wms/test/adjustpath.py: Moved path detection and
1281            adding into a module of its own.
1282    
1283    2004-03-18  Martin Schulze  <[email protected]>
1284    
1285            * Extensions/wms/test/test_parser.py: Added another test for
1286            checking whether the WMS XML parser (to be implemented) returns
1287            the information we expect.  This requires a sample WMS WML file
1288            (sample.xml) which has been extracted from the frida server and
1289            "improved" manually.
1290    
1291            * Extensions/wms/test/test_ogclib.py: Added legacy code to add the
1292            main Thuban directory to the path in order to be able to import
1293            random modules.  Adjusted the PyOGCLib detection to reuse the
1294            information gathered.  Also added a note about the PYTHONPATH
1295            environment variable.
1296    
1297            * Extensions/wms/test/test_ogclib.py: The format specification is
1298            a mime-type, not a graphic format, hence image/jpeg wou ld be the
1299            proper format and not JPEG.  We'll also have to take care of the
1300            encoding of / as %2F.
1301    
1302    2004-03-16  Martin Schulze  <[email protected]>
1303    
1304            * Extensions/wms/test/test_ogclib.py: Added a (hopefully)
1305            comprehensive test for the getMapURL method, built compare URLs
1306            according to the documentation in OGC 01-068r3
1307    
1308            * Extensions/wms/capabilities.py (WMSCapabilities): Added the
1309            class WMSCapabilities to manage capabilites, will incorporate
1310            parsing the capabilities response and provide details for other
1311            classes.
1312    
1313    2004-03-12  Bernhard Herzog  <[email protected]>
1314    
1315            Support views in addition to normal tables in the postgis
1316            shapestore
1317    
1318            * Thuban/Model/postgisdb.py
1319            (PostGISShapeStore._fetch_table_information): Add a fallback for
1320            the case where the table name is not in the geometry_columns
1321            table.  This is usually the case for views.  Also, set
1322            self.shapestore here.
1323            (PostGISShapeStore.ShapeType): No need to query the database all
1324            the time.  The shape type is now determined in
1325            _fetch_table_information
1326    
1327            * test/postgissupport.py (PostgreSQLServer.new_postgis_db)
1328            (PostgreSQLServer.get_static_data_db, PostGISDatabase.__init__):
1329            New parameter to specify views.
1330            (PostGISDatabase.has_data): Also compare the views.  New views
1331            parameter
1332            (PostGISDatabase.initdb): Create the views.
1333            (PostgreSQLServer.get_default_static_data_db): Add the v_landmarks
1334            view
1335    
1336            * test/test_postgis_db.py
1337            (TestPostGISShapestorePointFromViews): New.  Test a
1338            PostGISShapeStore with a view
1339            (TestPostGISShapestorePointOIDAsGIDColumn.setUp): Pass the name of
1340            the geometry_column explicitly to test whether that works
1341    
1342    2004-03-12  Bernhard Herzog  <[email protected]>
1343    
1344            Final step for explicit id/geometry columns: Loading and saving
1345    
1346            * Resources/XML/thuban-1.1.dtd: New.  Derived from thuban-1.0.dtd
1347            with the following changes:
1348            (dbshapesource): Two new attributes id_column and geometry_column
1349    
1350            * Thuban/Model/save.py (SessionSaver.write): Use the new dtd
1351            (SessionSaver.write_session): Use the new namespace
1352            (SessionSaver.write_data_containers): Write the new dbshapesource
1353            parameters
1354    
1355            * Thuban/Model/load.py (SessionLoader.__init__): New namespace for
1356            the new file format version
1357            (SessionLoader.start_dbshapesource): Handle the new db parameters
1358    
1359            * test/test_save.py: Update to the new dtd and namespace
1360            (SaveSessionTest.test_save_postgis): Update the NonConnectionStore
1361            mock object to provide a working IDColumn method.
1362    
1363            * test/test_load_1_0.py: New.  Copy of the test_load.py before
1364            today's changes but with the round-trip tests removed.
1365    
1366            * test/test_load_0_9.py: Update doc-string.
1367    
1368            * test/test_load.py: Update all .thuban files to the new dtd and
1369            namespace.
1370            (TestPostGISLayer.file_contents): Add the new dbshapesource
1371            paramters
1372    
1373    2004-03-11  Bernhard Herzog  <[email protected]>
1374    
1375            Next step for explicit id/geometry columns: User interaction
1376    
1377            * Thuban/UI/dbdialog.py (ChooseDBTableDialog.__init__): Rework how
1378            the dialog is constructed. Add combo boxes to select id and
1379            geometry column.  Rename some instance variables.
1380            (ChooseDBTableDialog.GetTable): Return id and geometry column
1381            names
1382            (ChooseDBTableDialog.OnTableSelect): New. Event handler for
1383            selections in the table list
1384    
1385            * Thuban/UI/mainwindow.py (MainWindow.AddDBLayer): Use id_column
1386            and geometry_column
1387    
1388            * Thuban/Model/session.py (Session.OpenDBShapeStore): Add the new
1389            parameters for id_column and geometry column of PostGISShapeStore
1390            here as well.
1391    
1392            * Thuban/Model/postgisdb.py (type_map): Add ROWID psycog type.
1393            (_raw_type_map): New. Map raw PostgreSQL type ints to thuban types
1394            (PostGISConnection.GeometryTables): Use a better query to
1395            determine which relations in the database might be usable for
1396            shapestores.  Now supports views as well but is more PostgreSQL
1397            specific
1398            (PostGISConnection.table_columns): New. Somewhat experimental
1399            method to let the db dialogs provide lists of columns to users so
1400            that they can select id and geometry columns.
1401            (PostGISTable.__init__): The default value of the id_column
1402            parameter is now None it still means "gid" effectively, though.
1403            (PostGISTable.IDColumn): New introspection method to return a
1404            column object for the id column
1405            (PostGISShapeStore.GeometryColumn): New introspection method to
1406            return a column object for the geometry column
1407    
1408            * test/test_postgis_db.py
1409            (TestPostGISConnection.test_gis_tables_non_empty):
1410            Removed. Subsumed by the new:
1411            (TestPostGISConnection.test_gis_tables_with_views_and_tables):
1412            New. Tes the GeometryTables and table_columns methods with actual
1413            tables and views.
1414            (PointTests.test_id_column, PointTests.test_geometry_column):
1415            New. tests for the new methods.
1416            (TestPostGISShapestorePoint.setUp)
1417            (TestPostGISShapestorePointSRID.setUp)
1418            (TestPostGISShapestorePointExplicitGIDColumn.setUp): Fill the
1419            instance variables needed by the new tests
1420    
1421    2004-03-11  Bernhard Herzog  <[email protected]>
1422    
1423            * Thuban/UI/classgen.py (GenQuantilesPanel.GetList): The row
1424            numbers given to ReadValue are ordinals.
1425    
1426    2004-03-11  Bernhard Herzog  <[email protected]>
1427    
1428            Elimiate the requirement for PostGIS tables to have a column
1429            called "gid".
1430    
1431            * Thuban/Model/postgisdb.py (PostGISTable.__init__): New parameter
1432            id_column to specify which column to use to identify rows.  Also
1433            new instance variables id_column and quoted_id_column
1434            (PostGISTable.RowIdToOrdinal, PostGISTable.RowOrdinalToId)
1435            (PostGISTable.ReadRowAsDict, PostGISTable.ReadValue)
1436            (PostGISTable.SimpleQuery): Use the id column name provided to the
1437            constructor instead of "gid"
1438            (PostGISShapeStore.__init__): New parameter id_column analogously
1439            to PostGISTable.__init__.  This parameter is simply passed through
1440            to the base class constructor
1441            (PostGISShapeStore._create_col_from_description): Fix typo in
1442            doc-string
1443            (PostGISShapeStore.Shape, PostGISShapeStore.AllShapes)
1444            (PostGISShapeStore.ShapesInRegion): Use the id column name
1445            provided to the constructor instead of "gid"
1446    
1447            * test/postgissupport.py
1448            (PostgreSQLServer.get_default_static_data_db): New static table
1449            landmarks_point_id with an id column != "gid.  Update the comments
1450            a bit.
1451            (skip_if_addgeometrycolumn_does_not_use_quote_ident): Fix typo in
1452            doc-
1453            (upload_shapefile): New parameter gid_column to use a name other
1454            than "gid" for the column to store the shape ids
1455    
1456            * test/test_postgis_db.py (TableTests): New.  Mixin-class
1457            containing all tests previously in TestPostGISTable.  The actual
1458            tests are the same but the code is a bit more configurable to
1459            allow for different id columns etc.
1460            (TestPostGISTable): Derive from TableTests now for the actual
1461            tests.
1462            (TestPostGISTableExplicitGIDColumn): New. Like TestPostGISTable
1463            except that it the landmarks_point_id table to test the id_column
1464            parameter
1465            (PointTests): Extend the doc-string
1466            (TestPostGISShapestorePointExplicitGIDColumn)
1467            (TestPostGISShapestorePointOIDAsGIDColumn): New classes derived
1468            from PointTests to test the explicit id_column parameter.  One
1469            tests with the name of the column holding the shape ids, the other
1470            uses PostgreSQL's OID column.  For the latter a number of methods
1471            have to be overwritten to make them independent of the actual id
1472            values.
1473    
1474    2004-03-08  Silke Reimer  <[email protected]>
1475    
1476            Update debian directory:
1477    
1478            * debian/changelog: Added new version.
1479            * deiban/rules: Updated management of patches (with cbds)
1480            * debian/control: Added cbds to dependencies
1481            * debian/patches/*: New. Adds better support for patches of thuban in
1482                            debian
1483            * debian/menu: Syntax of menu changed slightly
1484            * debian/setup.py.patch: removed because it has been moved to
1485                            debian/patechs/setup.py.patch
1486            
1487    
1488    2004-02-26  Bernhard Herzog  <[email protected]>
1489    
1490            Create the Doc/technotes directory for text files with information
1491            for developers
1492    
1493            * Doc/technotes/README: New. README for the technotes
1494    
1495            * Doc/technotes/coding_guidelines.txt: New. Coding guidelines for
1496            Thuban
1497    
1498            * Doc/technotes/release_process.txt: New. Used to be
1499            HOWTO-Release.  Now slightly adapted to technote formatting style.
1500    
1501            * HOWTO-Release: Removed.  It's contents are now in
1502            Doc/technotes/release_process.txt
1503    
1504    2004-02-25  Bernhard Herzog  <[email protected]>
1505    
1506            * libraries/thuban/wxproj.cpp (get_wx_version): New.  Return the
1507            version of wxWindows the module was compiled with so we can check
1508            that against the wxPython version.
1509    
1510            * Thuban/version.py (thuban_branch, thuban_release): New variables
1511            controlling which and how Thuban versions are shown.  See the
1512            comments for details.
1513            (verify_versions): Also check that the wx version that wxproj is
1514            compiled against matches that of the wxPython we use at runtime
1515    
1516    2004-02-20  Bernhard Herzog  <[email protected]>
1517    
1518            * Extensions/wms/wms.py (epsg_code_to_projection): Use
1519            get_system_proj_file to read the epsg projections.  The old way
1520            depended on the current directory being the top Thuban directory.
1521    
1522    2004-02-20  Bernhard Herzog  <[email protected]>
1523    
1524            * Extensions/svgexport/test/test_svgmapwriter.py
1525            (TestVirtualDC.test_clippath): Remove a debug print
1526    
1527    2004-02-20  Bernhard Herzog  <[email protected]>
1528    
1529            * Extensions/svgexport/__init__.py: New.  Turn
1530            Extensions/svgexport into a package.
1531    
1532            * Extensions/svgexport/svgmapwriter.py: Reorder the imports and
1533            doc-string a bit.  The doc-string must come first, otherwise it's
1534            not a doc-string.  The __future__ import must be the first thing
1535            after the doc-string.  Use only double quotes in doc-strings.
1536            Single quotes trip up emacs syntax highlighting if the text
1537            contains apostrophes.
1538    
1539    2004-02-20  Bernhard Herzog  <[email protected]>
1540    
1541            * Extensions/svgexport/test/__init__.py,
1542            Extensions/svgexport/test/test_svgmapwriter.py: New. Initial test
1543            suite for svgexport
1544    
1545            * test/runtests.py (find_test_modules): New. Function with the
1546            module finding code from main.
1547            (main): Use find_test_modules to figure out the default test
1548            modules and take modules from Extensions.svgexport.test too.
1549    
1550    2004-02-19  Bernhard Herzog  <[email protected]>
1551    
1552            * Thuban/UI/application.py (ThubanApplication.OnInit): Make sure
1553            the mainwindow has a reference to the map of the initial session.
1554            This fixes a bug introduced with the fix for RT#2245
1555    
1556    2004-02-19  Bernhard Herzog  <[email protected]>
1557    
1558            * Extensions/svgexport/svgsaver.py,
1559            Extensions/svgexport/svgmapwriter.py,
1560            Extensions/svgexport/maplegend.py: Added again.  This time in the
1561            correct place.
1562    
1563    2004-02-17  Bernhard Herzog  <[email protected]>
1564    
1565            Fix for RT#2245
1566    
1567            * Thuban/UI/application.py (ThubanApplication.OnInit): Initialize
1568            instance variables before trying to create any windows.  Creating
1569            windows can start an event loop if e.g. message boxes are popped
1570            up for some reason, and event handlers, especially EVT_UPDATE_UI
1571            may want to access things from the application.
1572            (ThubanApplication.maps_changed): The mainwindow may not have been
1573            created yet, so check whether it has been created before calling
1574            its methods
1575    
1576            * Thuban/UI/view.py (MapCanvas.OnIdle): Only try to redraw if we
1577            have a map
1578    
1579    2004-02-17  Bernhard Herzog  <[email protected]>
1580    
1581            * test/test_svgmapwriter.py, Extensions/svgsaver.py,
1582            Extensions/svgmapwriter.py, Extensions/maplegend.py,
1583            extensions/svgexport/svgsaver.py,
1584            extensions/svgexport/svgmapwriter.py,
1585            extensions/svgexport/maplegend.py: Removed.  These files were in
1586            the wrong places or didn't work at all.
1587    
1588    2004-02-16  Bernhard Herzog  <[email protected]>
1589    
1590            * Thuban/UI/view.py (MapCanvas.Export): Remove accidentally added
1591            line
1592    
1593    2004-02-16  Bernhard Herzog  <[email protected]>
1594    
1595            * Thuban/UI/view.py (MapCanvas.Export): Avoid UnboundLocalError.
1596    
1597    2004-02-15  Markus Rechtien  <[email protected]>
1598            
1599            * Extensions/svgexport/svgmapwriter.py: New. Adds the capability
1600            to write a session to a file in SVG format.
1601            * Extensions/svgexport/svgsaver.py: New. Uses svgmapwriter.py
1602            to write a SVG map of a session.
1603            * Extensions/svgexport/maplegend: New. Writes a basic maplegend
1604            in SVG format for the current session.
1605    
1606    2004-02-13  Bernhard Herzog  <[email protected]>
1607    
1608            * Thuban/UI/mainwindow.py (MainWindow.AddDBLayer): When the layer
1609            can't be created, return immediately after displaying the error
1610            message.
1611    
1612    2004-02-11  Bernhard Herzog  <[email protected]>
1613    
1614            Handle postgis tables with more than one geometry column.
1615    
1616            * Thuban/Model/postgisdb.py
1617            (PostGISTable._fetch_table_information): Delegate the creation of
1618            column objects to a different method so that we can extend that in
1619            derived classes
1620            (PostGISTable._create_col_from_description): New. Column object
1621            creation part of _fetch_table_information
1622            (PostGISShapeStore._create_col_from_description): New. Extend
1623            inherited method to handle geometry columns
1624            (PostGISShapeStore.__init__): New parameter geometry_column to
1625            specify which geometry column to use.  Optional but mandatory for
1626            tables with more than one geometry column
1627            (PostGISShapeStore._fetch_table_information): Also use the name of
1628            the geometry column when looking for the srid
1629            (PostGISShapeStore.ShapeType): Also use the name of the geometry
1630            column when looking for the shape type
1631    
1632            * test/test_save.py (SaveSessionTest.test_save_postgis): Adapt
1633            NonConnectionStore to changes in the PostGISShapeStore
1634    
1635            * test/test_postgis_db.py
1636            (TestPostGISSpecialCases.test_shapestore_two_geom_cols): Test
1637            PostGISShapeStore with tables having two geometry columns.
1638    
1639    2004-02-10  Bernhard Herzog  <[email protected]>
1640    
1641            Fix some postgis problems.  What remains to be done is real
1642            handling of SRIDs as they affect how reprojection is done
1643    
1644            * Thuban/Model/postgisdb.py (quote_identifier): Fix typo in
1645            doc-string
1646            (PostGISShapeStore._fetch_table_information): New. Extend
1647            inherited method to retrieve srid
1648            (PostGISShapeStore.BoundingBox): Handle tables without data.
1649            extent yields NULL for those
1650            (PostGISShapeStore.ShapesInRegion): Use the srid of the table.
1651    
1652            * test/test_postgis_db.py
1653            (TestPostGISSpecialCases.test_shapestore_empty_table): New test
1654            for the special case of a table without any data
1655            (TestPostGISShapestorePointSRID): New class with tests for a table
1656            that uses srids
1657            (PolygonTests): Fix a doc-string typo
1658    
1659            * test/postgissupport.py (PostGISDatabase.__init__): New parameter
1660            reference_systems with a specification of spacial reference
1661            systems to create in the new db.
1662            (PostgreSQLServer.new_postgis_db)
1663            (PostgreSQLServer.get_static_data_db): New parameter
1664            reference_systems to be passed through ultimately to
1665            PostGISDatabase.  In new_postgis_db also check whether an existing
1666            db already has the right srids
1667            (PostgreSQLServer.get_default_static_data_db): Add srids and a
1668            table that uses srids
1669            (PostGISDatabase.initdb): Create the entries for the reference
1670            systems
1671            (PostGISDatabase.has_data): Add reference_systems parameter to
1672            check for those too
1673            (upload_shapefile): New parameter srid to create tables with a
1674            specific srid
1675    
1676    2004-02-06  Frank Koormann  <[email protected]>
1677    
1678            * po/pt_BR.po: Fixed charset
1679    
1680    2004-02-05  Frank Koormann  <[email protected]>
1681    
1682            * po/pt_BR.po: Fixed format string for error message, missing %s
1683            added (Thuban/UI/application.py:273)
1684    
1685    2004-02-03  Frank Koormann  <[email protected]>
1686            
1687            First version of Portuguese (Brazilian) translation
1688    
1689            * po/pt_BR.po: New, translation of pot (2004-01-15 16:07+0300) for
1690            Brazilian Portuguese by Eduardo Patto Kanegae.
1691    
1692            * Thuban/UI/about.py (About.__init.py__): Added Eduardo to the list of
1693            translators.
1694    
1695    
1696    2004-01-22  Frank Koormann  <[email protected]>
1697    
1698            * Doc/manual/thuban-manual.xml: Added section on installation of
1699            Thuban under Win32 systems. Fixed image path references in the postgis
1700            section. Some minor source formattings.
1701    
1702    2004-01-21  Frank Koormann  <[email protected]>
1703    
1704            Make Thuban remember path selections (at least for one application run).
1705    
1706            * Thuban/UI/application.py (Application.OnInit): Initialize path as a
1707            attribute of application object. Path is a dictionary of
1708            strings, currently with the items "data" and "projection".  
1709            (Application.SetPath): New, stores path for the specified item.
1710            (Application.Path): New, return path for the specified item.
1711    
1712            * Thuban/UI/mainwindow.py
1713            (MainWindow.OpenSession, MainWindow.SaveSessionAs,
1714            MainWindow.AddLayer, MainWindow.AddRasterLayer,
1715            MainWindow.TableOpen): Access "data" path information of the
1716            application.
1717            
1718            * Thuban/UI/projdialog.py (ProjFrame._OnImport, ProjFrame._OnExport):
1719            Access "projection" path information of the application.
1720    
1721    2004-01-05  Bernhard Herzog  <[email protected]>
1722    
1723            * po/ru.po: Updated translations from Alex Shevlakov
1724    
1725    2004-01-05  Bernhard Herzog  <[email protected]>
1726    
1727            * po/Makefile, po/README: Move the description of how to generate
1728            the translation statistics to the README.
1729    
1730    2003-12-23  Bernhard Herzog  <[email protected]>
1731    
1732            * NEWS: Update for 1.0.0
1733    
1734            * po/it.po: Another update from Maurizio Napolitano
1735    
1736    2003-12-23  Bernhard Herzog  <[email protected]>
1737    
1738            * po/it.po: Updated translation from Maurizio Napolitano
1739    
1740    2003-12-23  Bernhard Herzog  <[email protected]>
1741    
1742            * Thuban/UI/join.py (JoinDialog.__init__): Mark one more string
1743            for translation
1744    
1745            * Thuban/UI/mainwindow.py (MainWindow.TableRename)
1746            (MainWindow.RenameMap, MainWindow.RenameLayer): Mark some more
1747            strings for translation
1748    
1749            * po/de.po: Update with the newly marked strings.
1750    
1751    2003-12-22  Bernhard Herzog  <[email protected]>
1752    
1753            * HOWTO-Release: Fix the places where version numbers have to be
1754            updated
1755    
1756    2003-12-22  Bernhard Herzog  <[email protected]>
1757    
1758            * setup.py (setup call): 1.0.0, yeah!
1759    
1760            * Thuban/version.py (longversion): 1.0.0, yeah!
1761    
1762            * Thuban/Model/load.py (SessionLoader.__init__): Accept the
1763            1.0.0 namespace too
1764    
1765            * Thuban/Model/save.py (SessionSaver.write_session): Save with
1766            1.0.0 namespace
1767    
1768            * test/test_load.py (LoadSessionTest.dtd)
1769            (TestSingleLayer.file_contents)
1770            (TestNonAsciiColumnName.file_contents)
1771            (TestLayerVisibility.file_contents)
1772            (TestClassification.file_contents, TestLabels.file_contents)
1773            (TestLayerProjection.file_contents)
1774            (TestRasterLayer.file_contents, TestJoinedTable.file_contents)
1775            (TestLabelLayer.file_contents, TestPostGISLayer.file_contents)
1776            (TestPostGISLayerPassword.file_contents)
1777            (TestLoadError.file_contents, TestLoadError.test): Update for
1778            1.0.0 namespace
1779    
1780            * test/test_save.py (SaveSessionTest.dtd)
1781            (SaveSessionTest.testEmptySession)
1782            (SaveSessionTest.testSingleLayer)
1783            (SaveSessionTest.testLayerProjection)
1784            (SaveSessionTest.testRasterLayer)
1785            (SaveSessionTest.testClassifiedLayer)
1786            (SaveSessionTest.test_dbf_table)
1787            (SaveSessionTest.test_joined_table)
1788            (SaveSessionTest.test_save_postgis): Update for 1.0.0 namespace
1789    
1790    2003-12-22  Bernhard Herzog  <[email protected]>
1791    
1792            * Thuban/Model/load.py (SessionLoader.start_label): Make sure the
1793            alignment flags are byte strings not unicode and that they have
1794            valid values
1795    
1796            * test/test_load.py (TestLabelLayer): New. Test loading (and
1797            indirectly saving) of maps with labels.
1798    
1799    2003-12-22  Bernhard Herzog  <[email protected]>
1800    
1801            * Thuban/UI/tableview.py (TableGrid.OnDestroy)
1802            (TableGrid.__init__): Handle EVT_WINDOW_DESTROY in the grid to
1803            unsubscribe all subscribers.
1804            (LayerTableFrame.OnDestroy): Do not unsubscribe any messages from
1805            self.grid since it may already have been destroyed.
1806            Fixes RT #2256
1807    
1808    2003-12-19  Bernhard Herzog  <[email protected]>
1809    
1810            * po/fr.po, po/es.po: Updated translations from Daniel Calvelo
1811    
1812    2003-12-16  Bernhard Herzog  <[email protected]>
1813            
1814            * debian/bitmappath.patch, debian/setup.py.patch:
1815                    added to ensure compliance with FHS for debian
1816            * debian/rules, debian/changelog:
1817                added patches in rules to ensure compliance with FHS for debian
1818    
1819    2003-12-16  Bernhard Herzog  <[email protected]>
1820    
1821            * po/Makefile (mo): Make the output a bit nicer so that it prints
1822            statistics about the translations. Add a comment how produce even
1823            nicer statistics with sed.
1824    
1825    2003-12-09  Frank Koormann   <[email protected]>
1826    
1827            * Resources/Projections/defaults.proj:
1828            French projection sample with correct accents (UNICODE).
1829    
1830    2003-12-05  Bernhard Herzog  <[email protected]>
1831    
1832            * MANIFEST.in: Add the devtools directory
1833    
1834            * setup.py (setup call): Use license instead of licence. This
1835            silences a deprecation warning on Python 2.3
1836    
1837    2003-12-05  Frank Koormann   <[email protected]>
1838    
1839            Documentation synced with 1.0rc1
1840    
1841            * Doc/manual/thuban-manual.xml:
1842            Minor formatting changes and references to database layers .
1843            Introduction.Internationalization: New section on i18n.
1844            MapManagement.AddingandRemovingLayers: Added item on database layers.  
1845            MapManagement.TheLegend: Added section and screenshot on popup menu.
1846            ProjectionManagement: Updated screenshot and sentence on EPSG.
1847            Appendix.SupportedDataSources: Added PostGIS.
1848            Appendix.WorkingwithPostGIS: New section.
1849    
1850            * Doc/manual/images/6_projection.png: Updated screenshot including
1851            EPSG checkboxes.
1852    
1853            * Doc/manual/images/3_5_popup_menu.png: New, popup menu screenshot.
1854    
1855            * Doc/manual/images/app_postgis_add_layer.png,
1856            Doc/manual/images/app_postgis_db_add.png,
1857            Doc/manual/images/app_postgis_db_management.png:
1858            New screenshots focussing on database layers
1859    
1860    2003-12-05  Frank Koormann   <[email protected]>
1861    
1862            * Thuban/UI/projdialog.py (load_user_proj): If user.proj is missing
1863            write warning to stderr instead of rising a warning dialog
1864    
1865    2003-12-03  Bernhard Herzog  <[email protected]>
1866    
1867            Fix for RT #2243
1868    
1869            * Thuban/UI/mainwindow.py (MainWindow.has_selected_shape_layer):
1870            New. Like has_selected_layer but for shape layers only
1871            (_has_selected_shape_layer): New. Like _has_selected_layer but for
1872            shape layers only
1873            (layer_show_table command, layer_jointable command): Use these
1874            commands should only be available for shape layers
1875    
1876    2003-12-03  Bernhard Herzog  <[email protected]>
1877    
1878            * Thuban/UI/mainwindow.py (MainWindow.Unsubscribe): Deal with
1879            publishers that are wx objects and may have been destroyed by wx
1880            already. Fixes RT #2242.
1881    
1882    2003-12-03  Bernhard Herzog  <[email protected]>
1883    
1884            * po/ru.po: Updates from Alex Shevlakov
1885    
1886    2003-12-03  Silke Reimer <silkeintevation.de>
1887    
1888            * debian/control, debian/changelog: Added gdal-support to
1889                    debian package, updated to new thuban version
1890    
1891    
1892    2003-12-03  Bernhard Herzog  <[email protected]>
1893    
1894            * Thuban/Lib/version.py: New. Module for version number
1895            manipulations. The version of make_tuple here also deals better
1896            with more unusual version number strings, such as e.g.
1897            "1.2+cvs20031111"
1898    
1899            * Thuban/version.py (make_tuple): Removed. It's now in
1900            Thuban.Lib.version. Use that implementation instead.
1901    
1902            * test/test_lib_version.py: New. Tests for Thuban/Lib/version.py
1903    
1904    2003-12-02  Bernhard Herzog  <[email protected]>
1905    
1906            * MANIFEST.in: Add debian files
1907    
1908            * setup.py (setup call): Add packages for the Extensions so that
1909            they're installed too
1910            (data_files): Add READMEs and sample data from some Extensions
1911    
1912            * NEWS: Add note about the extensions in binary packages
1913    
1914    2003-12-02  Bernhard Herzog  <[email protected]>
1915    
1916            * Thuban/Model/save.py (SessionSaver.write_session): Save files
1917            with the thuban-1.0rc1
1918    
1919            * Thuban/Model/load.py (SessionLoader.__init__): Recognize the
1920            thuban-1.0rc1 namespace too
1921    
1922            * test/test_save.py (SaveSessionTest.dtd)
1923            (SaveSessionTest.testEmptySession)
1924            (SaveSessionTest.testSingleLayer)
1925            (SaveSessionTest.testLayerProjection)
1926            (SaveSessionTest.testRasterLayer)
1927            (SaveSessionTest.testClassifiedLayer)
1928            (SaveSessionTest.test_dbf_table)
1929            (SaveSessionTest.test_joined_table)
1930            (SaveSessionTest.test_save_postgis): Update to thuban-1.0rc1
1931            namespace
1932    
1933            * test/test_load.py (LoadSessionTest.dtd): Update to thuban-1.0rc1
1934            namespace
1935            (TestSingleLayer.file_contents)
1936            (TestNonAsciiColumnName.file_contents)
1937            (TestLayerVisibility.file_contents)
1938            (TestClassification.file_contents, TestLabels.file_contents)
1939            (TestLayerProjection.file_contents)
1940            (TestRasterLayer.file_contents, TestJoinedTable.file_contents)
1941            (TestPostGISLayer.file_contents)
1942            (TestPostGISLayerPassword.file_contents)
1943            (TestLoadError.file_contents, TestLoadError.test): Update to
1944            thuban-1.0rc1 namespace
1945    
1946    2003-12-01  Bernhard Herzog  <[email protected]>
1947    
1948            * setup.py (proj4_prefix, wx_prefix, gdal_prefix): Fix these for
1949            nt to better match Intevation's current w32 setup
1950    
1951            * HOWTO-Release: Add note about updating MANIFEST.in
1952    
1953            * MANIFEST.in: Add the Extensions
1954    
1955            * NEWS: Update for 1.0rc1
1956    
1957    2003-12-01  Bernhard Herzog  <[email protected]>
1958    
1959            * Thuban/UI/mainwindow.py (MainWindow.AddLayer): Change the wild
1960            cards for the dialog so that shapefiles ending in all uppercase
1961            SHP are listed too
1962    
1963    2003-11-28  Bernhard Herzog  <[email protected]>
1964    
1965            * Thuban/version.py (longversion): Update to 1.0rc1
1966    
1967            * setup.py (setup call): Update version to 1.0rc1. Use the
1968            [email protected] email address as author email instead of my
1969            personal one.
1970    
1971    2003-11-28  Bernhard Herzog  <[email protected]>
1972    
1973            * po/de.po: Update german translation.
1974    
1975    2003-11-28  Bernhard Herzog  <[email protected]>
1976    
1977            Unify the filenames stored in .thuban files so that the .thuban
1978            files are more platform independend
1979    
1980            * Thuban/Model/save.py (unify_filename): New. Unify filenames so
1981            that they can be used on both windows and unix
1982            (SessionSaver.prepare_filename): New. Handle all filename
1983            transformations for filenames stored in the thuban file
1984            (SessionSaver.write_data_containers, SessionSaver.write_layer):
1985            Use prepare_filename
1986    
1987            * test/test_save.py (SaveSessionTest.testSingleLayer)
1988            (SaveSessionTest.testLayerProjection)
1989            (SaveSessionTest.testRasterLayer)
1990            (SaveSessionTest.testClassifiedLayer)
1991            (SaveSessionTest.test_dbf_table)
1992            (SaveSessionTest.test_joined_table): Filenames are always stored
1993            with slashes on all currently supported platforms so adapt all
1994            tests to this
1995    
1996            * test/test_load.py (LoadSessionTest.filenames): With the new
1997            filename scheme the filenames in the tests should be
1998            understandable on all currently supported platforms so we turn
1999            this into an empty list because we don't have to normalize them
2000            anymore
2001    
2002    2003-11-28  Bernhard Herzog  <[email protected]>
2003    
2004            * test/test_layer.py (TestLayer.test_arc_layer_with_projection):
2005            Add the ellipsoid to the projection since some Proj versions
2006            complain if it's missing.
2007    
2008    2003-11-27  Bernhard Herzog  <[email protected]>
2009    
2010            Corect some bounding box projection problems
2011    
2012            * Thuban/Model/proj.py (Projection.InverseBBox): New. Inverse
2013            version of ForwardBBox
2014            (Projection._transform_bbox): New. common implementation of
2015            ForwardBBox and InverseBBox
2016            (Projection.ForwardBBox): Use _transform_bbox.
2017    
2018            * test/test_proj.py (TestProjection.test): Add test for
2019            InverseBBox
2020    
2021            * Thuban/Model/layer.py (Layer.LatLongBoundingBox)
2022            (Layer.ShapesBoundingBox, RasterLayer.LatLongBoundingBox): Use the
2023            new InverseBBox method to determine the unprojected bounding box
2024            (Layer.ShapesInRegion): Use the ForwardBBox method to project the
2025            bbox.
2026    
2027            * test/test_layer.py (TestLayer.test_point_layer_with_projection):
2028            Removed.
2029            (TestLayer.test_arc_layer_with_projection): New. This test is
2030            better able to test whether bounding boxes are projected correctly
2031            than test_point_layer_with_projection
2032    
2033            * Thuban/UI/viewport.py (ViewPort.map_projection_changed): Use
2034            InverseBBox to unproject bboxes
2035    
2036    2003-11-25  Bernhard Herzog  <[email protected]>
2037    
2038            * Thuban/UI/about.py (About.__init__): Make sure we have ASCII
2039            source code.
2040    
2041    2003-11-25  Bernhard Herzog  <[email protected]>
2042    
2043            * Thuban/Model/layer.py (Layer.__getattr__): Removed. It was only
2044            there for backwards compatibility and all code relying on that
2045            should have been updated by now.
2046    
2047    2003-11-25  Bernhard Herzog  <[email protected]>
2048    
2049            * test/test_load.py (TestClassification.test): Add the missing
2050            round trip test.
2051            (TestClassification.file_contents): Update to the newest file
2052            format
2053    
2054    2003-11-25  Bernhard Herzog  <[email protected]>
2055    
2056            Add very experimental (and possibly dangerous) extension to draw
2057            polygons:
2058    
2059            * Extensions/drawshape/README: New. Brief installation
2060            instructions
2061    
2062            * Extensions/drawshape/drawshape.py: New. Implementation of the
2063            drawshape extensions
2064    
2065            * Extensions/drawshape/patch.diff: Patch to apply before the
2066            extension can be used.
2067    
2068    2003-11-24  Bernhard Herzog  <[email protected]>
2069    
2070            * Thuban/Model/data.py (ShapefileStore._open_shapefile)
2071            (ShapefileStore.__init__): Factor opening the shapefile into a
2072            separate method (the new _open_shapefile). This makes the code a
2073            bit more readable but the real reason is that it makes some evil
2074            hacks easier. :-)
2075    
2076    2003-11-24  Bernhard Herzog  <[email protected]>
2077    
2078            * Thuban/Model/load.py (SessionLoader.check_attrs): If no
2079            converter is specified for an attribute assume it's a string
2080            containing only Latin1 characters. Update doc-string accordingly.
2081            This change should fix many places where unicode objects might
2082            accidentally enter Thuban.
2083    
2084            * test/test_load.py (TestNonAsciiColumnName): New test to check
2085            what happens with column names in DBF files that contain non-ascii
2086            characters
2087    
2088    2003-11-21  Bernhard Herzog  <[email protected]>
2089    
2090            Enable the experimental attribute editing again and introduce a
2091            command line switch to actually activate it
2092    
2093            * Thuban/UI/main.py (options): New. Container for options set on
2094            the commmand line
2095            (main): Add the --enable-attribute-editing flag.
2096    
2097            * Thuban/UI/identifyview.py (IdentifyView.__init__): If attribute
2098            editing is enabled use the grid ctrl which allows editing of the
2099            values
2100    
2101            * Thuban/Model/transientdb.py (AutoTransientTable.write_record):
2102            New. Just delegate this to the underlying table.
2103    
2104    2003-11-20  Bernhard Herzog  <[email protected]>
2105    
2106            * test/test_proj.py (ProjFileReadTests.test_read_unreadable_file):
2107            Skip this test if run under non-posix systems since it only works
2108            there
2109    
2110    2003-11-19  Bernhard Herzog  <[email protected]>
2111    
2112            * Thuban/Model/resource.py: Rework the way gdal support is
2113            determined so that we can give a reason in the about why gdal is
2114            not supported.
2115            (gdal_support_status): New. Variable holding a string with the
2116            reason for no gdal support
2117    
2118            * Thuban/UI/about.py (About.__init__): Add the reason why gdal is
2119            not supported to the message
2120    
2121    2003-11-19  Bernhard Herzog  <[email protected]>
2122    
2123            Remove the old table interface and its test cases
2124    
2125            * Thuban/Model/table.py (OldTableInterfaceMixin): Removed.
2126            (DBFTable, MemoryTable): Do not derive from OldTableInterfaceMixin
2127            anymore
2128    
2129            * Thuban/Model/transientdb.py (TransientTableBase)
2130            (AutoTransientTable): Do not derive from OldTableInterfaceMixin
2131            anymore
2132    
2133            * test/test_table.py: Removed since the old interface it tests is
2134            gone.
2135    
2136            * test/runtests.py (main): The old table interface is gone and
2137            with it the deprecation warnings so remove the code that turns
2138            these warnings into errors
2139    
2140    2003-11-19  Bernhard Herzog  <[email protected]>
2141    
2142            * test/test_table.py: Revert to revision 1.5 again. Changing the
2143            tests to use the new table interface is completely wrong since the
2144            whole purpose of the tests in this module is to test the old
2145            interface.
2146    
2147    2003-11-18  Bernhard Herzog  <[email protected]>
2148    
2149            * Thuban/Model/postgisdb.py (PostGISConnection.MatchesParameters):
2150            New. Test whether the connection matches a set of connection
2151            parameters
2152    
2153            * Thuban/UI/dbdialog.py (DBFrame.conns_changed): Fix doc-string
2154            (DBFrame.OnAdd): Use the new MatchesParameters method when looking
2155            for existing connections with the same parameters and break out of
2156            the loop correctly.
2157    
2158            * test/test_postgis_db.py (TestBriefDescription)
2159            (TestPostGISSimple.test_brief_description): Rename
2160            TestBriefDescription to TestPostGISSimple and the test method to
2161            test_brief_description so that we can add more test methods.
2162            (TestPostGISSimple.test_matches_parameters): New. Test the new
2163            MatchesParameters method
2164    
2165    2003-11-18  Bernhard Herzog  <[email protected]>
2166    
2167            * Thuban/Lib/connector.py (Publisher): Introduce a new flag,
2168            _was_destroyed, to indicate whether an publisher instance has
2169            already been destroyed.
2170            (Publisher.Unsubscribe): Only disconnect if the publisher has not
2171            been destroyed yet.
2172            (Publisher.Destroy): Set the _was_destroyed flag to true.
2173    
2174            * test/test_connector.py
2175            (TestPublisher.test_unsubscribe_after_destroy): New. Test that
2176            calling Unsubscribe after Destroy doesn't raise an exception
2177    
2178    2003-11-14  Bernhard Herzog  <[email protected]>
2179    
2180            * Thuban/UI/identifyview.py (IdentifyView.selected_shape): Fix
2181            typo in doc-string
2182    
2183    2003-11-13  Bernhard Herzog  <[email protected]>
2184    
2185            Quote table and column names properly for postgis.
2186    
2187            * Thuban/Model/postgisdb.py (quote_identifier): New. Function to
2188            quote an identifier for use in an sql statement
2189            (PostGISColumn.__init__): Add the quoted_name attribute
2190            (PostGISTable.__init__): New instance variable quoted_tablename
2191            (PostGISTable._fetch_table_information): Use the quoted table
2192            name. New isntance variable quoted_geo_col with a quoted version
2193            of geometry_column
2194            (PostGISTable.NumRows, PostGISTable.RowIdToOrdinal)
2195            (PostGISTable.RowOrdinalToId): Use the quoted table name
2196            (PostGISTable.ReadValue, PostGISTable.ValueRange)
2197            (PostGISTable.UniqueValues, PostGISTable.SimpleQuery)
2198            (PostGISShapeStore.BoundingBox, PostGISShapeStore.Shape)
2199            (PostGISShapeStore.AllShapes, PostGISShapeStore.ShapesInRegion):
2200            Use quoted table and column names
2201    
2202            * test/test_postgis_db.py (TestPostGISSpecialCases)
2203            (TestPostGISIgnoredColumns): Rename the class to
2204            TestPostGISSpecialCases because that better describes the new
2205            cases
2206            (TestPostGISSpecialCases.test_unsupported_types)
2207            (TestPostGISSpecialCases.test): Rename the method to
2208            test_unsupported_types because we need a more descriptive name now
2209            that there are more methods
2210            (TestPostGISSpecialCases.test_table_name_quoting)
2211            (TestPostGISSpecialCases.test_column_name_quoting)
2212            (TestPostGISSpecialCases.test_shapestore_name_quoting): New test
2213            cases to test quoting of table and column names in PostGISTable
2214            and PostGISShapeStore
2215    
2216            * test/postgissupport.py
2217            (skip_if_addgeometrycolumn_does_not_use_quote_ident): New. Skip if
2218            AddGeometryColumn desn't support table or column names with sapces
2219            or double quotes
2220    
2221    2003-11-12  Jan-Oliver Wagner <[email protected]>
2222    
2223            * Extensions/wms/__init__.py: New: Init to make this
2224            directory a package.
2225    
2226            * Extensions/wms/wms.py: New: Provide layers via OGC WMS.
2227    
2228    2003-11-11  Bernhard Herzog  <[email protected]>
2229    
2230            * Thuban/Model/resource.py (EPSG_DEPRECATED_PROJ_FILE): New.
2231            Constant for the file woth deprecated epsg projections
2232            (get_system_proj_file): Update doc-string
2233    
2234            * Thuban/UI/projdialog.py (ProjFrame.build_dialog): Add a space
2235            above the EPS widgets, introduce a check box for the deprecated
2236            eps projections and a label for the epsg widgets
2237            (ProjFrame._OnShowEPSG): Handle the deprecated EPSG projections
2238            too
2239    
2240    2003-11-11  Bernhard Herzog  <[email protected]>
2241    
2242            Avoid warnings when run under Python 2.3
2243    
2244            * Thuban/UI/baserenderer.py (BaseRenderer.draw_point_shape)
2245            (BaseRenderer.draw_label_layer): Coordinates must be ints.
2246    
2247            * Thuban/UI/renderer.py (MapRenderer.make_point): Turn this into a
2248            real method so that we can convert to int.
2249            (MapRenderer.label_font): The font size mist be an int.
2250    
2251            * Thuban/UI/common.py (Color2wxColour): The color values must be
2252            ints. Also, remove the unnecessary asserts.
2253    
2254            * test/test_load_0_8.py (TestUnicodeStrings.file_contents)
2255            (TestUnicodeStrings.test): Python source code should not contain
2256            non-ascii characters unless an encoding is specified in the file.
2257            Therefore use \x escapes in the string literals for non-ascii
2258            characters.
2259    
2260    2003-11-11  Bernhard Herzog  <[email protected]>
2261    
2262            * Thuban/Model/resource.py (get_system_proj_file): Add a filename
2263            parameter so that this function can be used for all proj files in
2264            Resource/Projections
2265            (DEFAULT_PROJ_FILE, EPSG_PROJ_FILE): New. Predefined filenames for
2266            get_system_proj_file
2267    
2268            * Thuban/UI/projdialog.py (ProjFrame.__init__): Instead of one
2269            ProjFile self.__sysProjFile use a dictionary of system ProjFile
2270            objects self._sys_proj_files
2271            (ProjFrame.build_dialog): Adapt to the new changes in the
2272            ProjectionList constructor. Add a check button to toggle whether
2273            EPSG projections are shown
2274            (ProjFrame._OnShowEPSG): New. Handler for the epsg check button
2275            events.
2276            (ProjFrame.load_user_proj, ProjFrame.load_system_proj): Only show
2277            the busy cursor if the files have not yet been loaded by the
2278            dialog.
2279            (ProjFrame.load_system_proj): Add a parameter for the name of the
2280            proj file. Maintain the dictionary of system projections
2281            self._sys_proj_files
2282    
2283            * Thuban/UI/projlist.py (ProjectionList): Merge the system_projs,
2284            user_projs parameters into one parameter proj_files which is a
2285            list of proj files.
2286            (ProjectionList._subscribe_proj_files)
2287            (ProjectionList._unsubscribe_proj_files): New. Move
2288            subscription/unsubscription of projfile messages to separate
2289            methods
2290            (ProjectionList.Destroy): The unsubscribe is now done in
2291            _unsubscribe_proj_files
2292            (ProjectionList.update_projections): We now have a list of proj
2293            file objects
2294            (ProjectionList.SetProjFiles): New method to set a new list of
2295            proj file objects
2296    
2297            * test/test_proj.py (ProjFileReadTests.test_get_system_proj_file):
2298            Specify explicitly which system proj file to load.
2299    
2300    2003-11-11  Bernhard Herzog  <[email protected]>
2301    
2302            * Thuban/Model/load.py (SessionLoader.Destroy): New. Clear all
2303            instance variables to cut cyclic references. The GC would have
2304            collected the loader eventually but it can happen that it doesn't
2305            run at all until thuban is closed (2.3 but not 2.2 tries a bit
2306            harder and forces a collection when the interpreter terminates)
2307            (load_session): Call the handler's Destroy method to make sure
2308            that it gets garbage collected early. Otherwise it will be
2309            collected very late if at all and it holds some references to e.g.
2310            shapestores and the session which can lead to leaks (of e.g. the
2311            temporary files)
2312    
2313            * test/test_load.py (TestSingleLayer.test_leak): New. test for the
2314            resource leak in load_session
2315    
2316    2003-11-10  Bernhard Herzog  <[email protected]>
2317    
2318            * Thuban/UI/baserenderer.py: Add a way to specify how layers in
2319            extensions are to be rendered.
2320            (_renderer_extensions): New. List with renderer for layers in
2321            extensions
2322            (add_renderer_extension): New. Add a renderer extension
2323            (init_renderer_extensions): New. Init the renderer extensions
2324            (BaseRenderer.render_map_incrementally): Search
2325            _renderer_extensions for how to draw unknown layer types
2326            (BaseRenderer.draw_raster_data): Add format parameter so that
2327            formats other than BMP can be drawn
2328            (BaseRenderer.draw_raster_layer): Pass an explicit format to
2329            draw_raster_data
2330    
2331            * Thuban/UI/renderer.py (raster_format_map): New. Mapping form the
2332            strings of the format parameter of draw_raster_data method to wx
2333            constants
2334            (MapRenderer.draw_raster_data): Add the format parameter and use
2335            raster_format_map to map it to the right wxwindows constant for
2336            wxImageFromStream
2337    
2338            * test/test_baserenderer.py (SimpleRenderer.draw_raster_data): Add
2339            the format parameter and record it
2340            (TestBaseRenderer.test_raster_no_projection): check the format
2341            paramter of the draw_raster_data method
2342            (TestBaseRenderer.test_renderer_extension): New. Test the renderer
2343            extension facility
2344    
2345    2003-11-07  Bernhard Herzog  <[email protected]>
2346    
2347            Tweak the usage of the sqlite database to make common use cases
2348            more responsive. In most cases copying the data to the sqlite
2349            database takes so long that using sqlite doesn't have enough
2350            advantages.
2351    
2352            * Thuban/Model/transientdb.py (TransientTableBase.ValueRange): Add
2353            comments about performance and query the min and max in separate
2354            statements because only that way will indexes be used.
2355            (TransientTableBase.UniqueValues): Add some comments about
2356            performance.
2357            (AutoTransientTable.ValueRange, AutoTransientTable.UniqueValues):
2358            Do not copy the data to the transient DB but use the transient
2359            copy if it exists. See the new comments for the performance trade
2360            offs
2361    
2362            * test/test_transientdb.py
2363            (TestTransientTable.test_auto_transient_table): Make sure that the
2364            data is copied to the transient database at some point.
2365    
2366    2003-11-03  Bernhard Herzog  <[email protected]>
2367    
2368            * Thuban/Model/data.py (ShapefileStore.ShapesInRegion): Bind some
2369            globals to locals so that it's a bit faster
2370    
2371    2003-11-03  Bernhard Herzog  <[email protected]>
2372    
2373            * Thuban/UI/baserenderer.py
2374            (BaseRenderer.draw_shape_layer_incrementally): Use the ReadValue
2375            method. ReadValue is faster than ReadRowAsDict since it only reads
2376            one cell especially now that the dbf file objects actually
2377            implement it.
2378    
2379            * Thuban/Model/table.py (DBFTable.ReadValue): Use the new
2380            read_attribute method of the dbf objects
2381    
2382    2003-11-03  Bernhard Herzog  <[email protected]>
2383    
2384            * Extensions/profiling/profiling.py (popup_dialog_box): New config
2385            variable to indicate whether the result should be shown in a
2386            dialog box
2387            (profile_screen_renderer, time_screen_renderer): Only show a
2388            dialog box if popup_dialog_box is true.
2389            (profile_screen_renderer): Flush stdout after the printing the
2390            first part of the "profiling..." message
2391    
2392            * Thuban/UI/baserenderer.py
2393            (BaseRenderer.draw_shape_layer_incrementally): Cache the pens and
2394            brushes for the groups so that they're not created over and over
2395            again
2396    
2397            * Thuban/Model/classification.py (Classification.__getattr__)
2398            (Classification._compile_classification)
2399            (Classification._clear_compiled_classification): New. Methods to
2400            manage a 'compiled' representation of the classification groups
2401            which is created on demand
2402            (Classification.InsertGroup, Classification.RemoveGroup)
2403            (Classification.ReplaceGroup): reset the compiled representation
2404            (Classification.FindGroup): Use the compiled representation to
2405            find the matching group
2406            (ClassGroupRange.GetRangeTuple): New. Return the range as a tuple
2407    
2408    2003-10-31  Bernhard Herzog  <[email protected]>
2409    
2410            * Thuban/Model/classification.py (Classification.SetDefaultGroup):
2411            Send a CLASS_CHANGED message
2412            (Classification.RemoveGroup): Send a CLASS_CHANGED message and do
2413            not return the removed group since it wasn't used.
2414    
2415            * test/test_classification.py
2416            (TestClassification.test_set_default_group): New. Test the
2417            SetDefaultGroup method
2418            (TestClassification.test_insert_group): New. Test the InsertGroup
2419            method
2420            (TestClassification.test_remove_group): New. Test the RemoveGroup
2421            method
2422            (TestClassification.test_replace_group): New. Test the
2423            ReplaceGroup method
2424    
2425    2003-10-31  Bernhard Herzog  <[email protected]>
2426    
2427            * test/test_classification.py (TestClassification.setUp):
2428            Subscribe to the CLASS_CHANGED messages
2429            (TestClassification.tearDown): New. Destroy the classification
2430            properly
2431            (TestClassification.test_defaults): Add tests for the default line
2432            width and whether no messages were sent yet
2433            (TestClassification.test_set_default_properties): Add tests for
2434            messages and setting the default line width
2435            (TestClassification.test_add_singleton)
2436            (TestClassification.test_add_range)
2437            (TestClassification.test_multiple_groups): Add tests for messages
2438    
2439    2003-10-31  Bernhard Herzog  <[email protected]>
2440    
2441            Some more refactoring in preparation for new tests:
2442    
2443            * test/test_classification.py (TestClassification.setUp): New.
2444            Instantiate the classification here. Update the test methods
2445            accordingly.
2446            (TestClassification.test_multiple_groups): Make sure that the two
2447            singletons matching 1 are considered different.
2448    
2449    2003-10-31  Bernhard Herzog  <[email protected]>
2450    
2451            * test/test_classification.py (red, green, blue): New. These
2452            constants were used in several cases. Update the relevant methods.
2453            (TestClassification.test_defaults)
2454            (TestClassification.test_set_default_properties)
2455            (TestClassification.test_add_singleton)
2456            (TestClassification.test_add_range)
2457            (TestClassification.test_multiple_groups)
2458            (TestClassification.test_deepcopy): New. These were formerly all
2459            part of the single method test.
2460            (TestClassification.test_deepcopy): Removed.
2461            (TestClassIterator): Removed. The test case is now a method of
2462            TestClassification since it tests part of the public interface of
2463            Classification
2464            (TestClassification.test_iterator): New. Used to be
2465            TestClassIterator effectively
2466    
2467    2003-10-31  Jan-Oliver Wagner <[email protected]>
2468    
2469            GUIfied the functions of the profiling extension.
2470    
2471            * /Extensions/profiling/__init__.py: New: Init to make this
2472            directory a package.
2473    
2474            * Extensions/profiling/profiling.py: Moved menu entries to
2475            the Extensions menu. Applied _() for strings.
2476            (profile_screen_renderer): Catch the detailed printout and present
2477            it in a dialog.
2478            (time_screen_renderer): Raise a dialog to present the result instead
2479            of printing it to stdout.
2480    
2481    2003-10-31  Bernhard Herzog  <[email protected]>
2482    
2483            * test/test_classification.py (TestClassGroupProperties)
2484            (TestClassGroup, TestClassGroupDefault, TestClassGroupRange)
2485            (TestClassGroupSingleton, TestClassIterator, TestClassification):
2486            Split TestClassification into several classes, one for each class
2487            being tested. TestClassification itself now only tests
2488            Classification. This split makes changes to the tests a bit easier
2489    
2490    2003-10-31  Bernhard Herzog  <[email protected]>
2491    
2492            * Extensions/profiling/profiling.py: New. Extension to measure
2493            Thuban performance
2494    
2495    2003-10-31  Frank Koormann <[email protected]>
2496    
2497            Added two items to legend popup menu: Remove Layer and Show Layer Table
2498    
2499            * Thuban/UI/legend.py (LegendPanel._OnRemoveLayer,
2500            LegendPanel._OnShowTable): New event handlers, call the corresponding
2501            mainwindow methods.
2502            (LegendTree._OnRightClick): Added items to popup menu.
2503    
2504    2003-10-30  Bernhard Herzog  <[email protected]>
2505    
2506            * Thuban/UI/dialogs.py (ThubanFrame.__init__): Handle
2507            EVT_WINDOW_DESTROY
2508            (ThubanFrame.OnDestroy): New. Handler for EVT_WINDOW_DESTROY. Does
2509            nothing but is convenient for the derived classes.
2510    
2511            * Thuban/UI/tableview.py
2512            (TableFrame.OnDestroy, LayerTableFrame.OnDestroy): New.
2513            Unsubscribe the messages here not in OnClose because that might
2514            get called multiple times. Fixes RT #2196
2515            (TableFrame.OnClose, LayerTableFrame.OnClose): Removed. Not needed
2516            anymore.
2517    
2518            * README: Update the minimum requirement for wxPython. Since we
2519            now use the EVT_WINDOW_DESTROY event, we need at least 2.4.0.4,
2520            the version in which that was introduced for all platforms
2521    
2522    2003-10-30  Frank Koormann <[email protected]>
2523    
2524            * Thuban/UI/join.py (JoinDialog.OnJoin): Wrapped the major parts of
2525            the join process in a ThubanBeginBusyCursor, ThubanEndBusyCursor
2526            frame.
2527    
2528    2003-10-30  Jan-Oliver Wagner <[email protected]>
2529    
2530            Improved APR import extension, added further EPSG definitions
2531            and some cleanup regarding string class.
2532    
2533            * test/test_proj.py (TestProjection.test_get_projection_units_geo):
2534            Added test for alias 'longlat'.
2535    
2536            * Resources/Projections/epsg-deprecated.proj: New. Contains
2537            deprecated EPSG definitions.
2538    
2539            * Extensions/importAPR/odb.py (ODBBaseObject.TreeInfo): Added
2540            the variable names for objects.
2541    
2542            * Extensions/importAPR/apr.py (APR_BLnSym, APR_BMkSym, APR_BShSym): New.
2543            Copied from importAPR and provided with documentation.
2544    
2545            * Extensions/importAPR/importAPR.py (APR_BLnSym, APR_BMkSym, APR_BShSym):
2546            Moved to apr.py.
2547            (APR_View): Added object ref 'ITheme'.
2548    
2549            * Thuban/Lib/fileutil.py, Thuban/UI/proj4dialog.py: Replaced string
2550            split function by corresponding use of the string class method.
2551    
2552            * Thuban/Model/xmlwriter.py: Replaced string replace function by
2553            corresponding string method.
2554    
2555    2003-10-29  Bernhard Herzog  <[email protected]>
2556    
2557            * Thuban/UI/baserenderer.py
2558            (BaseRenderer.draw_shape_layer_incrementally): Speed up the
2559            special case of a classification that only has the default group
2560    
2561    2003-10-27  Bernhard Herzog  <[email protected]>
2562    
2563            * po/fr.po, po/es.po: Updated translations from Daniel Calvelo
2564    
2565            * po/de.po: Update.
2566    
2567            * Thuban/UI/application.py
2568            (ThubanApplication.ShowExceptionDialog): Handle translation of the
2569            dialog message properly
2570    
2571    2003-10-27  Bernhard Herzog  <[email protected]>
2572    
2573            Rework how localization works so that we use wx's translation
2574            functions when running Thuban as a normal application but not when
2575            we don't need any UI, such as in the test suite. See the comment
2576            in Thuban/__init__.py for details
2577    
2578            * Thuban/__init__.py (_): Add one level of indirection to make the
2579            translation handling more flexible and to make it possible to use
2580            either wx's translation services or not.
2581            (gettext_identity, translation_function_installed)
2582            (install_translation_function): New function to help with this
2583    
2584            * Thuban/UI/__init__.py: Install the wx specific translation
2585            function if it's OK to do that
2586    
2587            * test/support.py (initthuban): Install a dummy translation
2588            function so that importing Thuban.UI doesn't install a wx specific
2589            one for which would need to import wxPython
2590    
2591    2003-10-27  Bernhard Herzog  <[email protected]>
2592    
2593            * HOWTO-Release: Source archives should be created first and the
2594            binary packages should be created from the source archives.
2595            There's an official debian package now so there's no need to test
2596            the rpm on debian anymore
2597    
2598    2003-10-27  Bernhard Herzog  <[email protected]>
2599    
2600            Several rendering changes:
2601    
2602             - Render the selection into a separate bitmap so that only that
2603               bitmap needs to be redrawn when the selection changes
2604    
2605             - Render incrementally showing previews and allowing interaction
2606               before rendering is complete
2607    
2608             - Update the renderer interface a bit. Most parameters of
2609               RenderMap are now parameters of the constructor
2610    
2611            * Thuban/UI/baserenderer.py (BaseRenderer.__init__): Add the map
2612            and the update region as parameters. Update the doc-string
2613            (BaseRenderer.render_map_incrementally): New. Generator function
2614            to renders the map incrementally
2615            (BaseRenderer.render_map): Remove the map argument (it's now in
2616            the constructor) and simply iterate over the
2617            render_map_incrementally generator to draw the map.
2618            (BaseRenderer.draw_shape_layer_incrementally)
2619            (BaseRenderer.draw_shape_layer): Renamed to
2620            draw_shape_layer_incrementally and changed into a generator that
2621            yields True every 500 shapes. Used by render_map_incrementally to
2622            render shape layers incrementally
2623    
2624            * Thuban/UI/renderer.py (ScreenRenderer.RenderMap): Removed the
2625            map and region parameters which are now in the constructor
2626            (ScreenRenderer.RenderMapIncrementally): New. Public frontend for
2627            the inherited render_map_incrementally.
2628            (BaseRenderer.draw_shape_layer): Removed.
2629            (ScreenRenderer.draw_selection_incrementally): New. The selection
2630            drawing part of the removed draw_shape_layer as a generator
2631            (ScreenRenderer.layer_shapes): Update because of the region
2632            parameter change
2633            (ExportRenderer.__init__): New. Extend the inherited constructor
2634            with the destination region for the drawing
2635            (ExportRenderer.RenderMap): Removed the map and region parameters
2636            which are now in the constructor
2637    
2638            * Thuban/UI/view.py (MapCanvas.PreviewBitmap): New. Return a
2639            bitmap suitable for a preview in a tool
2640            (CanvasPanTool.MouseMove): Use the PreviewBitmap method to get the
2641            bitmap
2642            (MapPrintout.draw_on_dc): Adapt to new renderer interface
2643            (MapCanvas.OnPaint): Handle drawing the selection bitmap if it
2644            exists
2645            (MapCanvas.OnIdle): Update the logic to deal with incremental
2646            rendering and the selection bitmap
2647            (MapCanvas._do_redraw): Handle the instantiation of the render
2648            iterator and the redraws during rendering
2649            (MapCanvas._render_iterator): New. Generator to incrementally
2650            redraw both bitmaps
2651            (MapCanvas.Export): Adapt to new renderer interface.
2652            (MapCanvas.full_redraw): Reset the selection bitmap and the
2653            renderer iterator too
2654            (MapCanvas.redraw_selection): New. Force a redraw of the selection
2655            bitmap
2656            (MapCanvas.shape_selected): Only redraw the selection bitmap
2657    
2658            * test/test_baserenderer.py
2659            (TestBaseRenderer.test_polygon_no_projection)
2660            (TestBaseRenderer.test_raster_no_projection)
2661            (TestBaseRenderer.test_point_map_projection)
2662            (TestBaseRenderer.test_point_layer_and_map_projection)
2663            (TestBaseRenderer.test_point_layer_projection)
2664            (TestBaseRenderer.test_point_with_classification): Adapt to new
2665            renderer interface
2666    
2667    2003-10-24  Bernhard Herzog  <[email protected]>
2668    
2669            * libraries/thuban/wxproj.cpp (draw_polygon_shape)
2670            (point_in_polygon_shape, shape_centroid): Raise an exception if
2671            the shape can't be read. Previously invalid shape ids would lead
2672            to a segfault.
2673    
2674            * test/test_wxproj.py (TestShapeCentroid.test_invalid_shape_id):
2675            New. test whether an exception is raised for invalid shape ids
2676    
2677    2003-10-24  Jan-Oliver Wagner <[email protected]>
2678    
2679            * Thuban/Model/proj.py (Projection.GetProjectedUnits): Added 'longlat'
2680            as alias for 'latlong'.
2681    
2682            * Thuban/UI/projdialog.py (ProjFrame.__init__): Added 'longlat'
2683            as alias for 'latlong'.
2684    
2685    2003-10-24  Jan-Oliver Wagner <[email protected]>
2686    
2687            * Thuban/UI/projdialog.py (ProjFrame.proj_selection_changed): Set
2688            the projection even for the UnknownPanel.
2689            (UnknownProjPanel.__init__): Define the text and create the textctrl
2690            widget.
2691            (UnknownProjPanel._DoLayout): Replaced static text widget by the
2692            textctrl created in __init__.
2693            (UnknownProjPanel.SetProjection): Set the text for the text ctrl
2694            including the parameters of the projection.
2695            
2696    2003-10-24  Jan-Oliver Wagner <[email protected]>
2697    
2698            * Resources/Projections/epsg.proj: New. This is a list of
2699            EPSG codes with parameters for proj. The list has been
2700            generated using devtools/create_epsg.py based on the
2701            file nad/epsg of the proj 4.4.7 package. Four projection
2702            definitions have been deleted as they are not accepted by proj:
2703            "CH1903+ / LV95", "Bern 1898 (Bern) / LV03C", "CH1903 / LV03"
2704            and "HD72 / EOV".
2705    
2706    2003-10-22  Bernhard Herzog  <[email protected]>
2707    
2708            Some more tweaks to the projection dialog which should fix RT
2709            #1886.
2710    
2711            * Thuban/UI/projlist.py (ProjectionList.Destroy): Unsubscribe from
2712            the ProjFile's messages and call the base class methods correctly
2713            (ProjectionList.SelectProjection): Set the wxLIST_STATE_FOCUSED
2714            flag on the newly selected item too. Otherwise some other item is
2715            focused and the first time the focus is moved with the keyboard
2716            the selection moves in unexpected ways.
2717    
2718            * Thuban/UI/projdialog.py (ProjFrame.__init__): Do not set the
2719            focus on the OK button, only on the projection list. That way the
2720            list really has the focus initially
2721            (ProjFrame.OnClose): Call the projection list's Destroy method to
2722            make it unsubscribe all messages
2723    
2724    2003-10-21  Bernhard Herzog  <[email protected]>
2725    
2726            Rework the projection dialog to fix a few bugs, including RT 2166
2727            and most of 2168
2728    
2729            * Thuban/UI/projlist.py: New. The class ProjectionList is a
2730            special wxListCtrl to show a list of projections in a more MVC
2731            fashion
2732    
2733            * Thuban/UI/projdialog.py (ProjFrame): Substantial changes
2734            throughout the class. The main change is to use the ProjectionList
2735            class instead of a normal wxListBox. Also, add an explicit
2736            "Unknown" projection to the projection choice control.
2737            (ProjPanel.__init__): Add an "unknown" ellipsoid
2738            (TMPanel.__init__, LCCPanel.__init__): Tweak the order of
2739            instantiation of the panel's controls to make the tab-order more
2740            natural
2741    
2742    2003-10-21  Bernhard Herzog  <[email protected]>
2743    
2744            * test/test_load.py (TestSingleLayer.file_contents)
2745            (TestSingleLayer.test): Add non-ascii characters to the titles of
2746            session, map and layer. This is effectively a port of the
2747            TestUnicodeStrings test in test_load_0_8.py which for some reason
2748            was only added there.
2749    
2750            * test/test_load_0_9.py (TestSingleLayer.file_contents)
2751            (TestSingleLayer.test): Same as in test_load.py: add non-ascii
2752            characters to the titles of session, map and layer,.
2753    
2754    2003-10-21  Bernhard Herzog  <[email protected]>
2755    
2756            Add EPSG projection handling to .thuban files
2757    
2758            * test/test_save.py (SaveSessionTest.dtd)
2759            (SaveSessionTest.testEmptySession)
2760            (SaveSessionTest.testLayerProjection)
2761            (SaveSessionTest.testRasterLayer)
2762            (SaveSessionTest.testClassifiedLayer)
2763            (SaveSessionTest.test_dbf_table)
2764            (SaveSessionTest.test_joined_table)
2765            (SaveSessionTest.test_save_postgis): Update to 1.0-dev namespace
2766            (SaveSessionTest.testSingleLayer): Update to 1.0-dev namespace and
2767            use a and epsg projection to test saving them
2768    
2769            * test/test_load.py (LoadSessionTest.dtd): Update to 1.0-dev
2770            namespace
2771            (TestLayerVisibility.file_contents, TestLabels.file_contents)
2772            (TestLayerProjection.file_contents)
2773            (TestRasterLayer.file_contents, TestJoinedTable.file_contents)
2774            (TestPostGISLayer.file_contents)
2775            (TestPostGISLayerPassword.file_contents)
2776            (TestLoadError.file_contents, TestLoadError.test): Update to use
2777            1.0-dev namespace
2778            (TestSingleLayer.file_contents, TestSingleLayer.test): Update to
2779            use 1.0-dev namespace and use an EPSG projection to test whether
2780            loading it works
2781    
2782            * test/test_load_0_9.py: New. Effectively a copy of test_load.py
2783            as of Thuban 0.9. These are now tests to determine whether Thuban
2784            can still read files generated by Thuban 0.9
2785    
2786            * Thuban/Model/save.py (SessionSaver.write)
2787            (SessionSaver.write_session): Use the 1.0 dtd and 1.0-dev
2788            namespace
2789            (SessionSaver.write_projection): Write the projection's epsg
2790            attribute
2791    
2792            * Thuban/Model/load.py (SessionLoader.__init__): Also accept the
2793            thuban-1.0-dev.dtd namespace
2794            (SessionLoader.check_attrs): Allow a callable object as conversion
2795            too
2796            (SessionLoader.start_projection, SessionLoader.end_projection)
2797            (SessionLoader.start_parameter): Handle the epsg attribute and
2798            rename a few instance variables to lower case
2799    
2800            * Resources/XML/thuban-1.0.dtd: New. Only difference to
2801            thuban-0.9.dtd is the epsg attribute for projections.
2802    
2803    2003-10-21  Bernhard Herzog  <[email protected]>
2804    
2805            * test/runtests.py (main): Let the user specify which tests to run
2806            on the command line
2807    
2808            * test/support.py (ThubanTestResult.getDescription): Override to
2809            give a better short description. The description can be used as a
2810            parameter to run_tests to run that particular test in isolation.
2811    
2812    2003-10-21  Frank Koormann   <[email protected]>
2813    
2814            Popup menu for legend. Scheduled for the 1.2 release this was too
2815            simple to implement: The popup menu is bound to the legend tree, while
2816            the events are hanlded by its anchestor, the legend panel. This
2817            allows reuse of all the event handlers already implemented for the
2818            legend toolbar buttons.
2819    
2820            * Thuban/UI/legend.py (LegendPanel.__init__): EVT_MENU macros
2821            to add handlers for the events issued by the popup menu.
2822            (LegendPanel._OnToggleVisibility): Handler for toggling layer
2823            visibility event
2824            (LegendPanel._OnProjection): Handler for layer projection event.
2825            (LegendTree.__init__): Added EVT_TREE_ITEM_RIGHT_CLICK
2826            (LegendTree._OnRightClick): Event handler for right click, select item
2827            and pop up menu.
2828            (LegendTree.ToggleVisibility): Toggle layer visibility
2829            (LegendTree.LayerProjection): Raise layer projection dialog for
2830            current layer.
2831    
2832    2003-10-21  Bernhard Herzog  <[email protected]>
2833    
2834            * Resources/Projections/defaults.proj: Use correct DOCTYPE
2835            declaration. The top-level element is projectionlist not projfile
2836    
2837    2003-10-20  Bernhard Herzog  <[email protected]>
2838    
2839            * Thuban/UI/projdialog.py (ProjFrame.write_proj_file): New. helper
2840            method to write a projfile and display a busy cursor and error
2841            dialogs.
2842            (ProjFrame._OnSave, ProjFrame._OnAddToList, ProjFrame._OnImport)
2843            (ProjFrame._OnExport, ProjFrame._OnRemove): Use write_proj_file
2844            (ProjFrame.__FillAvailList): Translate "<None>" too and display a
2845            busy cursor while loading the user and system prj files.
2846    
2847    2003-10-16  Bernhard Herzog  <[email protected]>
2848    
2849            * Thuban/Model/resource.py (projfile_cache): Introduce a cache for
2850            ProjFile objects
2851            (clear_proj_file_cache): New function to clear the cache. Mainly
2852            useful for use by the test suite
2853            (read_proj_file): Use the cache.
2854    
2855            * test/test_proj.py (TestProjFile): Clarify the doc-string
2856            (ProjFileReadTests): Update doc-string
2857            (ProjFileReadTests.test_get_system_proj_file): Check whether the
2858            system proj files is cached.
2859            (ProjFileLoadTestCase): New base class for the proj file tests
2860            derived from support.FileLoadTestCase to provide some common
2861            behavior.
2862            (TestLoadingProjFile)
2863            (TestLoadingProjFileWithEmptyProjectionlist.file_contents)
2864            (TestProjFileWithInvalidParameters.file_contents): Derive from
2865            ProjFileLoadTestCase
2866            (TestLoadingProjFile.test_caching): New. Test whether the cache
2867            works
2868    
2869    2003-10-16      Silke Reimer    <[email protected]>
2870    
2871            * debian/*: New directory with configuration files for building a thuban
2872              deb-package.
2873    
2874    2003-10-14  Bernhard Herzog  <[email protected]>
2875    
2876            * test/test_proj.py: Execute support.run_tests when run as
2877            __main__ so that missing unsubscribes are detected
2878            (TestProjFile.tearDown): Destroy the proj_file properly
2879    
2880    2003-10-14  Bernhard Herzog  <[email protected]>
2881    
2882            * Thuban/Model/messages.py (PROJECTION_ADDED)
2883            (PROJECTION_REPLACED, PROJECTION_REMOVED): New message types for
2884            the ProjFile objects
2885    
2886            * Thuban/Model/proj.py (ProjFile): Derive from Publisher so we can
2887            easily send messages when the projections change
2888            (ProjFile.Add, ProjFile.Remove, ProjFile.Replace): Issue messages
2889            when the change was successful
2890    
2891            * test/test_proj.py (TestProjFile.setUp): Subscribe to some of the
2892            proj file messages
2893            (TestProjFile.test_add_remove)
2894            (TestProjFile.test_remove_non_existing)
2895            (TestProjFile.test_replace)
2896            (TestProjFile.test_replace_non_existing): Test whether the right
2897            messages are sent
2898    
2899    2003-10-14  Bernhard Herzog  <[email protected]>
2900    
2901            * test/test_proj.py (TestProjFile.test): Refactor into several
2902            tests
2903            (TestProjFile.test_add_remove)
2904            (TestProjFile.test_remove_non_existing)
2905            (TestProjFile.test_replace)
2906            (TestProjFile.test_replace_non_existing): Some of the new
2907            individual test cases
2908            (TestProjFileSimple): New class for the rest of the test cases
2909            that came out of the refactoring
2910            (ProjFileTest): Derive from xmlsupport.ValidationTest so that the
2911            derived classes don't have to
2912    
2913    2003-10-13  Bernhard Herzog  <[email protected]>
2914    
2915            Add an optional EPSG code to the projection objects and extend the
2916            .proj file format accordingly.
2917    
2918            * Resources/XML/projfile.dtd (element projection): Add epsg
2919            attribute
2920    
2921            * Thuban/Model/proj.py (Projection.__init__): New parameter and
2922            instance variable epsg. Update doc-string
2923            (Projection.EPSGCode, Projection.Label): New methods to provide
2924            access to EPSG code and a label for use in dialogs
2925    
2926            * Thuban/Model/resource.py (ProjFileReader.start_projection)
2927            (ProjFileReader.end_projection, ProjFileSaver.write_projfile):
2928            Handle the epsg code attribute when reading or writing proj files
2929    
2930            * Thuban/UI/projdialog.py (ProjFrame._OnSave)
2931            (ProjFrame._OnAddToList, ProjFrame.__DoOnProjAvail)
2932            (ProjFrame.__FillAvailList): Use the projection's Label method to
2933            get the string for the list box
2934    
2935            * test/test_proj.py (TestProjection.test_label)
2936            (TestProjection.test_label_epsg)
2937            (TestProjection.test_epsgcode_for_non_epsg_projection)
2938            (TestProjection.test_epsgcode_for_real_epsg_projection): New tests
2939            for the label and EPSGCode methods
2940            (WriteProjFileTests.doTestWrite, WriteProjFileTests.test_write)
2941            (WriteProjFileTests.test_write_empty_file): Create the ProjFile
2942            objects in the test cases and put the expected contents into the
2943            test case methods too. Update doTestWrite accordingly
2944            (TestLoadingProjFile)
2945            (TestLoadingProjFileWithEmptyProjectionlist): New classes with the
2946            read tests from TestProjFile.
2947            (TestProjFile.doTestRead, TestProjFile.testRead): Removed. These
2948            tests are now in the new classes.
2949            (sample_projfile, sample_projfile_data)
2950            (sample_projfile2, sample_projfile_data2): Removed. Not used
2951            anymore.
2952            (TestProjFile.test_read_unreadable_file): No need to reset the
2953            permissions at the end anymore since we use a unique filename
2954    
2955    2003-10-13  Bernhard Herzog  <[email protected]>
2956    
2957            * test/test_proj.py: Some more refactoring of the test cases
2958            (ProjFileTest): New base class for the proj file tests.
2959            (TestProjFile): Derive from ProjFileTest
2960            (TestProjFile.test_read_unreadable_file)
2961            (TestProjFile.test_read_empty_file, TestProjFile.doTestRead): Use
2962            the new filename method to get a unique filename
2963            (TestProjFile.doTestWrite, TestProjFile.testWrite): Removed.
2964            (WriteProjFileTests): New class for proj file write tests.
2965            Contains the write test that were in TestProjFile originally.
2966    
2967    2003-10-13  Bernhard Herzog  <[email protected]>
2968    
2969            * test/test_proj.py (TestProjFile.testRead)
2970            (TestProjFile.test_read_non_existing_file)
2971            (TestProjFile.test_read_unreadable_file)
2972            (TestProjFile.test_read_empty_file): Split into several methods.
2973    
2974    2003-10-10  Bernhard Herzog  <[email protected]>
2975    
2976            * Thuban/UI/sizers.py: New file with custom sizers.
2977    
2978            * Thuban/UI/projdialog.py (ProjFrame.build_dialog): Instantiate
2979            all projection type specific panels and put them into a
2980            NotebookLikeSizer. This way the dialog doesn't change its size
2981            when a different projection is selected
2982            (ProjFrame.__init__): Rename projection_panels
2983            projection_panel_defs and reuse projection_panels for a list of
2984            the instantiated panels.
2985            (ProjFrame._show_proj_panel, ProjFrame.__DoOnProjAvail)
2986            (ProjFrame.__DoOnProjChoice): Changes due to the new handling of
2987            the panels
2988            (UnknownProjPanel._DoLayout): Place the newlines in the message
2989            differently to make the panel narrower.
2990            (TMPanel._DoLayout): Layout the parameters in one column.
2991    
2992    2003-10-10  Bernhard Herzog  <[email protected]>
2993    
2994            * Thuban/UI/projdialog.py (ProjFrame.build_dialog): New method
2995            that contains all the setup for the dialog's widgets, layout and
2996            event handling.
2997            (__): Call build_dialog to build the dialog.
2998            (ProjFrame.__set_properties, ProjFrame.__do_layout): Removed.
2999            Their functionality is now in build_dialog
3000            (ProjFrame.__VerifyButtons, ProjFrame.__VerifyButtons)
3001            (ProjFrame.__DoOnProjAvail, ProjFrame.__DoOnProjAvail)
3002            (ProjFrame.__DoOnProjChoice): Small updates due to slightly
3003            different widget names and hierarchy introduced with build_dialog.
3004    
3005    2003-10-10  Bernhard Herzog  <[email protected]>
3006    
3007            * README: Fix typo.
3008    
3009    2003-10-09  Bernhard Herzog  <[email protected]>
3010    
3011            * Thuban/Model/proj.py (ProjFile.Add): Do not check whether the
3012            projection is already in the list. This is *a lot* faster when
3013            loading files with hundreds of projections since it saves a linear
3014            search. OTOH this will allow adding the same projection to the
3015            user.proj file multiple times in the projection dialog but we'll
3016            deal with that later
3017    
3018    2003-10-09  Jan-Oliver Wagner <[email protected]>
3019    
3020            * devtools: New. Directory for developer tools that are not intended
3021            for the regular user.
3022    
3023            * devtools/create_epsg.py: New. Convert the epsg file of proj into
3024            a python .proj file.
3025    
3026    2003-10-09  Bernhard Herzog  <[email protected]>
3027    
3028            * test/test_proj.py
3029            (TestProjection.test_get_parameter_without_equals_sign): New. Test
3030            whether GetParameter handles parameters without "=" sign correctly
3031    
3032            * Thuban/Model/proj.py (Projection.GetParameter): Handle
3033            parameters that do not contain a "=". Update the doc-string
3034    
3035    2003-10-08  Bernhard Herzog  <[email protected]>
3036    
3037            * Thuban/UI/projdialog.py (ProjFrame.__set_properties): Remove the
3038            length limit on the projname text control
3039    
3040    2003-10-08  Bernhard Herzog  <[email protected]>
3041    
3042            * test/test_proj.py (TestProjection.test_get_projection_units_geo)
3043            (TestProjection.test_get_projection_units_normal): New. Tests for
3044            the Projection.GetProjectedUnits method
3045    
3046    2003-10-08  Jan-Oliver Wagner <[email protected]>
3047    
3048            * Thuban/Model/resource.py (get_user_proj_file): small bug-fix:
3049            Added missing 'val' parameter.
3050    
3051    2003-10-08  Bernhard Herzog  <[email protected]>
3052    
3053            * Thuban/UI/projdialog.py (ProjFrame.__DoOnProjAvail): When the
3054            projection type of the currently selected projection is not known,
3055            i.e. there's no panel for it, use the UnknownProjPanel
3056            (ProjFrame.__DoOnProjChoice, ProjFrame._show_proj_panel): Split
3057            the actual replacing of the proj panel into the new method
3058            _show_proj_panel.
3059            (UnknownProjPanel): Add doc-string.
3060            (UnknownProjPanel._DoLayout): Insert a newline into the text so
3061            that the panel is not so wide.
3062    
3063    2003-10-08  Bernhard Herzog  <[email protected]>
3064    
3065            * Thuban/Model/resource.py (read_proj_file): Return the warnings
3066            too. Update the doc-string
3067            (get_proj_files): Removed. It wasn't used anywhere
3068            (get_system_proj_files, get_system_proj_file): Rename to
3069            get_system_proj_file and return the ProjFile object and not a list
3070            of ProjFile objects. Update the callers.
3071            (get_user_proj_files, get_user_proj_file): Rename to
3072            get_user_proj_file return the ProjFile object and not a list of
3073            ProjFile objects. Update the callers.
3074            (ProjFileReader.__init__): New instance variable for the warnings.
3075            Rename the __pf ivar to projfile. Update the methods referring to
3076            __pf
3077            (ProjFileReader.end_projection): Catch any errors raised when
3078            instantiating the projection and record that as an error. The
3079            projection will not be in the final ProjFile object.
3080            (ProjFileReader.GetWarnings): New method to return the warnings.
3081    
3082            * Thuban/UI/projdialog.py (ProjFrame.show_warnings): New method to
3083            show the warnings from the projfile reader
3084            (ProjFrame._OnImport): Deal with any warnings returned by
3085            read_proj_file
3086            (ProjFrame.__FillAvailList): Deal with any warnings returned by
3087            get_system_proj_file or get_user_proj_file.
3088    
3089            * test/test_proj.py (TestProjFile.doTestRead): Check the warnings.
3090            (TestProjFileWithInvalidParameters.file_contents): New test cases
3091            to test whether read_proj_file handles invalid projection
3092            parameters correctly
3093            (TestProjFile.test_get_system_proj_file): New. Simple test for
3094            resource.get_system_proj_file
3095    
3096    2003-10-07  Bernhard Herzog  <[email protected]>
3097    
3098            * test/test_derivedshapestore.py
3099            (TestDerivedShapeStoreExceptions.tearDown): Clear the session
3100            properly so that the temporary directories get deleted correctly
3101    
3102    2003-10-06  Bernhard Herzog  <[email protected]>
3103    
3104            Handle the title changes in a proper MVC way.
3105    
3106            * Thuban/UI/mainwindow.py (MainWindow.__init__): Subscribe to the
3107            canvas' TITLE_CHANGED messages
3108            (MainWindow.update_title): New. Update the main window's title
3109            (MainWindow.__SetTitle): Removed. Use update_title instead.
3110            (MainWindow.SetMap): Use update_title instead of __SetTitle
3111            (MainWindow.RenameMap): Do change the window title explicitly
3112            here. That's handled in a proper MVC way now.
3113            (MainWindow.title_changed): New. Subscriber for the TITLE_CHANGED
3114            messages
3115    
3116            * Thuban/Lib/connector.py (Conduit): New class to help classes
3117            that forward messages
3118    
3119            * Thuban/UI/viewport.py: Forward the map's TITLE_CHANGED messages
3120            (ViewPort): Derive from Conduit instead of Publisher
3121            (ViewPort.Subscribe, ViewPort.Unsubscribe): Use the new base class
3122            when calling the inherited versions
3123            (ViewPort._subscribe_map, ViewPort._unsubscribe_map): New helper
3124            methods to subscribe and unsubscribe map messages
3125            (ViewPort.SetMap, ViewPort.Destroy): Use the new helper methods to
3126            handle the map subscriptions
3127            (ViewPort.Map, ViewPort.map_projection_changed)
3128            (ViewPort.layer_projection_changed): Add or update doc-strings
3129    
3130            * test/test_connector.py (TestPublisher.test_issue_simple): Fix
3131            typo
3132            (MyConduit): Helper class for the Conduit test.
3133            (TestConduit): Test cases for Conduit
3134    
3135            * test/test_connector.py: Use support.run_tests as main.
3136    
3137            * test/test_viewport.py (ViewPortTest.setUp): Also subscribe to
3138            the TITLE_CHANGED messages
3139            (ViewPortTest.test_forwarding_title_changed): New test to check
3140            whether the viewport forwards the map's TITLE_CHANGED messages
3141            (TestViewportWithPostGIS.tearDown): Call the map's Destroy method
3142            after the port's because the latter may require a still functional
3143            map.
3144    
3145    2003-10-06  Bernhard Herzog  <[email protected]>
3146    
3147            * Thuban/UI/application.py (ThubanApplication.maps_changed): Add
3148            doc-string
3149    
3150    2003-10-06  Bernhard Herzog  <[email protected]>
3151    
3152            * test/test_viewport.py (ViewPortTest.setUp)
3153            (SimpleViewPortTest.test_init_with_size): Move the test for the
3154            initial size as a constructor parameter from ViewPortTest.setUp
3155            method to a new separate test in SimpleViewPortTest.
3156    
3157    2003-10-06  Bernhard Herzog  <[email protected]>
3158    
3159            * test/test_viewport.py (MockView): New class derived from
3160            ViewPort with a mock implementation of GetTextExtent to be used in
3161            the test cases
3162            (ViewPortTest.setUp): Use MockView instead of ViewPort
3163    
3164            * Thuban/UI/viewport.py (ViewPort.GetTextExtent): Turn this method
3165            into what would be a "pure virtual function" in C++: always raise
3166            NotImplementedError. Mock implementations for test cases don't
3167            belong into the real code
3168    
3169    2003-10-02  Bernhard Herzog  <[email protected]>
3170    
3171            * test/test_layer.py (TestLayer.test_empty_layer): Explicitly
3172            close the dbf file we create so that it's contents have been
3173            written properly.
3174    
3175            * libraries/shapelib/shptree.c, libraries/shapelib/shpopen.c,
3176            libraries/shapelib/shapefil.h, libraries/shapelib/dbfopen.c:
3177            Update to shapelib 1.2.10
3178    
3179    2003-10-01  Jan-Oliver Wagner <[email protected]>
3180    
3181            * Thuban/UI/tree.py, Thuban/UI/main.py: Remove the #! line as
3182            it annoys lintian which warns about these files not being
3183            executable. The #! isn't necessary here since if you absolutely
3184            must execute them you can always say "python <filename>".
3185    
3186  2003-09-26  Bernhard Herzog  <[email protected]>  2003-09-26  Bernhard Herzog  <[email protected]>
3187    
3188          * Thuban/Model/classgen.py (GenQuantiles0): Removed since it's          * Thuban/Model/classgen.py (GenQuantiles0): Removed since it's
# Line 1421  Line 4606 
4606    
4607          * Thuban/Model/range.py, Thuban/version.py: Remove the #! line as          * Thuban/Model/range.py, Thuban/version.py: Remove the #! line as
4608          it annoys lintian which warns about these files not being          it annoys lintian which warns about these files not being
4609          executable. The #1 isn't necessary here since if you absolutely          executable. The #! isn't necessary here since if you absolutely
4610          must execute them you can always say "python <filename>".          must execute them you can always say "python <filename>".
4611    
4612          * Thuban/UI/renderer.py (ScreenRenderer.draw_shape_layer): Remove          * Thuban/UI/renderer.py (ScreenRenderer.draw_shape_layer): Remove
# Line 2536  Line 5721 
5721          Fix problem of hidden properties dialog under windows after double          Fix problem of hidden properties dialog under windows after double
5722          click on layer tree:          click on layer tree:
5723          The tree control always gets an Expanded / Collapsed event after          The tree control always gets an Expanded / Collapsed event after
5724          the ItemActivated  on double click, which raises the main window again.         We add a second ItemActivated event to the queue, which simply          the ItemActivated  on double click, which raises the main window again.
5725            We add a second ItemActivated event to the queue, which simply
5726          raises the already displayed window.          raises the already displayed window.
5727    
5728          * Thuban/UI/legend.py (LegendTree.__init__): Instance variable          * Thuban/UI/legend.py (LegendTree.__init__): Instance variable

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

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26