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

Legend:
Removed from v.1960  
changed lines
  Added in v.2346

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26