/[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 1916 by bh, Mon Nov 3 14:19:54 2003 UTC revision 1939 by bh, Tue Nov 11 18:17:09 2003 UTC
# Line 1  Line 1 
1    2003-11-11  Bernhard Herzog  <[email protected]>
2    
3            Avoid warnings when run under Python 2.3
4    
5            * Thuban/UI/baserenderer.py (BaseRenderer.draw_point_shape)
6            (BaseRenderer.draw_label_layer): Coordinates must be ints.
7    
8            * Thuban/UI/renderer.py (MapRenderer.make_point): Turn this into a
9            real method so that we can convert to int.
10            (MapRenderer.label_font): The font size mist be an int.
11    
12            * Thuban/UI/common.py (Color2wxColour): The color values must be
13            ints. Also, remove the unnecessary asserts.
14    
15            * test/test_load_0_8.py (TestUnicodeStrings.file_contents)
16            (TestUnicodeStrings.test): Python source code should not contain
17            non-ascii characters unless an encoding is specified in the file.
18            Therefore use \x escapes in the string literals for non-ascii
19            characters.
20    
21    2003-11-11  Bernhard Herzog  <[email protected]>
22    
23            * Thuban/Model/resource.py (get_system_proj_file): Add a filename
24            parameter so that this function can be used for all proj files in
25            Resource/Projections
26            (DEFAULT_PROJ_FILE, EPSG_PROJ_FILE): New. Predefined filenames for
27            get_system_proj_file
28    
29            * Thuban/UI/projdialog.py (ProjFrame.__init__): Instead of one
30            ProjFile self.__sysProjFile use a dictionary of system ProjFile
31            objects self._sys_proj_files
32            (ProjFrame.build_dialog): Adapt to the new changes in the
33            ProjectionList constructor. Add a check button to toggle whether
34            EPSG projections are shown
35            (ProjFrame._OnShowEPSG): New. Handler for the epsg check button
36            events.
37            (ProjFrame.load_user_proj, ProjFrame.load_system_proj): Only show
38            the busy cursor if the files have not yet been loaded by the
39            dialog.
40            (ProjFrame.load_system_proj): Add a parameter for the name of the
41            proj file. Maintain the dictionary of system projections
42            self._sys_proj_files
43    
44            * Thuban/UI/projlist.py (ProjectionList): Merge the system_projs,
45            user_projs parameters into one parameter proj_files which is a
46            list of proj files.
47            (ProjectionList._subscribe_proj_files)
48            (ProjectionList._unsubscribe_proj_files): New. Move
49            subscription/unsubscription of projfile messages to separate
50            methods
51            (ProjectionList.Destroy): The unsubscribe is now done in
52            _unsubscribe_proj_files
53            (ProjectionList.update_projections): We now have a list of proj
54            file objects
55            (ProjectionList.SetProjFiles): New method to set a new list of
56            proj file objects
57    
58            * test/test_proj.py (ProjFileReadTests.test_get_system_proj_file):
59            Specify explicitly which system proj file to load.
60    
61    2003-11-11  Bernhard Herzog  <[email protected]>
62    
63            * Thuban/Model/load.py (SessionLoader.Destroy): New. Clear all
64            instance variables to cut cyclic references. The GC would have
65            collected the loader eventually but it can happen that it doesn't
66            run at all until thuban is closed (2.3 but not 2.2 tries a bit
67            harder and forces a collection when the interpreter terminates)
68            (load_session): Call the handler's Destroy method to make sure
69            that it gets garbage collected early. Otherwise it will be
70            collected very late if at all and it holds some references to e.g.
71            shapestores and the session which can lead to leaks (of e.g. the
72            temporary files)
73    
74            * test/test_load.py (TestSingleLayer.test_leak): New. test for the
75            resource leak in load_session
76    
77    2003-11-10  Bernhard Herzog  <[email protected]>
78    
79            * Thuban/UI/baserenderer.py: Add a way to specify how layers in
80            extensions are to be rendered.
81            (_renderer_extensions): New. List with renderer for layers in
82            extensions
83            (add_renderer_extension): New. Add a renderer extension
84            (init_renderer_extensions): New. Init the renderer extensions
85            (BaseRenderer.render_map_incrementally): Search
86            _renderer_extensions for how to draw unknown layer types
87            (BaseRenderer.draw_raster_data): Add format parameter so that
88            formats other than BMP can be drawn
89            (BaseRenderer.draw_raster_layer): Pass an explicit format to
90            draw_raster_data
91    
92            * Thuban/UI/renderer.py (raster_format_map): New. Mapping form the
93            strings of the format parameter of draw_raster_data method to wx
94            constants
95            (MapRenderer.draw_raster_data): Add the format parameter and use
96            raster_format_map to map it to the right wxwindows constant for
97            wxImageFromStream
98    
99            * test/test_baserenderer.py (SimpleRenderer.draw_raster_data): Add
100            the format parameter and record it
101            (TestBaseRenderer.test_raster_no_projection): check the format
102            paramter of the draw_raster_data method
103            (TestBaseRenderer.test_renderer_extension): New. Test the renderer
104            extension facility
105    
106    2003-11-07  Bernhard Herzog  <[email protected]>
107    
108            Tweak the usage of the sqlite database to make common use cases
109            more responsive. In most cases copying the data to the sqlite
110            database takes so long that using sqlite doesn't have enough
111            advantages.
112    
113            * Thuban/Model/transientdb.py (TransientTableBase.ValueRange): Add
114            comments about performance and query the min and max in separate
115            statements because only that way will indexes be used.
116            (TransientTableBase.UniqueValues): Add some comments about
117            performance.
118            (AutoTransientTable.ValueRange, AutoTransientTable.UniqueValues):
119            Do not copy the data to the transient DB but use the transient
120            copy if it exists. See the new comments for the performance trade
121            offs
122    
123            * test/test_transientdb.py
124            (TestTransientTable.test_auto_transient_table): Make sure that the
125            data is copied to the transient database at some point.
126    
127    2003-11-03  Bernhard Herzog  <[email protected]>
128    
129            * Thuban/Model/data.py (ShapefileStore.ShapesInRegion): Bind some
130            globals to locals so that it's a bit faster
131    
132    2003-11-03  Bernhard Herzog  <[email protected]>
133    
134            * Thuban/UI/baserenderer.py
135            (BaseRenderer.draw_shape_layer_incrementally): Use the ReadValue
136            method. ReadValue is faster than ReadRowAsDict since it only reads
137            one cell especially now that the dbf file objects actually
138            implement it.
139    
140            * Thuban/Model/table.py (DBFTable.ReadValue): Use the new
141            read_attribute method of the dbf objects
142    
143  2003-11-03  Bernhard Herzog  <[email protected]>  2003-11-03  Bernhard Herzog  <[email protected]>
144    
145          * Extensions/profiling/profiling.py (popup_dialog_box): New config          * Extensions/profiling/profiling.py (popup_dialog_box): New config

Legend:
Removed from v.1916  
changed lines
  Added in v.1939

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26