/[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 1483 by bh, Thu Jul 24 17:53:21 2003 UTC revision 1651 by bh, Mon Aug 25 15:05:56 2003 UTC
# Line 1  Line 1 
1    2003-08-25  Bernhard Herzog  <[email protected]>
2    
3            * Thuban/UI/application.py (ThubanApplication.OpenSession): Catch
4            LoadCancelled exceptions and handle them by returning immediately.
5    
6    2003-08-25  Bernhard Herzog  <[email protected]>
7    
8            GUI part of loading sessions with postgis connections which may
9            require user interaction to get passwords or updated parameters
10    
11            * Thuban/UI/dbdialog.py (DBDialog): Reimplement to make it look a
12            bit nucer and be more generic.
13            (DBFrame.OnAdd): Adapt to new DBDialog interface
14    
15            * Thuban/UI/application.py (ThubanApplication.OpenSession): New
16            optional parameter db_connection_callback which is passed to
17            load_session.
18    
19            * Thuban/UI/mainwindow.py (MainWindow.run_db_param_dialog): New.
20            Suitable as a db_connection_callback
21            (MainWindow.OpenSession): Use self.run_db_param_dialog as the
22            db_connection_callback of the application's OpenSession method
23    
24    
25    2003-08-25  Bernhard Herzog  <[email protected]>
26    
27            Basic loading of sessions containing postgis connections:
28    
29            * Thuban/Model/load.py (LoadError): Add doc-string
30            (LoadCancelled): New exception class to indicate a cancelled load
31            (SessionLoader.__init__): Add the db_connection_callback parameter
32            which will be used by the loader to get updated parameters and a
33            password for a database connection
34            (SessionLoader.__init__): Add the new XML elements to the
35            dispatchers dictionary
36            (SessionLoader.check_attrs): Two new conversions, ascii to convert
37            to a byte-string object and idref as a generic id reference
38            (SessionLoader.start_dbconnection)
39            (SessionLoader.start_dbshapesource): New. Handlers for the new XML
40            elements
41            (load_session): Add the db_connection_callback to pass through the
42            SessionLoader
43    
44            * test/test_load.py (TestPostGISLayer, TestPostGISLayerPassword):
45            New classes to test loading of sessions with postgis database
46            connections.
47    
48    2003-08-25  Bernhard Herzog  <[email protected]>
49    
50            * Thuban/UI/mainwindow.py (__ThubanVersion__): Remove this and
51            replace it and the comment with __BuildDate__ by the Source: and
52            Id: cvs keywords as used in the other files.
53    
54    2003-08-25  Bernhard Herzog  <[email protected]>
55    
56            * Thuban/Model/load.py (SessionLoader.check_attrs): Raise a
57            LoadError when a required attribute is missing. The code used to
58            be commented out for some reason, but probably should have been
59            active.
60    
61            * test/test_load.py (TestLoadError.test): Test the message in the
62            LoadError too to make sure it really is about the missing
63            attribute
64    
65    2003-08-22  Bernhard Herzog  <[email protected]>
66    
67            * test/test_save.py (SaveSessionTest.test_dbf_table)
68            (SaveSessionTest.test_joined_table): Add XML validation tests.
69    
70    2003-08-22  Bernhard Herzog  <[email protected]>
71    
72            Implement saving a session with a postgis connection
73    
74            * Resources/XML/thuban-0.9.dtd (dbconnection, dbshapesource) New
75            elements for database connections and shapestores using db
76            connections
77            (session): Add the dbconnections to the content model
78    
79            * Thuban/Model/save.py (SessionSaver.write_db_connections): New.
80            Write the db connections
81            (SessionSaver.write_session): Call write_db_connections to write
82            the connection before the data sources
83            (SessionSaver.write_data_containers): Handle postgis shapestores
84    
85            * test/test_save.py (SaveSessionTest.thubanids)
86            (SaveSessionTest.thubanidrefs): Update for new DTD
87            (SaveSessionTest.test_save_postgis): New. Test saving a session
88            with postgis connections
89    
90            * Thuban/Model/postgisdb.py (PostGISTable.DBConnection)
91            (PostGISTable.TableName): New accessor methods for the connection
92            and table name
93    
94            * test/test_postgis_db.py (TestPostGISTable.test_dbconn)
95            (TestPostGISTable.test_dbname): New methods to test the new
96            PostGISConnection methods
97    
98    2003-08-22  Bernhard Herzog  <[email protected]>
99    
100            * Thuban/Model/postgisdb.py (ConnectionError): New exception class
101            for exceptions occurring when establishing a Database connection
102            (PostGISConnection.connect): Catch psycopg.OperationalError during
103            connects and raise ConnectionError.
104    
105            * test/test_postgis_db.py (TestPostgisDBExceptions): New class for
106            tests for database exceptions
107    
108    2003-08-22  Bernhard Herzog  <[email protected]>
109    
110            Prepare the test suite for tests with required authentication
111    
112            * test/postgissupport.py (PostgreSQLServer.__init__): Add instance
113            variables with two predefined users/passwords, one for the admin
114            and one for a non-privileged user.
115            (PostgreSQLServer.createdb): Pass the admin name to initdb and add
116            the non-privileged user to the database and set the admin password
117            (PostgreSQLServer.wait_for_postmaster): Use the admin user name.
118            Better error reporting
119            (PostgreSQLServer.connection_params)
120            (PostgreSQLServer.connection_string): New methods to return
121            information about how to connect to the server
122            (PostgreSQLServer.execute_sql): New. Convenience method to execute
123            SQL statements
124            (PostgreSQLServer.require_authentication): Toggle whether the
125            server requires authentication
126            (PostgreSQLServer.create_user, PostgreSQLServer.alter_user): New.
127            Add or alter users
128            (PostGISDatabase.initdb): Pass the admin name one the
129            subprocesses' command lines. Grant select rights on
130            geometry_columns to everybody.
131            (upload_shapefile): Use the admin name and password when
132            connecting. Grant select rights on the new table to everybody.
133    
134            * test/test_viewport.py (TestViewportWithPostGIS.setUp): Use the
135            server's new methods to get the connection parameters.
136    
137            * test/test_postgis_session.py (TestSessionWithPostGIS.setUp)
138            (TestSessionWithPostGIS.test_remove_dbconn_exception): Use the
139            server's new methods to get the connection parameters.
140    
141            * test/test_postgis_db.py
142            (TestPostGISConnection.test_gis_tables_empty)
143            (TestPostGISConnection.test_gis_tables_non_empty)
144            (PostGISStaticTests.setUp): Use the server's new methods to get
145            the connection parameters.
146    
147    2003-08-22  Bernhard Herzog  <[email protected]>
148    
149            * Thuban/UI/about.py (About.__init__): Add the psycopg version.
150    
151            * Thuban/version.py: Add psycopg version
152    
153            * Thuban/Model/postgisdb.py (psycopg_version): New. Return the
154            version of the psycopg module
155    
156    2003-08-22  Bernhard Herzog  <[email protected]>
157    
158            * Thuban/UI/dbdialog.py (DBPwdDlg): Removed because it's not used.
159            (DBFrame.OnEdit): Removed because it's not used and wouldn't work
160            at the moment. The functionality should probably be implemented
161            some time, though.
162            (DBFrame.OnRemove): Display a message if the connection can't be
163            removed because it's still in use.
164    
165    2003-08-22  Jan-Oliver Wagner <[email protected]>
166    
167            * Thuban/UI/about.py (About.__init__): split up the huge about
168            text into elements/lists for easier translation. This fixes bug
169            https://intevation.de/rt/webrt?serial_num=2058
170            Also, made some forgotten string available for the i18n.
171    
172    2003-08-21  Bernhard Herzog  <[email protected]>
173    
174            Make postgis support really optional including insensitive menu
175            items.
176    
177            * Thuban/Model/postgisdb.py (has_postgis_support): New. Return
178            whether the postgis is supported.
179    
180            * Thuban/UI/dbdialog.py: Put the psycopg import into try..except
181            to make postgis support optional
182    
183            * Thuban/UI/mainwindow.py (_has_postgis_support): New. Context
184            version of Thuban.Model.postgisdb.has_postgis_support
185            (database_management command): Make it only sensitive if postgis
186            is supported.
187    
188    2003-08-21  Jan-Oliver Wagner <[email protected]>
189    
190            * Doc/manual/thuban-manual.xml: Added CVS revision for rev-history.
191            (section Adding and Removing Layers): Added text and described
192            multi-selection.
193            (chapter Extensions): New.
194    
195    2003-08-21  Jan-Oliver Wagner <[email protected]>
196    
197            * Thuban/UI/mainwindow.py (MainWindow.AddLayer): Changed dialog
198            settings to allow multiple files to load into the map.
199            Also reduced selection to *.shp as a default.
200    
201    2003-08-20  Bernhard Herzog  <[email protected]>
202    
203            Add dialogs and commands to open database connections and add
204            database layers.
205    
206            * Thuban/UI/mainwindow.py (MainWindow.DatabaseManagement): New
207            method to open the database connection management dialog
208            (MainWindow.AddDBLayer): New method to add a layer from a database
209            (_has_dbconnections): New helper function to use for sensitivity
210            (database_management command, layer_add_db command): New commands
211            that call the above new methods.
212            (main_menu): Add the new commands to the menu.
213    
214            * Thuban/Model/postgisdb.py (PostGISConnection.__init__)
215            (PostGISConnection.connect): Establish the actual connection in a
216            separate method and call it in __init__. This makes it easier to
217            override the behavior in test cases
218            (PostGISConnection.BriefDescription): New method to return a brief
219            description for use in dialogs.
220    
221            * test/test_postgis_db.py (NonConnection): DB connection that
222            doesn't actually connect
223            (TestBriefDescription): New class with tests for the new
224            BriefDescription method
225    
226    2003-08-19  Jan-Oliver Wagner <[email protected]>
227    
228            Moved anything from extensions to libraries.
229    
230            * libraries: New.
231    
232            * libraries/ pyprojection, pyshapelib, shapelib, thuban: New.
233    
234            * libraries/pyprojection/ LICENSE, MANIFEST.in, Projection.i,
235            Projection.py, Projection_wrap.c, setup.py, swighelp.txt: These files have
236            been moved here from thuban/extensions/pyprojection/
237            See there in the Attic for the older history.
238    
239            * libraries/pyshapelib/ COPYING, ChangeLog, NEWS, README, dbflib.i,
240            dbflib.py, dbflib_wrap.c, pyshapelib_api.h, pytest.py, setup.py,
241            shapelib.i, shapelib.py, shapelib_wrap.c, shptreemodule.c: These files
242            have been moved here from thuban/extensions/pyshapelib/
243            See there in the Attic for the older history.
244    
245            * libraries/shapelib/ dbfopen.c, shapefil.h, shpopen.c, shptree.c: These
246            files have been moved here from thuban/extensions/shapelib/
247            See there in the Attic for the older history.
248    
249            * libraries/thuban/ bmpdataset.cpp, cpl_mfile.cpp, cpl_mfile.h,
250            gdalwarp.cpp, wxproj.cpp: These files have been moved here from
251            thuban/extensions/thuban/
252            See there in the Attic for the older history.
253    
254            * MANIFEST.in, setup.cfg, setup.py: renamed extensions to libraries.
255    
256            * extensions/thuban/ bmpdataset.cpp, cpl_mfile.cpp, cpl_mfile.h,
257            gdalwarp.cpp, wxproj.cpp: Moved to libraries/thuban.
258    
259            * extensions/shapelib/ dbfopen.c, shapefil.h, shpopen.c, shptree.c:
260            Moved to libraries/shapelib.
261    
262            * extensions/pyshapelib/ COPYING, NEWS, dbflib.py, pytest.py,
263            shapelib.py, README, dbflib_wrap.c, setup.py, shapelib_wrap.c,
264            ChangeLog, dbflib.i, pyshapelib_api.h, shapelib.i, shptreemodule.c:
265            Moved to libraries/pyshapelib.
266    
267            * extensions/pyprojection/ MANIFEST.in, Projection.py, setup.py,
268            LICENSE, Projection.i, Projection_wrap.c, swighelp.txt:
269            Moved to libraries/pyprojection.
270    
271            * extensions/ pyprojection, pyshapelib, shapelib, thuban: Removed.
272    
273            * extensions: Removed.
274    
275    2003-08-19  Bernhard Herzog  <[email protected]>
276    
277            * test/test_viewport.py (ViewPortTest): We don't use the
278            facilities of FileTestMixin so don't derive from it.
279            (TestViewportWithPostGIS): New class with tests for using a
280            viewport on a map with postgis layers.
281    
282    2003-08-19  Bernhard Herzog  <[email protected]>
283    
284            Add the db connection management to the session.
285    
286            * Thuban/Model/session.py (Session.__init__): New instance
287            variable db_connections
288            (Session.AddDBConnection, Session.DBConnections)
289            (Session.HasDBConnections, Session.CanRemoveDBConnection)
290            (Session.RemoveDBConnection): New methods to manage and query the
291            db connections managed by the session
292            (Session.OpenDBShapeStore): New method to open a shapestore from a
293            db connection
294    
295            * Thuban/Model/messages.py (DBCONN_REMOVED, DBCONN_ADDED): New
296            messages for the db connection handling in the session
297    
298            * test/test_postgis_session.py: New. test cases for the session's
299            db connection handling with postgis connections
300    
301    2003-08-19  Bernhard Herzog  <[email protected]>
302    
303            Add very basic postgis database support and the corresponding test
304            cases. The test cases require a PostgreSQL + postgis installation
305            but no existing database. The database will be created
306            automatically by the test cases
307    
308            * test/README: Add note about skipped tests and the requirements
309            of the postgis tests.
310    
311            * Thuban/Model/postgisdb.py: New. Basic postgis database support.
312    
313            * test/test_postgis_db.py: New. Test cases for the postgis
314            support.
315    
316            * Thuban/Model/wellknowntext.py: New. Parser for well-known-text
317            format
318    
319            * test/test_wellknowntext.py: New. Test cases for the
320            wellknowntext parser
321    
322            * test/postgissupport.py: New. Support module for tests involving
323            a postgis database.
324    
325            * test/support.py (execute_as_testsuite): Shut down the postmaster
326            if it's still running after the tests
327    
328            * Thuban/Model/data.py (RAW_WKT): New constant for raw data in
329            well known text format
330    
331    2003-08-19  Jan-Oliver Wagner <[email protected]>
332    
333            * Examples/simple_extensions/hello_world.py: New. Raises a Hello World
334            message dialog.
335    
336    2003-08-18  Bernhard Herzog  <[email protected]>
337    
338            * test/support.py (ThubanTestResult.printErrors): Indent the
339            reason for the skips in the output to make it a bit more readable.
340            (execute_as_testsuite): New helper function to run a test suite
341            and print some more information.
342            (run_tests): Use execute_as_testsuite to run the tests
343    
344            * test/runtests.py (main): Use execute_as_testsuite to run the
345            tests
346    
347    2003-08-18  Bernhard Herzog  <[email protected]>
348    
349            Fix some bugs in Thuban and the test suite that were uncovered by
350            changes introduced in Python 2.3:
351    
352            * Thuban/Model/table.py (DBFTable.__init__): Make sure the
353            filename is an absolute name
354    
355            * Thuban/Model/layer.py (RasterLayer.__init__): Make sure the
356            filename is an absolute name
357    
358            * test/test_save.py (SaveSessionTest.testRasterLayer): Use a
359            unique filename to save to and use the correct relative filename
360            in the expected output.
361            (SaveSessionTest.test_dbf_table): Use the correct relative
362            filename in the expected output.
363    
364            * test/test_layer.py (TestLayer.test_raster_layer): Update the
365            test to check whether the filename is absolute.
366    
367    2003-08-18  Jan-Oliver Wagner <[email protected]>
368    
369            * Thuban/UI/about.py (About.__init__): Added Silke Reimer.
370    
371    2003-08-15  Bernhard Herzog  <[email protected]>
372    
373            Change the way shapes are returned by a shape store. The
374            ShapesInRegion method returns an iterator over actual shape
375            objects instead of a list of shape ids.
376    
377            * Thuban/Model/data.py (ShapefileShape.ShapeID): New. Return shape
378            id.
379            (ShapefileStore.ShapesInRegion): Return an iterator over the
380            shapes which yields shape objects instead of returning a list of
381            shape ids
382            (ShapefileStore.AllShapes): New. Return an iterator over all
383            shapes in the shape store
384            (DerivedShapeStore.AllShapes): New. Like in ShapefileStore
385    
386            * Thuban/Model/layer.py (Layer.ShapesInRegion): Update
387            doc-string.
388    
389            * Thuban/UI/baserenderer.py
390            (BaseRenderer.layer_ids, BaseRenderer.layer_shapes): Rename to
391            layer_shapes and make it return an iterator containg shapes
392            instead of a list of ids.
393            (BaseRenderer.draw_shape_layer): Update doc-string; Adapt to
394            layer_shapes() change
395    
396            * Thuban/UI/renderer.py (ScreenRenderer.layer_ids)
397            (ScreenRenderer.layer_shapes): Rename as in BaseRenderer
398    
399            * Thuban/UI/viewport.py (ViewPort._find_shape_in_layer): Adapt to
400            changes in the ShapesInRegion return value.
401            (ViewPort._get_hit_tester): Remove commented out code
402    
403            * test/mockgeo.py (SimpleShapeStore.ShapesInRegion): Adapt to the
404            new return value.
405            (SimpleShapeStore.AllShapes): New. Implement this method too.
406    
407            * test/test_layer.py (TestLayer.test_arc_layer)
408            (TestLayer.test_polygon_layer, TestLayer.test_point_layer)
409            (TestLayer.test_point_layer_with_projection)
410            (TestLayer.test_derived_store): Adapt to changes in the
411            ShapesInRegion return value.
412    
413            * test/test_shapefilestore.py
414            (TestShapefileStoreArc.test_shapes_in_region)
415            (TestShapefileStorePolygon.test_shapes_in_region)
416            (TestShapefileStorePoint.test_shapes_in_region): Adapt to changes
417            in the ShapesInRegion return value.
418            (TestShapefileStorePoint.test_all_shapes)
419            (TestShapefileStoreArc.test_shape_shapeid): New tests for the new
420            methods
421    
422            * test/test_derivedshapestore.py
423            (TestDerivedShapeStore.test_shapes_in_region): Adapt to changes in
424            the ShapesInRegion return value.
425            (TestDerivedShapeStore.test_all_shapes)
426            (TestDerivedShapeStore.test_shape_shapeid): New tests for the new
427            methods
428    
429    2003-08-15  Bernhard Herzog  <[email protected]>
430    
431            Make the renderers deal correctly with raw vs. python level
432            representation of shape geometries
433    
434            * Thuban/UI/baserenderer.py (BaseRenderer.low_level_renderer):
435            Return a flag useraw in addition to the callable and the parameter
436            to indicate whether the callable can deal with the raw shape data
437            or uses the higher level python lists of coordinates. The callable
438            now should accept either the raw data or the return value of the
439            shape's Points() method.
440            (BaseRenderer.draw_shape_layer): Adapt to the low_level_renderer
441            change
442            (BaseRenderer.projected_points): Instead of the shape id use the
443            points list as parameter.
444            (BaseRenderer.draw_polygon_shape, BaseRenderer.draw_arc_shape)
445            (BaseRenderer.draw_point_shape): Adapt to projected_points()
446            change and accept the points list as parameter instead of the
447            shape id.
448    
449            * Thuban/UI/renderer.py (MapRenderer.low_level_renderer): Return
450            the useraw flag as required by the BaseRenderer
451            (ScreenRenderer.draw_shape_layer): Adapt to low-level renderer
452            changes.
453    
454            * test/test_baserenderer.py
455            (TestBaseRenderer.test_point_with_classification): New test for
456            rendering a map with classifications.
457    
458    2003-08-15  Bernhard Herzog  <[email protected]>
459    
460            * Thuban/UI/viewport.py (ViewPort.find_shape_at)
461            (ViewPort._find_shape_in_layer, ViewPort._find_shape_in_layer)
462            (ViewPort._get_hit_tester, ViewPort.projected_points)
463            (ViewPort._hit_point, ViewPort._hit_arc, ViewPort._hit_polygon)
464            (ViewPort._find_label_at): Split the find_shape_at method into
465            several new methods and use the functions in the hit-test module.
466    
467            * Thuban/UI/hittest.py: New module with Python-level hit-testing
468            functions
469    
470            * test/test_hittest.py: New. Test for the new hittest module
471    
472    2003-08-15  Bernhard Herzog  <[email protected]>
473    
474            * Thuban/Model/layer.py (Layer.ShapesInRegion): Apply the layer
475            projection to all corners of the bounding box to get a better
476            approximation of the projected bounding box
477    
478            * test/test_layer.py (TestLayer.test_point_layer_with_projection):
479            New. Test coordinate handling of a layer with a projection.
480            Catches the bug fixed in Layer.ShapesInRegion
481    
482    2003-08-15  Bernhard Herzog  <[email protected]>
483    
484            Move some of the mock objects in test_baserenderer into their own
485            module so they can easily be used from other tests
486    
487            * test/mockgeo.py: New test helper module with some mock objects
488            for geometry related things like shapes, shapestores and
489            projections.
490    
491            * test/test_mockgeo.py: New. Tests for the new helper module
492    
493            * test/test_baserenderer.py: Some of the mock-objects are in
494            mockgeo now.
495    
496    2003-08-12  Jan-Oliver Wagner <[email protected]>
497    
498            * Thuban/UI/about.py (About.__init__): Added Bj�rn Broscheit.
499    
500    2003-08-12  Bernhard Herzog  <[email protected]>
501    
502            * po/de.po: New. German translations by Bjoern Broscheit
503    
504    2003-08-12  Bernhard Herzog  <[email protected]>
505    
506            * Thuban/UI/projdialog.py (UnknownProjPanel._DoLayout): Translated
507            strings have to be one string literal.
508    
509    2003-08-11  Bernhard Herzog  <[email protected]>
510    
511            * test/support.py (FloatComparisonMixin.assertPointListEquals):
512            New. This method was used in various derived classes, but it's
513            better to have it here.
514    
515            * test/test_shapefilestore.py
516            (ShapefileStoreTests.assertPointListEquals): Removed. It's now in
517            FloatComparisonMixin
518    
519            * test/test_layer.py (TestLayer.assertPointListEquals): Removed.
520            It's now in FloatComparisonMixin
521    
522            * test/test_derivedshapestore.py
523            (TestDerivedShapeStore.assertPointListEquals): Removed. It's now
524            in FloatComparisonMixin
525    
526    2003-08-11  Bernhard Herzog  <[email protected]>
527    
528            * Thuban/UI/join.py (JoinDialog.OnJoin): Add missing space to
529            error message
530    
531    2003-08-08  Jan-Oliver Wagner <[email protected]>
532    
533            * Doc/manual/thuban-manual.xml: Now use authorgroup. Added revhistory
534            with version number.
535            Changed title to reflect version number of Thuban.
536    
537    2003-08-08  Jan-Oliver Wagner <[email protected]>
538    
539            * Thuban/UI/about.py (About.__init__): Reworked the hall of fame. Now
540            the list corresponds to the "About" web page.
541    
542    2003-08-08  Bernhard Herzog  <[email protected]>
543    
544            * Thuban/UI/projdialog.py (UTMProposeZoneDialog.dialogLayout):
545            Make sure translated strings are recognized as one string literal.
546    
547            * Thuban/UI/proj4dialog.py (UTMProposeZoneDialog.dialogLayout):
548            Make sure translated strings are recognized as one string literal.
549    
550            * Thuban/UI/classgen.py (ClassGenDialog.OnOK): Make sure
551            translated strings are recognized as one string literal.
552    
553            * Thuban/UI/application.py (ThubanApplication.OpenSession): Make
554            sure translated strings are recognized as one string literal.
555    
556    2003-08-07  Bernhard Herzog  <[email protected]>
557    
558            * Thuban/Model/data.py (DerivedShapeStore.RawShapeFormat): New.
559            Simply delegates to the original shapestore.
560    
561            * test/test_derivedshapestore.py
562            (TestDerivedShapeStore.test_raw_format): New. Test case for
563            DerivedShapeStore.RawShapeFormat
564    
565    2003-08-07  Bernhard Herzog  <[email protected]>
566    
567            Add raw data interface to shape objects.
568    
569            * Thuban/Model/data.py (ShapefileShape, Shape): Rname the shape
570            class to ShapefileShape which now holds shapefile specific
571            information.
572            (ShapefileShape.compute_bbox): Simplified to not cache any
573            information. The way this method is used that shouldn't matter
574            performance wise.
575            (ShapefileShape.RawData): New. Return the shapeid which is the raw
576            data format for shapes from shapefiles.
577            (ShapefileStore.RawShapeFormat): New. Return the raw datatype used
578            in the shape objects returned by a shapestore. For a
579            ShapefileStore this is always RAW_SHAPEFILE.
580            (RAW_PYTHON, RAW_SHAPEFILE): Constants for the RawShapeFormat
581            method.
582    
583            * test/test_shapefilestore.py
584            (TestShapefileStore.test_raw_format): New test to test the raw
585            format feature of shapes.
586    
587            * Thuban/Model/layer.py: Remove the unused import of Shape from
588            data. It was only there for interface compatibility but it's not
589            used inside of Thuban and the generic Shape class has gone away.
590    
591            * Thuban/UI/renderer.py (MapRenderer.low_level_renderer): Check
592            the raw data format and only use an optimized version of its a
593            shapefile.
594    
595    2003-08-07  Bernhard Herzog  <[email protected]>
596    
597            * test/test_baserenderer.py (SimpleShape): Shape class for the
598            tests.
599            (SimpleShapeStore.Shape): Use SimpleShape instead of
600            Thuban.Model.data.Shape to make the tests independed of the coming
601            changes.
602    
603    2003-08-07  Bernhard Herzog  <[email protected]>
604    
605            * test/support.py (SkipTest, ThubanTestResult, ThubanTestRunner)
606            (ThubanTestProgram): New classes that extend the respective
607            classes from unittest. These new version support skipping tests
608            under certain expected conditions. In the Thuban test suite we
609            uses this for tests that require the optional gdal support.
610            (run_tests): Use ThubanTestProgram instead of the unittest.main()
611    
612            * test/runtests.py (main): Use the new ThubanTestRunner instead of
613            the normal one from unittest
614    
615            * test/test_layer.py (TestLayer.test_raster_layer): If this test
616            is not run because gdal support isn't available report this to the
617            runner.
618    
619            * test/test_baserenderer.py
620            (TestBaseRenderer.test_raster_no_projection): Do not run this test
621            if gdal support isn't available and report this to the runner.
622    
623    2003-08-06  Bernhard Herzog  <[email protected]>
624    
625            Rearrange the renderers a bit, partly in preparation for changes
626            required for the postgis merge, partly to make it more testable.
627            Also make the representation of coordinates in Shapes more
628            consistent.
629    
630            * Thuban/UI/renderer.py (MapRenderer): Most of the code/methods in
631            this class is now in BaseRenderer. This class is now practically
632            only a specialization of BaseRenderer for rendering to an actual
633            wx DC.
634            (ScreenRenderer.draw_shape_layer): Use self.low_level_renderer()
635            to get the shapetype specific rendering functions.
636    
637            * Thuban/UI/baserenderer.py: New file with the basic rendering
638            logic. The code in this file is completely independend of wx.
639            (BaseRenderer): Class with the basic rendering logic
640    
641            * test/test_baserenderer.py: New. Test cases for BaseRenderer
642    
643            * Thuban/UI/view.py (MapCanvas.__init__): New instance variable
644            error_on_redraw to guard agains endless loops and stack overflows
645            when there's a bug in the rendering code that raises exceptions.
646            (MapCanvas.OnIdle, MapCanvas._do_redraw): Split the actual
647            rendering into a separate method _do_redraw so that error handling
648            is a bit easier. When an exception occurs, set error_on_redraw to
649            true. When it's true on entry to OnIdle do nothing and return
650            immediately.
651    
652            * Thuban/Model/data.py (ShapefileStore.Shape): For consistency, a
653            Shape object will always have the coordinates as a list of list of
654            coordinate pairs (tuples).
655            (Shape.compute_bbox): Adapt to new representation.
656    
657            * Thuban/UI/viewport.py (ViewPort.find_shape_at)
658            (ViewPort.LabelShapeAt): Adapt to new coordinate representation in
659            Shape objects.
660    
661            * test/test_shapefilestore.py
662            (ShapefileStoreTests.assertFloatTuplesEqual)
663            (ShapefileStoreTests.assertPointListEquals): Rename to
664            assertPointListEquals and change purpose to checking equality of
665            the lists returned by Shape.Points().
666            (TestShapefileStoreArc.test_shape)
667            (TestShapefileStorePolygon.test_shape)
668            (TestShapefileStorePoint.test_shape): Use the new
669            assertPointListEquals instead of assertFloatTuplesEqual
670    
671            * test/test_layer.py (TestLayer.assertFloatTuplesEqual)
672            (TestLayer.assertPointListEquals): Rename to assertPointListEquals
673            and change purpose to checking equality of the lists returned by
674            Shape.Points().
675            (TestLayer.test_arc_layer, TestLayer.test_arc_layer)
676            (TestLayer.test_polygon_layer, TestLayer.test_point_layer)
677            (TestLayer.test_derived_store): Use the new assertPointListEquals
678            instead of assertFloatTuplesEqual
679    
680            * test/test_derivedshapestore.py
681            (TestDerivedShapeStore.assertFloatTuplesEqual)
682            (TestDerivedShapeStore.assertPointListEquals): Rename to
683            assertPointListEquals and change purpose to checking equality of
684            the lists returned by Shape.Points().
685            (TestDerivedShapeStore.test_shape): Use the new
686            assertPointListEquals instead of assertFloatTuplesEqual
687    
688    2003-08-06  Jan-Oliver Wagner <[email protected]>
689    
690            * Thuban/UI/projdialog.py (UTMPanel._OnPropose): Added test for
691            a bounding box. A dialog is raised in case, no bounding box
692            is found. This fixes bug #2043:
693            https://intevation.de/rt/webrt?serial_num=2043
694    
695    2003-08-05  Bernhard Herzog  <[email protected]>
696    
697            * Thuban/Model/color.py (Color.__repr__): Make the repr of a color
698            object look like a Color instantiation. Formerly it looked like a
699            tuple.
700    
701            * test/test_color.py (TestColor.test_repr)
702            (TestColor.test_equality, TestColor.test_inequality): New. test
703            some more apects of the Color class
704            (TestTransparent.test_repr, TestTransparent.test_hex)
705            (TestTransparent.test_equality): New. Test cases for the
706            Transparent object.
707    
708    2003-08-04  Jan-Oliver Wagner <[email protected]>
709    
710            * Doc/manual/thuban-manual.xml: a number of small improvements.
711            The resulting file is the version submitted for GREAT-ER II.
712    
713    2003-08-01  Bernhard Herzog  <[email protected]>
714    
715            * Thuban/UI/resource.py, Thuban/UI/projdialog.py,
716            Thuban/UI/join.py, Thuban/UI/classgen.py, Thuban/UI/about.py,
717            Thuban/Model/resource.py: Insert cvs keywords and doc-strings.
718    
719            * Thuban/UI/common.py: Insert cvs keywords and doc-strings.
720            (Color2wxColour, wxColour2Color, ThubanBeginBusyCursor)
721            (ThubanEndBusyCursor): Add doc-strings
722    
723    2003-08-01  Bernhard Herzog  <[email protected]>
724    
725            First step towards PostGIS integration. More abstraction by movin
726            more code from the layer to the shapestore. More methods of the
727            layer are now simply delegated to the equivalent method of the
728            shapestore. The SHAPETYPE_* constants are now in data not in
729            layer.
730    
731            * Thuban/Model/data.py (SHAPETYPE_POLYGON, SHAPETYPE_ARC)
732            (SHAPETYPE_POINT, Shape): Move these constants and classes from
733            layer.py to data.py
734            (ShapefileStore.__init__): More Initialization for the new methods
735            and functionality.
736            (ShapefileStore.ShapeType, ShapefileStore.NumShapes)
737            (ShapefileStore.BoundingBox, ShapefileStore.ShapesInRegion)
738            (ShapefileStore.Shape): New methods that were formerly implemented
739            in the layer.
740            (DerivedShapeStore.Shape, DerivedShapeStore.ShapesInRegion)
741            (DerivedShapeStore.ShapeType, DerivedShapeStore.NumShapes)
742            (DerivedShapeStore.BoundingBox): New. DerivedShapeStore
743            equivalents of the new shape methods. These versions are simply
744            delegated to the original shapstore.
745    
746            * Thuban/Model/layer.py (SHAPETYPE_POLYGON, SHAPETYPE_ARC)
747            (SHAPETYPE_POINT, Shape): Removed. They're now in data.py
748            (Layer.SetShapeStore): Removed the initializatin of instance
749            variables that were needed for the stuff that's now in
750            ShapefileStore
751            (Layer.BoundingBox, Layer.NumShapes, Layer.ShapeType)
752            (Layer.Shape, Layer.ShapesInRegion): Simply delegate to the
753            shapestore.
754    
755            * Thuban/UI/classifier.py, Thuban/UI/renderer.py,
756            Thuban/UI/viewport.py: Import the SHAPETYPE_* constants from data
757            instead of layer.
758    
759            * test/test_shapefilestore.py: New. Tests for ShapefileStore.
760    
761            * test/test_derivedshapestore.py: New. Tests for DerivedShapeStore.
762    
763            * test/test_layer.py: Import the SHAPETYPE_* constants from data
764            instead of layer.
765            (TestLayer.test_derived_store): Remove the test for the exception
766            when instantiating the DerivedShapeStore with an incompatible
767            table which is now in test_derivedshapestore.py. Add some more
768            tests of the layer methods to determine whether they work for a
769            DerivedShapeStore as well.
770    
771    2003-07-31  Jonathan Coles   <[email protected]>
772    
773            * Doc/manual/thuban-manual.xml: Fix the list of required packages
774            by just listing the name and where they can be found.
775    
776    2003-07-31  Frank Koormann   <[email protected]>
777    
778            * Doc/manual/thuban-manual.xml:
779            Changed the screenshot elements to figure.
780            Changed some variablelist elements to itemizedlist.
781            Added section on GDAL formats.
782    
783    2003-07-31  Jonathan Coles   <[email protected]>
784    
785            * Doc/manual/thuban-manual.xml: Added a few sentences about
786            the Fix Border Color option when generating classes.
787    
788    2003-07-30  Jonathan Coles   <[email protected]>
789    
790            * Thuban/Model/classgen.py: Add docstrings. Rename specific
791            Ramp instances to use lower_case_style.
792    
793            * Thuban/UI/classgen.py: Use renamed Ramp instances.
794            
795            * Thuban/UI/classifier.py: Add docstrings.
796    
797            * Thuban/UI/dock.py: Add docstrings.
798    
799            * test/test_classgen.py: Use renamed Ramp instances.
800    
801    2003-07-30  Bernhard Herzog  <[email protected]>
802    
803            * Thuban/Lib/connector.py (QueueingPublisher): Removed. This class
804            was never used in Thuban.
805    
806    2003-07-30  Bernhard Herzog  <[email protected]>
807    
808            * Thuban/UI/join.py (JoinDialog.__init__): Use the table's Title()
809            method directly instead of going through the transient_table
810            method. This faster because transient_table may force the copy of
811            a DBF file into the transient database and setting a table's title
812            doesnm't affect the title of the associated transient table, so
813            this fixes RT #2042
814    
815            * Thuban/UI/main.py (__version__): Don't import the already
816            removed show_exception_dialog.
817    
818    2003-07-29  Jonathan Coles   <[email protected]>
819    
820            * Thuban/UI/application.py (ThubanApplication.ShowExceptionDialog):
821            Put back this method and remove the equivalent function since we
822            are setting the exception hook from within this class (OnInit).
823    
824    2003-07-29  Jonathan Coles   <[email protected]>
825    
826            * Doc/manual/images/5_2_custom_ramp.png,
827            Doc/manual/images/5_2_quantiles.png,
828            Doc/manual/images/5_2_uniform_dist.png,
829            Doc/manual/images/5_2_unique_values.png,
830            Doc/manual/images/8_int_error.png: New screen shots.
831    
832            * Doc/manual/thuban-manual.xml: Fixed typos and wording, clarified
833            some points, and added more screen shots.
834    
835    2003-07-29  Bernhard Herzog  <[email protected]>
836    
837            * Thuban/Model/data.py: Remove the now unused import of warnings
838    
839    2003-07-29  Bernhard Herzog  <[email protected]>
840    
841            * Thuban/Model/data.py (SimpleStore): Removed. This class has been
842            deprecated since before the 0.8 release and isn't used in Thuban
843            itself anymore.
844    
845            * Thuban/Model/transientdb.py: Remove some unnecessary imports
846    
847    2003-07-29  Jonathan Coles   <[email protected]>
848    
849            * Thuban/UI/application.py (ThubanApplication.OnInit): set the
850            python exception hook here so that we are sure to catch any
851            Thuban exception that happen during initialization.
852    
853            * Thuban/UI/main.py (main): Don't set the exception hook here,
854            it will get set in ThubanApplication.OnInit.
855    
856    2003-07-29  Jonathan Coles   <[email protected]>
857                                                                                
858            * Thuban/UI/application.py (ThubanApplication.ShowExceptionDialog):
859            Removed and called it show_exception_dialog() so that the exception
860            handler can be set before the class is created.
861                                                                                
862            * Thuban/UI/main.py (main): Install the exception handler before
863            a ThubanApplication is created.
864                                                                                    
865    2003-07-29  Bernhard Herzog  <[email protected]>
866    
867            * po/it.po: New. Italian translation by Maurizio Napolitano
868    
869            * po/ru.po: New. Russian translation by Alex Shevlakov
870    
871    2003-07-29  Frank Koormann   <[email protected]>
872    
873            * Doc/manual/thuban-manual.xml: Extended section on supported
874            projections.
875            
876    2003-07-29  Frank Koormann   <[email protected]>
877    
878            * Doc/manual/thuban-manual.xml: gaspell-checked.
879    
880    2003-07-29  Jonathan Coles   <[email protected]>
881    
882            * Doc/manual/images/3_5_legend.png: Added border to improve look
883            on white background.
884    
885    2003-07-29  Jonathan Coles   <[email protected]>
886    
887            * Doc/manual/thuban-manual.xml: Fixed grammar and typos. Added
888            descriptions for the legend toolbar.
889    
890            * Doc/manual/images/4_2_raster_layer_properties.png: Removed
891            cursor from dialog box.
892    
893    2003-07-28  Jonathan Coles   <[email protected]>
894    
895            * Doc/manual/thuban-manual.xml: More screenshots and more chapters.
896    
897            * Doc/manual/images/2_4_session_tree.png,
898            Doc/manual/images/3_5_legend.png, Doc/manual/images/3_rename_map.png,
899            Doc/manual/images/4_2_layer_properties.png,
900            Doc/manual/images/4_2_raster_layer_properties.png,
901            Doc/manual/images/5_3_genclass.png,
902            Doc/manual/images/5_classification.png,
903            Doc/manual/images/6_projection.png,
904            Doc/manual/images/7_1_table_view.png,
905            Doc/manual/images/7_2_5_join.png: New screenshots.
906    
907    2003-07-24  Jonathan Coles   <[email protected]>
908    
909            * Doc/manual/thuban-manual.xml: Chapter on Projection Management.
910    
911    2003-07-24  Jonathan Coles   <[email protected]>
912    
913            * Doc/manual/thuban-manual.xml: Added EPS images and wrote
914            chapter on Layer Management.
915    
916            * Doc/manual/Makefile: New. Makefile to generate all formats for the
917            manual and images.
918    
919  2003-07-24  Bernhard Herzog  <[email protected]>  2003-07-24  Bernhard Herzog  <[email protected]>
920    
921          * Thuban/Model/range.py, Thuban/version.py: Remove the #! line as          * Thuban/Model/range.py, Thuban/version.py: Remove the #! line as

Legend:
Removed from v.1483  
changed lines
  Added in v.1651

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26