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

Legend:
Removed from v.2272  
changed lines
  Added in v.2380

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26