/[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 1945 by jan, Wed Nov 12 08:29:11 2003 UTC
# Line 1  Line 1 
1    2003-11-12  Jan-Oliver Wagner <[email protected]>
2    
3            * Extensions/wms/__init__.py: New: Init to make this
4            directory a package.
5    
6            * Extensions/wms/wms.py: New: Provide layers via OGC WMS.
7    
8    2003-11-11  Bernhard Herzog  <[email protected]>
9    
10            * Thuban/Model/resource.py (EPSG_DEPRECATED_PROJ_FILE): New.
11            Constant for the file woth deprecated epsg projections
12            (get_system_proj_file): Update doc-string
13    
14            * Thuban/UI/projdialog.py (ProjFrame.build_dialog): Add a space
15            above the EPS widgets, introduce a check box for the deprecated
16            eps projections and a label for the epsg widgets
17            (ProjFrame._OnShowEPSG): Handle the deprecated EPSG projections
18            too
19    
20    2003-11-11  Bernhard Herzog  <[email protected]>
21    
22            Avoid warnings when run under Python 2.3
23    
24            * Thuban/UI/baserenderer.py (BaseRenderer.draw_point_shape)
25            (BaseRenderer.draw_label_layer): Coordinates must be ints.
26    
27            * Thuban/UI/renderer.py (MapRenderer.make_point): Turn this into a
28            real method so that we can convert to int.
29            (MapRenderer.label_font): The font size mist be an int.
30    
31            * Thuban/UI/common.py (Color2wxColour): The color values must be
32            ints. Also, remove the unnecessary asserts.
33    
34            * test/test_load_0_8.py (TestUnicodeStrings.file_contents)
35            (TestUnicodeStrings.test): Python source code should not contain
36            non-ascii characters unless an encoding is specified in the file.
37            Therefore use \x escapes in the string literals for non-ascii
38            characters.
39    
40    2003-11-11  Bernhard Herzog  <[email protected]>
41    
42            * Thuban/Model/resource.py (get_system_proj_file): Add a filename
43            parameter so that this function can be used for all proj files in
44            Resource/Projections
45            (DEFAULT_PROJ_FILE, EPSG_PROJ_FILE): New. Predefined filenames for
46            get_system_proj_file
47    
48            * Thuban/UI/projdialog.py (ProjFrame.__init__): Instead of one
49            ProjFile self.__sysProjFile use a dictionary of system ProjFile
50            objects self._sys_proj_files
51            (ProjFrame.build_dialog): Adapt to the new changes in the
52            ProjectionList constructor. Add a check button to toggle whether
53            EPSG projections are shown
54            (ProjFrame._OnShowEPSG): New. Handler for the epsg check button
55            events.
56            (ProjFrame.load_user_proj, ProjFrame.load_system_proj): Only show
57            the busy cursor if the files have not yet been loaded by the
58            dialog.
59            (ProjFrame.load_system_proj): Add a parameter for the name of the
60            proj file. Maintain the dictionary of system projections
61            self._sys_proj_files
62    
63            * Thuban/UI/projlist.py (ProjectionList): Merge the system_projs,
64            user_projs parameters into one parameter proj_files which is a
65            list of proj files.
66            (ProjectionList._subscribe_proj_files)
67            (ProjectionList._unsubscribe_proj_files): New. Move
68            subscription/unsubscription of projfile messages to separate
69            methods
70            (ProjectionList.Destroy): The unsubscribe is now done in
71            _unsubscribe_proj_files
72            (ProjectionList.update_projections): We now have a list of proj
73            file objects
74            (ProjectionList.SetProjFiles): New method to set a new list of
75            proj file objects
76    
77            * test/test_proj.py (ProjFileReadTests.test_get_system_proj_file):
78            Specify explicitly which system proj file to load.
79    
80    2003-11-11  Bernhard Herzog  <[email protected]>
81    
82            * Thuban/Model/load.py (SessionLoader.Destroy): New. Clear all
83            instance variables to cut cyclic references. The GC would have
84            collected the loader eventually but it can happen that it doesn't
85            run at all until thuban is closed (2.3 but not 2.2 tries a bit
86            harder and forces a collection when the interpreter terminates)
87            (load_session): Call the handler's Destroy method to make sure
88            that it gets garbage collected early. Otherwise it will be
89            collected very late if at all and it holds some references to e.g.
90            shapestores and the session which can lead to leaks (of e.g. the
91            temporary files)
92    
93            * test/test_load.py (TestSingleLayer.test_leak): New. test for the
94            resource leak in load_session
95    
96    2003-11-10  Bernhard Herzog  <[email protected]>
97    
98            * Thuban/UI/baserenderer.py: Add a way to specify how layers in
99            extensions are to be rendered.
100            (_renderer_extensions): New. List with renderer for layers in
101            extensions
102            (add_renderer_extension): New. Add a renderer extension
103            (init_renderer_extensions): New. Init the renderer extensions
104            (BaseRenderer.render_map_incrementally): Search
105            _renderer_extensions for how to draw unknown layer types
106            (BaseRenderer.draw_raster_data): Add format parameter so that
107            formats other than BMP can be drawn
108            (BaseRenderer.draw_raster_layer): Pass an explicit format to
109            draw_raster_data
110    
111            * Thuban/UI/renderer.py (raster_format_map): New. Mapping form the
112            strings of the format parameter of draw_raster_data method to wx
113            constants
114            (MapRenderer.draw_raster_data): Add the format parameter and use
115            raster_format_map to map it to the right wxwindows constant for
116            wxImageFromStream
117    
118            * test/test_baserenderer.py (SimpleRenderer.draw_raster_data): Add
119            the format parameter and record it
120            (TestBaseRenderer.test_raster_no_projection): check the format
121            paramter of the draw_raster_data method
122            (TestBaseRenderer.test_renderer_extension): New. Test the renderer
123            extension facility
124    
125    2003-11-07  Bernhard Herzog  <[email protected]>
126    
127            Tweak the usage of the sqlite database to make common use cases
128            more responsive. In most cases copying the data to the sqlite
129            database takes so long that using sqlite doesn't have enough
130            advantages.
131    
132            * Thuban/Model/transientdb.py (TransientTableBase.ValueRange): Add
133            comments about performance and query the min and max in separate
134            statements because only that way will indexes be used.
135            (TransientTableBase.UniqueValues): Add some comments about
136            performance.
137            (AutoTransientTable.ValueRange, AutoTransientTable.UniqueValues):
138            Do not copy the data to the transient DB but use the transient
139            copy if it exists. See the new comments for the performance trade
140            offs
141    
142            * test/test_transientdb.py
143            (TestTransientTable.test_auto_transient_table): Make sure that the
144            data is copied to the transient database at some point.
145    
146    2003-11-03  Bernhard Herzog  <[email protected]>
147    
148            * Thuban/Model/data.py (ShapefileStore.ShapesInRegion): Bind some
149            globals to locals so that it's a bit faster
150    
151    2003-11-03  Bernhard Herzog  <[email protected]>
152    
153            * Thuban/UI/baserenderer.py
154            (BaseRenderer.draw_shape_layer_incrementally): Use the ReadValue
155            method. ReadValue is faster than ReadRowAsDict since it only reads
156            one cell especially now that the dbf file objects actually
157            implement it.
158    
159            * Thuban/Model/table.py (DBFTable.ReadValue): Use the new
160            read_attribute method of the dbf objects
161    
162    2003-11-03  Bernhard Herzog  <[email protected]>
163    
164            * Extensions/profiling/profiling.py (popup_dialog_box): New config
165            variable to indicate whether the result should be shown in a
166            dialog box
167            (profile_screen_renderer, time_screen_renderer): Only show a
168            dialog box if popup_dialog_box is true.
169            (profile_screen_renderer): Flush stdout after the printing the
170            first part of the "profiling..." message
171    
172            * Thuban/UI/baserenderer.py
173            (BaseRenderer.draw_shape_layer_incrementally): Cache the pens and
174            brushes for the groups so that they're not created over and over
175            again
176    
177            * Thuban/Model/classification.py (Classification.__getattr__)
178            (Classification._compile_classification)
179            (Classification._clear_compiled_classification): New. Methods to
180            manage a 'compiled' representation of the classification groups
181            which is created on demand
182            (Classification.InsertGroup, Classification.RemoveGroup)
183            (Classification.ReplaceGroup): reset the compiled representation
184            (Classification.FindGroup): Use the compiled representation to
185            find the matching group
186            (ClassGroupRange.GetRangeTuple): New. Return the range as a tuple
187    
188    2003-10-31  Bernhard Herzog  <[email protected]>
189    
190            * Thuban/Model/classification.py (Classification.SetDefaultGroup):
191            Send a CLASS_CHANGED message
192            (Classification.RemoveGroup): Send a CLASS_CHANGED message and do
193            not return the removed group since it wasn't used.
194    
195            * test/test_classification.py
196            (TestClassification.test_set_default_group): New. Test the
197            SetDefaultGroup method
198            (TestClassification.test_insert_group): New. Test the InsertGroup
199            method
200            (TestClassification.test_remove_group): New. Test the RemoveGroup
201            method
202            (TestClassification.test_replace_group): New. Test the
203            ReplaceGroup method
204    
205    2003-10-31  Bernhard Herzog  <[email protected]>
206    
207            * test/test_classification.py (TestClassification.setUp):
208            Subscribe to the CLASS_CHANGED messages
209            (TestClassification.tearDown): New. Destroy the classification
210            properly
211            (TestClassification.test_defaults): Add tests for the default line
212            width and whether no messages were sent yet
213            (TestClassification.test_set_default_properties): Add tests for
214            messages and setting the default line width
215            (TestClassification.test_add_singleton)
216            (TestClassification.test_add_range)
217            (TestClassification.test_multiple_groups): Add tests for messages
218    
219    2003-10-31  Bernhard Herzog  <[email protected]>
220    
221            Some more refactoring in preparation for new tests:
222    
223            * test/test_classification.py (TestClassification.setUp): New.
224            Instantiate the classification here. Update the test methods
225            accordingly.
226            (TestClassification.test_multiple_groups): Make sure that the two
227            singletons matching 1 are considered different.
228    
229    2003-10-31  Bernhard Herzog  <[email protected]>
230    
231            * test/test_classification.py (red, green, blue): New. These
232            constants were used in several cases. Update the relevant methods.
233            (TestClassification.test_defaults)
234            (TestClassification.test_set_default_properties)
235            (TestClassification.test_add_singleton)
236            (TestClassification.test_add_range)
237            (TestClassification.test_multiple_groups)
238            (TestClassification.test_deepcopy): New. These were formerly all
239            part of the single method test.
240            (TestClassification.test_deepcopy): Removed.
241            (TestClassIterator): Removed. The test case is now a method of
242            TestClassification since it tests part of the public interface of
243            Classification
244            (TestClassification.test_iterator): New. Used to be
245            TestClassIterator effectively
246    
247    2003-10-31  Jan-Oliver Wagner <[email protected]>
248    
249            GUIfied the functions of the profiling extension.
250    
251            * /Extensions/profiling/__init__.py: New: Init to make this
252            directory a package.
253    
254            * Extensions/profiling/profiling.py: Moved menu entries to
255            the Extensions menu. Applied _() for strings.
256            (profile_screen_renderer): Catch the detailed printout and present
257            it in a dialog.
258            (time_screen_renderer): Raise a dialog to present the result instead
259            of printing it to stdout.
260    
261    2003-10-31  Bernhard Herzog  <[email protected]>
262    
263            * test/test_classification.py (TestClassGroupProperties)
264            (TestClassGroup, TestClassGroupDefault, TestClassGroupRange)
265            (TestClassGroupSingleton, TestClassIterator, TestClassification):
266            Split TestClassification into several classes, one for each class
267            being tested. TestClassification itself now only tests
268            Classification. This split makes changes to the tests a bit easier
269    
270    2003-10-31  Bernhard Herzog  <[email protected]>
271    
272            * Extensions/profiling/profiling.py: New. Extension to measure
273            Thuban performance
274    
275    2003-10-31  Frank Koormann <[email protected]>
276    
277            Added two items to legend popup menu: Remove Layer and Show Layer Table
278    
279            * Thuban/UI/legend.py (LegendPanel._OnRemoveLayer,
280            LegendPanel._OnShowTable): New event handlers, call the corresponding
281            mainwindow methods.
282            (LegendTree._OnRightClick): Added items to popup menu.
283    
284    2003-10-30  Bernhard Herzog  <[email protected]>
285    
286            * Thuban/UI/dialogs.py (ThubanFrame.__init__): Handle
287            EVT_WINDOW_DESTROY
288            (ThubanFrame.OnDestroy): New. Handler for EVT_WINDOW_DESTROY. Does
289            nothing but is convenient for the derived classes.
290    
291            * Thuban/UI/tableview.py
292            (TableFrame.OnDestroy, LayerTableFrame.OnDestroy): New.
293            Unsubscribe the messages here not in OnClose because that might
294            get called multiple times. Fixes RT #2196
295            (TableFrame.OnClose, LayerTableFrame.OnClose): Removed. Not needed
296            anymore.
297    
298            * README: Update the minimum requirement for wxPython. Since we
299            now use the EVT_WINDOW_DESTROY event, we need at least 2.4.0.4,
300            the version in which that was introduced for all platforms
301    
302    2003-10-30  Frank Koormann <[email protected]>
303    
304            * Thuban/UI/join.py (JoinDialog.OnJoin): Wrapped the major parts of
305            the join process in a ThubanBeginBusyCursor, ThubanEndBusyCursor
306            frame.
307    
308    2003-10-30  Jan-Oliver Wagner <[email protected]>
309    
310            Improved APR import extension, added further EPSG definitions
311            and some cleanup regarding string class.
312    
313            * test/test_proj.py (TestProjection.test_get_projection_units_geo):
314            Added test for alias 'longlat'.
315    
316            * Resources/Projections/epsg-deprecated.proj: New. Contains
317            deprecated EPSG definitions.
318    
319            * Extensions/importAPR/odb.py (ODBBaseObject.TreeInfo): Added
320            the variable names for objects.
321    
322            * Extensions/importAPR/apr.py (APR_BLnSym, APR_BMkSym, APR_BShSym): New.
323            Copied from importAPR and provided with documentation.
324    
325            * Extensions/importAPR/importAPR.py (APR_BLnSym, APR_BMkSym, APR_BShSym):
326            Moved to apr.py.
327            (APR_View): Added object ref 'ITheme'.
328    
329            * Thuban/Lib/fileutil.py, Thuban/UI/proj4dialog.py: Replaced string
330            split function by corresponding use of the string class method.
331    
332            * Thuban/Model/xmlwriter.py: Replaced string replace function by
333            corresponding string method.
334    
335    2003-10-29  Bernhard Herzog  <[email protected]>
336    
337            * Thuban/UI/baserenderer.py
338            (BaseRenderer.draw_shape_layer_incrementally): Speed up the
339            special case of a classification that only has the default group
340    
341  2003-10-27  Bernhard Herzog  <[email protected]>  2003-10-27  Bernhard Herzog  <[email protected]>
342    
343            * po/fr.po, po/es.po: Updated translations from Daniel Calvelo
344    
345          * po/de.po: Update.          * po/de.po: Update.
346    
347          * Thuban/UI/application.py          * Thuban/UI/application.py

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

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26