/[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 2250 by jschuengel, Wed Jun 16 11:01:42 2004 UTC revision 2451 by bh, Mon Dec 13 17:51:11 2004 UTC
# Line 1  Line 1 
1    2004-12-13  Bernhard Herzog  <[email protected]>
2    
3            * test/test_load.py (TestAltPath.test_01_single_path_error_fix)
4            (TestAltPath.test_02_path_error_fix_from_list)
5            (TestAltPath.test_05_path_error_fix_from_list_changed)
6            (TestAltPath.test_06_path_error_fix_from_list_fails): self.session
7            is destroyed in tearDown, so there's no need to do it in a test
8            case.
9    
10            * Thuban/Model/load.py (SessionLoader.open_shapefile): Remove a
11            debug print
12    
13    2004-12-13  Bernhard Herzog  <[email protected]>
14    
15            * Extensions/svgexport/test/test_svgmapwriter.py
16            (TestDrawSplines.setUp): Do not use super with the unittest
17            classes because in Python 2.2 they're still old-style classes.
18    
19    2004-12-13  Frank Koormann <[email protected]>
20    
21        Alternative Path feature: When loading a (moved) session where
22            shapefiles cannot be found, ask the user. Use the specified path
23            if further shapefiles are missing. However, ask the usr for confirmation
24            in such cases.
25    
26            * test/test_load.py (TestAltPath): New, tests for alternative path feature
27            in load_session()
28            (Shapefile_CallBack): Helper, implements controllable callback.
29    
30            * Thuban/UI/application.py (ThubanApplication.OnInit):
31            Added "alt_path" to self.path
32            (ThubanApplication.OpenSession): Added shapefile_callback as second
33            callback similar to db_connection_callback.
34            (ThubanApplication.run_alt_path_dialog): New, implementaion of
35            shapefile_callback. In addition to raising the dialog the control of
36            self.path('alt_path') is implemented here.
37    
38            * Thuban/Model/load.py (SessionLoader.__init__): Added shapefile_callback.
39            (SessionLoader.open_shapefile): Open shapefile, eventually with
40            alternative path. This wrapps the "theSession.OpenShapefile(filename)"
41            formerly used in start_fileshapesource()/start_layer().
42            (SessionLoader.start_fileshapesource): Call open_shapefile().
43            (SessionLoader.start_layer): Call open_shapefile().
44            (load_session): Added shapefile_callback.
45    
46            * Thuban/UI/altpathdialog.py: New, implements dialogs for alternative path
47            feature (search / check).
48            
49            * Doc/manual/thuban-manual.xml: Added documentation of new feature.
50    
51    2004-12-11  Bernhard Reiter <[email protected]>
52    
53             svgexport 0.9.2: Point size supports for maps.
54    
55            * Extensions/svgexport/svgmapwriter.py: Added import of SHAPETYPE_POINT
56            (def draw_point_shape): new parameter size defaults to 2 as before.
57            (draw_shape_layer_incrementally): Moved draw_func log line higher.
58            Added draw_func call with size when dealing with a point layer.
59    
60            * Extensions/svgexport/__init__.py: bumped version to 0.9.2.
61            
62    2004-12-11  Bernhard Reiter <[email protected]>
63    
64            Made sure that newlines are inserted in the svg path d attributes
65            to raise the chance that the line length will be below 255 characters,
66            as recommended by REC SVG 1.1 in section 8.3.1.
67    
68            * Extensions/svgexport/svgmapwriter.py(DrawPolygon):
69            Adding \n before L's and changed whitespace handling.
70    
71            * Extensions/svgexport/test/test_svgmapwriter.py:
72            Adapted tests to new whitespace handling of DrawPolygon.
73    
74    2004-12-11  Bernhard Reiter <[email protected]>
75    
76            * Doc/technotes/coding_guidelines.txt: easy typo fixed.
77    
78            * Extensions/svgexport/test/test_svgmapwriter.py:
79            Removed test_drawbezier in favour of new test_drawspline3 and
80            test_drawspline4 within new class TestDrawSplines(TestVirtualDC).
81            All only to test DrawSpline.
82    
83            * Extensions/svgexport/svgmapwriter.py(DrawSpline):
84            New implementation now really using the strange algorithm of
85            xfig 3.1's approximated splines and its conversion to postscript
86            with one twist: SVG can do quadratic beziers, so skipped translation
87            to cubic beziers.
88            (TestWithDC): Typo in comment fixed.
89    
90    2004-12-09  Martin Schulze  <[email protected]>
91    
92            * Thuban/Model/classgen.py: Added missing character encoding
93    
94            * Extensions/wms/properties.py (OpenWMSProperties): removed
95    
96            * Extensions/wms/parser.py (WMSCapabilitiesParser.error): Dropped
97            support for get_srs_discrepancies() since there are no
98            discrepancies anymore (was a thinko)
99    
100            * Extensions/wms/layer.py (WMSLayer.GetMapImg): Improved graphic
101            format priority now that more formats are supported globally by
102            the render engine.
103    
104    2004-12-08  Silke Reimer <[email protected]>
105            * Extensions/ogr/ogrshapes.py: Substituted ogr-method CloseRings
106            because it is not available in all versions of ogr
107    
108    2004-12-08  Bernhard Reiter <[email protected]>
109            * Extensions/ogr/__init__.py: Added empty __init__.py to heal
110            global tests until a real one is commited.
111    
112    2004-12-07 Nina H�ffmeyer <[email protected]>
113    
114            * /Extensions/ogr/: Adding a new extension to read shapefiles with
115            ogr. It is planned to add other vector formats.
116    
117            * /test/runtests.py: Adding tests from /Extensions/ogr/test/.
118    
119    2004-12-07  Jan-Oliver Wagner <[email protected]>
120    
121            * /Extensions/svgexport/test/test_svgmapwriter.py: Reverting
122            part of a (non-)fix to renable that the tests are always
123            executed.
124    
125    2004-12-07  Bernhard Reiter <[email protected]>
126    
127            * Extensions/svgexport/test/test_svgmapwriter.py:
128            Added test_drawbezier() to test DrawSpline().
129    
130            * Extensions/svgexport/svgmapwriter.py(DrawSpline):
131            Really implemented bezier drawing.
132    
133            * Extensions/svgexport/__init__.py: Bumped version of svgexport
134            to 0.9.1 because now the legend examples lines styles
135            will be drawing with beziers.
136    
137    2004-12-05  Martin Schulze  <[email protected]>
138    
139            * Thuban/UI/renderer.py (raster_format_map): Added PNG, TIFF and
140            GIF as supported bitmap image formats (helpful for the WMS extension)
141    
142    2004-11-30  Martin Schulze  <[email protected]>
143    
144            * Extensions/wms/test/test_ogclib.py (TestOGCLib.test_compareURLs):
145            Improved the test for the internal compare method
146    
147    2004-11-27  Jan-Oliver Wagner <[email protected]>
148    
149            * Thuban/UI/about.py (About.__init__): Added
150            Norbert Solymosi for hungarian translation and Ole Rahn
151            as contrbutor. Moved Bernhard Reiter from Contributor
152            to Developer.
153    
154    2004-11-27  Bernhard Reiter <[email protected]>
155    
156            * Extensions/svgexport/test/test_svgmapwriter.py:
157            Removed Jan from author list as he did not change enough significant
158            lines yet.
159    
160            * Extensions/svgexport/__init__.py: Added Bernhard as author
161            of the Extension.
162    
163    2004-11-27  Jan-Oliver Wagner <[email protected]>
164    
165            * po/hu.po: New. Hungarian translation. Contributed
166            by Norbert Solymosi.
167    
168    2004-11-26  Bernhard Herzog  <[email protected]>
169    
170            * Extensions/svgexport/test/test_svgmapwriter.py
171            (Testobjectexport.test_transparent_polygon): Commented out some
172            debug prints
173    
174    2004-11-24  Jan-Oliver Wagner <[email protected]>
175    
176            Fix broken tests for svg extension and added svg legend
177            to Experimental menu.
178    
179            * Extensions/svgexport/test/test_svgmapwriter.py: Fix to have
180            the test run correctly even if the extension is a package.
181            Also removed the "import Thuban" which makes no sense.
182    
183            * Extensions/svgexport/__init__.py: Fix to have the extensions'
184            test module also be executed from the global test routine.
185            This is done by looking for the absense of the DISPLAY variable.
186    
187            * Extensions/svgexport/maplegend.py: Moved the menu entry from Extensions
188            to Experimental menu since this module has yet not reached a stable
189            status (ie. 1.0).
190    
191    2004-11-22  Bernhard Reiter <[email protected]>
192    
193            * Extensions/svgexport/svgmapwriter.py:
194            Added verbose variable and some logging depending on it.
195            (class VirtualDC(XMLWriter)): Minor improvement in the polygon loop,
196            because counting i is not necessary.
197            (class Pen, class Brush): Added simple __str__ methods.
198            (SVGRenderer.draw_polygone_shape): Fix #2698 (transparent polygons are
199            not exported to svg file) Note: holes still unhandled.
200    
201            * Extensions/svgexport/test/test_svgmapwriter.py:
202                    Made a baseclass TestWithDC for test needed a DC.
203                    Added tests for bug #2698 (transparent polygons are not
204                    exported to svg file):
205                    Testobjectexport.test_transparent_polygon()
206    
207            * Thuban/Model/base.py (UnsetModified):
208            Fixed some typos in docstring.
209    
210            * Thuban/UI/baserenderer.py (BaseRenderer.draw_polygon_shape()):
211            Added hints on the used algorithm for handling holes.
212    
213    2004-11-20  Jan-Oliver Wagner <[email protected]>
214    
215            Some face lifting for the examples.
216    
217            * Examples/__init__.py: Make this directory a package.
218    
219            * Examples/simple_extensions/__init__.py: Make this directory a package.
220    
221            * Examples/simple_extensions/hello_world.py: Moved entry from Extensions
222            menu to Examples menu.
223    
224            * Examples/simple_extensions/simple_command.py: Some more comments,
225            minor changes.
226    
227            * Examples/simple_extensions/simple_tool.py: Minor changes.
228    
229    2004-11-20  Jan-Oliver Wagner <[email protected]>
230    
231            Changed way of extension registry for wms and added extension
232            registry for umn_mapserver extension.
233    
234            * Extensions/wms/__init__.py: Added registry entry and the importing
235            of the actual wms module. Included a test for the required PyOGCLib.
236    
237            * Extensions/wms/wms.py: Removed registry entry (moved to __init__.py).
238    
239            * Extensions/umn_mapserver/__init__.py: Added registry entry and the
240            importing of the actual umn mapserver management modules.
241            Included a test for the required Python MapScript.
242    
243    2004-11-20  Jan-Oliver Wagner <[email protected]>
244    
245            Changed way of extension registry for importAPR, bboxdump
246            and added extension registry for svgexport.extension registry for
247            svgexport.
248    
249            * Extensions/importAPR/__init__.py: Added registry entry and the importing
250            of the actual importAPR module.
251    
252            * Extensions/importAPR/importAPR.py: Removed registry entry (moved to
253            __init__.py).
254    
255            * Extensions/bboxdump/__init__.py: Added registry entry and the importing
256            ����of the actual bboxdump module.
257    
258            * Extensions/bboxdump/bboxdump.py: Removed registry entry (moved to
259            ����__init__.py).
260    
261            * Extensions/svgexport/__init__.py: Added registry entry and the importing
262            of the svgsaver module.
263    
264            * Extensions/svgexport/svgsaver.py: Moved the menu entry from Extensions
265            to Experimental menu since this module has yet not reached a stable
266            status (ie. 1.0).
267    
268    2004-11-18  Jan-Oliver Wagner <[email protected]>
269    
270            Now the hit test considers the size of point symbols.
271    
272            * Thuban/UI/viewport.py (ViewPort._hit_point): Added optional parameter
273            'size' defaulting to the previously fixed value 5.
274            Extended doc-string.
275            (Viewport._find_shape_in_layer): Resolved FIXME regarding flexibility
276            for symbols.
277            Now the size of the largest point symbol is determined to find out
278            about whether the point has been hit.
279            This fixes the problem that only clicks inside a fixed distance of
280            5 where found.
281    
282    2004-11-17  Jan-Oliver Wagner <[email protected]>
283    
284            Another open issue fixed regarding sizeable symbols: correct rendering of
285            selected symbols.
286    
287            * Thuban/UI/renderer.py (ScreenRenderer.draw_selection_incrementally):
288            Added consideration of the specific size of point symbols.
289            The property for each point symbol is retrieved and the size applied
290            for the rendering method.
291            Added doc-string.
292    
293    2004-11-16  Jan-Oliver Wagner <[email protected]>
294    
295            Changed way of Extension Registry for gns2shp and profiling.
296    
297            * Extensions/gns2shp/gns2shp.py: Removed registry entry (moved to
298            __init__.py).
299    
300            * Extensions/gns2shp/__init__.py: Added registry entry and the importing
301            of the actual gns2shp module.
302    
303            * Extensions/profiling/profiling.py: Removed registry entry (moved to
304            __init__.py).
305    
306            * Extensions/profiling/__init__.py: Added registry entry and the importing
307            of the actual profiling module.
308    
309    2004-10-28  Bernhard Reiter <[email protected]>
310    
311            * Extensions/svgexport/: Minor improvements to doc strings.
312    
313    2004-10-07  Jan-Oliver Wagner <[email protected]>
314    
315            Further elements for sizable point objects now
316            making this feature usable though not yet complete.
317    
318            * Thuban/Model/save.py (SessionSaver.write_classification): Write
319            attribute 'size' for cldata when the shape layer is of point type.
320            This also now make the test_load.py tests happy.
321    
322            * Thuban/Model/classgen.py (CustomRamp.GetProperties): Added size
323            gradient.
324    
325            * Thuban/UI/classifier.py (ID_SELPROP_SPINCTRL): Renamed to
326            ID_SELPROP_SPINCTRL_LINEWIDTH.
327            (ID_SELPROP_SPINCTRL_LINEWIDTH): New Id replaces ID_SELPROP_SPINCTRL.
328            (ID_SELPROP_SPINCTRL_SIZE): New Id.
329            (SelectPropertiesDialog.__init__): Added a second spin control
330            for the size in case the corresponding layer is of point type.
331            (SelectPropertiesDialog._OnSpin): Renamed to _OnSpinLineWidth.
332            (SelectPropertiesDialog._OnSpinLineWidth): New. Former _OnSpin.
333            (SelectPropertiesDialog._OnSpinSize): New. Set size of property
334            and refresh preview.
335    
336    
337    
338    2004-10-04  Martin Schulze  <[email protected]>
339    
340            * Extensions/wms/test/test_parser.py
341            (TestWMSCapabilitiesParser.test_compareLists): Added missing
342            self-test for compareLists()
343            (TestWMSCapabilitiesParser.test_compareDicts): Added missing
344            self-test for compareDicts()
345            (TestWMSCapabilitiesParser.test_compareLists): Adding more tests
346            to verify the test routine fails with non-equal arguments
347            (TestWMSCapabilitiesParser.test_compareDicts): Adding more tests
348            to verify the test routine fails with non-equal arguments
349    
350    2004-10-03  Jan-Oliver Wagner <[email protected]>
351    
352            First elements for sizeable point objects.
353    
354            * Resources/XML/thuban-1.1.dtd: Added size attribute to cldata.
355    
356            * Data/iceland_sample_size.thuban: New. Sample for sized point objects.
357    
358            * test/test_load.py (ClassificationTest.TestLayers): Added SetSize in case
359            of a corresponding argument is given.
360            (TestSymbolSize): New. Test the size attribute of cldata.
361    
362            * Thuban/Model/classification.py: Removed some trailing whitespaces.
363            (ClassGroupProperties.__init__): Set default size.
364            (ClassGroupProperties.SetProperties): Set the size.
365            (ClassGroupProperties.GetSize): New. Return the size.
366            (ClassGroupProperties.SetSize): New. Set the size.
367            (ClassGroupProperties__eq__): Compare also size.
368            (ClassGroupProperties__repr__): Print also size.
369    
370            * Thuban/Model/load.py (SessionLoader.start_cldata): Also parse
371            the size attribute.
372    
373            * Thuban/UI/classifier.py (ClassDataPreviewer.Draw): Added doc-string.
374            Also, now there is a return value that indicates whether the drawing
375            size exceeded the given rect extent and if so the new extent.
376            Finally, point objects are drawn depending on the size. If either
377            the width or height is exceeded, the new extent is returned.
378            (ClassRenderer.Draw): Now when calling the previewer drawing function,
379            evaluate the return value and, if not None, adapt the grid widget size
380            accordingly and redraw again.
381    
382            * Thuban/UI/baserenderer.py (BaseRenderer.draw_shape_layer_incrementally):
383            If the draw function is for points, call it with the size as additional
384            parameter.
385            (BaseRenderer.draw_point_shape): Added additional, optional parameter for
386            the size. Compute the radius using the size.
387    
388            * Extensions/importAPR/apr.py (APR_BMkSym.GetThubanProp): Now
389            that Thuban supports size, apply this correctly.
390    
391            * Extensions/importAPR/importAPR.py: Bumped version to 0.1.1.
392    
393    2004-10-03  Jan-Oliver Wagner <[email protected]>
394    
395            * Doc/manual/thuban-manual-de.xml: Started translation of
396            Map chapter.
397    
398    2004-10-01  Martin Schulze  <[email protected]>
399    
400            * Extensions/wms/properties.py (wmsProperties.__init__): Extended
401            argument for general use through properties-dialog selector
402            
403            * Thuban/UI/classifier.py: Register properties dialog classes for
404            both provided layer classes/types.
405    
406            * Thuban/UI/mainwindow.py (MainWindow.OpenLayerProperties): The
407            map can be retrieved through the parent which is passed to the
408            constructor anyway and doesn't require an argument of its own,
409            required for the unification of arguments for general use through
410            properties-dialog selector.
411            (MainWindow.OpenOrRaiseDialog): Move the logic for checking
412            whether a dialog is already opened (and raising it to the users
413            attention) and creating a new dialog into a function of its own
414            (MainWindow.OpenLayerProperties): Use the new OpenOrRaiseDialog()
415            method
416            (MainWindow.OpenLayerProperties): Utilise the new ClassMapper for
417            global registration of properties dialog classes (which are indeed
418            layer-specific).
419    
420            * Thuban/UI/classifier.py (Classifier.__init__): Unify arguments
421            for general use through properties-dialog selector, the map can be
422            retrieved through the parent and doesn't require an argument of
423            its own.
424    
425            * Extensions/wms/wms.py: Register the properties dialog class for
426            the provided WMS layer
427    
428    2004-09-28  Jan-Oliver Wagner <[email protected]>
429    
430            New feature: Registry for Extensions.
431    
432            * Thuban/UI/extensionregistry.py: This module defines a registry for
433            Extensions.
434    
435            * Thuban/UI/about.py (About.__init__): Added description
436            of the registered extensions with all of the information.
437    
438            * Thuban/Model/extension.py (Extension): Improved doc-string.
439    
440            * Extensions/gns2shp/gns2shp.py, Extensions/importAPR/importAPR.py,
441            Extensions/bboxdump/bboxdump.py, Extensions/profiling/profiling.py,
442            Extensions/wms/wms.py: Added registration of the extension.
443    
444    2004-09-27  Bernhard Reiter <[email protected]>
445    
446            More fixes to svgexport to make used ids unique and
447            conforming to XML's Name production.
448    
449            * Extensions/svgexport/test/test_svgmapwriter.py: Added new tests
450            test_xml_id_constraints(), test_make_ide_nosetbaseid() and
451            test_make_id_nonintegersetid().  Switched SetID and SetBaseID.
452            Added Bernhard R. as author.
453            * Extensions/svgexport/svgmapwriter.py (make_id): Using "_" as
454            concatenation char now (makes test_make_ide_nosetbaseid() valid).
455            Also transform second id part with "%d" and catch the TypeError
456            to raise SVGMapWriterError (making test_make_id_nonintegersetid() ok).
457            Corrected typo inBernhard's author line.
458            (SetBaseID): Return the transformed base id. Transform characters
459            which are not alnum() or in ".-_" to binascii.b2a_hex(). Added
460            import binascii. If to be set string starts with "xml" or so, add "t".
461            (draw_shape_layer_incrementally): use the returned value of SetBaseID
462            for used_baseids checks.
463    
464    2004-09-25  Bernhard Herzog  <[email protected]>
465    
466            * test/test_layer.py (TestLayer.test_arc_layer_with_projection):
467            Remove a debug print and some tab characters.
468    
469    2004-09-25  Bernhard Reiter <[email protected]>
470    
471            * Extensions/svgexport/svgmapwriter.py: Added Bernhard R. as Author.
472            (SetBaseID, SetID, make_id): Improved docstring comments to explain
473            the interaction of the three functions and the XML id contrains.
474    
475    
476    2004-09-23  Jan-Oliver Wagner <[email protected]>
477    
478            * Doc/ThubanModel.xmi: New. UML file for Thuban Model
479            Module.
480    
481            * Doc/README: Added info on ThubanModel.xmi.
482    
483    2004-09-23  Jan-Oliver Wagner <[email protected]>
484    
485            * Doc/README: New. Some info about how to generate technical
486            documentation from the source code.
487            This text was send to the Thuban developer mailing list on
488            September 21st 2004 by Bernhard Reiter.
489    
490    2004-09-21  Bernhard Reiter <[email protected]>
491    
492            Improved the svgexport to only use unique ids. Will issues
493            an error message dialoge when two layer names are the same.
494            ShapeIDs are now added with a dash within the svg ids.
495    
496            * Extensions/svgexport/svgmapwriter.py (SVGMapWriterError): New.
497            * Extensions/svgexport/test/test_svgmapwriter.py: Added imports
498            (TestSVGRenderer): New test class with test_make_in() and
499            test_check_for_layer_name_clash()
500            * Extensions/svgexport/svgmapwriter.py (SVGRenderer): Fixed __init__()
501            and draw_shape_layer_incrementally() to not use a baseid twice,
502            satisfying test_check_for_layer_name_clash()
503            (VirtualDC.make_id): Use a dash between baseit and id, satisfies
504            test_make_in().
505            * Extensions/svexport/svgsaver.py: Import SVGMapWriterError, wxOK
506            and wxICON_HAND.
507            (write_to_svg): Put dc and rendering in a try statement and on
508            catching SVGmapWriterError notify the user and delete the target file.
509    
510    2004-09-20  Bernhard Reiter <[email protected]>
511    
512            * Model/base.by, Model/layer.py: Fixed typos in docstrings.
513    
514    2004-09-03  Jan Sch�ngel  <[email protected]>
515    
516            * Extensions/umn_mapserver/mapfile(MF_Class.add_thubanstyle): Fix a
517            small bug with the line color. Now the line color will now only set
518            if it is set in Thuban an not Transparent.
519            
520            * Extensions/umn_mapserver/mf_export(tblayer_to_map): Fixed a bug with
521            deleting the layers from mapfile. Now all layers will delete backwards
522            from the last.
523    
524    2004-08-20  Silke Reimer <[email protected]>
525    
526            * Thuban/Model/layer.py:
527            Fixes bug in projection handling: Otherwise very large region might not
528            have valid values in the layer's projection.
529    
530    2004-08-20  Silke Reimer <[email protected]>
531    
532            * Thuban/UI/about.py:
533            small changes to be consistent with coding style.
534              
535    2004-08-13  Martin Schulze  <[email protected]>
536    
537            * Extensions/wms/test/test_ogclib.py (TestOGCLib.compare_URLs):
538            Adjusted a comment
539    
540    2004-08-11  Silke Reimer <[email protected]>
541    
542            * Thuban/UI/about.py: Small changes to encoding related stuff to avoid
543                    too many and too enhanced imports of locale
544    
545    2004-08-10  Silke Reimer <[email protected]>
546    
547            * Thuban/UI/about.py: Fixed encoding problem of about dialog: Added
548                    function unicodeToLocale() to convert special characters to users
549                    locale encoding
550    
551    2004-08-10  Jan-Oliver Wagner <[email protected]>
552    
553            * Doc/technotes/coding_guidelines.txt: Added rule 'Method names start with
554            lower case letter'
555    
556    2004-08-09  Jan Sch�ngel  <[email protected]>
557    
558            * ChangeLog: Rewrite the last ChangeLog entry to follow
559            the standard way.
560    
561            * Extensions/umn_mapserver/mapfile: Moved the import AnnotationLayer to
562            the function where it is needed, because it don't works if it stands
563            at the beginning.
564            (MF_Layer.__init__): Removed the extra numclassed variable. Now
565            numclasses from the mapscript will be used.
566            (MF_Layer.get_index): New. Return the index of the layer in mapfile.
567            (MF_Layer.set_classes): New. A Classlist will be set to the layer.
568            (MF_Layer.set_metadata): New. A Metadata mapscript object will set.
569            (MF_Layer.remove_allclasses): New. All class of the layer will remove.
570            (MF_Map.create_new_layer): New. A new Layer is created and associated
571            with the mapscript object.
572            (MF_Map.set_layerorder): New. The Layer order like in thuban is set in
573            the mapscript.
574            (MF_Map.add_thubanlayer): Now a new layerobj is created if no one is
575            linked to the layer in thuban, else the layerobject linked to the
576            thubanlayer will be used.
577            AnnotationLayer will now store the filename of the shapefile.
578            (MF_Map.remove_layer): If a layer is removed the associated object
579            must be set new.
580            
581            * Extensions/umn_mapserver/mf_export.py(tb_layer_to_map): Add all
582            layers which are exists in thuban to the mapobj. All removed Layers
583            will be removed from the mapobj.
584            Added comments to all functions.
585            (thuban_to_map): No layer will be removed here.
586            
587            * Extensions/umn_mapserver/mf_handle.py
588            (_has_umn_mapobj_and_selectedlayer): Activating the layer menu. Now
589            Layersettings for the mapserver kann be edited.
590    
591            * Extensions/umn_mapserver/mf_import.py: Now all layers which are
592            imported, will be linked with the associated MF_Layer.
593            (import_mapfile): All layers, which are not selected, will be removed.
594            Disable the "import layer from mapfile" menu option.
595    
596            * Extensions/umn_mapserver/sample/iceland.map: Set the status of the
597            Annotation Layer from DEFAULT to OFF. The DEFAULT setting turns the
598            layer on permanently.
599    
600    2004-08-03  Jan Sch�ngel  <[email protected]>
601    
602            * Extensions/umn_mapserver/mapfile.py(MF_Metadata.remove_allmetadata):
603            New. This function removes all metadata
604            (MF_Layer.set_group): New. Set the group setting.
605            (MF_Layer.get_group): New. Get the group setting.
606            (MF_Map): Removed the extra numlayers variable, used the mapscript
607            parameter instead.
608            (MF_Map.get_numlayers): New. This get numlayers.
609            (MF_Map.remove_all_layers): New. Removes all layers from the mapobj.
610            (MF_Map.add_thubanlayer): Replaced the exception handling by a check
611            if the object is an instance. Also added the annotation layer here to
612            export, but only the layer is created in the mapfile.
613    
614            * Extensions/umn_mapserver/mf_export.py(export_mapfile): Removed
615            the check if a mapobj exist, because its not needed anymore. The
616            export function is only available if a mapobj exist.
617            Use the new function to remove all layers.
618            
619            * Extensions/umn_mapserver/mf_handle.py(Layer_Dialog): Added a group
620            option and the metadata button. The layer dialog is temporary disabled.
621            (Metadata_CustomDataTable): Added some functions to show the grid
622            correct.
623    
624            * Extensions/umn_mapserver/mf_import.py: Moved the code for showing
625            the number of layer from import_mapfile to this function.
626            (AnnotationLayer): New. This Class shows the Annotation layer in
627            thuban. The layer don't do anything. It's only to show the layer
628            and to save the layer order.
629            (add_annotationlayer): New. Import an annotation layer to thuban.
630            (select_layer2import): New. Import only layers to thuban and not
631            the other settings like projection or scalebar.
632            (create_new_mapfile): Moved the _has_umn_mapobj function and the
633            create_new_mapfile functions from mf_handle.py to mf_import.py.
634            
635            * Extensions/umn_mapserver/sample/iceland.map: Added the group
636            parameter to the roads and cultural layers. Also added a new
637            Annotation Layer for the cultural points.
638    
639            * Extensions/umn_mapserver/sample/iceland.html: Added the select
640            option for the annotation layer.
641    
642            * Extensions/umn_mapserver/sample/index.html: Added the start
643            parameter for the annotation layer.
644    
645    2004-08-01  Jan-Oliver Wagner <[email protected]>
646    
647            * Doc/manual/thuban-manual-de.xml (Chapter Session Management):
648            translation completed.
649    
650            * Doc/manual/thuban-manual.xml (Chapter Session Management):
651            Fixed unprecise description for Save Session.
652    
653    2004-07-31  Jan-Oliver Wagner <[email protected]>
654    
655            Started translation of Users Manual into german.
656    
657            * Doc/manual/thuban-manual-de.xml: New. German Users Manual.
658    
659            * Doc/manual/Makefile: Added build instructions for german
660            users manual.
661    
662            * Doc/manual/thuban-manual.xml: Minor corrections in Introduction.
663    
664    2004-07-28  Jan Sch�ngel  <[email protected]>
665    
666            * Extensions/umn_mapserver/mapfile.py(MF_Metadata): Changed all class
667            functions. Now all metadata will handle by the function and its not
668            needed to initialize it from outside. Therefor the associated mapobj
669            will be stored in the Metadata Object. So we can use the special
670            functions from the associated mapobj to get the Metadata.
671            Therefor all initialization code for the metadata is removed from the
672            other classes.
673            (MF_Layer): Added a function to get the metadata object.
674            (MF_Map): Added a function to set the mappath, the path where
675            the mapfile ist stored.
676    
677            * Extensions/umn_mapserver/mf_export.py(thuban_to_map): Changed the code
678            to set the extent in the mapfile. Now the code is set by the displayed
679            data in the Thuban-view.
680            (export_mapfile): The shapepath is now set empty, until relative
681            pathnames are supported.
682    
683            * Extension/umn_mapserver/mf_handle.py: Added a dialog to handle
684            metadata. Yet only mapfile metadata are supported. Layer and class
685            supported are not implemented.
686            Added a dialog to handle layer informations. The dialog only shows the
687            selected layer at the moment.
688    
689            * Extensions/umn_mapserver/mf_import.py(import_mapfile): Changed the
690            code for setting the extent in thuban. Now the extent is set to the
691            given extent from the mapfile.
692            Fixed a logical mistake. Now the extent is set when realy a layer is
693            loaded, and not if one is selected to load.
694    
695            * Extensions/umn_mapserver/sample/iceland.html: Added code to zoom and
696            move the shown map in the browser.
697    
698            * Extensions/umn_mapserver/sample/iceland.map: Added a new metadata
699            line to the mapobj and added metadata to the political layer.
700    
701            * Extensions/umn_mapserver/test/test_mapserver.py: Changed the test
702            for Metadata.
703    
704    2004-07-26  Martin Schulze  <[email protected]>
705    
706            * Thuban/Lib/classmapper.py (ClassMapper.has): Added the new
707            ClassMapper
708    
709            * test/test_classmapper.py (TestMapping.test_mapper): Added a Test
710            case for the new ClassMapper
711    
712    
713    2004-07-22  Bernhard Herzog  <[email protected]>
714    
715            * Thuban/UI/viewport.py (ViewPort.VisibleExtent): New.  Return the
716            visible extent of the map in projected coordinates
717    
718            * test/test_viewport.py (SimpleViewPortTest.test_default_size)
719            (SimpleViewPortTest.test_init_with_size): Add some VisibleExtent()
720            tests.
721            (SimpleViewPortTest.test_visible_extent): New. The real test for
722            VisibleExtent()
723    
724    2004-07-22  Bernhard Herzog  <[email protected]>
725    
726            * test/test_viewport.py: Use support.run_tests as the main
727            function when running asa script.
728    
729    2004-07-22  Jan Sch�ngel <[email protected]>
730    
731            * Extensions/umn_mapserver/mf_export.py: Added "import os"
732            Removed the old "import Thuban.UI.mainwindow" code.
733            (tbextent_to_map): Removed the extra function and at the code direct
734            to "thuban_to_map" function.
735            (write_creatorcomment): Added. Now a short comment is added to the
736            beginning of an generated mapfile.
737            (export_mapfile): Now the Path and filename are saved in to variables,
738            and not together in one variable. This is needed for the new
739            write_creatorcomment function.
740                    
741            * Extensions/umn_mapserver/mf_import.py (import_mapfile): Added the
742            import module "re". Also added Range and the ClassGroupRange import
743            from Thuban. Both are needed for the new range expression import.
744            (create_rangeexpression): Added. Creates a Range Expression in Thuban
745            style from a given mapfile expression.
746            (added_rasterlayer): Make some small code changes. The shapepath is
747            now stored in an extra variable and the clazz_name is set empty if no
748            class name set in the mapfile.
749            Changed the Error message for Range Expressions, becaus the new
750            function create a error string which will be shown in the dialog.
751    
752            * Extensions/umn_mapserver/test/test_mapserver.py: Added a test for the
753            range expression import.
754    
755    2004-07-21  Jan-Oliver Wagner <[email protected]>
756    
757            * Extensions/umn_mapserver/README: Added hint that
758            installation as root can be avoided. Removed all tabs.
759    
760    2004-07-16  Bernhard Herzog  <[email protected]>
761    
762            * test/test_viewport.py
763            (ViewPortTest.test_changing_map_projection): Check that changing
764            the projection of an empty map shown in a viewport doesn't lead to
765            exceptions in the viewport's handler for the
766            MAP_PROJECTION_CHANGED messages
767    
768            * Thuban/UI/viewport.py (ViewPort.map_projection_changed): Only
769            try to keep the same region visible when the map actually contains
770            something
771    
772    2004-07-15  Jan Sch�ngel <[email protected]>
773    
774            * Extensions/umn_mapserver/mapfile.py: Added a function to get the
775            mappath directly from the mapobj. Is needed because of the changes
776            in mf_import.py.
777            (MF_Layer.add_thubanclass): Added a new comment.
778            (MF_Map.set_extent): Fixed a bug with exporting empty mapobj. If the
779            mapobj is empty there is no extent get from thuban an so no one can
780            set to th mapobj.
781            
782            * Extensions/umn_mapserver/mf_import.py (import_mapfile): Updated
783            the discription.
784            Split the funktion in to three smaller ones. The new functions are
785            add_rasterlayer, add_polygonlayer and select_layer2import.
786            Removed the mapfilepath and filepath initialisation, because its know
787            include in the new functions.
788            Now nothing will be imported if cancel is pressed in the
789            layer choice dialog.
790    
791    2004-07-14  Jan Sch�ngel <[email protected]>
792    
793            * Extensions/umn_mapserver/mapfile.py: Added ClassGroupDefault to
794            import.
795            (MF_Symbolset): Removed the extra variable for numsymbols.
796            (MF_Class.__init__): Added a comment to the exception clause.
797            Removed the extent init, because it was not needed anymore.
798            (MF_Layer.add_thubanclass): Added the code to set the class name to
799            the expression value from thuban if no label is defined.
800            Added the code to export Range expressions from thuban to the mapfile.
801            (MF_Map.set_extent): Removed the exception and replace it by some if
802            code. If the size of a map is not defined the size will be set to 1,1.
803            This is necessary because if the extent is set, mapscript checks if
804            the size is greater than zero.
805            (MF_Web): Added the get and set function for the template.
806    
807            * Extensions/umn_mapserver/mf_export.py: Added the function to check
808            if a mapobject exists and used it to set the status of the menu items.
809            If no mapfile exists the settings could not be edditied.
810            Define after which menuitem the exportitem will include.
811            
812            * Extensions/umn_mapserver/mf_handle.py: Removed the import
813            Thuban.UI.mainwindow clause, because it is not needed.
814            Added the command Refresh() to all "OnChangeColor()" functions,
815            because the color preview window was not updated on a color change.
816            Added the function to check if a mapobject exists and used it to set the
817            status of the menu items. If no mapobject exists the settings could not
818            be edditied.
819            (Map_Dialog): Moved the imagetype selector from the
820            Outputformat_Dialog to Map_Dialog and removed Outputformat_Dialog.
821            (Web_Dialog): Removed the name label and added the template textbox.
822    
823            * Extensions/umn_mapserver/mf_import.py (import_mapfile): Replace
824            the exception handling on loading the layers by an if statement. It
825            is not necessary to us the exception there.
826            The Filepath creation now use os.path.join to build the path.
827    
828            * Extensions/umn_mapserver/test/test_mapserver.py: Moved the testMap
829            definition from global to the setUp function. Now the testMap will
830            initialize new on each test.
831    
832            * Extensions/umn_mapserver/sample/iceland.map: Include three new
833            classes in the Line Layer, to test logical Expressions.
834            Set the status of the class "Point9" in the Point Layer to off
835            
836    2004-07-13  Bernhard Herzog  <[email protected]>
837    
838            * Thuban/UI/baserenderer.py
839            (BaseRenderer.render_map_incrementally): Fix a logic bug in the
840            optimization that tries not to draw layers under a raster layer.
841            The bug was harmless.  All it effectively did was to produce The a
842            strange messages about not being able to draw Layer instances for
843            all vector layers below a raster layer which would be invisible
844            anyway because the raster layer currently always covers the entire
845            window
846    
847    2004-07-08  Jan Sch�ngel <[email protected]>
848    
849            * Extensions/umn_mapserver/mapfile.py: Added code to generade and get
850            a list of supported outputformats. This formats are not alle supported
851            because there is no possibility to get the outputformat without the
852            name known. Make some formal changes to the code.
853            (MF_Map.set_name()): Fixed a bug if the name is None.
854    
855            * Extensions/umn_mapserver/mf_handle.py: Removed the image_type import
856            statement, because its not needed anymore. The Outputformat is now
857            given as string from the object. Make some formal changes to the code.
858    
859            * Extensions/umn_mapserver/test/test_mapserver.py: Added new test for
860            most of the new setting which were added during the last changes.
861            Removed the MF_Size Test.
862            
863            * Extensions/umn_mapserver/test/test.map: Added a new class to the
864            cultural Layer to test expressions and the the status of that layer
865            from on to default.
866            Changed the data path the the correct Thuban Data
867            Added the Outputformat Object and Symbol Object
868            
869    2004-07-07  Jan Sch�ngel <[email protected]>
870    
871            * Extensions/umn_mapserver/mapfile.py: Added some new
872            settings to edit (outputformat, label, imagetype)
873    
874            * Extensions/umn_mapserver/mf_handle.py: Added some setting to
875            the Label Dialog and add the OutputDialog.
876            Make some changes to the code order.
877    
878    2004-07-06  Jan Sch�ngel <[email protected]>
879    
880            * Extensions/umn_mapserver/mapfile.py: Added the symbolObj, pointObj
881            and line Obj and add the scalebar_status_type, scalebar_style_type and
882            scalebar_position_type.
883            Added the symbol- and symbolsetObject (MF_Symbol,MF_Symbolset). The
884            are only used to create a Symbol like the circle in Thuban.
885            Added the scalebarObject (MF_Scalebar)
886            (MF_Class): Added set_status and get_status.
887            (MF_Layer.add_thubanclass): Added code to set the class status
888            (MF_Map): Added code to handle the symbols and scalebar
889            (MF_Label): Added the set_partials and get_partials functions
890            
891            * Extensions/umn_mapserver/mf_export.py: Added MF_Symbol to import
892            from mapfile. Added a function to create a circle object like the one
893            from thuban if no one exists.
894            
895            * Extensions/umn_mapserver/mf_handle.py: All colors are now set when
896            press ok in the assosiated dialog and not at the end of the
897            colordialog.
898            Added the Dialog for the Scalebar.
899            (Label_Dialog): Added the offset option
900    
901            * Extensions/umn_mapserver/mf_import.py: Added code to import the
902            status of the Classes.
903            Fixed a bug with the projection. Now the to_meter parameter will be
904            added to the Projection only if it doesn't exists.
905    
906    2004-07-01  Jan Sch�ngel <[email protected]>
907    
908            Added the functionality to handle the content thuban is not
909            able to handle directly.
910    
911            * Extensions/umn_mapserver/mf_handle.py: New. This module extents
912            Thuban with the possibility to edit the mapfile content.        
913            
914            * Extensions/umn_mapserver/mf_import.py: Added the possibility
915            to import mapfiles without any layer selected. So it is possible
916            to edit the other settings in a mapfile.
917            (import_mapfile): Added code to use the editing functions.
918            Added the possibility to import the projection to a layer if one
919            is defined.
920            Status settings (On,Off) will now set in thuban (visible, invisible).
921            fixed a bug with with classnames. If no classname is set in mapfile
922            the value in Thuban will set to the expression.
923            
924            * Extensions/umn_mapserver/mf_export.py(export_mapfile): Added the
925            possibility to save a new mapfile or use the old one which is
926            imported or new created.
927            Added code to use the editing functions.
928            Remove some not needed import statements
929    
930            * Extensions/umn_mapserver/mapfile.py: Added new types which are
931            need for the editing functions.
932            Added needed set-functions for the editing functions.
933            Added the possibility to export rasterimages.
934            Added new classes (MF_Web, MF_Label, MF_Legend, MF_Symbol,
935            MF_SymbolSet). MF_Symbol and MF_SymbolSet are not needed at the
936            moment.
937            (MF_Class.set_thubanstyle): Now point layers will set to a default
938            symbol to show a circle in mapserver and not only a 1px dot.
939            (MF_Style.__init__): Fixed a bug with the color. Color was not set
940            correct before.
941            (MF_Size): Removed, because it is not needed.
942            
943            * Extensions/umn_mapserver/README: Added the hints to use the
944            export and editing functions, too.
945    
946            * Extensions/umn_mapserver/sample/iceland.map: Added the
947            new parameter "UNITS METERS".
948            Change the political layer to status OFF.
949    
950            * Extensions/umn_mapserver/sample/README: Added some
951            more details to setup the sample in the MapServer.
952            
953    2004-06-26  Bernhard Reiter <[email protected]>
954    
955            * Extensions/svgexport/test/test_svgmapwriter.py:
956            Removed class VFile and used standard StringIO instead.
957    
958    2004-06-23  Jan Sch�ngel  <[email protected]>
959    
960            Add the export function to the umn_mapserver extension.
961    
962            * Extension/umn_mapserver/mf_export.py: New. This module extents
963            Thuban with the possibility to export the Thuban content.
964    
965            * Extensions/umn_mapserver/mapfile.py: Expand the classes to use
966            with the export module. Especially added the possibility to
967            add thuban objects directly to the map objects.
968    
969            * Extensions/umn_mapserver/mf_import.py: Removed the wxCHANGE_DIR,
970            because of the hint from Bernhard Herzog.
971            Corrected the handling of absolute pathnames.
972            Changed the Text of the Menu-Item, now the beginning is upper case.
973    
974            * Extensions/umn_mapserver/README: Added the --with-tiff statement.
975    
976  2004-06-16  Jan Sch�ngel  <[email protected]>  2004-06-16  Jan Sch�ngel  <[email protected]>
977    
978          Add a sample and make some changes.          Add a sample and make some changes.

Legend:
Removed from v.2250  
changed lines
  Added in v.2451

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26