/[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 2352 by bernhard, Mon Sep 27 09:56:13 2004 UTC
# Line 1  Line 1 
1    2004-09-27  Bernhard Reiter <[email protected]>
2    
3            More fixes to svgexport to make used ids unique and
4            conforming to XML's Name production.
5    
6            * Extensions/svgexport/test/test_svgmapwriter.py: Added new tests
7            test_xml_id_constraints(), test_make_ide_nosetbaseid() and
8            test_make_id_nonintegersetid().  Switched SetID and SetBaseID.
9            Added Bernhard R. as author.
10            * Extensions/svgexport/svgmapwriter.py (make_id): Using "_" as
11            concatenation char now (makes test_make_ide_nosetbaseid() valid).
12            Also transform second id part with "%d" and catch the TypeError
13            to raise SVGMapWriterError (making test_make_id_nonintegersetid() ok).
14            Corrected typo inBernhard's author line.
15            (SetBaseID): Return the transformed base id. Transform characters
16            which are not alnum() or in ".-_" to binascii.b2a_hex(). Added
17            import binascii. If to be set string starts with "xml" or so, add "t".
18            (draw_shape_layer_incrementally): use the returned value of SetBaseID
19            for used_baseids checks.
20    
21    2004-09-25  Bernhard Herzog  <[email protected]>
22    
23            * test/test_layer.py (TestLayer.test_arc_layer_with_projection):
24            Remove a debug print and some tab characters.
25    
26    2004-09-25  Bernhard Reiter <[email protected]>
27    
28            * Extensions/svgexport/svgmapwriter.py: Added Bernhard R. as Author.
29            (SetBaseID, SetID, make_id): Improved docstring comments to explain
30            the interaction of the three functions and the XML id contrains.
31    
32    
33    2004-09-23  Jan-Oliver Wagner <[email protected]>
34    
35            * Doc/ThubanModel.xmi: New. UML file for Thuban Model
36            Module.
37    
38            * Doc/README: Added info on ThubanModel.xmi.
39    
40    2004-09-23  Jan-Oliver Wagner <[email protected]>
41    
42            * Doc/README: New. Some info about how to generate technical
43            documentation from the source code.
44            This text was send to the Thuban developer mailing list on
45            September 21st 2004 by Bernhard Reiter.
46    
47    2004-09-21  Bernhard Reiter <[email protected]>
48    
49            Improved the svgexport to only use unique ids. Will issues
50            an error message dialoge when two layer names are the same.
51            ShapeIDs are now added with a dash within the svg ids.
52    
53            * Extensions/svgexport/svgmapwriter.py (SVGMapWriterError): New.
54            * Extensions/svgexport/test/test_svgmapwriter.py: Added imports
55            (TestSVGRenderer): New test class with test_make_in() and
56            test_check_for_layer_name_clash()
57            * Extensions/svgexport/svgmapwriter.py (SVGRenderer): Fixed __init__()
58            and draw_shape_layer_incrementally() to not use a baseid twice,
59            satisfying test_check_for_layer_name_clash()
60            (VirtualDC.make_id): Use a dash between baseit and id, satisfies
61            test_make_in().
62            * Extensions/svexport/svgsaver.py: Import SVGMapWriterError, wxOK
63            and wxICON_HAND.
64            (write_to_svg): Put dc and rendering in a try statement and on
65            catching SVGmapWriterError notify the user and delete the target file.
66    
67    2004-09-20  Bernhard Reiter <[email protected]>
68    
69            * Model/base.by, Model/layer.py: Fixed typos in docstrings.
70    
71    2004-09-03  Jan Sch�ngel  <[email protected]>
72    
73            * Extensions/umn_mapserver/mapfile(MF_Class.add_thubanstyle): Fix a
74            small bug with the line color. Now the line color will now only set
75            if it is set in Thuban an not Transparent.
76            
77            * Extensions/umn_mapserver/mf_export(tblayer_to_map): Fixed a bug with
78            deleting the layers from mapfile. Now all layers will delete backwards
79            from the last.
80    
81    2004-08-20  Silke Reimer <[email protected]>
82    
83            * Thuban/Model/layer.py:
84            Fixes bug in projection handling: Otherwise very large region might not
85            have valid values in the layer's projection.
86    
87    2004-08-20  Silke Reimer <[email protected]>
88    
89            * Thuban/UI/about.py:
90            small changes to be consistent with coding style.
91              
92    2004-08-13  Martin Schulze  <[email protected]>
93    
94            * Extensions/wms/test/test_ogclib.py (TestOGCLib.compare_URLs):
95            Adjusted a comment
96    
97    2004-08-11  Silke Reimer <[email protected]>
98    
99            * Thuban/UI/about.py: Small changes to encoding related stuff to avoid
100                    too many and too enhanced imports of locale
101    
102    2004-08-10  Silke Reimer <[email protected]>
103    
104            * Thuban/UI/about.py: Fixed encoding problem of about dialog: Added
105                    function unicodeToLocale() to convert special characters to users
106                    locale encoding
107    
108    2004-08-10  Jan-Oliver Wagner <[email protected]>
109    
110            * Doc/technotes/coding_guidelines.txt: Added rule 'Method names start with
111            lower case letter'
112    
113    2004-08-09  Jan Sch�ngel  <[email protected]>
114    
115            * ChangeLog: Rewrite the last ChangeLog entry to follow
116            the standard way.
117    
118            * Extensions/umn_mapserver/mapfile: Moved the import AnnotationLayer to
119            the function where it is needed, because it don't works if it stands
120            at the beginning.
121            (MF_Layer.__init__): Removed the extra numclassed variable. Now
122            numclasses from the mapscript will be used.
123            (MF_Layer.get_index): New. Return the index of the layer in mapfile.
124            (MF_Layer.set_classes): New. A Classlist will be set to the layer.
125            (MF_Layer.set_metadata): New. A Metadata mapscript object will set.
126            (MF_Layer.remove_allclasses): New. All class of the layer will remove.
127            (MF_Map.create_new_layer): New. A new Layer is created and associated
128            with the mapscript object.
129            (MF_Map.set_layerorder): New. The Layer order like in thuban is set in
130            the mapscript.
131            (MF_Map.add_thubanlayer): Now a new layerobj is created if no one is
132            linked to the layer in thuban, else the layerobject linked to the
133            thubanlayer will be used.
134            AnnotationLayer will now store the filename of the shapefile.
135            (MF_Map.remove_layer): If a layer is removed the associated object
136            must be set new.
137            
138            * Extensions/umn_mapserver/mf_export.py(tb_layer_to_map): Add all
139            layers which are exists in thuban to the mapobj. All removed Layers
140            will be removed from the mapobj.
141            Added comments to all functions.
142            (thuban_to_map): No layer will be removed here.
143            
144            * Extensions/umn_mapserver/mf_handle.py
145            (_has_umn_mapobj_and_selectedlayer): Activating the layer menu. Now
146            Layersettings for the mapserver kann be edited.
147    
148            * Extensions/umn_mapserver/mf_import.py: Now all layers which are
149            imported, will be linked with the associated MF_Layer.
150            (import_mapfile): All layers, which are not selected, will be removed.
151            Disable the "import layer from mapfile" menu option.
152    
153            * Extensions/umn_mapserver/sample/iceland.map: Set the status of the
154            Annotation Layer from DEFAULT to OFF. The DEFAULT setting turns the
155            layer on permanently.
156    
157    2004-08-03  Jan Sch�ngel  <[email protected]>
158    
159            * Extensions/umn_mapserver/mapfile.py(MF_Metadata.remove_allmetadata):
160            New. This function removes all metadata
161            (MF_Layer.set_group): New. Set the group setting.
162            (MF_Layer.get_group): New. Get the group setting.
163            (MF_Map): Removed the extra numlayers variable, used the mapscript
164            parameter instead.
165            (MF_Map.get_numlayers): New. This get numlayers.
166            (MF_Map.remove_all_layers): New. Removes all layers from the mapobj.
167            (MF_Map.add_thubanlayer): Replaced the exception handling by a check
168            if the object is an instance. Also added the annotation layer here to
169            export, but only the layer is created in the mapfile.
170    
171            * Extensions/umn_mapserver/mf_export.py(export_mapfile): Removed
172            the check if a mapobj exist, because its not needed anymore. The
173            export function is only available if a mapobj exist.
174            Use the new function to remove all layers.
175            
176            * Extensions/umn_mapserver/mf_handle.py(Layer_Dialog): Added a group
177            option and the metadata button. The layer dialog is temporary disabled.
178            (Metadata_CustomDataTable): Added some functions to show the grid
179            correct.
180    
181            * Extensions/umn_mapserver/mf_import.py: Moved the code for showing
182            the number of layer from import_mapfile to this function.
183            (AnnotationLayer): New. This Class shows the Annotation layer in
184            thuban. The layer don't do anything. It's only to show the layer
185            and to save the layer order.
186            (add_annotationlayer): New. Import an annotation layer to thuban.
187            (select_layer2import): New. Import only layers to thuban and not
188            the other settings like projection or scalebar.
189            (create_new_mapfile): Moved the _has_umn_mapobj function and the
190            create_new_mapfile functions from mf_handle.py to mf_import.py.
191            
192            * Extensions/umn_mapserver/sample/iceland.map: Added the group
193            parameter to the roads and cultural layers. Also added a new
194            Annotation Layer for the cultural points.
195    
196            * Extensions/umn_mapserver/sample/iceland.html: Added the select
197            option for the annotation layer.
198    
199            * Extensions/umn_mapserver/sample/index.html: Added the start
200            parameter for the annotation layer.
201    
202    2004-08-01  Jan-Oliver Wagner <[email protected]>
203    
204            * Doc/manual/thuban-manual-de.xml (Chapter Session Management):
205            translation completed.
206    
207            * Doc/manual/thuban-manual.xml (Chapter Session Management):
208            Fixed unprecise description for Save Session.
209    
210    2004-07-31  Jan-Oliver Wagner <[email protected]>
211    
212            Started translation of Users Manual into german.
213    
214            * Doc/manual/thuban-manual-de.xml: New. German Users Manual.
215    
216            * Doc/manual/Makefile: Added build instructions for german
217            users manual.
218    
219            * Doc/manual/thuban-manual.xml: Minor corrections in Introduction.
220    
221    2004-07-28  Jan Sch�ngel  <[email protected]>
222    
223            * Extensions/umn_mapserver/mapfile.py(MF_Metadata): Changed all class
224            functions. Now all metadata will handle by the function and its not
225            needed to initialize it from outside. Therefor the associated mapobj
226            will be stored in the Metadata Object. So we can use the special
227            functions from the associated mapobj to get the Metadata.
228            Therefor all initialization code for the metadata is removed from the
229            other classes.
230            (MF_Layer): Added a function to get the metadata object.
231            (MF_Map): Added a function to set the mappath, the path where
232            the mapfile ist stored.
233    
234            * Extensions/umn_mapserver/mf_export.py(thuban_to_map): Changed the code
235            to set the extent in the mapfile. Now the code is set by the displayed
236            data in the Thuban-view.
237            (export_mapfile): The shapepath is now set empty, until relative
238            pathnames are supported.
239    
240            * Extension/umn_mapserver/mf_handle.py: Added a dialog to handle
241            metadata. Yet only mapfile metadata are supported. Layer and class
242            supported are not implemented.
243            Added a dialog to handle layer informations. The dialog only shows the
244            selected layer at the moment.
245    
246            * Extensions/umn_mapserver/mf_import.py(import_mapfile): Changed the
247            code for setting the extent in thuban. Now the extent is set to the
248            given extent from the mapfile.
249            Fixed a logical mistake. Now the extent is set when realy a layer is
250            loaded, and not if one is selected to load.
251    
252            * Extensions/umn_mapserver/sample/iceland.html: Added code to zoom and
253            move the shown map in the browser.
254    
255            * Extensions/umn_mapserver/sample/iceland.map: Added a new metadata
256            line to the mapobj and added metadata to the political layer.
257    
258            * Extensions/umn_mapserver/test/test_mapserver.py: Changed the test
259            for Metadata.
260    
261    2004-07-26  Martin Schulze  <[email protected]>
262    
263            * Thuban/Lib/classmapper.py (ClassMapper.has): Added the new
264            ClassMapper
265    
266            * test/test_classmapper.py (TestMapping.test_mapper): Added a Test
267            case for the new ClassMapper
268    
269    
270    2004-07-22  Bernhard Herzog  <[email protected]>
271    
272            * Thuban/UI/viewport.py (ViewPort.VisibleExtent): New.  Return the
273            visible extent of the map in projected coordinates
274    
275            * test/test_viewport.py (SimpleViewPortTest.test_default_size)
276            (SimpleViewPortTest.test_init_with_size): Add some VisibleExtent()
277            tests.
278            (SimpleViewPortTest.test_visible_extent): New. The real test for
279            VisibleExtent()
280    
281    2004-07-22  Bernhard Herzog  <[email protected]>
282    
283            * test/test_viewport.py: Use support.run_tests as the main
284            function when running asa script.
285    
286    2004-07-22  Jan Sch�ngel <[email protected]>
287    
288            * Extensions/umn_mapserver/mf_export.py: Added "import os"
289            Removed the old "import Thuban.UI.mainwindow" code.
290            (tbextent_to_map): Removed the extra function and at the code direct
291            to "thuban_to_map" function.
292            (write_creatorcomment): Added. Now a short comment is added to the
293            beginning of an generated mapfile.
294            (export_mapfile): Now the Path and filename are saved in to variables,
295            and not together in one variable. This is needed for the new
296            write_creatorcomment function.
297                    
298            * Extensions/umn_mapserver/mf_import.py (import_mapfile): Added the
299            import module "re". Also added Range and the ClassGroupRange import
300            from Thuban. Both are needed for the new range expression import.
301            (create_rangeexpression): Added. Creates a Range Expression in Thuban
302            style from a given mapfile expression.
303            (added_rasterlayer): Make some small code changes. The shapepath is
304            now stored in an extra variable and the clazz_name is set empty if no
305            class name set in the mapfile.
306            Changed the Error message for Range Expressions, becaus the new
307            function create a error string which will be shown in the dialog.
308    
309            * Extensions/umn_mapserver/test/test_mapserver.py: Added a test for the
310            range expression import.
311    
312    2004-07-21  Jan-Oliver Wagner <[email protected]>
313    
314            * Extensions/umn_mapserver/README: Added hint that
315            installation as root can be avoided. Removed all tabs.
316    
317    2004-07-16  Bernhard Herzog  <[email protected]>
318    
319            * test/test_viewport.py
320            (ViewPortTest.test_changing_map_projection): Check that changing
321            the projection of an empty map shown in a viewport doesn't lead to
322            exceptions in the viewport's handler for the
323            MAP_PROJECTION_CHANGED messages
324    
325            * Thuban/UI/viewport.py (ViewPort.map_projection_changed): Only
326            try to keep the same region visible when the map actually contains
327            something
328    
329    2004-07-15  Jan Sch�ngel <[email protected]>
330    
331            * Extensions/umn_mapserver/mapfile.py: Added a function to get the
332            mappath directly from the mapobj. Is needed because of the changes
333            in mf_import.py.
334            (MF_Layer.add_thubanclass): Added a new comment.
335            (MF_Map.set_extent): Fixed a bug with exporting empty mapobj. If the
336            mapobj is empty there is no extent get from thuban an so no one can
337            set to th mapobj.
338            
339            * Extensions/umn_mapserver/mf_import.py (import_mapfile): Updated
340            the discription.
341            Split the funktion in to three smaller ones. The new functions are
342            add_rasterlayer, add_polygonlayer and select_layer2import.
343            Removed the mapfilepath and filepath initialisation, because its know
344            include in the new functions.
345            Now nothing will be imported if cancel is pressed in the
346            layer choice dialog.
347    
348    2004-07-14  Jan Sch�ngel <[email protected]>
349    
350            * Extensions/umn_mapserver/mapfile.py: Added ClassGroupDefault to
351            import.
352            (MF_Symbolset): Removed the extra variable for numsymbols.
353            (MF_Class.__init__): Added a comment to the exception clause.
354            Removed the extent init, because it was not needed anymore.
355            (MF_Layer.add_thubanclass): Added the code to set the class name to
356            the expression value from thuban if no label is defined.
357            Added the code to export Range expressions from thuban to the mapfile.
358            (MF_Map.set_extent): Removed the exception and replace it by some if
359            code. If the size of a map is not defined the size will be set to 1,1.
360            This is necessary because if the extent is set, mapscript checks if
361            the size is greater than zero.
362            (MF_Web): Added the get and set function for the template.
363    
364            * Extensions/umn_mapserver/mf_export.py: Added the function to check
365            if a mapobject exists and used it to set the status of the menu items.
366            If no mapfile exists the settings could not be edditied.
367            Define after which menuitem the exportitem will include.
368            
369            * Extensions/umn_mapserver/mf_handle.py: Removed the import
370            Thuban.UI.mainwindow clause, because it is not needed.
371            Added the command Refresh() to all "OnChangeColor()" functions,
372            because the color preview window was not updated on a color change.
373            Added the function to check if a mapobject exists and used it to set the
374            status of the menu items. If no mapobject exists the settings could not
375            be edditied.
376            (Map_Dialog): Moved the imagetype selector from the
377            Outputformat_Dialog to Map_Dialog and removed Outputformat_Dialog.
378            (Web_Dialog): Removed the name label and added the template textbox.
379    
380            * Extensions/umn_mapserver/mf_import.py (import_mapfile): Replace
381            the exception handling on loading the layers by an if statement. It
382            is not necessary to us the exception there.
383            The Filepath creation now use os.path.join to build the path.
384    
385            * Extensions/umn_mapserver/test/test_mapserver.py: Moved the testMap
386            definition from global to the setUp function. Now the testMap will
387            initialize new on each test.
388    
389            * Extensions/umn_mapserver/sample/iceland.map: Include three new
390            classes in the Line Layer, to test logical Expressions.
391            Set the status of the class "Point9" in the Point Layer to off
392            
393    2004-07-13  Bernhard Herzog  <[email protected]>
394    
395            * Thuban/UI/baserenderer.py
396            (BaseRenderer.render_map_incrementally): Fix a logic bug in the
397            optimization that tries not to draw layers under a raster layer.
398            The bug was harmless.  All it effectively did was to produce The a
399            strange messages about not being able to draw Layer instances for
400            all vector layers below a raster layer which would be invisible
401            anyway because the raster layer currently always covers the entire
402            window
403    
404    2004-07-08  Jan Sch�ngel <[email protected]>
405    
406            * Extensions/umn_mapserver/mapfile.py: Added code to generade and get
407            a list of supported outputformats. This formats are not alle supported
408            because there is no possibility to get the outputformat without the
409            name known. Make some formal changes to the code.
410            (MF_Map.set_name()): Fixed a bug if the name is None.
411    
412            * Extensions/umn_mapserver/mf_handle.py: Removed the image_type import
413            statement, because its not needed anymore. The Outputformat is now
414            given as string from the object. Make some formal changes to the code.
415    
416            * Extensions/umn_mapserver/test/test_mapserver.py: Added new test for
417            most of the new setting which were added during the last changes.
418            Removed the MF_Size Test.
419            
420            * Extensions/umn_mapserver/test/test.map: Added a new class to the
421            cultural Layer to test expressions and the the status of that layer
422            from on to default.
423            Changed the data path the the correct Thuban Data
424            Added the Outputformat Object and Symbol Object
425            
426    2004-07-07  Jan Sch�ngel <[email protected]>
427    
428            * Extensions/umn_mapserver/mapfile.py: Added some new
429            settings to edit (outputformat, label, imagetype)
430    
431            * Extensions/umn_mapserver/mf_handle.py: Added some setting to
432            the Label Dialog and add the OutputDialog.
433            Make some changes to the code order.
434    
435    2004-07-06  Jan Sch�ngel <[email protected]>
436    
437            * Extensions/umn_mapserver/mapfile.py: Added the symbolObj, pointObj
438            and line Obj and add the scalebar_status_type, scalebar_style_type and
439            scalebar_position_type.
440            Added the symbol- and symbolsetObject (MF_Symbol,MF_Symbolset). The
441            are only used to create a Symbol like the circle in Thuban.
442            Added the scalebarObject (MF_Scalebar)
443            (MF_Class): Added set_status and get_status.
444            (MF_Layer.add_thubanclass): Added code to set the class status
445            (MF_Map): Added code to handle the symbols and scalebar
446            (MF_Label): Added the set_partials and get_partials functions
447            
448            * Extensions/umn_mapserver/mf_export.py: Added MF_Symbol to import
449            from mapfile. Added a function to create a circle object like the one
450            from thuban if no one exists.
451            
452            * Extensions/umn_mapserver/mf_handle.py: All colors are now set when
453            press ok in the assosiated dialog and not at the end of the
454            colordialog.
455            Added the Dialog for the Scalebar.
456            (Label_Dialog): Added the offset option
457    
458            * Extensions/umn_mapserver/mf_import.py: Added code to import the
459            status of the Classes.
460            Fixed a bug with the projection. Now the to_meter parameter will be
461            added to the Projection only if it doesn't exists.
462    
463    2004-07-01  Jan Sch�ngel <[email protected]>
464    
465            Added the functionality to handle the content thuban is not
466            able to handle directly.
467    
468            * Extensions/umn_mapserver/mf_handle.py: New. This module extents
469            Thuban with the possibility to edit the mapfile content.        
470            
471            * Extensions/umn_mapserver/mf_import.py: Added the possibility
472            to import mapfiles without any layer selected. So it is possible
473            to edit the other settings in a mapfile.
474            (import_mapfile): Added code to use the editing functions.
475            Added the possibility to import the projection to a layer if one
476            is defined.
477            Status settings (On,Off) will now set in thuban (visible, invisible).
478            fixed a bug with with classnames. If no classname is set in mapfile
479            the value in Thuban will set to the expression.
480            
481            * Extensions/umn_mapserver/mf_export.py(export_mapfile): Added the
482            possibility to save a new mapfile or use the old one which is
483            imported or new created.
484            Added code to use the editing functions.
485            Remove some not needed import statements
486    
487            * Extensions/umn_mapserver/mapfile.py: Added new types which are
488            need for the editing functions.
489            Added needed set-functions for the editing functions.
490            Added the possibility to export rasterimages.
491            Added new classes (MF_Web, MF_Label, MF_Legend, MF_Symbol,
492            MF_SymbolSet). MF_Symbol and MF_SymbolSet are not needed at the
493            moment.
494            (MF_Class.set_thubanstyle): Now point layers will set to a default
495            symbol to show a circle in mapserver and not only a 1px dot.
496            (MF_Style.__init__): Fixed a bug with the color. Color was not set
497            correct before.
498            (MF_Size): Removed, because it is not needed.
499            
500            * Extensions/umn_mapserver/README: Added the hints to use the
501            export and editing functions, too.
502    
503            * Extensions/umn_mapserver/sample/iceland.map: Added the
504            new parameter "UNITS METERS".
505            Change the political layer to status OFF.
506    
507            * Extensions/umn_mapserver/sample/README: Added some
508            more details to setup the sample in the MapServer.
509            
510    2004-06-26  Bernhard Reiter <[email protected]>
511    
512            * Extensions/svgexport/test/test_svgmapwriter.py:
513            Removed class VFile and used standard StringIO instead.
514    
515    2004-06-23  Jan Sch�ngel  <[email protected]>
516    
517            Add the export function to the umn_mapserver extension.
518    
519            * Extension/umn_mapserver/mf_export.py: New. This module extents
520            Thuban with the possibility to export the Thuban content.
521    
522            * Extensions/umn_mapserver/mapfile.py: Expand the classes to use
523            with the export module. Especially added the possibility to
524            add thuban objects directly to the map objects.
525    
526            * Extensions/umn_mapserver/mf_import.py: Removed the wxCHANGE_DIR,
527            because of the hint from Bernhard Herzog.
528            Corrected the handling of absolute pathnames.
529            Changed the Text of the Menu-Item, now the beginning is upper case.
530    
531            * Extensions/umn_mapserver/README: Added the --with-tiff statement.
532    
533  2004-06-16  Jan Sch�ngel  <[email protected]>  2004-06-16  Jan Sch�ngel  <[email protected]>
534    
535          Add a sample and make some changes.          Add a sample and make some changes.

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

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26