/[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 1637 by bh, Fri Aug 22 17:20:38 2003 UTC
# Line 1  Line 1 
1    2003-08-22  Bernhard Herzog  <[email protected]>
2    
3            * Thuban/Model/postgisdb.py (ConnectionError): New exception class
4            for exceptions occurring when establishing a Database connection
5            (PostGISConnection.connect): Catch psycopg.OperationalError during
6            connects and raise ConnectionError.
7    
8            * test/test_postgis_db.py (TestPostgisDBExceptions): New class for
9            tests for database exceptions
10    
11    2003-08-22  Bernhard Herzog  <[email protected]>
12    
13            Prepare the test suite for tests with required authentication
14    
15            * test/postgissupport.py (PostgreSQLServer.__init__): Add instance
16            variables with two predefined users/passwords, one for the admin
17            and one for a non-privileged user.
18            (PostgreSQLServer.createdb): Pass the admin name to initdb and add
19            the non-privileged user to the database and set the admin password
20            (PostgreSQLServer.wait_for_postmaster): Use the admin user name.
21            Better error reporting
22            (PostgreSQLServer.connection_params)
23            (PostgreSQLServer.connection_string): New methods to return
24            information about how to connect to the server
25            (PostgreSQLServer.execute_sql): New. Convenience method to execute
26            SQL statements
27            (PostgreSQLServer.require_authentication): Toggle whether the
28            server requires authentication
29            (PostgreSQLServer.create_user, PostgreSQLServer.alter_user): New.
30            Add or alter users
31            (PostGISDatabase.initdb): Pass the admin name one the
32            subprocesses' command lines. Grant select rights on
33            geometry_columns to everybody.
34            (upload_shapefile): Use the admin name and password when
35            connecting. Grant select rights on the new table to everybody.
36    
37            * test/test_viewport.py (TestViewportWithPostGIS.setUp): Use the
38            server's new methods to get the connection parameters.
39    
40            * test/test_postgis_session.py (TestSessionWithPostGIS.setUp)
41            (TestSessionWithPostGIS.test_remove_dbconn_exception): Use the
42            server's new methods to get the connection parameters.
43    
44            * test/test_postgis_db.py
45            (TestPostGISConnection.test_gis_tables_empty)
46            (TestPostGISConnection.test_gis_tables_non_empty)
47            (PostGISStaticTests.setUp): Use the server's new methods to get
48            the connection parameters.
49    
50    2003-08-22  Bernhard Herzog  <[email protected]>
51    
52            * Thuban/UI/about.py (About.__init__): Add the psycopg version.
53    
54            * Thuban/version.py: Add psycopg version
55    
56            * Thuban/Model/postgisdb.py (psycopg_version): New. Return the
57            version of the psycopg module
58    
59    2003-08-22  Bernhard Herzog  <[email protected]>
60    
61            * Thuban/UI/dbdialog.py (DBPwdDlg): Removed because it's not used.
62            (DBFrame.OnEdit): Removed because it's not used and wouldn't work
63            at the moment. The functionality should probably be implemented
64            some time, though.
65            (DBFrame.OnRemove): Display a message if the connection can't be
66            removed because it's still in use.
67    
68    2003-08-22  Jan-Oliver Wagner <[email protected]>
69    
70            * Thuban/UI/about.py (About.__init__): split up the huge about
71            text into elements/lists for easier translation. This fixes bug
72            https://intevation.de/rt/webrt?serial_num=2058
73            Also, made some forgotten string available for the i18n.
74    
75    2003-08-21  Bernhard Herzog  <[email protected]>
76    
77            Make postgis support really optional including insensitive menu
78            items.
79    
80            * Thuban/Model/postgisdb.py (has_postgis_support): New. Return
81            whether the postgis is supported.
82    
83            * Thuban/UI/dbdialog.py: Put the psycopg import into try..except
84            to make postgis support optional
85    
86            * Thuban/UI/mainwindow.py (_has_postgis_support): New. Context
87            version of Thuban.Model.postgisdb.has_postgis_support
88            (database_management command): Make it only sensitive if postgis
89            is supported.
90    
91    2003-08-21  Jan-Oliver Wagner <[email protected]>
92    
93            * Doc/manual/thuban-manual.xml: Added CVS revision for rev-history.
94            (section Adding and Removing Layers): Added text and described
95            multi-selection.
96            (chapter Extensions): New.
97    
98    2003-08-21  Jan-Oliver Wagner <[email protected]>
99    
100            * Thuban/UI/mainwindow.py (MainWindow.AddLayer): Changed dialog
101            settings to allow multiple files to load into the map.
102            Also reduced selection to *.shp as a default.
103    
104    2003-08-20  Bernhard Herzog  <[email protected]>
105    
106            Add dialogs and commands to open database connections and add
107            database layers.
108    
109            * Thuban/UI/mainwindow.py (MainWindow.DatabaseManagement): New
110            method to open the database connection management dialog
111            (MainWindow.AddDBLayer): New method to add a layer from a database
112            (_has_dbconnections): New helper function to use for sensitivity
113            (database_management command, layer_add_db command): New commands
114            that call the above new methods.
115            (main_menu): Add the new commands to the menu.
116    
117            * Thuban/Model/postgisdb.py (PostGISConnection.__init__)
118            (PostGISConnection.connect): Establish the actual connection in a
119            separate method and call it in __init__. This makes it easier to
120            override the behavior in test cases
121            (PostGISConnection.BriefDescription): New method to return a brief
122            description for use in dialogs.
123    
124            * test/test_postgis_db.py (NonConnection): DB connection that
125            doesn't actually connect
126            (TestBriefDescription): New class with tests for the new
127            BriefDescription method
128    
129    2003-08-19  Jan-Oliver Wagner <[email protected]>
130    
131            Moved anything from extensions to libraries.
132    
133            * libraries: New.
134    
135            * libraries/ pyprojection, pyshapelib, shapelib, thuban: New.
136    
137            * libraries/pyprojection/ LICENSE, MANIFEST.in, Projection.i,
138            Projection.py, Projection_wrap.c, setup.py, swighelp.txt: These files have
139            been moved here from thuban/extensions/pyprojection/
140            See there in the Attic for the older history.
141    
142            * libraries/pyshapelib/ COPYING, ChangeLog, NEWS, README, dbflib.i,
143            dbflib.py, dbflib_wrap.c, pyshapelib_api.h, pytest.py, setup.py,
144            shapelib.i, shapelib.py, shapelib_wrap.c, shptreemodule.c: These files
145            have been moved here from thuban/extensions/pyshapelib/
146            See there in the Attic for the older history.
147    
148            * libraries/shapelib/ dbfopen.c, shapefil.h, shpopen.c, shptree.c: These
149            files have been moved here from thuban/extensions/shapelib/
150            See there in the Attic for the older history.
151    
152            * libraries/thuban/ bmpdataset.cpp, cpl_mfile.cpp, cpl_mfile.h,
153            gdalwarp.cpp, wxproj.cpp: These files have been moved here from
154            thuban/extensions/thuban/
155            See there in the Attic for the older history.
156    
157            * MANIFEST.in, setup.cfg, setup.py: renamed extensions to libraries.
158    
159            * extensions/thuban/ bmpdataset.cpp, cpl_mfile.cpp, cpl_mfile.h,
160            gdalwarp.cpp, wxproj.cpp: Moved to libraries/thuban.
161    
162            * extensions/shapelib/ dbfopen.c, shapefil.h, shpopen.c, shptree.c:
163            Moved to libraries/shapelib.
164    
165            * extensions/pyshapelib/ COPYING, NEWS, dbflib.py, pytest.py,
166            shapelib.py, README, dbflib_wrap.c, setup.py, shapelib_wrap.c,
167            ChangeLog, dbflib.i, pyshapelib_api.h, shapelib.i, shptreemodule.c:
168            Moved to libraries/pyshapelib.
169    
170            * extensions/pyprojection/ MANIFEST.in, Projection.py, setup.py,
171            LICENSE, Projection.i, Projection_wrap.c, swighelp.txt:
172            Moved to libraries/pyprojection.
173    
174            * extensions/ pyprojection, pyshapelib, shapelib, thuban: Removed.
175    
176            * extensions: Removed.
177    
178    2003-08-19  Bernhard Herzog  <[email protected]>
179    
180            * test/test_viewport.py (ViewPortTest): We don't use the
181            facilities of FileTestMixin so don't derive from it.
182            (TestViewportWithPostGIS): New class with tests for using a
183            viewport on a map with postgis layers.
184    
185    2003-08-19  Bernhard Herzog  <[email protected]>
186    
187            Add the db connection management to the session.
188    
189            * Thuban/Model/session.py (Session.__init__): New instance
190            variable db_connections
191            (Session.AddDBConnection, Session.DBConnections)
192            (Session.HasDBConnections, Session.CanRemoveDBConnection)
193            (Session.RemoveDBConnection): New methods to manage and query the
194            db connections managed by the session
195            (Session.OpenDBShapeStore): New method to open a shapestore from a
196            db connection
197    
198            * Thuban/Model/messages.py (DBCONN_REMOVED, DBCONN_ADDED): New
199            messages for the db connection handling in the session
200    
201            * test/test_postgis_session.py: New. test cases for the session's
202            db connection handling with postgis connections
203    
204    2003-08-19  Bernhard Herzog  <[email protected]>
205    
206            Add very basic postgis database support and the corresponding test
207            cases. The test cases require a PostgreSQL + postgis installation
208            but no existing database. The database will be created
209            automatically by the test cases
210    
211            * test/README: Add note about skipped tests and the requirements
212            of the postgis tests.
213    
214            * Thuban/Model/postgisdb.py: New. Basic postgis database support.
215    
216            * test/test_postgis_db.py: New. Test cases for the postgis
217            support.
218    
219            * Thuban/Model/wellknowntext.py: New. Parser for well-known-text
220            format
221    
222            * test/test_wellknowntext.py: New. Test cases for the
223            wellknowntext parser
224    
225            * test/postgissupport.py: New. Support module for tests involving
226            a postgis database.
227    
228            * test/support.py (execute_as_testsuite): Shut down the postmaster
229            if it's still running after the tests
230    
231            * Thuban/Model/data.py (RAW_WKT): New constant for raw data in
232            well known text format
233    
234    2003-08-19  Jan-Oliver Wagner <[email protected]>
235    
236            * Examples/simple_extensions/hello_world.py: New. Raises a Hello World
237            message dialog.
238    
239    2003-08-18  Bernhard Herzog  <[email protected]>
240    
241            * test/support.py (ThubanTestResult.printErrors): Indent the
242            reason for the skips in the output to make it a bit more readable.
243            (execute_as_testsuite): New helper function to run a test suite
244            and print some more information.
245            (run_tests): Use execute_as_testsuite to run the tests
246    
247            * test/runtests.py (main): Use execute_as_testsuite to run the
248            tests
249    
250    2003-08-18  Bernhard Herzog  <[email protected]>
251    
252            Fix some bugs in Thuban and the test suite that were uncovered by
253            changes introduced in Python 2.3:
254    
255            * Thuban/Model/table.py (DBFTable.__init__): Make sure the
256            filename is an absolute name
257    
258            * Thuban/Model/layer.py (RasterLayer.__init__): Make sure the
259            filename is an absolute name
260    
261            * test/test_save.py (SaveSessionTest.testRasterLayer): Use a
262            unique filename to save to and use the correct relative filename
263            in the expected output.
264            (SaveSessionTest.test_dbf_table): Use the correct relative
265            filename in the expected output.
266    
267            * test/test_layer.py (TestLayer.test_raster_layer): Update the
268            test to check whether the filename is absolute.
269    
270    2003-08-18  Jan-Oliver Wagner <[email protected]>
271    
272            * Thuban/UI/about.py (About.__init__): Added Silke Reimer.
273    
274    2003-08-15  Bernhard Herzog  <[email protected]>
275    
276            Change the way shapes are returned by a shape store. The
277            ShapesInRegion method returns an iterator over actual shape
278            objects instead of a list of shape ids.
279    
280            * Thuban/Model/data.py (ShapefileShape.ShapeID): New. Return shape
281            id.
282            (ShapefileStore.ShapesInRegion): Return an iterator over the
283            shapes which yields shape objects instead of returning a list of
284            shape ids
285            (ShapefileStore.AllShapes): New. Return an iterator over all
286            shapes in the shape store
287            (DerivedShapeStore.AllShapes): New. Like in ShapefileStore
288    
289            * Thuban/Model/layer.py (Layer.ShapesInRegion): Update
290            doc-string.
291    
292            * Thuban/UI/baserenderer.py
293            (BaseRenderer.layer_ids, BaseRenderer.layer_shapes): Rename to
294            layer_shapes and make it return an iterator containg shapes
295            instead of a list of ids.
296            (BaseRenderer.draw_shape_layer): Update doc-string; Adapt to
297            layer_shapes() change
298    
299            * Thuban/UI/renderer.py (ScreenRenderer.layer_ids)
300            (ScreenRenderer.layer_shapes): Rename as in BaseRenderer
301    
302            * Thuban/UI/viewport.py (ViewPort._find_shape_in_layer): Adapt to
303            changes in the ShapesInRegion return value.
304            (ViewPort._get_hit_tester): Remove commented out code
305    
306            * test/mockgeo.py (SimpleShapeStore.ShapesInRegion): Adapt to the
307            new return value.
308            (SimpleShapeStore.AllShapes): New. Implement this method too.
309    
310            * test/test_layer.py (TestLayer.test_arc_layer)
311            (TestLayer.test_polygon_layer, TestLayer.test_point_layer)
312            (TestLayer.test_point_layer_with_projection)
313            (TestLayer.test_derived_store): Adapt to changes in the
314            ShapesInRegion return value.
315    
316            * test/test_shapefilestore.py
317            (TestShapefileStoreArc.test_shapes_in_region)
318            (TestShapefileStorePolygon.test_shapes_in_region)
319            (TestShapefileStorePoint.test_shapes_in_region): Adapt to changes
320            in the ShapesInRegion return value.
321            (TestShapefileStorePoint.test_all_shapes)
322            (TestShapefileStoreArc.test_shape_shapeid): New tests for the new
323            methods
324    
325            * test/test_derivedshapestore.py
326            (TestDerivedShapeStore.test_shapes_in_region): Adapt to changes in
327            the ShapesInRegion return value.
328            (TestDerivedShapeStore.test_all_shapes)
329            (TestDerivedShapeStore.test_shape_shapeid): New tests for the new
330            methods
331    
332    2003-08-15  Bernhard Herzog  <[email protected]>
333    
334            Make the renderers deal correctly with raw vs. python level
335            representation of shape geometries
336    
337            * Thuban/UI/baserenderer.py (BaseRenderer.low_level_renderer):
338            Return a flag useraw in addition to the callable and the parameter
339            to indicate whether the callable can deal with the raw shape data
340            or uses the higher level python lists of coordinates. The callable
341            now should accept either the raw data or the return value of the
342            shape's Points() method.
343            (BaseRenderer.draw_shape_layer): Adapt to the low_level_renderer
344            change
345            (BaseRenderer.projected_points): Instead of the shape id use the
346            points list as parameter.
347            (BaseRenderer.draw_polygon_shape, BaseRenderer.draw_arc_shape)
348            (BaseRenderer.draw_point_shape): Adapt to projected_points()
349            change and accept the points list as parameter instead of the
350            shape id.
351    
352            * Thuban/UI/renderer.py (MapRenderer.low_level_renderer): Return
353            the useraw flag as required by the BaseRenderer
354            (ScreenRenderer.draw_shape_layer): Adapt to low-level renderer
355            changes.
356    
357            * test/test_baserenderer.py
358            (TestBaseRenderer.test_point_with_classification): New test for
359            rendering a map with classifications.
360    
361    2003-08-15  Bernhard Herzog  <[email protected]>
362    
363            * Thuban/UI/viewport.py (ViewPort.find_shape_at)
364            (ViewPort._find_shape_in_layer, ViewPort._find_shape_in_layer)
365            (ViewPort._get_hit_tester, ViewPort.projected_points)
366            (ViewPort._hit_point, ViewPort._hit_arc, ViewPort._hit_polygon)
367            (ViewPort._find_label_at): Split the find_shape_at method into
368            several new methods and use the functions in the hit-test module.
369    
370            * Thuban/UI/hittest.py: New module with Python-level hit-testing
371            functions
372    
373            * test/test_hittest.py: New. Test for the new hittest module
374    
375    2003-08-15  Bernhard Herzog  <[email protected]>
376    
377            * Thuban/Model/layer.py (Layer.ShapesInRegion): Apply the layer
378            projection to all corners of the bounding box to get a better
379            approximation of the projected bounding box
380    
381            * test/test_layer.py (TestLayer.test_point_layer_with_projection):
382            New. Test coordinate handling of a layer with a projection.
383            Catches the bug fixed in Layer.ShapesInRegion
384    
385    2003-08-15  Bernhard Herzog  <[email protected]>
386    
387            Move some of the mock objects in test_baserenderer into their own
388            module so they can easily be used from other tests
389    
390            * test/mockgeo.py: New test helper module with some mock objects
391            for geometry related things like shapes, shapestores and
392            projections.
393    
394            * test/test_mockgeo.py: New. Tests for the new helper module
395    
396            * test/test_baserenderer.py: Some of the mock-objects are in
397            mockgeo now.
398    
399    2003-08-12  Jan-Oliver Wagner <[email protected]>
400    
401            * Thuban/UI/about.py (About.__init__): Added Bj�rn Broscheit.
402    
403  2003-08-12  Bernhard Herzog  <[email protected]>  2003-08-12  Bernhard Herzog  <[email protected]>
404    
405          * 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.1637

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26