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

Legend:
Removed from v.2075  
changed lines
  Added in v.2368

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26