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

Legend:
Removed from v.1913  
changed lines
  Added in v.2001

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26