/[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 1582 by bh, Tue Aug 12 15:08:40 2003 UTC revision 1609 by bh, Tue Aug 19 12:51:32 2003 UTC
# Line 1  Line 1 
1    2003-08-19  Bernhard Herzog  <[email protected]>
2    
3            * test/test_viewport.py (ViewPortTest): We don't use the
4            facilities of FileTestMixin so don't derive from it.
5            (TestViewportWithPostGIS): New class with tests for using a
6            viewport on a map with postgis layers.
7    
8    2003-08-19  Bernhard Herzog  <[email protected]>
9    
10            Add the db connection management to the session.
11    
12            * Thuban/Model/session.py (Session.__init__): New instance
13            variable db_connections
14            (Session.AddDBConnection, Session.DBConnections)
15            (Session.HasDBConnections, Session.CanRemoveDBConnection)
16            (Session.RemoveDBConnection): New methods to manage and query the
17            db connections managed by the session
18            (Session.OpenDBShapeStore): New method to open a shapestore from a
19            db connection
20    
21            * Thuban/Model/messages.py (DBCONN_REMOVED, DBCONN_ADDED): New
22            messages for the db connection handling in the session
23    
24            * test/test_postgis_session.py: New. test cases for the session's
25            db connection handling with postgis connections
26    
27    2003-08-19  Bernhard Herzog  <[email protected]>
28    
29            Add very basic postgis database support and the corresponding test
30            cases. The test cases require a PostgreSQL + postgis installation
31            but no existing database. The database will be created
32            automatically by the test cases
33    
34            * test/README: Add note about skipped tests and the requirements
35            of the postgis tests.
36    
37            * Thuban/Model/postgisdb.py: New. Basic postgis database support.
38    
39            * test/test_postgis_db.py: New. Test cases for the postgis
40            support.
41    
42            * Thuban/Model/wellknowntext.py: New. Parser for well-known-text
43            format
44    
45            * test/test_wellknowntext.py: New. Test cases for the
46            wellknowntext parser
47    
48            * test/postgissupport.py: New. Support module for tests involving
49            a postgis database.
50    
51            * test/support.py (execute_as_testsuite): Shut down the postmaster
52            if it's still running after the tests
53    
54            * Thuban/Model/data.py (RAW_WKT): New constant for raw data in
55            well known text format
56    
57    2003-08-19  Jan-Oliver Wagner <[email protected]>
58    
59            * Examples/simple_extensions/hello_world.py: New. Raises a Hello World
60            message dialog.
61    
62    2003-08-18  Bernhard Herzog  <[email protected]>
63    
64            * test/support.py (ThubanTestResult.printErrors): Indent the
65            reason for the skips in the output to make it a bit more readable.
66            (execute_as_testsuite): New helper function to run a test suite
67            and print some more information.
68            (run_tests): Use execute_as_testsuite to run the tests
69    
70            * test/runtests.py (main): Use execute_as_testsuite to run the
71            tests
72    
73    2003-08-18  Bernhard Herzog  <[email protected]>
74    
75            Fix some bugs in Thuban and the test suite that were uncovered by
76            changes introduced in Python 2.3:
77    
78            * Thuban/Model/table.py (DBFTable.__init__): Make sure the
79            filename is an absolute name
80    
81            * Thuban/Model/layer.py (RasterLayer.__init__): Make sure the
82            filename is an absolute name
83    
84            * test/test_save.py (SaveSessionTest.testRasterLayer): Use a
85            unique filename to save to and use the correct relative filename
86            in the expected output.
87            (SaveSessionTest.test_dbf_table): Use the correct relative
88            filename in the expected output.
89    
90            * test/test_layer.py (TestLayer.test_raster_layer): Update the
91            test to check whether the filename is absolute.
92    
93    2003-08-18  Jan-Oliver Wagner <[email protected]>
94    
95            * Thuban/UI/about.py (About.__init__): Added Silke Reimer.
96    
97    2003-08-15  Bernhard Herzog  <[email protected]>
98    
99            Change the way shapes are returned by a shape store. The
100            ShapesInRegion method returns an iterator over actual shape
101            objects instead of a list of shape ids.
102    
103            * Thuban/Model/data.py (ShapefileShape.ShapeID): New. Return shape
104            id.
105            (ShapefileStore.ShapesInRegion): Return an iterator over the
106            shapes which yields shape objects instead of returning a list of
107            shape ids
108            (ShapefileStore.AllShapes): New. Return an iterator over all
109            shapes in the shape store
110            (DerivedShapeStore.AllShapes): New. Like in ShapefileStore
111    
112            * Thuban/Model/layer.py (Layer.ShapesInRegion): Update
113            doc-string.
114    
115            * Thuban/UI/baserenderer.py
116            (BaseRenderer.layer_ids, BaseRenderer.layer_shapes): Rename to
117            layer_shapes and make it return an iterator containg shapes
118            instead of a list of ids.
119            (BaseRenderer.draw_shape_layer): Update doc-string; Adapt to
120            layer_shapes() change
121    
122            * Thuban/UI/renderer.py (ScreenRenderer.layer_ids)
123            (ScreenRenderer.layer_shapes): Rename as in BaseRenderer
124    
125            * Thuban/UI/viewport.py (ViewPort._find_shape_in_layer): Adapt to
126            changes in the ShapesInRegion return value.
127            (ViewPort._get_hit_tester): Remove commented out code
128    
129            * test/mockgeo.py (SimpleShapeStore.ShapesInRegion): Adapt to the
130            new return value.
131            (SimpleShapeStore.AllShapes): New. Implement this method too.
132    
133            * test/test_layer.py (TestLayer.test_arc_layer)
134            (TestLayer.test_polygon_layer, TestLayer.test_point_layer)
135            (TestLayer.test_point_layer_with_projection)
136            (TestLayer.test_derived_store): Adapt to changes in the
137            ShapesInRegion return value.
138    
139            * test/test_shapefilestore.py
140            (TestShapefileStoreArc.test_shapes_in_region)
141            (TestShapefileStorePolygon.test_shapes_in_region)
142            (TestShapefileStorePoint.test_shapes_in_region): Adapt to changes
143            in the ShapesInRegion return value.
144            (TestShapefileStorePoint.test_all_shapes)
145            (TestShapefileStoreArc.test_shape_shapeid): New tests for the new
146            methods
147    
148            * test/test_derivedshapestore.py
149            (TestDerivedShapeStore.test_shapes_in_region): Adapt to changes in
150            the ShapesInRegion return value.
151            (TestDerivedShapeStore.test_all_shapes)
152            (TestDerivedShapeStore.test_shape_shapeid): New tests for the new
153            methods
154    
155    2003-08-15  Bernhard Herzog  <[email protected]>
156    
157            Make the renderers deal correctly with raw vs. python level
158            representation of shape geometries
159    
160            * Thuban/UI/baserenderer.py (BaseRenderer.low_level_renderer):
161            Return a flag useraw in addition to the callable and the parameter
162            to indicate whether the callable can deal with the raw shape data
163            or uses the higher level python lists of coordinates. The callable
164            now should accept either the raw data or the return value of the
165            shape's Points() method.
166            (BaseRenderer.draw_shape_layer): Adapt to the low_level_renderer
167            change
168            (BaseRenderer.projected_points): Instead of the shape id use the
169            points list as parameter.
170            (BaseRenderer.draw_polygon_shape, BaseRenderer.draw_arc_shape)
171            (BaseRenderer.draw_point_shape): Adapt to projected_points()
172            change and accept the points list as parameter instead of the
173            shape id.
174    
175            * Thuban/UI/renderer.py (MapRenderer.low_level_renderer): Return
176            the useraw flag as required by the BaseRenderer
177            (ScreenRenderer.draw_shape_layer): Adapt to low-level renderer
178            changes.
179    
180            * test/test_baserenderer.py
181            (TestBaseRenderer.test_point_with_classification): New test for
182            rendering a map with classifications.
183    
184    2003-08-15  Bernhard Herzog  <[email protected]>
185    
186            * Thuban/UI/viewport.py (ViewPort.find_shape_at)
187            (ViewPort._find_shape_in_layer, ViewPort._find_shape_in_layer)
188            (ViewPort._get_hit_tester, ViewPort.projected_points)
189            (ViewPort._hit_point, ViewPort._hit_arc, ViewPort._hit_polygon)
190            (ViewPort._find_label_at): Split the find_shape_at method into
191            several new methods and use the functions in the hit-test module.
192    
193            * Thuban/UI/hittest.py: New module with Python-level hit-testing
194            functions
195    
196            * test/test_hittest.py: New. Test for the new hittest module
197    
198    2003-08-15  Bernhard Herzog  <[email protected]>
199    
200            * Thuban/Model/layer.py (Layer.ShapesInRegion): Apply the layer
201            projection to all corners of the bounding box to get a better
202            approximation of the projected bounding box
203    
204            * test/test_layer.py (TestLayer.test_point_layer_with_projection):
205            New. Test coordinate handling of a layer with a projection.
206            Catches the bug fixed in Layer.ShapesInRegion
207    
208    2003-08-15  Bernhard Herzog  <[email protected]>
209    
210            Move some of the mock objects in test_baserenderer into their own
211            module so they can easily be used from other tests
212    
213            * test/mockgeo.py: New test helper module with some mock objects
214            for geometry related things like shapes, shapestores and
215            projections.
216    
217            * test/test_mockgeo.py: New. Tests for the new helper module
218    
219            * test/test_baserenderer.py: Some of the mock-objects are in
220            mockgeo now.
221    
222    2003-08-12  Jan-Oliver Wagner <[email protected]>
223    
224            * Thuban/UI/about.py (About.__init__): Added Bj�rn Broscheit.
225    
226  2003-08-12  Bernhard Herzog  <[email protected]>  2003-08-12  Bernhard Herzog  <[email protected]>
227    
228          * po/de.po: New. German translations by Bjoern Broscheit          * po/de.po: New. German translations by Bjoern Broscheit

Legend:
Removed from v.1582  
changed lines
  Added in v.1609

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26