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

Legend:
Removed from v.2067  
changed lines
  Added in v.2414

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26