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

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

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26