/[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 2067 by bh, Mon Feb 16 19:39:48 2004 UTC revision 2382 by joey, Mon Oct 4 17:03:29 2004 UTC
# Line 1  Line 1 
1    2004-10-04  Martin Schulze  <[email protected]>
2    
3            * Extensions/wms/test/test_parser.py
4            (TestWMSCapabilitiesParser.test_compareLists): Added missing
5            self-test for compareLists()
6            (TestWMSCapabilitiesParser.test_compareDicts): Added missing
7            self-test for compareDicts()
8            (TestWMSCapabilitiesParser.test_compareLists): Adding more tests
9            to verify the test routine fails with non-equal arguments
10            (TestWMSCapabilitiesParser.test_compareDicts): Adding more tests
11            to verify the test routine fails with non-equal arguments
12    
13    2004-10-03  Jan-Oliver Wagner <[email protected]>
14    
15            First elements for sizeable point objects.
16    
17            * Resources/XML/thuban-1.1.dtd: Added size attribute to cldata.
18    
19            * Data/iceland_sample_size.thuban: New. Sample for sized point objects.
20    
21            * test/test_load.py (ClassificationTest.TestLayers): Added SetSize in case
22            of a corresponding argument is given.
23            (TestSymbolSize): New. Test the size attribute of cldata.
24    
25            * Thuban/Model/classification.py: Removed some trailing whitespaces.
26            (ClassGroupProperties.__init__): Set default size.
27            (ClassGroupProperties.SetProperties): Set the size.
28            (ClassGroupProperties.GetSize): New. Return the size.
29            (ClassGroupProperties.SetSize): New. Set the size.
30            (ClassGroupProperties__eq__): Compare also size.
31            (ClassGroupProperties__repr__): Print also size.
32    
33            * Thuban/Model/load.py (SessionLoader.start_cldata): Also parse
34            the size attribute.
35    
36            * Thuban/UI/classifier.py (ClassDataPreviewer.Draw): Added doc-string.
37            Also, now there is a return value that indicates whether the drawing
38            size exceeded the given rect extent and if so the new extent.
39            Finally, point objects are drawn depending on the size. If either
40            the width or height is exceeded, the new extent is returned.
41            (ClassRenderer.Draw): Now when calling the previewer drawing function,
42            evaluate the return value and, if not None, adapt the grid widget size
43            accordingly and redraw again.
44    
45            * Thuban/UI/baserenderer.py (BaseRenderer.draw_shape_layer_incrementally):
46            If the draw function is for points, call it with the size as additional
47            parameter.
48            (BaseRenderer.draw_point_shape): Added additional, optional parameter for
49            the size. Compute the radius using the size.
50    
51            * Extensions/importAPR/apr.py (APR_BMkSym.GetThubanProp): Now
52            that Thuban supports size, apply this correctly.
53    
54            * Extensions/importAPR/importAPR.py: Bumped version to 0.1.1.
55    
56    2004-10-03  Jan-Oliver Wagner <[email protected]>
57    
58            * Doc/manual/thuban-manual-de.xml: Started translation of
59            Map chapter.
60    
61    2004-10-01  Martin Schulze  <[email protected]>
62    
63            * Extensions/wms/properties.py (wmsProperties.__init__): Extended
64            argument for general use through properties-dialog selector
65            
66            * Thuban/UI/classifier.py: Register properties dialog classes for
67            both provided layer classes/types.
68    
69            * Thuban/UI/mainwindow.py (MainWindow.OpenLayerProperties): The
70            map can be retrieved through the parent which is passed to the
71            constructor anyway and doesn't require an argument of its own,
72            required for the unification of arguments for general use through
73            properties-dialog selector.
74            (MainWindow.OpenOrRaiseDialog): Move the logic for checking
75            whether a dialog is already opened (and raising it to the users
76            attention) and creating a new dialog into a function of its own
77            (MainWindow.OpenLayerProperties): Use the new OpenOrRaiseDialog()
78            method
79            (MainWindow.OpenLayerProperties): Utilise the new ClassMapper for
80            global registration of properties dialog classes (which are indeed
81            layer-specific).
82    
83            * Thuban/UI/classifier.py (Classifier.__init__): Unify arguments
84            for general use through properties-dialog selector, the map can be
85            retrieved through the parent and doesn't require an argument of
86            its own.
87    
88            * Extensions/wms/wms.py: Register the properties dialog class for
89            the provided WMS layer
90    
91    2004-09-28  Jan-Oliver Wagner <[email protected]>
92    
93            New feature: Registry for Extensions.
94    
95            * Thuban/UI/extensionregistry.py: This module defines a registry for
96            Extensions.
97    
98            * Thuban/UI/about.py (About.__init__): Added description
99            of the registered extensions with all of the information.
100    
101            * Thuban/Model/extension.py (Extension): Improved doc-string.
102    
103            * Extensions/gns2shp/gns2shp.py, Extensions/importAPR/importAPR.py,
104            Extensions/bboxdump/bboxdump.py, Extensions/profiling/profiling.py,
105            Extensions/wms/wms.py: Added registration of the extension.
106    
107    2004-09-27  Bernhard Reiter <[email protected]>
108    
109            More fixes to svgexport to make used ids unique and
110            conforming to XML's Name production.
111    
112            * Extensions/svgexport/test/test_svgmapwriter.py: Added new tests
113            test_xml_id_constraints(), test_make_ide_nosetbaseid() and
114            test_make_id_nonintegersetid().  Switched SetID and SetBaseID.
115            Added Bernhard R. as author.
116            * Extensions/svgexport/svgmapwriter.py (make_id): Using "_" as
117            concatenation char now (makes test_make_ide_nosetbaseid() valid).
118            Also transform second id part with "%d" and catch the TypeError
119            to raise SVGMapWriterError (making test_make_id_nonintegersetid() ok).
120            Corrected typo inBernhard's author line.
121            (SetBaseID): Return the transformed base id. Transform characters
122            which are not alnum() or in ".-_" to binascii.b2a_hex(). Added
123            import binascii. If to be set string starts with "xml" or so, add "t".
124            (draw_shape_layer_incrementally): use the returned value of SetBaseID
125            for used_baseids checks.
126    
127    2004-09-25  Bernhard Herzog  <[email protected]>
128    
129            * test/test_layer.py (TestLayer.test_arc_layer_with_projection):
130            Remove a debug print and some tab characters.
131    
132    2004-09-25  Bernhard Reiter <[email protected]>
133    
134            * Extensions/svgexport/svgmapwriter.py: Added Bernhard R. as Author.
135            (SetBaseID, SetID, make_id): Improved docstring comments to explain
136            the interaction of the three functions and the XML id contrains.
137    
138    
139    2004-09-23  Jan-Oliver Wagner <[email protected]>
140    
141            * Doc/ThubanModel.xmi: New. UML file for Thuban Model
142            Module.
143    
144            * Doc/README: Added info on ThubanModel.xmi.
145    
146    2004-09-23  Jan-Oliver Wagner <[email protected]>
147    
148            * Doc/README: New. Some info about how to generate technical
149            documentation from the source code.
150            This text was send to the Thuban developer mailing list on
151            September 21st 2004 by Bernhard Reiter.
152    
153    2004-09-21  Bernhard Reiter <[email protected]>
154    
155            Improved the svgexport to only use unique ids. Will issues
156            an error message dialoge when two layer names are the same.
157            ShapeIDs are now added with a dash within the svg ids.
158    
159            * Extensions/svgexport/svgmapwriter.py (SVGMapWriterError): New.
160            * Extensions/svgexport/test/test_svgmapwriter.py: Added imports
161            (TestSVGRenderer): New test class with test_make_in() and
162            test_check_for_layer_name_clash()
163            * Extensions/svgexport/svgmapwriter.py (SVGRenderer): Fixed __init__()
164            and draw_shape_layer_incrementally() to not use a baseid twice,
165            satisfying test_check_for_layer_name_clash()
166            (VirtualDC.make_id): Use a dash between baseit and id, satisfies
167            test_make_in().
168            * Extensions/svexport/svgsaver.py: Import SVGMapWriterError, wxOK
169            and wxICON_HAND.
170            (write_to_svg): Put dc and rendering in a try statement and on
171            catching SVGmapWriterError notify the user and delete the target file.
172    
173    2004-09-20  Bernhard Reiter <[email protected]>
174    
175            * Model/base.by, Model/layer.py: Fixed typos in docstrings.
176    
177    2004-09-03  Jan Sch�ngel  <[email protected]>
178    
179            * Extensions/umn_mapserver/mapfile(MF_Class.add_thubanstyle): Fix a
180            small bug with the line color. Now the line color will now only set
181            if it is set in Thuban an not Transparent.
182            
183            * Extensions/umn_mapserver/mf_export(tblayer_to_map): Fixed a bug with
184            deleting the layers from mapfile. Now all layers will delete backwards
185            from the last.
186    
187    2004-08-20  Silke Reimer <[email protected]>
188    
189            * Thuban/Model/layer.py:
190            Fixes bug in projection handling: Otherwise very large region might not
191            have valid values in the layer's projection.
192    
193    2004-08-20  Silke Reimer <[email protected]>
194    
195            * Thuban/UI/about.py:
196            small changes to be consistent with coding style.
197              
198    2004-08-13  Martin Schulze  <[email protected]>
199    
200            * Extensions/wms/test/test_ogclib.py (TestOGCLib.compare_URLs):
201            Adjusted a comment
202    
203    2004-08-11  Silke Reimer <[email protected]>
204    
205            * Thuban/UI/about.py: Small changes to encoding related stuff to avoid
206                    too many and too enhanced imports of locale
207    
208    2004-08-10  Silke Reimer <[email protected]>
209    
210            * Thuban/UI/about.py: Fixed encoding problem of about dialog: Added
211                    function unicodeToLocale() to convert special characters to users
212                    locale encoding
213    
214    2004-08-10  Jan-Oliver Wagner <[email protected]>
215    
216            * Doc/technotes/coding_guidelines.txt: Added rule 'Method names start with
217            lower case letter'
218    
219    2004-08-09  Jan Sch�ngel  <[email protected]>
220    
221            * ChangeLog: Rewrite the last ChangeLog entry to follow
222            the standard way.
223    
224            * Extensions/umn_mapserver/mapfile: Moved the import AnnotationLayer to
225            the function where it is needed, because it don't works if it stands
226            at the beginning.
227            (MF_Layer.__init__): Removed the extra numclassed variable. Now
228            numclasses from the mapscript will be used.
229            (MF_Layer.get_index): New. Return the index of the layer in mapfile.
230            (MF_Layer.set_classes): New. A Classlist will be set to the layer.
231            (MF_Layer.set_metadata): New. A Metadata mapscript object will set.
232            (MF_Layer.remove_allclasses): New. All class of the layer will remove.
233            (MF_Map.create_new_layer): New. A new Layer is created and associated
234            with the mapscript object.
235            (MF_Map.set_layerorder): New. The Layer order like in thuban is set in
236            the mapscript.
237            (MF_Map.add_thubanlayer): Now a new layerobj is created if no one is
238            linked to the layer in thuban, else the layerobject linked to the
239            thubanlayer will be used.
240            AnnotationLayer will now store the filename of the shapefile.
241            (MF_Map.remove_layer): If a layer is removed the associated object
242            must be set new.
243            
244            * Extensions/umn_mapserver/mf_export.py(tb_layer_to_map): Add all
245            layers which are exists in thuban to the mapobj. All removed Layers
246            will be removed from the mapobj.
247            Added comments to all functions.
248            (thuban_to_map): No layer will be removed here.
249            
250            * Extensions/umn_mapserver/mf_handle.py
251            (_has_umn_mapobj_and_selectedlayer): Activating the layer menu. Now
252            Layersettings for the mapserver kann be edited.
253    
254            * Extensions/umn_mapserver/mf_import.py: Now all layers which are
255            imported, will be linked with the associated MF_Layer.
256            (import_mapfile): All layers, which are not selected, will be removed.
257            Disable the "import layer from mapfile" menu option.
258    
259            * Extensions/umn_mapserver/sample/iceland.map: Set the status of the
260            Annotation Layer from DEFAULT to OFF. The DEFAULT setting turns the
261            layer on permanently.
262    
263    2004-08-03  Jan Sch�ngel  <[email protected]>
264    
265            * Extensions/umn_mapserver/mapfile.py(MF_Metadata.remove_allmetadata):
266            New. This function removes all metadata
267            (MF_Layer.set_group): New. Set the group setting.
268            (MF_Layer.get_group): New. Get the group setting.
269            (MF_Map): Removed the extra numlayers variable, used the mapscript
270            parameter instead.
271            (MF_Map.get_numlayers): New. This get numlayers.
272            (MF_Map.remove_all_layers): New. Removes all layers from the mapobj.
273            (MF_Map.add_thubanlayer): Replaced the exception handling by a check
274            if the object is an instance. Also added the annotation layer here to
275            export, but only the layer is created in the mapfile.
276    
277            * Extensions/umn_mapserver/mf_export.py(export_mapfile): Removed
278            the check if a mapobj exist, because its not needed anymore. The
279            export function is only available if a mapobj exist.
280            Use the new function to remove all layers.
281            
282            * Extensions/umn_mapserver/mf_handle.py(Layer_Dialog): Added a group
283            option and the metadata button. The layer dialog is temporary disabled.
284            (Metadata_CustomDataTable): Added some functions to show the grid
285            correct.
286    
287            * Extensions/umn_mapserver/mf_import.py: Moved the code for showing
288            the number of layer from import_mapfile to this function.
289            (AnnotationLayer): New. This Class shows the Annotation layer in
290            thuban. The layer don't do anything. It's only to show the layer
291            and to save the layer order.
292            (add_annotationlayer): New. Import an annotation layer to thuban.
293            (select_layer2import): New. Import only layers to thuban and not
294            the other settings like projection or scalebar.
295            (create_new_mapfile): Moved the _has_umn_mapobj function and the
296            create_new_mapfile functions from mf_handle.py to mf_import.py.
297            
298            * Extensions/umn_mapserver/sample/iceland.map: Added the group
299            parameter to the roads and cultural layers. Also added a new
300            Annotation Layer for the cultural points.
301    
302            * Extensions/umn_mapserver/sample/iceland.html: Added the select
303            option for the annotation layer.
304    
305            * Extensions/umn_mapserver/sample/index.html: Added the start
306            parameter for the annotation layer.
307    
308    2004-08-01  Jan-Oliver Wagner <[email protected]>
309    
310            * Doc/manual/thuban-manual-de.xml (Chapter Session Management):
311            translation completed.
312    
313            * Doc/manual/thuban-manual.xml (Chapter Session Management):
314            Fixed unprecise description for Save Session.
315    
316    2004-07-31  Jan-Oliver Wagner <[email protected]>
317    
318            Started translation of Users Manual into german.
319    
320            * Doc/manual/thuban-manual-de.xml: New. German Users Manual.
321    
322            * Doc/manual/Makefile: Added build instructions for german
323            users manual.
324    
325            * Doc/manual/thuban-manual.xml: Minor corrections in Introduction.
326    
327    2004-07-28  Jan Sch�ngel  <[email protected]>
328    
329            * Extensions/umn_mapserver/mapfile.py(MF_Metadata): Changed all class
330            functions. Now all metadata will handle by the function and its not
331            needed to initialize it from outside. Therefor the associated mapobj
332            will be stored in the Metadata Object. So we can use the special
333            functions from the associated mapobj to get the Metadata.
334            Therefor all initialization code for the metadata is removed from the
335            other classes.
336            (MF_Layer): Added a function to get the metadata object.
337            (MF_Map): Added a function to set the mappath, the path where
338            the mapfile ist stored.
339    
340            * Extensions/umn_mapserver/mf_export.py(thuban_to_map): Changed the code
341            to set the extent in the mapfile. Now the code is set by the displayed
342            data in the Thuban-view.
343            (export_mapfile): The shapepath is now set empty, until relative
344            pathnames are supported.
345    
346            * Extension/umn_mapserver/mf_handle.py: Added a dialog to handle
347            metadata. Yet only mapfile metadata are supported. Layer and class
348            supported are not implemented.
349            Added a dialog to handle layer informations. The dialog only shows the
350            selected layer at the moment.
351    
352            * Extensions/umn_mapserver/mf_import.py(import_mapfile): Changed the
353            code for setting the extent in thuban. Now the extent is set to the
354            given extent from the mapfile.
355            Fixed a logical mistake. Now the extent is set when realy a layer is
356            loaded, and not if one is selected to load.
357    
358            * Extensions/umn_mapserver/sample/iceland.html: Added code to zoom and
359            move the shown map in the browser.
360    
361            * Extensions/umn_mapserver/sample/iceland.map: Added a new metadata
362            line to the mapobj and added metadata to the political layer.
363    
364            * Extensions/umn_mapserver/test/test_mapserver.py: Changed the test
365            for Metadata.
366    
367    2004-07-26  Martin Schulze  <[email protected]>
368    
369            * Thuban/Lib/classmapper.py (ClassMapper.has): Added the new
370            ClassMapper
371    
372            * test/test_classmapper.py (TestMapping.test_mapper): Added a Test
373            case for the new ClassMapper
374    
375    
376    2004-07-22  Bernhard Herzog  <[email protected]>
377    
378            * Thuban/UI/viewport.py (ViewPort.VisibleExtent): New.  Return the
379            visible extent of the map in projected coordinates
380    
381            * test/test_viewport.py (SimpleViewPortTest.test_default_size)
382            (SimpleViewPortTest.test_init_with_size): Add some VisibleExtent()
383            tests.
384            (SimpleViewPortTest.test_visible_extent): New. The real test for
385            VisibleExtent()
386    
387    2004-07-22  Bernhard Herzog  <[email protected]>
388    
389            * test/test_viewport.py: Use support.run_tests as the main
390            function when running asa script.
391    
392    2004-07-22  Jan Sch�ngel <[email protected]>
393    
394            * Extensions/umn_mapserver/mf_export.py: Added "import os"
395            Removed the old "import Thuban.UI.mainwindow" code.
396            (tbextent_to_map): Removed the extra function and at the code direct
397            to "thuban_to_map" function.
398            (write_creatorcomment): Added. Now a short comment is added to the
399            beginning of an generated mapfile.
400            (export_mapfile): Now the Path and filename are saved in to variables,
401            and not together in one variable. This is needed for the new
402            write_creatorcomment function.
403                    
404            * Extensions/umn_mapserver/mf_import.py (import_mapfile): Added the
405            import module "re". Also added Range and the ClassGroupRange import
406            from Thuban. Both are needed for the new range expression import.
407            (create_rangeexpression): Added. Creates a Range Expression in Thuban
408            style from a given mapfile expression.
409            (added_rasterlayer): Make some small code changes. The shapepath is
410            now stored in an extra variable and the clazz_name is set empty if no
411            class name set in the mapfile.
412            Changed the Error message for Range Expressions, becaus the new
413            function create a error string which will be shown in the dialog.
414    
415            * Extensions/umn_mapserver/test/test_mapserver.py: Added a test for the
416            range expression import.
417    
418    2004-07-21  Jan-Oliver Wagner <[email protected]>
419    
420            * Extensions/umn_mapserver/README: Added hint that
421            installation as root can be avoided. Removed all tabs.
422    
423    2004-07-16  Bernhard Herzog  <[email protected]>
424    
425            * test/test_viewport.py
426            (ViewPortTest.test_changing_map_projection): Check that changing
427            the projection of an empty map shown in a viewport doesn't lead to
428            exceptions in the viewport's handler for the
429            MAP_PROJECTION_CHANGED messages
430    
431            * Thuban/UI/viewport.py (ViewPort.map_projection_changed): Only
432            try to keep the same region visible when the map actually contains
433            something
434    
435    2004-07-15  Jan Sch�ngel <[email protected]>
436    
437            * Extensions/umn_mapserver/mapfile.py: Added a function to get the
438            mappath directly from the mapobj. Is needed because of the changes
439            in mf_import.py.
440            (MF_Layer.add_thubanclass): Added a new comment.
441            (MF_Map.set_extent): Fixed a bug with exporting empty mapobj. If the
442            mapobj is empty there is no extent get from thuban an so no one can
443            set to th mapobj.
444            
445            * Extensions/umn_mapserver/mf_import.py (import_mapfile): Updated
446            the discription.
447            Split the funktion in to three smaller ones. The new functions are
448            add_rasterlayer, add_polygonlayer and select_layer2import.
449            Removed the mapfilepath and filepath initialisation, because its know
450            include in the new functions.
451            Now nothing will be imported if cancel is pressed in the
452            layer choice dialog.
453    
454    2004-07-14  Jan Sch�ngel <[email protected]>
455    
456            * Extensions/umn_mapserver/mapfile.py: Added ClassGroupDefault to
457            import.
458            (MF_Symbolset): Removed the extra variable for numsymbols.
459            (MF_Class.__init__): Added a comment to the exception clause.
460            Removed the extent init, because it was not needed anymore.
461            (MF_Layer.add_thubanclass): Added the code to set the class name to
462            the expression value from thuban if no label is defined.
463            Added the code to export Range expressions from thuban to the mapfile.
464            (MF_Map.set_extent): Removed the exception and replace it by some if
465            code. If the size of a map is not defined the size will be set to 1,1.
466            This is necessary because if the extent is set, mapscript checks if
467            the size is greater than zero.
468            (MF_Web): Added the get and set function for the template.
469    
470            * Extensions/umn_mapserver/mf_export.py: Added the function to check
471            if a mapobject exists and used it to set the status of the menu items.
472            If no mapfile exists the settings could not be edditied.
473            Define after which menuitem the exportitem will include.
474            
475            * Extensions/umn_mapserver/mf_handle.py: Removed the import
476            Thuban.UI.mainwindow clause, because it is not needed.
477            Added the command Refresh() to all "OnChangeColor()" functions,
478            because the color preview window was not updated on a color change.
479            Added the function to check if a mapobject exists and used it to set the
480            status of the menu items. If no mapobject exists the settings could not
481            be edditied.
482            (Map_Dialog): Moved the imagetype selector from the
483            Outputformat_Dialog to Map_Dialog and removed Outputformat_Dialog.
484            (Web_Dialog): Removed the name label and added the template textbox.
485    
486            * Extensions/umn_mapserver/mf_import.py (import_mapfile): Replace
487            the exception handling on loading the layers by an if statement. It
488            is not necessary to us the exception there.
489            The Filepath creation now use os.path.join to build the path.
490    
491            * Extensions/umn_mapserver/test/test_mapserver.py: Moved the testMap
492            definition from global to the setUp function. Now the testMap will
493            initialize new on each test.
494    
495            * Extensions/umn_mapserver/sample/iceland.map: Include three new
496            classes in the Line Layer, to test logical Expressions.
497            Set the status of the class "Point9" in the Point Layer to off
498            
499    2004-07-13  Bernhard Herzog  <[email protected]>
500    
501            * Thuban/UI/baserenderer.py
502            (BaseRenderer.render_map_incrementally): Fix a logic bug in the
503            optimization that tries not to draw layers under a raster layer.
504            The bug was harmless.  All it effectively did was to produce The a
505            strange messages about not being able to draw Layer instances for
506            all vector layers below a raster layer which would be invisible
507            anyway because the raster layer currently always covers the entire
508            window
509    
510    2004-07-08  Jan Sch�ngel <[email protected]>
511    
512            * Extensions/umn_mapserver/mapfile.py: Added code to generade and get
513            a list of supported outputformats. This formats are not alle supported
514            because there is no possibility to get the outputformat without the
515            name known. Make some formal changes to the code.
516            (MF_Map.set_name()): Fixed a bug if the name is None.
517    
518            * Extensions/umn_mapserver/mf_handle.py: Removed the image_type import
519            statement, because its not needed anymore. The Outputformat is now
520            given as string from the object. Make some formal changes to the code.
521    
522            * Extensions/umn_mapserver/test/test_mapserver.py: Added new test for
523            most of the new setting which were added during the last changes.
524            Removed the MF_Size Test.
525            
526            * Extensions/umn_mapserver/test/test.map: Added a new class to the
527            cultural Layer to test expressions and the the status of that layer
528            from on to default.
529            Changed the data path the the correct Thuban Data
530            Added the Outputformat Object and Symbol Object
531            
532    2004-07-07  Jan Sch�ngel <[email protected]>
533    
534            * Extensions/umn_mapserver/mapfile.py: Added some new
535            settings to edit (outputformat, label, imagetype)
536    
537            * Extensions/umn_mapserver/mf_handle.py: Added some setting to
538            the Label Dialog and add the OutputDialog.
539            Make some changes to the code order.
540    
541    2004-07-06  Jan Sch�ngel <[email protected]>
542    
543            * Extensions/umn_mapserver/mapfile.py: Added the symbolObj, pointObj
544            and line Obj and add the scalebar_status_type, scalebar_style_type and
545            scalebar_position_type.
546            Added the symbol- and symbolsetObject (MF_Symbol,MF_Symbolset). The
547            are only used to create a Symbol like the circle in Thuban.
548            Added the scalebarObject (MF_Scalebar)
549            (MF_Class): Added set_status and get_status.
550            (MF_Layer.add_thubanclass): Added code to set the class status
551            (MF_Map): Added code to handle the symbols and scalebar
552            (MF_Label): Added the set_partials and get_partials functions
553            
554            * Extensions/umn_mapserver/mf_export.py: Added MF_Symbol to import
555            from mapfile. Added a function to create a circle object like the one
556            from thuban if no one exists.
557            
558            * Extensions/umn_mapserver/mf_handle.py: All colors are now set when
559            press ok in the assosiated dialog and not at the end of the
560            colordialog.
561            Added the Dialog for the Scalebar.
562            (Label_Dialog): Added the offset option
563    
564            * Extensions/umn_mapserver/mf_import.py: Added code to import the
565            status of the Classes.
566            Fixed a bug with the projection. Now the to_meter parameter will be
567            added to the Projection only if it doesn't exists.
568    
569    2004-07-01  Jan Sch�ngel <[email protected]>
570    
571            Added the functionality to handle the content thuban is not
572            able to handle directly.
573    
574            * Extensions/umn_mapserver/mf_handle.py: New. This module extents
575            Thuban with the possibility to edit the mapfile content.        
576            
577            * Extensions/umn_mapserver/mf_import.py: Added the possibility
578            to import mapfiles without any layer selected. So it is possible
579            to edit the other settings in a mapfile.
580            (import_mapfile): Added code to use the editing functions.
581            Added the possibility to import the projection to a layer if one
582            is defined.
583            Status settings (On,Off) will now set in thuban (visible, invisible).
584            fixed a bug with with classnames. If no classname is set in mapfile
585            the value in Thuban will set to the expression.
586            
587            * Extensions/umn_mapserver/mf_export.py(export_mapfile): Added the
588            possibility to save a new mapfile or use the old one which is
589            imported or new created.
590            Added code to use the editing functions.
591            Remove some not needed import statements
592    
593            * Extensions/umn_mapserver/mapfile.py: Added new types which are
594            need for the editing functions.
595            Added needed set-functions for the editing functions.
596            Added the possibility to export rasterimages.
597            Added new classes (MF_Web, MF_Label, MF_Legend, MF_Symbol,
598            MF_SymbolSet). MF_Symbol and MF_SymbolSet are not needed at the
599            moment.
600            (MF_Class.set_thubanstyle): Now point layers will set to a default
601            symbol to show a circle in mapserver and not only a 1px dot.
602            (MF_Style.__init__): Fixed a bug with the color. Color was not set
603            correct before.
604            (MF_Size): Removed, because it is not needed.
605            
606            * Extensions/umn_mapserver/README: Added the hints to use the
607            export and editing functions, too.
608    
609            * Extensions/umn_mapserver/sample/iceland.map: Added the
610            new parameter "UNITS METERS".
611            Change the political layer to status OFF.
612    
613            * Extensions/umn_mapserver/sample/README: Added some
614            more details to setup the sample in the MapServer.
615            
616    2004-06-26  Bernhard Reiter <[email protected]>
617    
618            * Extensions/svgexport/test/test_svgmapwriter.py:
619            Removed class VFile and used standard StringIO instead.
620    
621    2004-06-23  Jan Sch�ngel  <[email protected]>
622    
623            Add the export function to the umn_mapserver extension.
624    
625            * Extension/umn_mapserver/mf_export.py: New. This module extents
626            Thuban with the possibility to export the Thuban content.
627    
628            * Extensions/umn_mapserver/mapfile.py: Expand the classes to use
629            with the export module. Especially added the possibility to
630            add thuban objects directly to the map objects.
631    
632            * Extensions/umn_mapserver/mf_import.py: Removed the wxCHANGE_DIR,
633            because of the hint from Bernhard Herzog.
634            Corrected the handling of absolute pathnames.
635            Changed the Text of the Menu-Item, now the beginning is upper case.
636    
637            * Extensions/umn_mapserver/README: Added the --with-tiff statement.
638    
639    2004-06-16  Jan Sch�ngel  <[email protected]>
640    
641            Add a sample and make some changes.
642    
643            * Extension/umn_mapserver/mf_import.py: Changed the wxPython.wx
644            import from * to explicit used statements. Changed the
645            Thuban.UI.mainwindow import phrase, too.
646            (import_mapfile):Corrected a clerical mistake.
647            Added wxCHANGE_DIR in OpenFile Dialog.
648            Added a MultipleChoiceDialog, to select the layers to load from
649            mapfile into thuban. Thereby the projection is only set if one layer
650            is selected.
651            Added the possibility to handle relative pathnames which uses
652            up-level references.
653            Removed some doubled code.
654            Corrected an error with integer values used as label in thuban
655            ClassGroup.
656            
657            * Extensions/umn_mapserver/sample: New.
658    
659            * Extensions/umn_mapserver/sample/README: New. Describes the
660            usage of the sample files.
661    
662            * Extensions/umn_mapserver/sample/iceland.map: New. This is
663            a suitable .map-file for the iceland data.
664    
665            * Extensions/umn_mapserver/sample/index.html: New. The template
666            for the mapfile.  
667    
668            * Extensions/umn_mapserver/sample/iceland.html: New. Initialisation
669            file for the Iceland Application on web.
670    
671            * Extensions/umn_mapserver/README: Corrected a inaccuracy and added
672            some details.
673    
674            * Extensions/umn_mapserver/test/test_mapserver
675            (mapserver_import_Test_generalClasses.test_MF_Color):
676            Corrected the thubancolor test.
677    
678    2004-06-15  Jan Sch�ngel  <[email protected]>
679    
680            * Extensions/umn_mapserver/README: New. Install instruction.
681    
682    2004-06-14  Bernhard Reiter <[email protected]>
683    
684            * libraries/thuban/cpl_mfile.h: Added copyright header.
685    
686            * libraries/thuban/ cpl_mfile.cpp, cpl_mfile.h: Added non-protecting
687            Free Software License so that it is most useful with gdalwarp
688            and bmpdataset.
689    
690    2004-06-14  Bernhard Herzog  <[email protected]>
691    
692            * Thuban/UI/multiplechoicedialog.py (__version__): Add missing
693            import of wxPython.wx itself (as opposed to the contents of
694            wxPython.wx).  For some reason wxPython.wx is available as
695            wxPython.wx.wx in at least some 2.4 releases.  Fixes RT#2482
696            wrt. wxPython 2.4.
697    
698    2004-06-10  Jan Sch�ngel  <[email protected]>
699    
700            Initial version of new extension "umn_mapserver".  This extension aims
701            to manage configuration for the UMN MapServer application.  This
702            inital version just imports the .map-files and displays all, Thuban is
703            capable of.
704    
705            * Extensions/umn_mapserver, Extensions/umn_mapserver/test: New.
706    
707            * Extensions/umn_mapserver/test/README: New. Describes how to run the
708            tests.
709    
710            * Extensions/umn_mapserver/test/test.map: New. This is a test
711            .map-file for automated tests of the umn_mapserver extension of
712            Thuban.
713    
714            * Extensions/umn_mapserver/test/test_mapserver.py: New. Tests for
715            UMN Mapserver classes.
716    
717            * Extensions/umn_mapserver/__init__.py: New. Init to make this
718            directory a package.
719    
720            * Extensions/umn_mapserver/mapfile.py: New. Classes to represent
721            '.map'-file objects.
722    
723            * Extensions/umn_mapserver/mf_import.py: New. This module extends
724            Thuban with the possibility to handle UMN MapServer mapfiles.
725    
726    2004-06-03  Bernhard Herzog  <[email protected]>
727    
728            * Thuban/Model/layer.py (Layer.TreeInfo): Convert the bounding box
729            to a tuple before using it as arguments to the % operator.  This
730            fixes the formatting issue filed in RT#2239 on 2004-01-13 and
731            reported today on thuban-list by Jan Sch�ngel
732    
733            * test/test_layer.py (TestLayerModification.setUp): Save the
734            filename as an instance variable so we can refer to it in tests
735            (TestLayerModification.test_tree_info): Uncomment this method
736            again and make it work.  This tests for the formatting issue
737            filed in RT#2239 on 2004-01-13
738    
739    2004-05-28  Bernhard Herzog  <[email protected]>
740    
741            * Thuban/UI/baserenderer.py: Fix some typos.
742    
743    2004-05-18  Jan-Oliver Wagner <[email protected]>
744    
745            * Extensions/gns2shp/gns2shp.py (gns2shp): Fixed a bug
746            by increasing a field size.
747    
748    2004-05-17  Bernhard Herzog  <[email protected]>
749    
750            Update to newest shapelib and get rid of Thuban specific
751            extensions, i.e. use the new DBFUpdateHeader instead of our
752            DBFCommit kludge
753    
754            * libraries/shapelib/shpopen.c: Update to version from current
755            shapelib CVS.
756    
757            * libraries/shapelib/shapefil.h: Update to version from current
758            shapelib CVS.
759    
760            * libraries/shapelib/dbfopen.c: Update to version from current
761            shapelib CVS.
762            (DBFCommit): Effectively removed since shapelib itself has
763            DBFUpdateHeader now which is better for what DBFCommit wanted to
764            achieve.  
765            We're now using an unmodified version of dbfopen.
766    
767            * setup.py (extensions): Add the HAVE_UPDATE_HEADER macro with
768            value '1' to the Lib.dbflibc extension.  This simply reflects the
769            shapelib and pyshapelib updates
770    
771    2004-05-16  Jan-Oliver Wagner <[email protected]>
772    
773            Finished introduction of Menu.FindOrInsertMenu.
774    
775            * Extensions/drawshape/drawshape.py: Add the command
776            to the experimental menu additionally to the toolbar.
777    
778            * Extensions/svgexport/svgsaver.py: Use FindOrInsertMenu() instead of
779            finding menu on its own.
780    
781            * Doc/manual/thuban-manual.xml: updated sample file
782            to use FindOrInsertMenu().
783    
784            * Examples/simple_extensions/hello_world.py: Use FindOrInsertMenu()
785            instead of finding menu on its own.
786    
787    2004-05-11  Jan-Oliver Wagner <[email protected]>
788    
789            * test/test_menu.py (MenuTest.test): Added testing
790            of method Menu.FindOrInsertMenu.
791    
792    2004-05-10  Jan-Oliver Wagner <[email protected]>
793    
794            Introduce and use Menu.FindOrInsertMenu.
795    
796            * Thuban/UI/menu.py (Menu.FindOrInsertMenu): New. Find a
797              given menu or, if not found, insert it.
798    
799            * Extensions/bboxdump/bboxdump.py, /Extensions/gns2shp/gns2shp.py,
800            /Extensions/importAPR/importAPR.py, Extensions/profiling/profiling.py,
801            /Extensions/wms/wms.py: Use FindOrInsertMenu() instead of finding
802            menu on its own.
803    
804    2004-05-06  Jan-Oliver Wagner <[email protected]>
805    
806            Introduce a abstract ColorDialog class and remove
807            and outdated file.
808    
809            * Thuban/UI/proj4dialog.py: Removed. It is has been
810            replaced by projdialog for quite a while and is not used
811            anymore.
812    
813            * Thuban/UI/colordialog.py: New. Abstraction for color selection
814            dialog(s).
815    
816            * Thuban/UI/classifier.py (SelectPropertiesDialog.__GetColor):
817            Now calls the abstract ColorDialog instead of wxColourDialog.
818            This also removed the dependency to Color class conversion
819            from this function.
820    
821    2004-05-04  Frank Koormann  <[email protected]>
822    
823            * Extensions/bboxdump/__init__.py: Fixed string left over from
824            copying.
825    
826            * Extensions/bboxdump/bboxdump.py (bboxdump):
827            Use layer.ShapeStore().AllShapes() to loop over shapes instead of
828            xrange(layer.NumShapes()). Compile the bboxmessage from a list
829            of formatted outputs (string.join) instead of appending to the
830            message. Two progress bar dialogs to report progress on the sometimes
831            lenghty processing.
832    
833    2004-04-22  Frank Koormann  <[email protected]>
834    
835            New Extension to dump bounding boxes of all shapes of the selected
836            layer. An optional column can be specified to group the objects,
837            in this case the bounding box is a union of the separate boxes.
838            Dump can be displayed in a ScrolledMessageDialog or written to file.
839            The Extension is simply a combination of available and well tested
840            Thuban functionality.
841    
842            * Extensions/bboxdump/__init__.py: New: Init to make this
843            directory a package.
844    
845            * Extensions/bboxdump/bboxdump.py: New: Dump bounding boxes of
846            all shapes of the selected layer.
847    
848    2004-04-22  Jan-Oliver Wagner <[email protected]>
849    
850            * Thuban/UI/classgen.py (GenUniquePanel.__init__): Fixed two
851            strings to be i18n now.
852    
853    2004-04-18  Jan-Oliver Wagner <[email protected]>
854    
855            Changing popup menu of legend from direct building
856            to using the Menu construction as used for the mainwindow.
857    
858            * Thuban/UI/mainwindow.py: New method commands: layer_to_top,
859            layer_to_bottom, layer_visibility
860            (MainWindow.LayerToTop): New. Put current layer to the top.
861            (MainWindow.LayerToBottom): New. Put current layer to bottom.
862            (MainWindow.HideLayer, MainWindow.ShowLayer, _has_visible_map):
863            Replace 1,0 by True, False.
864            (MainWindow.ToggleLayerVisibility): New. Toggle visibility of
865            current layer.
866            (MainWindow.LayerShowTable): Removed raising of dialog.
867            (_has_selected_layer_visible): New. Support function.
868    
869            * Thuban/UI/legend.py: ID_POP_xxx: removed.
870            (LegendPanel.__init__): Removed EVT_MENU bindings.
871            (LegendTree._OnRightClick): Replace direct creation of
872            menu via wx Classes by applying the menu definition
873            as of Menu class of menu.py.
874            
875    2004-04-16  Jan-Oliver Wagner <[email protected]>
876    
877            * Thuban/UI/exceptiondialog.py (ExceptionDialog.dialog_layout): Improved
878        button string to stronger clearify that Thuban will be closed when hitting
879            the button.
880    
881            * Thuban/UI/mainwindow.py (MainWindow.LayerShowTable): Added docstring.
882            Now for layers without a ShapeStore a corresponding message is given
883            to the user, that this layer has no table to show.
884    
885    2004-04-15  Martin Schulze  <[email protected]>
886    
887            * Extensions/wms/layer.py (WMSLayer.setWMSFormat): Need to
888            recalculate the format for the internal render engine as well.
889    
890            * Extensions/wms/properties.py (wmsProperties): First start for a
891            properties dialog.  It's functional for a first selection of
892            layers, but still has some weired wxWidgets/GTK problems but
893            beautification can be done later.
894    
895            * Extensions/wms/layer.py: Added more documentation
896            (WMSLayer.getFormats): New: Return list of supported image formats
897            by the WMS server
898            (WMSLayer.getLayers): New: Return the list of layer names
899            supported by the WMS server
900            (WMSLayer.getLayerTitle): New: Return the title of the named layer
901            (WMSLayer.getWMSFormat): New: Return the image format that is used
902            for WMS GetMap requests
903            (WMSLayer.setWMSFormat): New: Set the image format that is used
904            for WMS GetMap requests
905            (WMSLayer.__init__): Move away from using only one layer to using
906            a list of layers (unsorted at the moment, though).
907            (WMSLayer.getVisibleLayers): New: Return the list of names for all
908            visible layers
909            (WMSLayer.setVisibleLayers): New: Set the list of names for all
910            visible layers
911    
912            * Extensions/wms/wms.py: Moved the WMS layer into layer.py in
913            order to establish a clean structure.
914    
915            * Extensions/wms/layer.py: Moved the WMS layer into a file on its
916            own in order to establish a clean structure.
917    
918    2004-04-13  Martin Schulze  <[email protected]>
919    
920            * Extensions/wms/parser.py (WMSCapabilitiesParser.grok): Added
921            support for oldstyle (WMS 1.0 apparently) image format
922            specification.
923    
924            * Extensions/wms/wms.py (WMSLayer.calcFormat): Reduce the list of
925            supported graphic formats back to JPEG and BMP, PNG and others are
926            too *cough* experimental...  Sorry, I meant to filter this out
927            before I committed this part.  This should make the WMS extension
928            run from CVS again.
929            (wms_dialog): Reset an empty URL to None so that the subsequent
930            program can depend on this, since the dialog will indeed return an
931            empty URL, causing another declaration of love by Python.
932    
933            * Extensions/wms/parser.py (WMSCapabilitiesParser.getLayerBBox):
934            Whenever a native BoundingBox request cannot be fulfilled, check
935            whether the requested SRS is EPSG:3426, in which case return the
936            LatLonBoundingBox values.
937    
938            * Extensions/wms/test/test_parser.py
939            (TestWMSCapabilitiesParser.test_LayerSRS): Added a test for
940            ignoring AUTO:* SRS.
941            (TestWMSCapabilitiesParser.test_LatLonBoundingBoxes_as_bboxes):
942            Added another test method to test whether the LatLonBoundingBox
943            values will be returned if BoundingBox values are requested with
944            SRS set to EPSG:3426.
945    
946            * Extensions/wms/parser.py (WMSCapabilitiesParser.peekLayers):
947            Added rudimentary support for non-EPSG SRS, i.e. ignore them for
948            the moment by placing them into a variable which is currently
949            unused.  Also test whether the EPSG SRS is numerical as it should
950            be and add an error message if it is not.
951    
952            * Extensions/wms/test/sample.xml: Added AUTO:* SRS since they
953            appear in the real world as well.  Since we cannot handle them yet
954            (OGCLib can't either), we will ignore them for the moment.
955    
956            * Extensions/wms/parser.py: Use a variable for denoting the sample
957            filename
958            (WMSCapabilitiesParser.peekLayers): Added support for error
959            messages during grok().  They will be aggregated in an array and
960            may be displayed later.  We may have to add a classification
961            "Warning" and "Error" to this.  That requires more experience,
962            though, since not every error may be lethal.
963    
964            * Thuban/UI/mainwindow.py (MainWindow.LayerShowTable): Raise the
965            ShowTable() dialog/frame when the user attempts to display it
966            while it has been opened before already and not closed again.
967    
968    2004-04-11  Martin Schulze  <[email protected]>
969    
970            * Extensions/wms/infodialog.py: Adjusted the class documentation
971    
972            * Extensions/wms/wms.py (WMSLayer.__init__, WMSLayer.GetMapImg):
973            Switch to using Thuban{Begin,End}BusyCursor instead of the pure
974            wxWidgets variants.
975            (WMSLayer.__init__): The epsg_id variable is named top_srs now.
976    
977            * Extensions/wms/infodialog.py: Added an information dialog that
978            will display various information about the WMS current resource,
979            so that additional information such as the title, the abstract,
980            fees and access constraints can be displayed for the user if they
981            are documented in the WMS XML.
982    
983    2004-04-10  Martin Schulze  <[email protected]>
984    
985            * Extensions/wms/parser.py (WMSCapabilitiesParser.grok): Adjusted
986            string handling.  It's "foo".lower() and not lower(foo) without
987            lower imported from strings or something.
988    
989            * Extensions/wms/wms.py (WMSLayer): Incorporated WMSCapabilities
990            from capabilities.py and parser.py.  Implement priority list for
991            supported graphics formats, take care of wbmp != bmp.  PNG, TIFF
992            and GIF are supported here, but not yet by main Thuban.  Hence,
993            support for them may be removed later.  Special contribution to
994            usability: get wxWidgets to change the cursor when we're waiting
995            for data from the network so the user won't start to worry.  This
996            causes a redrawing error/warning, though.
997    
998            * Extensions/wms/parser.py (WMSCapabilitiesParser.grok): Unlink
999            the DOM object.
1000    
1001    2004-04-01  Martin Schulze  <[email protected]>
1002    
1003            * Extensions/wms/capabilities.py: Adjusted documentation
1004            (WMSCapabilities.__init__): Improved documentation, fixed syntax
1005            (WMSCapabilities.saveCapabilities): Only catch IOError when
1006            handling files
1007            (WMSCapabilities.loadCapabilities): Only catch IOError when
1008            handling files
1009            __main__: corrected variable naming
1010            (WMSCapabilities.fetchCapabilities,loadCapabilities): Make this
1011            class a specialisation of WMSCapabilitiesParser as well.  Also
1012            execute grok() after loading or fetching capabilities, if that
1013            went well, so that subsequent calls can already access the data.
1014            (WMSCapabilities.getVersion): Export the used version of the
1015            GetCapabilities request, so we can use it for subsequent calls,
1016            i.e. for GetMap requests.
1017            (WMSCapabilities.fetchCapabilities): Added proper error handling
1018            when the GetCapabilities request failed, so that the surrounding
1019            program can act accordingly.
1020    
1021    2004-03-30  Martin Schulze  <[email protected]>
1022    
1023            * Extensions/wms/parser.py (WMSCapabilitiesParser.getLayerSRS):
1024            Adjusted the getLayerSRS method to return the list of SRSes
1025            extracted from <SRS> elements instead of <BoundingBox> elements.
1026            Added a bit of documentation as well.
1027            (WMSCapabilitiesParser.checkLayerSRS): Removed integrity test
1028            since it was only implemented due to a misunderstanding.
1029    
1030            * Extensions/wms/test/test_parser.py
1031            (TestWMSCapabilitiesParser.test_LayerSRS): Adjust the tests to
1032            reflect the corrected interpretation of the standard: i.e. a layer
1033            does not have to define a BoundingBox for all SRSes it supports.
1034            Hence the <SRS></SRS> specification is authoritative, not the list
1035            of BoundingBoxes.
1036            (TestWMSCapabilitiesParser.test_BoundingBoxes): Added a new test
1037            to ensure None is returned for a non-existing SRS.
1038            (TestWMSCapabilitiesParser.test_grok): Removed test_grok method
1039            since it is not applicable anymore.  Listing more SRSes in <SRS>
1040            elements is valid according to the specs.
1041    
1042    2004-03-26  Bernhard Reiter <[email protected]>
1043    
1044            * README: Nicer formatting of text. Improved descriptions.
1045            Reflected wxWidgets name change.
1046            
1047            * Thuban/UI/about.py: Extended copyright to 2004 and added
1048            information about the thuban-devel mailinglist.
1049    
1050    2004-03-24  Martin Schulze  <[email protected]>
1051    
1052            * Extensions/wms/capabilities.py: Renamed the class to contain
1053            'WMS', also added a linebreak where required
1054    
1055            * Extensions/wms/parser.py: Finally added the XML parser for the
1056            GetCapabilities response.
1057    
1058            * Extensions/wms/test/sample.xml: Adjusted the sample file so that
1059            <SRS> elements match the <BoundingBox> elements, except for the
1060            layer 'beschriftung'.
1061    
1062            * Extensions/wms/test/test_parser.py: Encode non-ascii strings
1063            since Python uses unicode strings internally, otherwise
1064            comparisons will fail.  Removed tests for getLayerBBoxSRS() since
1065            the SRS will be calculated anyway and this method is obsoleted by
1066            getLayerSRS().  Denote SRS as strings and not as cardinal numbers.
1067            Move loading the sample file into the setUp method.  Added a test
1068            for finding the integrity problem in the sample response.
1069            Improved formatting.
1070    
1071            * Extensions/wms/domutils.py: Added convenience routines for
1072            handling of Document Object Model (DOM) nodes.
1073    
1074            * Extensions/wms/test/test_domutils.py: Added a test for the
1075            domutils module
1076    
1077    2004-03-19  Martin Schulze  <[email protected]>
1078    
1079            * Extensions/wms/test/test_parser.py (TestWMSCapabilitiesParser):
1080            Moved path detection and adding into a module of its own,
1081            adjustpath, which exports thubandir as main Thuban directory.
1082    
1083            * Extensions/wms/test/test_ogclib.py (TestWMSLib): Moved path
1084            detection and adding into a module of its own, adjustpath, which
1085            exports thubandir as main Thuban directory.  Reorganised the
1086            module in order to support the SkipTest feature for Thuban test
1087            cases.
1088    
1089            * Extensions/wms/test/adjustpath.py: Moved path detection and
1090            adding into a module of its own.
1091    
1092    2004-03-18  Martin Schulze  <[email protected]>
1093    
1094            * Extensions/wms/test/test_parser.py: Added another test for
1095            checking whether the WMS XML parser (to be implemented) returns
1096            the information we expect.  This requires a sample WMS WML file
1097            (sample.xml) which has been extracted from the frida server and
1098            "improved" manually.
1099    
1100            * Extensions/wms/test/test_ogclib.py: Added legacy code to add the
1101            main Thuban directory to the path in order to be able to import
1102            random modules.  Adjusted the PyOGCLib detection to reuse the
1103            information gathered.  Also added a note about the PYTHONPATH
1104            environment variable.
1105    
1106            * Extensions/wms/test/test_ogclib.py: The format specification is
1107            a mime-type, not a graphic format, hence image/jpeg wou ld be the
1108            proper format and not JPEG.  We'll also have to take care of the
1109            encoding of / as %2F.
1110    
1111    2004-03-16  Martin Schulze  <[email protected]>
1112    
1113            * Extensions/wms/test/test_ogclib.py: Added a (hopefully)
1114            comprehensive test for the getMapURL method, built compare URLs
1115            according to the documentation in OGC 01-068r3
1116    
1117            * Extensions/wms/capabilities.py (WMSCapabilities): Added the
1118            class WMSCapabilities to manage capabilites, will incorporate
1119            parsing the capabilities response and provide details for other
1120            classes.
1121    
1122    2004-03-12  Bernhard Herzog  <[email protected]>
1123    
1124            Support views in addition to normal tables in the postgis
1125            shapestore
1126    
1127            * Thuban/Model/postgisdb.py
1128            (PostGISShapeStore._fetch_table_information): Add a fallback for
1129            the case where the table name is not in the geometry_columns
1130            table.  This is usually the case for views.  Also, set
1131            self.shapestore here.
1132            (PostGISShapeStore.ShapeType): No need to query the database all
1133            the time.  The shape type is now determined in
1134            _fetch_table_information
1135    
1136            * test/postgissupport.py (PostgreSQLServer.new_postgis_db)
1137            (PostgreSQLServer.get_static_data_db, PostGISDatabase.__init__):
1138            New parameter to specify views.
1139            (PostGISDatabase.has_data): Also compare the views.  New views
1140            parameter
1141            (PostGISDatabase.initdb): Create the views.
1142            (PostgreSQLServer.get_default_static_data_db): Add the v_landmarks
1143            view
1144    
1145            * test/test_postgis_db.py
1146            (TestPostGISShapestorePointFromViews): New.  Test a
1147            PostGISShapeStore with a view
1148            (TestPostGISShapestorePointOIDAsGIDColumn.setUp): Pass the name of
1149            the geometry_column explicitly to test whether that works
1150    
1151    2004-03-12  Bernhard Herzog  <[email protected]>
1152    
1153            Final step for explicit id/geometry columns: Loading and saving
1154    
1155            * Resources/XML/thuban-1.1.dtd: New.  Derived from thuban-1.0.dtd
1156            with the following changes:
1157            (dbshapesource): Two new attributes id_column and geometry_column
1158    
1159            * Thuban/Model/save.py (SessionSaver.write): Use the new dtd
1160            (SessionSaver.write_session): Use the new namespace
1161            (SessionSaver.write_data_containers): Write the new dbshapesource
1162            parameters
1163    
1164            * Thuban/Model/load.py (SessionLoader.__init__): New namespace for
1165            the new file format version
1166            (SessionLoader.start_dbshapesource): Handle the new db parameters
1167    
1168            * test/test_save.py: Update to the new dtd and namespace
1169            (SaveSessionTest.test_save_postgis): Update the NonConnectionStore
1170            mock object to provide a working IDColumn method.
1171    
1172            * test/test_load_1_0.py: New.  Copy of the test_load.py before
1173            today's changes but with the round-trip tests removed.
1174    
1175            * test/test_load_0_9.py: Update doc-string.
1176    
1177            * test/test_load.py: Update all .thuban files to the new dtd and
1178            namespace.
1179            (TestPostGISLayer.file_contents): Add the new dbshapesource
1180            paramters
1181    
1182    2004-03-11  Bernhard Herzog  <[email protected]>
1183    
1184            Next step for explicit id/geometry columns: User interaction
1185    
1186            * Thuban/UI/dbdialog.py (ChooseDBTableDialog.__init__): Rework how
1187            the dialog is constructed. Add combo boxes to select id and
1188            geometry column.  Rename some instance variables.
1189            (ChooseDBTableDialog.GetTable): Return id and geometry column
1190            names
1191            (ChooseDBTableDialog.OnTableSelect): New. Event handler for
1192            selections in the table list
1193    
1194            * Thuban/UI/mainwindow.py (MainWindow.AddDBLayer): Use id_column
1195            and geometry_column
1196    
1197            * Thuban/Model/session.py (Session.OpenDBShapeStore): Add the new
1198            parameters for id_column and geometry column of PostGISShapeStore
1199            here as well.
1200    
1201            * Thuban/Model/postgisdb.py (type_map): Add ROWID psycog type.
1202            (_raw_type_map): New. Map raw PostgreSQL type ints to thuban types
1203            (PostGISConnection.GeometryTables): Use a better query to
1204            determine which relations in the database might be usable for
1205            shapestores.  Now supports views as well but is more PostgreSQL
1206            specific
1207            (PostGISConnection.table_columns): New. Somewhat experimental
1208            method to let the db dialogs provide lists of columns to users so
1209            that they can select id and geometry columns.
1210            (PostGISTable.__init__): The default value of the id_column
1211            parameter is now None it still means "gid" effectively, though.
1212            (PostGISTable.IDColumn): New introspection method to return a
1213            column object for the id column
1214            (PostGISShapeStore.GeometryColumn): New introspection method to
1215            return a column object for the geometry column
1216    
1217            * test/test_postgis_db.py
1218            (TestPostGISConnection.test_gis_tables_non_empty):
1219            Removed. Subsumed by the new:
1220            (TestPostGISConnection.test_gis_tables_with_views_and_tables):
1221            New. Tes the GeometryTables and table_columns methods with actual
1222            tables and views.
1223            (PointTests.test_id_column, PointTests.test_geometry_column):
1224            New. tests for the new methods.
1225            (TestPostGISShapestorePoint.setUp)
1226            (TestPostGISShapestorePointSRID.setUp)
1227            (TestPostGISShapestorePointExplicitGIDColumn.setUp): Fill the
1228            instance variables needed by the new tests
1229    
1230    2004-03-11  Bernhard Herzog  <[email protected]>
1231    
1232            * Thuban/UI/classgen.py (GenQuantilesPanel.GetList): The row
1233            numbers given to ReadValue are ordinals.
1234    
1235    2004-03-11  Bernhard Herzog  <[email protected]>
1236    
1237            Elimiate the requirement for PostGIS tables to have a column
1238            called "gid".
1239    
1240            * Thuban/Model/postgisdb.py (PostGISTable.__init__): New parameter
1241            id_column to specify which column to use to identify rows.  Also
1242            new instance variables id_column and quoted_id_column
1243            (PostGISTable.RowIdToOrdinal, PostGISTable.RowOrdinalToId)
1244            (PostGISTable.ReadRowAsDict, PostGISTable.ReadValue)
1245            (PostGISTable.SimpleQuery): Use the id column name provided to the
1246            constructor instead of "gid"
1247            (PostGISShapeStore.__init__): New parameter id_column analogously
1248            to PostGISTable.__init__.  This parameter is simply passed through
1249            to the base class constructor
1250            (PostGISShapeStore._create_col_from_description): Fix typo in
1251            doc-string
1252            (PostGISShapeStore.Shape, PostGISShapeStore.AllShapes)
1253            (PostGISShapeStore.ShapesInRegion): Use the id column name
1254            provided to the constructor instead of "gid"
1255    
1256            * test/postgissupport.py
1257            (PostgreSQLServer.get_default_static_data_db): New static table
1258            landmarks_point_id with an id column != "gid.  Update the comments
1259            a bit.
1260            (skip_if_addgeometrycolumn_does_not_use_quote_ident): Fix typo in
1261            doc-
1262            (upload_shapefile): New parameter gid_column to use a name other
1263            than "gid" for the column to store the shape ids
1264    
1265            * test/test_postgis_db.py (TableTests): New.  Mixin-class
1266            containing all tests previously in TestPostGISTable.  The actual
1267            tests are the same but the code is a bit more configurable to
1268            allow for different id columns etc.
1269            (TestPostGISTable): Derive from TableTests now for the actual
1270            tests.
1271            (TestPostGISTableExplicitGIDColumn): New. Like TestPostGISTable
1272            except that it the landmarks_point_id table to test the id_column
1273            parameter
1274            (PointTests): Extend the doc-string
1275            (TestPostGISShapestorePointExplicitGIDColumn)
1276            (TestPostGISShapestorePointOIDAsGIDColumn): New classes derived
1277            from PointTests to test the explicit id_column parameter.  One
1278            tests with the name of the column holding the shape ids, the other
1279            uses PostgreSQL's OID column.  For the latter a number of methods
1280            have to be overwritten to make them independent of the actual id
1281            values.
1282    
1283    2004-03-08  Silke Reimer  <[email protected]>
1284    
1285            Update debian directory:
1286    
1287            * debian/changelog: Added new version.
1288            * deiban/rules: Updated management of patches (with cbds)
1289            * debian/control: Added cbds to dependencies
1290            * debian/patches/*: New. Adds better support for patches of thuban in
1291                            debian
1292            * debian/menu: Syntax of menu changed slightly
1293            * debian/setup.py.patch: removed because it has been moved to
1294                            debian/patechs/setup.py.patch
1295            
1296    
1297    2004-02-26  Bernhard Herzog  <[email protected]>
1298    
1299            Create the Doc/technotes directory for text files with information
1300            for developers
1301    
1302            * Doc/technotes/README: New. README for the technotes
1303    
1304            * Doc/technotes/coding_guidelines.txt: New. Coding guidelines for
1305            Thuban
1306    
1307            * Doc/technotes/release_process.txt: New. Used to be
1308            HOWTO-Release.  Now slightly adapted to technote formatting style.
1309    
1310            * HOWTO-Release: Removed.  It's contents are now in
1311            Doc/technotes/release_process.txt
1312    
1313    2004-02-25  Bernhard Herzog  <[email protected]>
1314    
1315            * libraries/thuban/wxproj.cpp (get_wx_version): New.  Return the
1316            version of wxWindows the module was compiled with so we can check
1317            that against the wxPython version.
1318    
1319            * Thuban/version.py (thuban_branch, thuban_release): New variables
1320            controlling which and how Thuban versions are shown.  See the
1321            comments for details.
1322            (verify_versions): Also check that the wx version that wxproj is
1323            compiled against matches that of the wxPython we use at runtime
1324    
1325    2004-02-20  Bernhard Herzog  <[email protected]>
1326    
1327            * Extensions/wms/wms.py (epsg_code_to_projection): Use
1328            get_system_proj_file to read the epsg projections.  The old way
1329            depended on the current directory being the top Thuban directory.
1330    
1331    2004-02-20  Bernhard Herzog  <[email protected]>
1332    
1333            * Extensions/svgexport/test/test_svgmapwriter.py
1334            (TestVirtualDC.test_clippath): Remove a debug print
1335    
1336    2004-02-20  Bernhard Herzog  <[email protected]>
1337    
1338            * Extensions/svgexport/__init__.py: New.  Turn
1339            Extensions/svgexport into a package.
1340    
1341            * Extensions/svgexport/svgmapwriter.py: Reorder the imports and
1342            doc-string a bit.  The doc-string must come first, otherwise it's
1343            not a doc-string.  The __future__ import must be the first thing
1344            after the doc-string.  Use only double quotes in doc-strings.
1345            Single quotes trip up emacs syntax highlighting if the text
1346            contains apostrophes.
1347    
1348    2004-02-20  Bernhard Herzog  <[email protected]>
1349    
1350            * Extensions/svgexport/test/__init__.py,
1351            Extensions/svgexport/test/test_svgmapwriter.py: New. Initial test
1352            suite for svgexport
1353    
1354            * test/runtests.py (find_test_modules): New. Function with the
1355            module finding code from main.
1356            (main): Use find_test_modules to figure out the default test
1357            modules and take modules from Extensions.svgexport.test too.
1358    
1359    2004-02-19  Bernhard Herzog  <[email protected]>
1360    
1361            * Thuban/UI/application.py (ThubanApplication.OnInit): Make sure
1362            the mainwindow has a reference to the map of the initial session.
1363            This fixes a bug introduced with the fix for RT#2245
1364    
1365    2004-02-19  Bernhard Herzog  <[email protected]>
1366    
1367            * Extensions/svgexport/svgsaver.py,
1368            Extensions/svgexport/svgmapwriter.py,
1369            Extensions/svgexport/maplegend.py: Added again.  This time in the
1370            correct place.
1371    
1372    2004-02-17  Bernhard Herzog  <[email protected]>
1373    
1374            Fix for RT#2245
1375    
1376            * Thuban/UI/application.py (ThubanApplication.OnInit): Initialize
1377            instance variables before trying to create any windows.  Creating
1378            windows can start an event loop if e.g. message boxes are popped
1379            up for some reason, and event handlers, especially EVT_UPDATE_UI
1380            may want to access things from the application.
1381            (ThubanApplication.maps_changed): The mainwindow may not have been
1382            created yet, so check whether it has been created before calling
1383            its methods
1384    
1385            * Thuban/UI/view.py (MapCanvas.OnIdle): Only try to redraw if we
1386            have a map
1387    
1388    2004-02-17  Bernhard Herzog  <[email protected]>
1389    
1390            * test/test_svgmapwriter.py, Extensions/svgsaver.py,
1391            Extensions/svgmapwriter.py, Extensions/maplegend.py,
1392            extensions/svgexport/svgsaver.py,
1393            extensions/svgexport/svgmapwriter.py,
1394            extensions/svgexport/maplegend.py: Removed.  These files were in
1395            the wrong places or didn't work at all.
1396    
1397    2004-02-16  Bernhard Herzog  <[email protected]>
1398    
1399            * Thuban/UI/view.py (MapCanvas.Export): Remove accidentally added
1400            line
1401    
1402  2004-02-16  Bernhard Herzog  <[email protected]>  2004-02-16  Bernhard Herzog  <[email protected]>
1403    
1404          * Thuban/UI/view.py (MapCanvas.Export): Avoid UnboundLocalError.          * Thuban/UI/view.py (MapCanvas.Export): Avoid UnboundLocalError.
# Line 4129  Line 5530 
5530          Fix problem of hidden properties dialog under windows after double          Fix problem of hidden properties dialog under windows after double
5531          click on layer tree:          click on layer tree:
5532          The tree control always gets an Expanded / Collapsed event after          The tree control always gets an Expanded / Collapsed event after
5533          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.
5534            We add a second ItemActivated event to the queue, which simply
5535          raises the already displayed window.          raises the already displayed window.
5536    
5537          * Thuban/UI/legend.py (LegendTree.__init__): Instance variable          * Thuban/UI/legend.py (LegendTree.__init__): Instance variable

Legend:
Removed from v.2067  
changed lines
  Added in v.2382

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26