/[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 1906 by bh, Fri Oct 31 17:10:14 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]>  2003-10-31  Bernhard Herzog  <[email protected]>
220    
221          Some more refactoring in preparation for new tests:          Some more refactoring in preparation for new tests:

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

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26