/[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 1500 by bh, Tue Jul 29 13:29:46 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]>
404    
405            * po/de.po: New. German translations by Bjoern Broscheit
406    
407    2003-08-12  Bernhard Herzog  <[email protected]>
408    
409            * Thuban/UI/projdialog.py (UnknownProjPanel._DoLayout): Translated
410            strings have to be one string literal.
411    
412    2003-08-11  Bernhard Herzog  <[email protected]>
413    
414            * test/support.py (FloatComparisonMixin.assertPointListEquals):
415            New. This method was used in various derived classes, but it's
416            better to have it here.
417    
418            * test/test_shapefilestore.py
419            (ShapefileStoreTests.assertPointListEquals): Removed. It's now in
420            FloatComparisonMixin
421    
422            * test/test_layer.py (TestLayer.assertPointListEquals): Removed.
423            It's now in FloatComparisonMixin
424    
425            * test/test_derivedshapestore.py
426            (TestDerivedShapeStore.assertPointListEquals): Removed. It's now
427            in FloatComparisonMixin
428    
429    2003-08-11  Bernhard Herzog  <[email protected]>
430    
431            * Thuban/UI/join.py (JoinDialog.OnJoin): Add missing space to
432            error message
433    
434    2003-08-08  Jan-Oliver Wagner <[email protected]>
435    
436            * Doc/manual/thuban-manual.xml: Now use authorgroup. Added revhistory
437            with version number.
438            Changed title to reflect version number of Thuban.
439    
440    2003-08-08  Jan-Oliver Wagner <[email protected]>
441    
442            * Thuban/UI/about.py (About.__init__): Reworked the hall of fame. Now
443            the list corresponds to the "About" web page.
444    
445    2003-08-08  Bernhard Herzog  <[email protected]>
446    
447            * Thuban/UI/projdialog.py (UTMProposeZoneDialog.dialogLayout):
448            Make sure translated strings are recognized as one string literal.
449    
450            * Thuban/UI/proj4dialog.py (UTMProposeZoneDialog.dialogLayout):
451            Make sure translated strings are recognized as one string literal.
452    
453            * Thuban/UI/classgen.py (ClassGenDialog.OnOK): Make sure
454            translated strings are recognized as one string literal.
455    
456            * Thuban/UI/application.py (ThubanApplication.OpenSession): Make
457            sure translated strings are recognized as one string literal.
458    
459    2003-08-07  Bernhard Herzog  <[email protected]>
460    
461            * Thuban/Model/data.py (DerivedShapeStore.RawShapeFormat): New.
462            Simply delegates to the original shapestore.
463    
464            * test/test_derivedshapestore.py
465            (TestDerivedShapeStore.test_raw_format): New. Test case for
466            DerivedShapeStore.RawShapeFormat
467    
468    2003-08-07  Bernhard Herzog  <[email protected]>
469    
470            Add raw data interface to shape objects.
471    
472            * Thuban/Model/data.py (ShapefileShape, Shape): Rname the shape
473            class to ShapefileShape which now holds shapefile specific
474            information.
475            (ShapefileShape.compute_bbox): Simplified to not cache any
476            information. The way this method is used that shouldn't matter
477            performance wise.
478            (ShapefileShape.RawData): New. Return the shapeid which is the raw
479            data format for shapes from shapefiles.
480            (ShapefileStore.RawShapeFormat): New. Return the raw datatype used
481            in the shape objects returned by a shapestore. For a
482            ShapefileStore this is always RAW_SHAPEFILE.
483            (RAW_PYTHON, RAW_SHAPEFILE): Constants for the RawShapeFormat
484            method.
485    
486            * test/test_shapefilestore.py
487            (TestShapefileStore.test_raw_format): New test to test the raw
488            format feature of shapes.
489    
490            * Thuban/Model/layer.py: Remove the unused import of Shape from
491            data. It was only there for interface compatibility but it's not
492            used inside of Thuban and the generic Shape class has gone away.
493    
494            * Thuban/UI/renderer.py (MapRenderer.low_level_renderer): Check
495            the raw data format and only use an optimized version of its a
496            shapefile.
497    
498    2003-08-07  Bernhard Herzog  <[email protected]>
499    
500            * test/test_baserenderer.py (SimpleShape): Shape class for the
501            tests.
502            (SimpleShapeStore.Shape): Use SimpleShape instead of
503            Thuban.Model.data.Shape to make the tests independed of the coming
504            changes.
505    
506    2003-08-07  Bernhard Herzog  <[email protected]>
507    
508            * test/support.py (SkipTest, ThubanTestResult, ThubanTestRunner)
509            (ThubanTestProgram): New classes that extend the respective
510            classes from unittest. These new version support skipping tests
511            under certain expected conditions. In the Thuban test suite we
512            uses this for tests that require the optional gdal support.
513            (run_tests): Use ThubanTestProgram instead of the unittest.main()
514    
515            * test/runtests.py (main): Use the new ThubanTestRunner instead of
516            the normal one from unittest
517    
518            * test/test_layer.py (TestLayer.test_raster_layer): If this test
519            is not run because gdal support isn't available report this to the
520            runner.
521    
522            * test/test_baserenderer.py
523            (TestBaseRenderer.test_raster_no_projection): Do not run this test
524            if gdal support isn't available and report this to the runner.
525    
526    2003-08-06  Bernhard Herzog  <[email protected]>
527    
528            Rearrange the renderers a bit, partly in preparation for changes
529            required for the postgis merge, partly to make it more testable.
530            Also make the representation of coordinates in Shapes more
531            consistent.
532    
533            * Thuban/UI/renderer.py (MapRenderer): Most of the code/methods in
534            this class is now in BaseRenderer. This class is now practically
535            only a specialization of BaseRenderer for rendering to an actual
536            wx DC.
537            (ScreenRenderer.draw_shape_layer): Use self.low_level_renderer()
538            to get the shapetype specific rendering functions.
539    
540            * Thuban/UI/baserenderer.py: New file with the basic rendering
541            logic. The code in this file is completely independend of wx.
542            (BaseRenderer): Class with the basic rendering logic
543    
544            * test/test_baserenderer.py: New. Test cases for BaseRenderer
545    
546            * Thuban/UI/view.py (MapCanvas.__init__): New instance variable
547            error_on_redraw to guard agains endless loops and stack overflows
548            when there's a bug in the rendering code that raises exceptions.
549            (MapCanvas.OnIdle, MapCanvas._do_redraw): Split the actual
550            rendering into a separate method _do_redraw so that error handling
551            is a bit easier. When an exception occurs, set error_on_redraw to
552            true. When it's true on entry to OnIdle do nothing and return
553            immediately.
554    
555            * Thuban/Model/data.py (ShapefileStore.Shape): For consistency, a
556            Shape object will always have the coordinates as a list of list of
557            coordinate pairs (tuples).
558            (Shape.compute_bbox): Adapt to new representation.
559    
560            * Thuban/UI/viewport.py (ViewPort.find_shape_at)
561            (ViewPort.LabelShapeAt): Adapt to new coordinate representation in
562            Shape objects.
563    
564            * test/test_shapefilestore.py
565            (ShapefileStoreTests.assertFloatTuplesEqual)
566            (ShapefileStoreTests.assertPointListEquals): Rename to
567            assertPointListEquals and change purpose to checking equality of
568            the lists returned by Shape.Points().
569            (TestShapefileStoreArc.test_shape)
570            (TestShapefileStorePolygon.test_shape)
571            (TestShapefileStorePoint.test_shape): Use the new
572            assertPointListEquals instead of assertFloatTuplesEqual
573    
574            * test/test_layer.py (TestLayer.assertFloatTuplesEqual)
575            (TestLayer.assertPointListEquals): Rename to assertPointListEquals
576            and change purpose to checking equality of the lists returned by
577            Shape.Points().
578            (TestLayer.test_arc_layer, TestLayer.test_arc_layer)
579            (TestLayer.test_polygon_layer, TestLayer.test_point_layer)
580            (TestLayer.test_derived_store): Use the new assertPointListEquals
581            instead of assertFloatTuplesEqual
582    
583            * test/test_derivedshapestore.py
584            (TestDerivedShapeStore.assertFloatTuplesEqual)
585            (TestDerivedShapeStore.assertPointListEquals): Rename to
586            assertPointListEquals and change purpose to checking equality of
587            the lists returned by Shape.Points().
588            (TestDerivedShapeStore.test_shape): Use the new
589            assertPointListEquals instead of assertFloatTuplesEqual
590    
591    2003-08-06  Jan-Oliver Wagner <[email protected]>
592    
593            * Thuban/UI/projdialog.py (UTMPanel._OnPropose): Added test for
594            a bounding box. A dialog is raised in case, no bounding box
595            is found. This fixes bug #2043:
596            https://intevation.de/rt/webrt?serial_num=2043
597    
598    2003-08-05  Bernhard Herzog  <[email protected]>
599    
600            * Thuban/Model/color.py (Color.__repr__): Make the repr of a color
601            object look like a Color instantiation. Formerly it looked like a
602            tuple.
603    
604            * test/test_color.py (TestColor.test_repr)
605            (TestColor.test_equality, TestColor.test_inequality): New. test
606            some more apects of the Color class
607            (TestTransparent.test_repr, TestTransparent.test_hex)
608            (TestTransparent.test_equality): New. Test cases for the
609            Transparent object.
610    
611    2003-08-04  Jan-Oliver Wagner <[email protected]>
612    
613            * Doc/manual/thuban-manual.xml: a number of small improvements.
614            The resulting file is the version submitted for GREAT-ER II.
615    
616    2003-08-01  Bernhard Herzog  <[email protected]>
617    
618            * Thuban/UI/resource.py, Thuban/UI/projdialog.py,
619            Thuban/UI/join.py, Thuban/UI/classgen.py, Thuban/UI/about.py,
620            Thuban/Model/resource.py: Insert cvs keywords and doc-strings.
621    
622            * Thuban/UI/common.py: Insert cvs keywords and doc-strings.
623            (Color2wxColour, wxColour2Color, ThubanBeginBusyCursor)
624            (ThubanEndBusyCursor): Add doc-strings
625    
626    2003-08-01  Bernhard Herzog  <[email protected]>
627    
628            First step towards PostGIS integration. More abstraction by movin
629            more code from the layer to the shapestore. More methods of the
630            layer are now simply delegated to the equivalent method of the
631            shapestore. The SHAPETYPE_* constants are now in data not in
632            layer.
633    
634            * Thuban/Model/data.py (SHAPETYPE_POLYGON, SHAPETYPE_ARC)
635            (SHAPETYPE_POINT, Shape): Move these constants and classes from
636            layer.py to data.py
637            (ShapefileStore.__init__): More Initialization for the new methods
638            and functionality.
639            (ShapefileStore.ShapeType, ShapefileStore.NumShapes)
640            (ShapefileStore.BoundingBox, ShapefileStore.ShapesInRegion)
641            (ShapefileStore.Shape): New methods that were formerly implemented
642            in the layer.
643            (DerivedShapeStore.Shape, DerivedShapeStore.ShapesInRegion)
644            (DerivedShapeStore.ShapeType, DerivedShapeStore.NumShapes)
645            (DerivedShapeStore.BoundingBox): New. DerivedShapeStore
646            equivalents of the new shape methods. These versions are simply
647            delegated to the original shapstore.
648    
649            * Thuban/Model/layer.py (SHAPETYPE_POLYGON, SHAPETYPE_ARC)
650            (SHAPETYPE_POINT, Shape): Removed. They're now in data.py
651            (Layer.SetShapeStore): Removed the initializatin of instance
652            variables that were needed for the stuff that's now in
653            ShapefileStore
654            (Layer.BoundingBox, Layer.NumShapes, Layer.ShapeType)
655            (Layer.Shape, Layer.ShapesInRegion): Simply delegate to the
656            shapestore.
657    
658            * Thuban/UI/classifier.py, Thuban/UI/renderer.py,
659            Thuban/UI/viewport.py: Import the SHAPETYPE_* constants from data
660            instead of layer.
661    
662            * test/test_shapefilestore.py: New. Tests for ShapefileStore.
663    
664            * test/test_derivedshapestore.py: New. Tests for DerivedShapeStore.
665    
666            * test/test_layer.py: Import the SHAPETYPE_* constants from data
667            instead of layer.
668            (TestLayer.test_derived_store): Remove the test for the exception
669            when instantiating the DerivedShapeStore with an incompatible
670            table which is now in test_derivedshapestore.py. Add some more
671            tests of the layer methods to determine whether they work for a
672            DerivedShapeStore as well.
673    
674    2003-07-31  Jonathan Coles   <[email protected]>
675    
676            * Doc/manual/thuban-manual.xml: Fix the list of required packages
677            by just listing the name and where they can be found.
678    
679    2003-07-31  Frank Koormann   <[email protected]>
680    
681            * Doc/manual/thuban-manual.xml:
682            Changed the screenshot elements to figure.
683            Changed some variablelist elements to itemizedlist.
684            Added section on GDAL formats.
685    
686    2003-07-31  Jonathan Coles   <[email protected]>
687    
688            * Doc/manual/thuban-manual.xml: Added a few sentences about
689            the Fix Border Color option when generating classes.
690    
691    2003-07-30  Jonathan Coles   <[email protected]>
692    
693            * Thuban/Model/classgen.py: Add docstrings. Rename specific
694            Ramp instances to use lower_case_style.
695    
696            * Thuban/UI/classgen.py: Use renamed Ramp instances.
697            
698            * Thuban/UI/classifier.py: Add docstrings.
699    
700            * Thuban/UI/dock.py: Add docstrings.
701    
702            * test/test_classgen.py: Use renamed Ramp instances.
703    
704    2003-07-30  Bernhard Herzog  <[email protected]>
705    
706            * Thuban/Lib/connector.py (QueueingPublisher): Removed. This class
707            was never used in Thuban.
708    
709    2003-07-30  Bernhard Herzog  <[email protected]>
710    
711            * Thuban/UI/join.py (JoinDialog.__init__): Use the table's Title()
712            method directly instead of going through the transient_table
713            method. This faster because transient_table may force the copy of
714            a DBF file into the transient database and setting a table's title
715            doesnm't affect the title of the associated transient table, so
716            this fixes RT #2042
717    
718            * Thuban/UI/main.py (__version__): Don't import the already
719            removed show_exception_dialog.
720    
721    2003-07-29  Jonathan Coles   <[email protected]>
722    
723            * Thuban/UI/application.py (ThubanApplication.ShowExceptionDialog):
724            Put back this method and remove the equivalent function since we
725            are setting the exception hook from within this class (OnInit).
726    
727    2003-07-29  Jonathan Coles   <[email protected]>
728    
729            * Doc/manual/images/5_2_custom_ramp.png,
730            Doc/manual/images/5_2_quantiles.png,
731            Doc/manual/images/5_2_uniform_dist.png,
732            Doc/manual/images/5_2_unique_values.png,
733            Doc/manual/images/8_int_error.png: New screen shots.
734    
735            * Doc/manual/thuban-manual.xml: Fixed typos and wording, clarified
736            some points, and added more screen shots.
737    
738    2003-07-29  Bernhard Herzog  <[email protected]>
739    
740            * Thuban/Model/data.py: Remove the now unused import of warnings
741    
742    2003-07-29  Bernhard Herzog  <[email protected]>
743    
744            * Thuban/Model/data.py (SimpleStore): Removed. This class has been
745            deprecated since before the 0.8 release and isn't used in Thuban
746            itself anymore.
747    
748            * Thuban/Model/transientdb.py: Remove some unnecessary imports
749    
750    2003-07-29  Jonathan Coles   <[email protected]>
751    
752            * Thuban/UI/application.py (ThubanApplication.OnInit): set the
753            python exception hook here so that we are sure to catch any
754            Thuban exception that happen during initialization.
755    
756            * Thuban/UI/main.py (main): Don't set the exception hook here,
757            it will get set in ThubanApplication.OnInit.
758    
759    2003-07-29  Jonathan Coles   <[email protected]>
760                                                                                
761            * Thuban/UI/application.py (ThubanApplication.ShowExceptionDialog):
762            Removed and called it show_exception_dialog() so that the exception
763            handler can be set before the class is created.
764                                                                                
765            * Thuban/UI/main.py (main): Install the exception handler before
766            a ThubanApplication is created.
767                                                                                    
768  2003-07-29  Bernhard Herzog  <[email protected]>  2003-07-29  Bernhard Herzog  <[email protected]>
769    
770          * po/it.po: New. Italian translation by Maurizio Napolitano          * po/it.po: New. Italian translation by Maurizio Napolitano
# Line 6  Line 773 
773    
774  2003-07-29  Frank Koormann   <[email protected]>  2003-07-29  Frank Koormann   <[email protected]>
775    
776            * Doc/manual/thuban-manual.xml: Extended section on supported
777            projections.
778            
779    2003-07-29  Frank Koormann   <[email protected]>
780    
781          * Doc/manual/thuban-manual.xml: gaspell-checked.          * Doc/manual/thuban-manual.xml: gaspell-checked.
782    
783  2003-07-29  Jonathan Coles   <[email protected]>  2003-07-29  Jonathan Coles   <[email protected]>

Legend:
Removed from v.1500  
changed lines
  Added in v.1637

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26