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

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

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26