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

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

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26