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

Legend:
Removed from v.2021  
changed lines
  Added in v.2350

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26