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

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

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26