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

Legend:
Removed from v.1965  
changed lines
  Added in v.2295

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26