/[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 1894 by bh, Thu Oct 30 18:17:17 2003 UTC revision 1979 by bh, Tue Nov 25 14:30:42 2003 UTC
# Line 1  Line 1 
1    2003-11-25  Bernhard Herzog  <[email protected]>
2    
3            * Thuban/Model/layer.py (Layer.__getattr__): Removed. It was only
4            there for backwards compatibility and all code relying on that
5            should have been updated by now.
6    
7    2003-11-25  Bernhard Herzog  <[email protected]>
8    
9            * test/test_load.py (TestClassification.test): Add the missing
10            round trip test.
11            (TestClassification.file_contents): Update to the newest file
12            format
13    
14    2003-11-25  Bernhard Herzog  <[email protected]>
15    
16            Add very experimental (and possibly dangerous) extension to draw
17            polygons:
18    
19            * Extensions/drawshape/README: New. Brief installation
20            instructions
21    
22            * Extensions/drawshape/drawshape.py: New. Implementation of the
23            drawshape extensions
24    
25            * Extensions/drawshape/patch.diff: Patch to apply before the
26            extension can be used.
27    
28    2003-11-24  Bernhard Herzog  <[email protected]>
29    
30            * Thuban/Model/data.py (ShapefileStore._open_shapefile)
31            (ShapefileStore.__init__): Factor opening the shapefile into a
32            separate method (the new _open_shapefile). This makes the code a
33            bit more readable but the real reason is that it makes some evil
34            hacks easier. :-)
35    
36    2003-11-24  Bernhard Herzog  <[email protected]>
37    
38            * Thuban/Model/load.py (SessionLoader.check_attrs): If no
39            converter is specified for an attribute assume it's a string
40            containing only Latin1 characters. Update doc-string accordingly.
41            This change should fix many places where unicode objects might
42            accidentally enter Thuban.
43    
44            * test/test_load.py (TestNonAsciiColumnName): New test to check
45            what happens with column names in DBF files that contain non-ascii
46            characters
47    
48    2003-11-21  Bernhard Herzog  <[email protected]>
49    
50            Enable the experimental attribute editing again and introduce a
51            command line switch to actually activate it
52    
53            * Thuban/UI/main.py (options): New. Container for options set on
54            the commmand line
55            (main): Add the --enable-attribute-editing flag.
56    
57            * Thuban/UI/identifyview.py (IdentifyView.__init__): If attribute
58            editing is enabled use the grid ctrl which allows editing of the
59            values
60    
61            * Thuban/Model/transientdb.py (AutoTransientTable.write_record):
62            New. Just delegate this to the underlying table.
63    
64    2003-11-20  Bernhard Herzog  <[email protected]>
65    
66            * test/test_proj.py (ProjFileReadTests.test_read_unreadable_file):
67            Skip this test if run under non-posix systems since it only works
68            there
69    
70    2003-11-19  Bernhard Herzog  <[email protected]>
71    
72            * Thuban/Model/resource.py: Rework the way gdal support is
73            determined so that we can give a reason in the about why gdal is
74            not supported.
75            (gdal_support_status): New. Variable holding a string with the
76            reason for no gdal support
77    
78            * Thuban/UI/about.py (About.__init__): Add the reason why gdal is
79            not supported to the message
80    
81    2003-11-19  Bernhard Herzog  <[email protected]>
82    
83            Remove the old table interface and its test cases
84    
85            * Thuban/Model/table.py (OldTableInterfaceMixin): Removed.
86            (DBFTable, MemoryTable): Do not derive from OldTableInterfaceMixin
87            anymore
88    
89            * Thuban/Model/transientdb.py (TransientTableBase)
90            (AutoTransientTable): Do not derive from OldTableInterfaceMixin
91            anymore
92    
93            * test/test_table.py: Removed since the old interface it tests is
94            gone.
95    
96            * test/runtests.py (main): The old table interface is gone and
97            with it the deprecation warnings so remove the code that turns
98            these warnings into errors
99    
100    2003-11-19  Bernhard Herzog  <[email protected]>
101    
102            * test/test_table.py: Revert to revision 1.5 again. Changing the
103            tests to use the new table interface is completely wrong since the
104            whole purpose of the tests in this module is to test the old
105            interface.
106    
107    2003-11-18  Bernhard Herzog  <[email protected]>
108    
109            * Thuban/Model/postgisdb.py (PostGISConnection.MatchesParameters):
110            New. Test whether the connection matches a set of connection
111            parameters
112    
113            * Thuban/UI/dbdialog.py (DBFrame.conns_changed): Fix doc-string
114            (DBFrame.OnAdd): Use the new MatchesParameters method when looking
115            for existing connections with the same parameters and break out of
116            the loop correctly.
117    
118            * test/test_postgis_db.py (TestBriefDescription)
119            (TestPostGISSimple.test_brief_description): Rename
120            TestBriefDescription to TestPostGISSimple and the test method to
121            test_brief_description so that we can add more test methods.
122            (TestPostGISSimple.test_matches_parameters): New. Test the new
123            MatchesParameters method
124    
125    2003-11-18  Bernhard Herzog  <[email protected]>
126    
127            * Thuban/Lib/connector.py (Publisher): Introduce a new flag,
128            _was_destroyed, to indicate whether an publisher instance has
129            already been destroyed.
130            (Publisher.Unsubscribe): Only disconnect if the publisher has not
131            been destroyed yet.
132            (Publisher.Destroy): Set the _was_destroyed flag to true.
133    
134            * test/test_connector.py
135            (TestPublisher.test_unsubscribe_after_destroy): New. Test that
136            calling Unsubscribe after Destroy doesn't raise an exception
137    
138    2003-11-14  Bernhard Herzog  <[email protected]>
139    
140            * Thuban/UI/identifyview.py (IdentifyView.selected_shape): Fix
141            typo in doc-string
142    
143    2003-11-13  Bernhard Herzog  <[email protected]>
144    
145            Quote table and column names properly for postgis.
146    
147            * Thuban/Model/postgisdb.py (quote_identifier): New. Function to
148            quote an identifier for use in an sql statement
149            (PostGISColumn.__init__): Add the quoted_name attribute
150            (PostGISTable.__init__): New instance variable quoted_tablename
151            (PostGISTable._fetch_table_information): Use the quoted table
152            name. New isntance variable quoted_geo_col with a quoted version
153            of geometry_column
154            (PostGISTable.NumRows, PostGISTable.RowIdToOrdinal)
155            (PostGISTable.RowOrdinalToId): Use the quoted table name
156            (PostGISTable.ReadValue, PostGISTable.ValueRange)
157            (PostGISTable.UniqueValues, PostGISTable.SimpleQuery)
158            (PostGISShapeStore.BoundingBox, PostGISShapeStore.Shape)
159            (PostGISShapeStore.AllShapes, PostGISShapeStore.ShapesInRegion):
160            Use quoted table and column names
161    
162            * test/test_postgis_db.py (TestPostGISSpecialCases)
163            (TestPostGISIgnoredColumns): Rename the class to
164            TestPostGISSpecialCases because that better describes the new
165            cases
166            (TestPostGISSpecialCases.test_unsupported_types)
167            (TestPostGISSpecialCases.test): Rename the method to
168            test_unsupported_types because we need a more descriptive name now
169            that there are more methods
170            (TestPostGISSpecialCases.test_table_name_quoting)
171            (TestPostGISSpecialCases.test_column_name_quoting)
172            (TestPostGISSpecialCases.test_shapestore_name_quoting): New test
173            cases to test quoting of table and column names in PostGISTable
174            and PostGISShapeStore
175    
176            * test/postgissupport.py
177            (skip_if_addgeometrycolumn_does_not_use_quote_ident): New. Skip if
178            AddGeometryColumn desn't support table or column names with sapces
179            or double quotes
180    
181    2003-11-12  Jan-Oliver Wagner <[email protected]>
182    
183            * Extensions/wms/__init__.py: New: Init to make this
184            directory a package.
185    
186            * Extensions/wms/wms.py: New: Provide layers via OGC WMS.
187    
188    2003-11-11  Bernhard Herzog  <[email protected]>
189    
190            * Thuban/Model/resource.py (EPSG_DEPRECATED_PROJ_FILE): New.
191            Constant for the file woth deprecated epsg projections
192            (get_system_proj_file): Update doc-string
193    
194            * Thuban/UI/projdialog.py (ProjFrame.build_dialog): Add a space
195            above the EPS widgets, introduce a check box for the deprecated
196            eps projections and a label for the epsg widgets
197            (ProjFrame._OnShowEPSG): Handle the deprecated EPSG projections
198            too
199    
200    2003-11-11  Bernhard Herzog  <[email protected]>
201    
202            Avoid warnings when run under Python 2.3
203    
204            * Thuban/UI/baserenderer.py (BaseRenderer.draw_point_shape)
205            (BaseRenderer.draw_label_layer): Coordinates must be ints.
206    
207            * Thuban/UI/renderer.py (MapRenderer.make_point): Turn this into a
208            real method so that we can convert to int.
209            (MapRenderer.label_font): The font size mist be an int.
210    
211            * Thuban/UI/common.py (Color2wxColour): The color values must be
212            ints. Also, remove the unnecessary asserts.
213    
214            * test/test_load_0_8.py (TestUnicodeStrings.file_contents)
215            (TestUnicodeStrings.test): Python source code should not contain
216            non-ascii characters unless an encoding is specified in the file.
217            Therefore use \x escapes in the string literals for non-ascii
218            characters.
219    
220    2003-11-11  Bernhard Herzog  <[email protected]>
221    
222            * Thuban/Model/resource.py (get_system_proj_file): Add a filename
223            parameter so that this function can be used for all proj files in
224            Resource/Projections
225            (DEFAULT_PROJ_FILE, EPSG_PROJ_FILE): New. Predefined filenames for
226            get_system_proj_file
227    
228            * Thuban/UI/projdialog.py (ProjFrame.__init__): Instead of one
229            ProjFile self.__sysProjFile use a dictionary of system ProjFile
230            objects self._sys_proj_files
231            (ProjFrame.build_dialog): Adapt to the new changes in the
232            ProjectionList constructor. Add a check button to toggle whether
233            EPSG projections are shown
234            (ProjFrame._OnShowEPSG): New. Handler for the epsg check button
235            events.
236            (ProjFrame.load_user_proj, ProjFrame.load_system_proj): Only show
237            the busy cursor if the files have not yet been loaded by the
238            dialog.
239            (ProjFrame.load_system_proj): Add a parameter for the name of the
240            proj file. Maintain the dictionary of system projections
241            self._sys_proj_files
242    
243            * Thuban/UI/projlist.py (ProjectionList): Merge the system_projs,
244            user_projs parameters into one parameter proj_files which is a
245            list of proj files.
246            (ProjectionList._subscribe_proj_files)
247            (ProjectionList._unsubscribe_proj_files): New. Move
248            subscription/unsubscription of projfile messages to separate
249            methods
250            (ProjectionList.Destroy): The unsubscribe is now done in
251            _unsubscribe_proj_files
252            (ProjectionList.update_projections): We now have a list of proj
253            file objects
254            (ProjectionList.SetProjFiles): New method to set a new list of
255            proj file objects
256    
257            * test/test_proj.py (ProjFileReadTests.test_get_system_proj_file):
258            Specify explicitly which system proj file to load.
259    
260    2003-11-11  Bernhard Herzog  <[email protected]>
261    
262            * Thuban/Model/load.py (SessionLoader.Destroy): New. Clear all
263            instance variables to cut cyclic references. The GC would have
264            collected the loader eventually but it can happen that it doesn't
265            run at all until thuban is closed (2.3 but not 2.2 tries a bit
266            harder and forces a collection when the interpreter terminates)
267            (load_session): Call the handler's Destroy method to make sure
268            that it gets garbage collected early. Otherwise it will be
269            collected very late if at all and it holds some references to e.g.
270            shapestores and the session which can lead to leaks (of e.g. the
271            temporary files)
272    
273            * test/test_load.py (TestSingleLayer.test_leak): New. test for the
274            resource leak in load_session
275    
276    2003-11-10  Bernhard Herzog  <[email protected]>
277    
278            * Thuban/UI/baserenderer.py: Add a way to specify how layers in
279            extensions are to be rendered.
280            (_renderer_extensions): New. List with renderer for layers in
281            extensions
282            (add_renderer_extension): New. Add a renderer extension
283            (init_renderer_extensions): New. Init the renderer extensions
284            (BaseRenderer.render_map_incrementally): Search
285            _renderer_extensions for how to draw unknown layer types
286            (BaseRenderer.draw_raster_data): Add format parameter so that
287            formats other than BMP can be drawn
288            (BaseRenderer.draw_raster_layer): Pass an explicit format to
289            draw_raster_data
290    
291            * Thuban/UI/renderer.py (raster_format_map): New. Mapping form the
292            strings of the format parameter of draw_raster_data method to wx
293            constants
294            (MapRenderer.draw_raster_data): Add the format parameter and use
295            raster_format_map to map it to the right wxwindows constant for
296            wxImageFromStream
297    
298            * test/test_baserenderer.py (SimpleRenderer.draw_raster_data): Add
299            the format parameter and record it
300            (TestBaseRenderer.test_raster_no_projection): check the format
301            paramter of the draw_raster_data method
302            (TestBaseRenderer.test_renderer_extension): New. Test the renderer
303            extension facility
304    
305    2003-11-07  Bernhard Herzog  <[email protected]>
306    
307            Tweak the usage of the sqlite database to make common use cases
308            more responsive. In most cases copying the data to the sqlite
309            database takes so long that using sqlite doesn't have enough
310            advantages.
311    
312            * Thuban/Model/transientdb.py (TransientTableBase.ValueRange): Add
313            comments about performance and query the min and max in separate
314            statements because only that way will indexes be used.
315            (TransientTableBase.UniqueValues): Add some comments about
316            performance.
317            (AutoTransientTable.ValueRange, AutoTransientTable.UniqueValues):
318            Do not copy the data to the transient DB but use the transient
319            copy if it exists. See the new comments for the performance trade
320            offs
321    
322            * test/test_transientdb.py
323            (TestTransientTable.test_auto_transient_table): Make sure that the
324            data is copied to the transient database at some point.
325    
326    2003-11-03  Bernhard Herzog  <[email protected]>
327    
328            * Thuban/Model/data.py (ShapefileStore.ShapesInRegion): Bind some
329            globals to locals so that it's a bit faster
330    
331    2003-11-03  Bernhard Herzog  <[email protected]>
332    
333            * Thuban/UI/baserenderer.py
334            (BaseRenderer.draw_shape_layer_incrementally): Use the ReadValue
335            method. ReadValue is faster than ReadRowAsDict since it only reads
336            one cell especially now that the dbf file objects actually
337            implement it.
338    
339            * Thuban/Model/table.py (DBFTable.ReadValue): Use the new
340            read_attribute method of the dbf objects
341    
342    2003-11-03  Bernhard Herzog  <[email protected]>
343    
344            * Extensions/profiling/profiling.py (popup_dialog_box): New config
345            variable to indicate whether the result should be shown in a
346            dialog box
347            (profile_screen_renderer, time_screen_renderer): Only show a
348            dialog box if popup_dialog_box is true.
349            (profile_screen_renderer): Flush stdout after the printing the
350            first part of the "profiling..." message
351    
352            * Thuban/UI/baserenderer.py
353            (BaseRenderer.draw_shape_layer_incrementally): Cache the pens and
354            brushes for the groups so that they're not created over and over
355            again
356    
357            * Thuban/Model/classification.py (Classification.__getattr__)
358            (Classification._compile_classification)
359            (Classification._clear_compiled_classification): New. Methods to
360            manage a 'compiled' representation of the classification groups
361            which is created on demand
362            (Classification.InsertGroup, Classification.RemoveGroup)
363            (Classification.ReplaceGroup): reset the compiled representation
364            (Classification.FindGroup): Use the compiled representation to
365            find the matching group
366            (ClassGroupRange.GetRangeTuple): New. Return the range as a tuple
367    
368    2003-10-31  Bernhard Herzog  <[email protected]>
369    
370            * Thuban/Model/classification.py (Classification.SetDefaultGroup):
371            Send a CLASS_CHANGED message
372            (Classification.RemoveGroup): Send a CLASS_CHANGED message and do
373            not return the removed group since it wasn't used.
374    
375            * test/test_classification.py
376            (TestClassification.test_set_default_group): New. Test the
377            SetDefaultGroup method
378            (TestClassification.test_insert_group): New. Test the InsertGroup
379            method
380            (TestClassification.test_remove_group): New. Test the RemoveGroup
381            method
382            (TestClassification.test_replace_group): New. Test the
383            ReplaceGroup method
384    
385    2003-10-31  Bernhard Herzog  <[email protected]>
386    
387            * test/test_classification.py (TestClassification.setUp):
388            Subscribe to the CLASS_CHANGED messages
389            (TestClassification.tearDown): New. Destroy the classification
390            properly
391            (TestClassification.test_defaults): Add tests for the default line
392            width and whether no messages were sent yet
393            (TestClassification.test_set_default_properties): Add tests for
394            messages and setting the default line width
395            (TestClassification.test_add_singleton)
396            (TestClassification.test_add_range)
397            (TestClassification.test_multiple_groups): Add tests for messages
398    
399    2003-10-31  Bernhard Herzog  <[email protected]>
400    
401            Some more refactoring in preparation for new tests:
402    
403            * test/test_classification.py (TestClassification.setUp): New.
404            Instantiate the classification here. Update the test methods
405            accordingly.
406            (TestClassification.test_multiple_groups): Make sure that the two
407            singletons matching 1 are considered different.
408    
409    2003-10-31  Bernhard Herzog  <[email protected]>
410    
411            * test/test_classification.py (red, green, blue): New. These
412            constants were used in several cases. Update the relevant methods.
413            (TestClassification.test_defaults)
414            (TestClassification.test_set_default_properties)
415            (TestClassification.test_add_singleton)
416            (TestClassification.test_add_range)
417            (TestClassification.test_multiple_groups)
418            (TestClassification.test_deepcopy): New. These were formerly all
419            part of the single method test.
420            (TestClassification.test_deepcopy): Removed.
421            (TestClassIterator): Removed. The test case is now a method of
422            TestClassification since it tests part of the public interface of
423            Classification
424            (TestClassification.test_iterator): New. Used to be
425            TestClassIterator effectively
426    
427    2003-10-31  Jan-Oliver Wagner <[email protected]>
428    
429            GUIfied the functions of the profiling extension.
430    
431            * /Extensions/profiling/__init__.py: New: Init to make this
432            directory a package.
433    
434            * Extensions/profiling/profiling.py: Moved menu entries to
435            the Extensions menu. Applied _() for strings.
436            (profile_screen_renderer): Catch the detailed printout and present
437            it in a dialog.
438            (time_screen_renderer): Raise a dialog to present the result instead
439            of printing it to stdout.
440    
441    2003-10-31  Bernhard Herzog  <[email protected]>
442    
443            * test/test_classification.py (TestClassGroupProperties)
444            (TestClassGroup, TestClassGroupDefault, TestClassGroupRange)
445            (TestClassGroupSingleton, TestClassIterator, TestClassification):
446            Split TestClassification into several classes, one for each class
447            being tested. TestClassification itself now only tests
448            Classification. This split makes changes to the tests a bit easier
449    
450    2003-10-31  Bernhard Herzog  <[email protected]>
451    
452            * Extensions/profiling/profiling.py: New. Extension to measure
453            Thuban performance
454    
455    2003-10-31  Frank Koormann <[email protected]>
456    
457            Added two items to legend popup menu: Remove Layer and Show Layer Table
458    
459            * Thuban/UI/legend.py (LegendPanel._OnRemoveLayer,
460            LegendPanel._OnShowTable): New event handlers, call the corresponding
461            mainwindow methods.
462            (LegendTree._OnRightClick): Added items to popup menu.
463    
464  2003-10-30  Bernhard Herzog  <[email protected]>  2003-10-30  Bernhard Herzog  <[email protected]>
465    
466          * Thuban/UI/dialogs.py (ThubanFrame.__init__): Handle          * Thuban/UI/dialogs.py (ThubanFrame.__init__): Handle

Legend:
Removed from v.1894  
changed lines
  Added in v.1979

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26