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

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26