/[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 1876 by bh, Mon Oct 27 17:39:28 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]>
144    
145            * Extensions/profiling/profiling.py (popup_dialog_box): New config
146            variable to indicate whether the result should be shown in a
147            dialog box
148            (profile_screen_renderer, time_screen_renderer): Only show a
149            dialog box if popup_dialog_box is true.
150            (profile_screen_renderer): Flush stdout after the printing the
151            first part of the "profiling..." message
152    
153            * Thuban/UI/baserenderer.py
154            (BaseRenderer.draw_shape_layer_incrementally): Cache the pens and
155            brushes for the groups so that they're not created over and over
156            again
157    
158            * Thuban/Model/classification.py (Classification.__getattr__)
159            (Classification._compile_classification)
160            (Classification._clear_compiled_classification): New. Methods to
161            manage a 'compiled' representation of the classification groups
162            which is created on demand
163            (Classification.InsertGroup, Classification.RemoveGroup)
164            (Classification.ReplaceGroup): reset the compiled representation
165            (Classification.FindGroup): Use the compiled representation to
166            find the matching group
167            (ClassGroupRange.GetRangeTuple): New. Return the range as a tuple
168    
169    2003-10-31  Bernhard Herzog  <[email protected]>
170    
171            * Thuban/Model/classification.py (Classification.SetDefaultGroup):
172            Send a CLASS_CHANGED message
173            (Classification.RemoveGroup): Send a CLASS_CHANGED message and do
174            not return the removed group since it wasn't used.
175    
176            * test/test_classification.py
177            (TestClassification.test_set_default_group): New. Test the
178            SetDefaultGroup method
179            (TestClassification.test_insert_group): New. Test the InsertGroup
180            method
181            (TestClassification.test_remove_group): New. Test the RemoveGroup
182            method
183            (TestClassification.test_replace_group): New. Test the
184            ReplaceGroup method
185    
186    2003-10-31  Bernhard Herzog  <[email protected]>
187    
188            * test/test_classification.py (TestClassification.setUp):
189            Subscribe to the CLASS_CHANGED messages
190            (TestClassification.tearDown): New. Destroy the classification
191            properly
192            (TestClassification.test_defaults): Add tests for the default line
193            width and whether no messages were sent yet
194            (TestClassification.test_set_default_properties): Add tests for
195            messages and setting the default line width
196            (TestClassification.test_add_singleton)
197            (TestClassification.test_add_range)
198            (TestClassification.test_multiple_groups): Add tests for messages
199    
200    2003-10-31  Bernhard Herzog  <[email protected]>
201    
202            Some more refactoring in preparation for new tests:
203    
204            * test/test_classification.py (TestClassification.setUp): New.
205            Instantiate the classification here. Update the test methods
206            accordingly.
207            (TestClassification.test_multiple_groups): Make sure that the two
208            singletons matching 1 are considered different.
209    
210    2003-10-31  Bernhard Herzog  <[email protected]>
211    
212            * test/test_classification.py (red, green, blue): New. These
213            constants were used in several cases. Update the relevant methods.
214            (TestClassification.test_defaults)
215            (TestClassification.test_set_default_properties)
216            (TestClassification.test_add_singleton)
217            (TestClassification.test_add_range)
218            (TestClassification.test_multiple_groups)
219            (TestClassification.test_deepcopy): New. These were formerly all
220            part of the single method test.
221            (TestClassification.test_deepcopy): Removed.
222            (TestClassIterator): Removed. The test case is now a method of
223            TestClassification since it tests part of the public interface of
224            Classification
225            (TestClassification.test_iterator): New. Used to be
226            TestClassIterator effectively
227    
228    2003-10-31  Jan-Oliver Wagner <[email protected]>
229    
230            GUIfied the functions of the profiling extension.
231    
232            * /Extensions/profiling/__init__.py: New: Init to make this
233            directory a package.
234    
235            * Extensions/profiling/profiling.py: Moved menu entries to
236            the Extensions menu. Applied _() for strings.
237            (profile_screen_renderer): Catch the detailed printout and present
238            it in a dialog.
239            (time_screen_renderer): Raise a dialog to present the result instead
240            of printing it to stdout.
241    
242    2003-10-31  Bernhard Herzog  <[email protected]>
243    
244            * test/test_classification.py (TestClassGroupProperties)
245            (TestClassGroup, TestClassGroupDefault, TestClassGroupRange)
246            (TestClassGroupSingleton, TestClassIterator, TestClassification):
247            Split TestClassification into several classes, one for each class
248            being tested. TestClassification itself now only tests
249            Classification. This split makes changes to the tests a bit easier
250    
251    2003-10-31  Bernhard Herzog  <[email protected]>
252    
253            * Extensions/profiling/profiling.py: New. Extension to measure
254            Thuban performance
255    
256    2003-10-31  Frank Koormann <[email protected]>
257    
258            Added two items to legend popup menu: Remove Layer and Show Layer Table
259    
260            * Thuban/UI/legend.py (LegendPanel._OnRemoveLayer,
261            LegendPanel._OnShowTable): New event handlers, call the corresponding
262            mainwindow methods.
263            (LegendTree._OnRightClick): Added items to popup menu.
264    
265    2003-10-30  Bernhard Herzog  <[email protected]>
266    
267            * Thuban/UI/dialogs.py (ThubanFrame.__init__): Handle
268            EVT_WINDOW_DESTROY
269            (ThubanFrame.OnDestroy): New. Handler for EVT_WINDOW_DESTROY. Does
270            nothing but is convenient for the derived classes.
271    
272            * Thuban/UI/tableview.py
273            (TableFrame.OnDestroy, LayerTableFrame.OnDestroy): New.
274            Unsubscribe the messages here not in OnClose because that might
275            get called multiple times. Fixes RT #2196
276            (TableFrame.OnClose, LayerTableFrame.OnClose): Removed. Not needed
277            anymore.
278    
279            * README: Update the minimum requirement for wxPython. Since we
280            now use the EVT_WINDOW_DESTROY event, we need at least 2.4.0.4,
281            the version in which that was introduced for all platforms
282    
283    2003-10-30  Frank Koormann <[email protected]>
284    
285            * Thuban/UI/join.py (JoinDialog.OnJoin): Wrapped the major parts of
286            the join process in a ThubanBeginBusyCursor, ThubanEndBusyCursor
287            frame.
288    
289    2003-10-30  Jan-Oliver Wagner <[email protected]>
290    
291            Improved APR import extension, added further EPSG definitions
292            and some cleanup regarding string class.
293    
294            * test/test_proj.py (TestProjection.test_get_projection_units_geo):
295            Added test for alias 'longlat'.
296    
297            * Resources/Projections/epsg-deprecated.proj: New. Contains
298            deprecated EPSG definitions.
299    
300            * Extensions/importAPR/odb.py (ODBBaseObject.TreeInfo): Added
301            the variable names for objects.
302    
303            * Extensions/importAPR/apr.py (APR_BLnSym, APR_BMkSym, APR_BShSym): New.
304            Copied from importAPR and provided with documentation.
305    
306            * Extensions/importAPR/importAPR.py (APR_BLnSym, APR_BMkSym, APR_BShSym):
307            Moved to apr.py.
308            (APR_View): Added object ref 'ITheme'.
309    
310            * Thuban/Lib/fileutil.py, Thuban/UI/proj4dialog.py: Replaced string
311            split function by corresponding use of the string class method.
312    
313            * Thuban/Model/xmlwriter.py: Replaced string replace function by
314            corresponding string method.
315    
316    2003-10-29  Bernhard Herzog  <[email protected]>
317    
318            * Thuban/UI/baserenderer.py
319            (BaseRenderer.draw_shape_layer_incrementally): Speed up the
320            special case of a classification that only has the default group
321    
322  2003-10-27  Bernhard Herzog  <[email protected]>  2003-10-27  Bernhard Herzog  <[email protected]>
323    
324            * po/fr.po, po/es.po: Updated translations from Daniel Calvelo
325    
326          * po/de.po: Update.          * po/de.po: Update.
327    
328          * Thuban/UI/application.py          * Thuban/UI/application.py

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

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26