/[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 1569 by jan, Fri Aug 8 13:33:52 2003 UTC revision 1718 by bh, Thu Sep 18 12:41:46 2003 UTC
# Line 1  Line 1 
1    2003-09-18  Bernhard Herzog  <[email protected]>
2    
3            * setup.py (data_files): Only add the mo files if the Locales
4            directory actually exists, so that setup.py works with a fresh CVS
5            checkout
6    
7    2003-09-12  Jan-Oliver Wagner <[email protected]>
8    
9            * Examples/simple_extensions/simple_tool.py: bugfix: Tool is now
10            in viewport, not anymore in view
11    
12    2003-09-04  Jan-Oliver Wagner <[email protected]>
13    
14            Introducing first Extension (gns2shp).
15    
16            * Extensions, Extensions/gns2shp, Extensions/gns2shp/test: New.
17    
18            * Extensions/__init__.py: New. init to make this dir a package.
19    
20            * Extensions/gns2shp/__init__.py: New. init to make this dir a package.
21    
22            * Extensions/gns2shp/test/README: New. some info on this test directory.
23    
24            * Extensions/gns2shp/test/ls.txt: New. test data set (Liechtenstein).
25    
26            * Extensions/gns2shp/test/test_gns2shp.py: New. Test for correct creation
27            of Shapefile from GNS text file format
28    
29            *
30    2003-09-03  Jan-Oliver Wagner <[email protected]>
31    
32            Fix/workaround for bug #2019:
33            https://intevation.de/rt/webrt?serial_num=2019
34    
35            * Thuban/UI/identifyview.py (IdentifyView.ID_STOP): New.
36            (IdentifyView.__init__): Added another button that allows to
37            stop the identify mode.
38            (IdentifyView.OnStop): New. Stops the identify mode.
39    
40    2003-09-03  Jan-Oliver Wagner <[email protected]>
41    
42            Introducing a new exception dialog that allows to exit the
43            application immediately.
44            This fixes bug #2060: https://intevation.de/rt/webrt?serial_num=2060
45    
46            * Thuban/UI/exceptiondialog.py: New. A special exception dialog.
47    
48            * Thuban/UI/application.py (ThubanApplication.ShowExceptionDialog):
49            Made strings available to translations. Exchanged the simple
50            ScrolledMessageDialog by the new ExceptionDialog.
51    
52    2003-09-01  Bernhard Herzog  <[email protected]>
53    
54            * NEWS: New. Summary of changes and release notes.
55    
56            * MANIFEST.in: Add NEWS
57    
58    2003-09-01  Bernhard Herzog  <[email protected]>
59    
60            * MANIFEST.in: Correct the include statement for the mo-files and
61            include the documentation too.
62    
63            * setup.py (data_files): Add the .mo files
64            (setup call): Up to version 0.9.0
65    
66    2003-09-01  Bernhard Herzog  <[email protected]>
67    
68            * Thuban/UI/dbdialog.py (ChooseDBTableDialog.__init__): Change the
69            parameter list to just parent and session
70            (ChooseDBTableDialog.__set_properties): Removed. Setting the
71            selection of empty list boxes is not allowed (and produces C++
72            assertion errors) and the rest of the setup is better done in
73            __init__ anyway.
74            (ChooseDBTableDialog.OnCancel, ChooseDBTableDialog.OnOK)
75            (ChooseDBTableDialog.OnLBDClick, DBDialog.OnOK): Use the Python
76            builtins True/False for booleans to avoid warnings from wxPython
77    
78            * Thuban/UI/mainwindow.py (MainWindow.AddDBLayer): Adapt to new
79            ChooseDBTableDialog constructor parameters.
80    
81    2003-09-01  Bernhard Herzog  <[email protected]>
82    
83            * Thuban/Model/postgisdb.py
84            (PostGISTable): Extend doc-string
85            (PostGISTable._fetch_table_information): Set the column index
86            correctly, pretending ignored columns don't exist.
87    
88            * test/test_postgis_db.py (TestPostGISIgnoredColumns): New tests
89            for postgis tables with data types not yet supported by thuban.
90    
91    2003-08-29  Bernhard Herzog  <[email protected]>
92    
93            * HOWTO-Release: Tweak item about running the tests.
94    
95    2003-08-29  Jan-Oliver Wagner <[email protected]>
96    
97            * /Doc/manual/thuban-manual.xml: updated to version 1.0pre2.
98    
99    2003-08-29  Bernhard Herzog  <[email protected]>
100    
101            Add some missing parameters to projections. Proj complains about
102            them on windows but for some reason not on Linux.
103    
104            * test/test_save.py (SaveSessionTest.testLayerProjection): Add
105            missing required projection parameters
106    
107            * test/test_proj.py (TestProjFile.test): Add missing required
108            projection parameters
109    
110            * test/test_load_0_8.py (TestLayerProjection.file_contents)
111            (TestLayerProjection.test): Add missing required projection
112            parameters and tests for them
113    
114            * test/test_load.py (TestLayerProjection.file_contents)
115            (TestLayerProjection.test): Add missing required projection
116            parameters and tests for them
117    
118            * test/test_layer.py (TestLayer.test_base_layer): Add missing
119            required projection parameters
120    
121    2003-08-29  Bernhard Herzog  <[email protected]>
122    
123            * libraries/pyprojection/Projection.i: Use pj_get_errno_ref to
124            access the pj_errno because directly accessing pj_errno doesn't
125            work on windows if the proj library is in a DLL
126    
127            * libraries/pyprojection/Projection_wrap.c: Update from Projection.i
128    
129    2003-08-28  Bernhard Herzog  <[email protected]>
130    
131            * test/test_proj.py: Import things from Thuban after calling
132            initthuban
133    
134            * test/test_load.py (LoadSessionTest.filenames): New class
135            variable with the filename attributes to normalize
136            (LoadSessionTest.check_format): Pass self.filenames to
137            sax_eventlist to normalize the filename attributes
138    
139            * test/xmlsupport.py: Add cvs keywords
140            (SaxEventLister.__init__): New parameter filenames which indicates
141            attributes that contain filenames
142            (SaxEventLister.startElementNS): Normalize the filename attributes
143            with os.path.normpath
144            (sax_eventlist): New parameter filenames to pass through to
145            SaxEventLister
146    
147            * test/test_derivedshapestore.py: Make this file callable as a
148            program to execute the tests
149            (TestDerivedShapeStoreExceptions.test_table_with_wrong_size): Bind
150            the session to self.session so that it gets destroyed properly
151    
152            * test/test_layer.py (TestLayer.tearDown): Call the session's
153            Destroy method
154    
155            * test/test_map.py (TestMapBase.tearDown): Destroy self.session
156            too if it exists
157            (TestMapAddLayer.test_add_layer): Bind the session to self.session
158            so that it gets destroyed properly
159    
160            * test/postgissupport.py (reason_for_not_running_tests): Add a
161            test for the existence of popen2.Popen4.
162    
163            * test/test_save.py (SaveSessionTest.tearDown): New. Provide a
164            reliable way to destroy the sessions created in the test cases
165            (SaveSessionTest.test_dbf_table): Bind the session to self.session
166            so that it gets destroyed properly
167            (SaveSessionTest.testLayerProjection): Bind the session to
168            self.session so that it gets destroyed properly
169    
170            * test/test_session.py (UnreferencedTablesTests.tearDown): Make
171            sure that the session is destroyed properly
172    
173            * test/test_shapefilestore.py: Make this callable as a program to
174            execute the tests
175    
176            * test/test_scalebar.py: Remove unnecessary import of _ from
177            Thuban
178    
179            * test/support.py (print_garbage_information): Call initthuban
180            here because it may be called indirectly from test cases that test
181            test support modules which do not use anything from thuban itself
182            (ThubanTestProgram.runTests): Remove unnecessary debug print
183    
184    2003-08-28  Bernhard Herzog  <[email protected]>
185    
186            * Thuban/version.py (longversion): Update to 0.9
187    
188            * Thuban/UI/mainwindow.py: Remove some unused imports
189    
190            * README: Add section about required additional software. Add date
191            and revision CVS keywords
192    
193            * HOWTO-Release: Add item about the translations. Add date and
194            revision CVs keywords and change formatting to match README a bit
195            better
196    
197            * po/de.po: Update for 0.9
198    
199            * test/README: Tweak the wording a little because many tests are
200            not really unittest.
201    
202    2003-08-27  Bernhard Herzog  <[email protected]>
203    
204            As preparation for the 0.9 release, switch thuban files to a
205            non-dev namespace
206    
207            * Thuban/Model/save.py (SessionSaver.write_session): Write files
208            with the http://thuban.intevation.org/dtds/thuban-0.9.dtd
209            namespace
210    
211            * Thuban/Model/load.py (SessionLoader.__init__): Accept the
212            http://thuban.intevation.org/dtds/thuban-0.9.dtd namespace too
213    
214            * test/test_save.py (SaveSessionTest.dtd)
215            (SaveSessionTest.testEmptySession)
216            (SaveSessionTest.testSingleLayer)
217            (SaveSessionTest.testLayerProjection)
218            (SaveSessionTest.testRasterLayer)
219            (SaveSessionTest.testClassifiedLayer)
220            (SaveSessionTest.test_dbf_table)
221            (SaveSessionTest.test_joined_table)
222            (SaveSessionTest.test_save_postgis): Update for new namespace
223    
224            * test/test_load.py (LoadSessionTest.dtd, TestSingleLayer)
225            (TestLayerVisibility.file_contents, TestLabels.file_contents)
226            (TestLayerProjection.file_contents)
227            (TestRasterLayer.file_contents, TestJoinedTable.file_contents)
228            (TestPostGISLayer.file_contents)
229            (TestPostGISLayerPassword.file_contents)
230            (TestLoadError.file_contents, TestLoadError.test): Update for new
231            namespace
232    
233    2003-08-27  Bernhard Herzog  <[email protected]>
234    
235            Make the table interface distinguish between row ids (an integer
236            that uniquely identifies a row) and row ordinals (a simple row
237            count from 0 to NumRows() - 1)
238    
239            * Thuban/Model/postgisdb.py (PostGISTable.RowIdToOrdinal)
240            (PostGISTable.RowOrdinalToId): New methods to conver between row
241            ids and row ordinals
242            (PostGISTable.ReadRowAsDict, PostGISTable.ReadValue): New keyword
243            parameter row_is_ordinal to indicate whether the row parameter is
244            the row id or the ordinal
245    
246            * Thuban/Model/transientdb.py (TransientTableBase.RowIdToOrdinal)
247            (TransientTableBase.RowOrdinalToId)
248            (AutoTransientTable.RowIdToOrdinal)
249            (AutoTransientTable.RowOrdinalToId): Same new methods as in
250            PostGISTable.
251            (TransientTableBase.ReadRowAsDict, TransientTableBase.ReadValue)
252            (AutoTransientTable.ReadRowAsDict, AutoTransientTable.ReadValue):
253            Same new parameter as in PostGISTable.
254    
255            * Thuban/Model/table.py (DBFTable.RowIdToOrdinal)
256            (DBFTable.RowOrdinalToId, MemoryTable.RowIdToOrdinal)
257            (MemoryTable.RowOrdinalToId): Same new methods as in PostGISTable.
258            (DBFTable.ReadValue, DBFTable.ReadRowAsDict)
259            (MemoryTable.ReadValue, MemoryTable.ReadRowAsDict): Same new
260            parameter as in PostGISTable.
261    
262            * Thuban/UI/tableview.py (DataTable.RowIdToOrdinal)
263            (DataTable.RowOrdinalToId): New methods to convert between row ids
264            and row ordinals.
265            (TableGrid.SelectRowById): New method to select a row based on its
266            ID as opposed to its ordinal
267            (DataTable.GetValue, TableGrid.OnRangeSelect)
268            (TableGrid.OnSelectCell, LayerTableGrid.select_shapes)
269            (QueryTableFrame.OnQuery, QueryTableFrame.get_selected)
270            (LayerTableFrame.__init__): Convert between row ids and row
271            ordinals as appropriate
272    
273            * test/postgissupport.py (PostGISDatabase.__init__): Add
274            doc-string.
275            (PostGISDatabase.initdb): The optional third item in a tuple in
276            tables is now a (key, value) list with additional arguments to
277            pass to upload_shapefile
278            (upload_shapefile): New parameter gid_offset to allow gids that
279            are not the same as the shapeids in the shapefile
280            (PostgreSQLServer.get_default_static_data_db): Use the new
281            gid_offset to make the gids in landmarks 1000 higher than the
282            shapeids in the shapefile
283    
284            * test/test_viewport.py
285            (TestViewportWithPostGIS.test_find_shape_at_point): Adapt to the
286            new shapeids in the landmarks table
287    
288            * test/test_transientdb.py
289            (TestTransientTable.run_iceland_political_tests)
290            (TestTransientTable.test_transient_joined_table): Add tests for
291            the new table methods and new keywords arguments.
292    
293            * test/test_postgis_db.py
294            (TestPostGISTable.test_read_row_as_dict_row_count_mode)
295            (TestPostGISTable.test_read_value_row_count_mode)
296            (TestPostGISTable.test_row_id_to_ordinal)
297            (TestPostGISTable.test_row_oridnal_to_id): New test for the new
298            table methods and the new arguments
299            (TestPostGISShapestorePoint.test_shapes_in_region)
300            (TestPostGISShapestorePoint.test_shape_raw_data)
301            (TestPostGISShapestorePoint.test_shape_points)
302            (TestPostGISShapestorePoint.test_shape_shapeid)
303            (TestPostGISShapestorePoint.test_all_shapes)
304            (TestPostGISTable.test_simple_query)
305            (TestPostGISTable.test_simple_query)
306            (TestPostGISTable.test_simple_query)
307            (TestPostGISTable.test_read_value)
308            (TestPostGISTable.test_read_row_as_dict): Adapt to the new
309            shapeids in the landmarks table
310    
311            * test/test_memory_table.py
312            (TestMemoryTable.test_read_row_as_dict_row_count_mode)
313            (TestMemoryTable.test_read_value_row_count_mode)
314            (TestMemoryTable.test_row_id_to_ordinal)
315            (TestMemoryTable.test_row_oridnal_to_id): New test for the new
316            table methods and the new arguments
317    
318            * test/test_dbf_table.py
319            (TestDBFTable.test_read_row_as_dict_row_count_mode)
320            (TestDBFTable.test_read_value_row_count_mode)
321            (TestDBFTable.test_row_id_to_ordinal)
322            (TestDBFTable.test_row_oridnal_to_id): New test for the new table
323            methods and the new arguments
324    
325    2003-08-26  Bernhard Herzog  <[email protected]>
326    
327            * Thuban/Model/postgisdb.py (PostGISShapeStore.BoundingBox): Use a
328            more postgis specific but much faster method to get the bounding
329            box
330    
331    2003-08-26  Bernhard Herzog  <[email protected]>
332    
333            * Thuban/Model/postgisdb.py (PostGISTable.Title)
334            (PostGISShapeStore.AllShapes): Add these missing methods.
335            (PostGISShapeStore.ShapesInRegion): No need to raise
336            StopIteration. We can simply return
337    
338            * test/test_postgis_db.py (TestPostGISTable.test_title)
339            (TestPostGISShapestorePoint.test_all_shapes): New tests for the
340            new methods
341    
342    2003-08-25  Bernhard Herzog  <[email protected]>
343    
344            * Thuban/Model/postgisdb.py (shapetype_map): Add MUTLIPOLYGON.
345    
346            * test/test_postgis_db.py (PolygonTests): New class containing
347            those tests from TestPostGISShapestorePolygon that can also be
348            used to test MUTLIPOLYGON tables
349            (TestPostGISShapestorePolygon): Most tests are now in PolygonTests
350            so derive from that
351            (TestPostGISShapestoreMultiPolygon): New class with tests for
352            MUTLIPOLYGON tables
353    
354            * test/postgissupport.py (PostGISDatabase.initdb): Allow the
355            tables argument to have tuples with three items to override the
356            WKT type used.
357            (PostgreSQLServer.get_default_static_data_db): Use the above to
358            create a polygon table with MUTLIPOLYGONs
359            (point_to_wkt, coords_to_point, polygon_to_wkt, coords_to_polygon)
360            (arc_to_wkt, coords_to_multilinestring): Rename from *_to_wkt to
361            coords_to*
362            (coords_to_multipolygon): New. Convert to MUTLIPOLYGON
363            (wkt_converter): New. Map WKT types to converters
364            (upload_shapefile): New parameter force_wkt_type to use a
365            different WKT type than the default
366    
367    2003-08-25  Bernhard Herzog  <[email protected]>
368    
369            * Thuban/UI/application.py
370            (ThubanApplication.run_db_param_dialog): New. Suitable as a
371            db_connection_callback. Main difference is that the dialog run
372            from this method doesn't have a parent so it can be used even when
373            there is no main window
374            (ThubanApplication.OpenSession): Use self.run_db_param_dialog if
375            no db_connection_callback was given. This way the dialog pops up
376            even when the .thuban file was given as a command line parameter.
377    
378    2003-08-25  Bernhard Herzog  <[email protected]>
379    
380            * Thuban/UI/view.py (MapCanvas.OnLeftUp): Release the the mouse
381            before calling MouseLeftUp. MouseLeftUp may pop up modal dialogs
382            which leads to an effectively frozen X session because the user
383            can only interact with the dialog but the mouse is still grabbed
384            by the canvas.
385            Also, call the tool's Hide method before MouseLeftUp because
386            MouseLeftUp may change the tool's coordinates.
387    
388    2003-08-25  Bernhard Herzog  <[email protected]>
389    
390            * Thuban/UI/application.py (ThubanApplication.OpenSession): Catch
391            LoadCancelled exceptions and handle them by returning immediately.
392    
393    2003-08-25  Bernhard Herzog  <[email protected]>
394    
395            GUI part of loading sessions with postgis connections which may
396            require user interaction to get passwords or updated parameters
397    
398            * Thuban/UI/dbdialog.py (DBDialog): Reimplement to make it look a
399            bit nucer and be more generic.
400            (DBFrame.OnAdd): Adapt to new DBDialog interface
401    
402            * Thuban/UI/application.py (ThubanApplication.OpenSession): New
403            optional parameter db_connection_callback which is passed to
404            load_session.
405    
406            * Thuban/UI/mainwindow.py (MainWindow.run_db_param_dialog): New.
407            Suitable as a db_connection_callback
408            (MainWindow.OpenSession): Use self.run_db_param_dialog as the
409            db_connection_callback of the application's OpenSession method
410    
411    
412    2003-08-25  Bernhard Herzog  <[email protected]>
413    
414            Basic loading of sessions containing postgis connections:
415    
416            * Thuban/Model/load.py (LoadError): Add doc-string
417            (LoadCancelled): New exception class to indicate a cancelled load
418            (SessionLoader.__init__): Add the db_connection_callback parameter
419            which will be used by the loader to get updated parameters and a
420            password for a database connection
421            (SessionLoader.__init__): Add the new XML elements to the
422            dispatchers dictionary
423            (SessionLoader.check_attrs): Two new conversions, ascii to convert
424            to a byte-string object and idref as a generic id reference
425            (SessionLoader.start_dbconnection)
426            (SessionLoader.start_dbshapesource): New. Handlers for the new XML
427            elements
428            (load_session): Add the db_connection_callback to pass through the
429            SessionLoader
430    
431            * test/test_load.py (TestPostGISLayer, TestPostGISLayerPassword):
432            New classes to test loading of sessions with postgis database
433            connections.
434    
435    2003-08-25  Bernhard Herzog  <[email protected]>
436    
437            * Thuban/UI/mainwindow.py (__ThubanVersion__): Remove this and
438            replace it and the comment with __BuildDate__ by the Source: and
439            Id: cvs keywords as used in the other files.
440    
441    2003-08-25  Bernhard Herzog  <[email protected]>
442    
443            * Thuban/Model/load.py (SessionLoader.check_attrs): Raise a
444            LoadError when a required attribute is missing. The code used to
445            be commented out for some reason, but probably should have been
446            active.
447    
448            * test/test_load.py (TestLoadError.test): Test the message in the
449            LoadError too to make sure it really is about the missing
450            attribute
451    
452    2003-08-22  Bernhard Herzog  <[email protected]>
453    
454            * test/test_save.py (SaveSessionTest.test_dbf_table)
455            (SaveSessionTest.test_joined_table): Add XML validation tests.
456    
457    2003-08-22  Bernhard Herzog  <[email protected]>
458    
459            Implement saving a session with a postgis connection
460    
461            * Resources/XML/thuban-0.9.dtd (dbconnection, dbshapesource) New
462            elements for database connections and shapestores using db
463            connections
464            (session): Add the dbconnections to the content model
465    
466            * Thuban/Model/save.py (SessionSaver.write_db_connections): New.
467            Write the db connections
468            (SessionSaver.write_session): Call write_db_connections to write
469            the connection before the data sources
470            (SessionSaver.write_data_containers): Handle postgis shapestores
471    
472            * test/test_save.py (SaveSessionTest.thubanids)
473            (SaveSessionTest.thubanidrefs): Update for new DTD
474            (SaveSessionTest.test_save_postgis): New. Test saving a session
475            with postgis connections
476    
477            * Thuban/Model/postgisdb.py (PostGISTable.DBConnection)
478            (PostGISTable.TableName): New accessor methods for the connection
479            and table name
480    
481            * test/test_postgis_db.py (TestPostGISTable.test_dbconn)
482            (TestPostGISTable.test_dbname): New methods to test the new
483            PostGISConnection methods
484    
485    2003-08-22  Bernhard Herzog  <[email protected]>
486    
487            * Thuban/Model/postgisdb.py (ConnectionError): New exception class
488            for exceptions occurring when establishing a Database connection
489            (PostGISConnection.connect): Catch psycopg.OperationalError during
490            connects and raise ConnectionError.
491    
492            * test/test_postgis_db.py (TestPostgisDBExceptions): New class for
493            tests for database exceptions
494    
495    2003-08-22  Bernhard Herzog  <[email protected]>
496    
497            Prepare the test suite for tests with required authentication
498    
499            * test/postgissupport.py (PostgreSQLServer.__init__): Add instance
500            variables with two predefined users/passwords, one for the admin
501            and one for a non-privileged user.
502            (PostgreSQLServer.createdb): Pass the admin name to initdb and add
503            the non-privileged user to the database and set the admin password
504            (PostgreSQLServer.wait_for_postmaster): Use the admin user name.
505            Better error reporting
506            (PostgreSQLServer.connection_params)
507            (PostgreSQLServer.connection_string): New methods to return
508            information about how to connect to the server
509            (PostgreSQLServer.execute_sql): New. Convenience method to execute
510            SQL statements
511            (PostgreSQLServer.require_authentication): Toggle whether the
512            server requires authentication
513            (PostgreSQLServer.create_user, PostgreSQLServer.alter_user): New.
514            Add or alter users
515            (PostGISDatabase.initdb): Pass the admin name one the
516            subprocesses' command lines. Grant select rights on
517            geometry_columns to everybody.
518            (upload_shapefile): Use the admin name and password when
519            connecting. Grant select rights on the new table to everybody.
520    
521            * test/test_viewport.py (TestViewportWithPostGIS.setUp): Use the
522            server's new methods to get the connection parameters.
523    
524            * test/test_postgis_session.py (TestSessionWithPostGIS.setUp)
525            (TestSessionWithPostGIS.test_remove_dbconn_exception): Use the
526            server's new methods to get the connection parameters.
527    
528            * test/test_postgis_db.py
529            (TestPostGISConnection.test_gis_tables_empty)
530            (TestPostGISConnection.test_gis_tables_non_empty)
531            (PostGISStaticTests.setUp): Use the server's new methods to get
532            the connection parameters.
533    
534    2003-08-22  Bernhard Herzog  <[email protected]>
535    
536            * Thuban/UI/about.py (About.__init__): Add the psycopg version.
537    
538            * Thuban/version.py: Add psycopg version
539    
540            * Thuban/Model/postgisdb.py (psycopg_version): New. Return the
541            version of the psycopg module
542    
543    2003-08-22  Bernhard Herzog  <[email protected]>
544    
545            * Thuban/UI/dbdialog.py (DBPwdDlg): Removed because it's not used.
546            (DBFrame.OnEdit): Removed because it's not used and wouldn't work
547            at the moment. The functionality should probably be implemented
548            some time, though.
549            (DBFrame.OnRemove): Display a message if the connection can't be
550            removed because it's still in use.
551    
552    2003-08-22  Jan-Oliver Wagner <[email protected]>
553    
554            * Thuban/UI/about.py (About.__init__): split up the huge about
555            text into elements/lists for easier translation. This fixes bug
556            https://intevation.de/rt/webrt?serial_num=2058
557            Also, made some forgotten string available for the i18n.
558    
559    2003-08-21  Bernhard Herzog  <[email protected]>
560    
561            Make postgis support really optional including insensitive menu
562            items.
563    
564            * Thuban/Model/postgisdb.py (has_postgis_support): New. Return
565            whether the postgis is supported.
566    
567            * Thuban/UI/dbdialog.py: Put the psycopg import into try..except
568            to make postgis support optional
569    
570            * Thuban/UI/mainwindow.py (_has_postgis_support): New. Context
571            version of Thuban.Model.postgisdb.has_postgis_support
572            (database_management command): Make it only sensitive if postgis
573            is supported.
574    
575    2003-08-21  Jan-Oliver Wagner <[email protected]>
576    
577            * Doc/manual/thuban-manual.xml: Added CVS revision for rev-history.
578            (section Adding and Removing Layers): Added text and described
579            multi-selection.
580            (chapter Extensions): New.
581    
582    2003-08-21  Jan-Oliver Wagner <[email protected]>
583    
584            * Thuban/UI/mainwindow.py (MainWindow.AddLayer): Changed dialog
585            settings to allow multiple files to load into the map.
586            Also reduced selection to *.shp as a default.
587    
588    2003-08-20  Bernhard Herzog  <[email protected]>
589    
590            Add dialogs and commands to open database connections and add
591            database layers.
592    
593            * Thuban/UI/mainwindow.py (MainWindow.DatabaseManagement): New
594            method to open the database connection management dialog
595            (MainWindow.AddDBLayer): New method to add a layer from a database
596            (_has_dbconnections): New helper function to use for sensitivity
597            (database_management command, layer_add_db command): New commands
598            that call the above new methods.
599            (main_menu): Add the new commands to the menu.
600    
601            * Thuban/Model/postgisdb.py (PostGISConnection.__init__)
602            (PostGISConnection.connect): Establish the actual connection in a
603            separate method and call it in __init__. This makes it easier to
604            override the behavior in test cases
605            (PostGISConnection.BriefDescription): New method to return a brief
606            description for use in dialogs.
607    
608            * test/test_postgis_db.py (NonConnection): DB connection that
609            doesn't actually connect
610            (TestBriefDescription): New class with tests for the new
611            BriefDescription method
612    
613    2003-08-19  Jan-Oliver Wagner <[email protected]>
614    
615            Moved anything from extensions to libraries.
616    
617            * libraries: New.
618    
619            * libraries/ pyprojection, pyshapelib, shapelib, thuban: New.
620    
621            * libraries/pyprojection/ LICENSE, MANIFEST.in, Projection.i,
622            Projection.py, Projection_wrap.c, setup.py, swighelp.txt: These files have
623            been moved here from thuban/extensions/pyprojection/
624            See there in the Attic for the older history.
625    
626            * libraries/pyshapelib/ COPYING, ChangeLog, NEWS, README, dbflib.i,
627            dbflib.py, dbflib_wrap.c, pyshapelib_api.h, pytest.py, setup.py,
628            shapelib.i, shapelib.py, shapelib_wrap.c, shptreemodule.c: These files
629            have been moved here from thuban/extensions/pyshapelib/
630            See there in the Attic for the older history.
631    
632            * libraries/shapelib/ dbfopen.c, shapefil.h, shpopen.c, shptree.c: These
633            files have been moved here from thuban/extensions/shapelib/
634            See there in the Attic for the older history.
635    
636            * libraries/thuban/ bmpdataset.cpp, cpl_mfile.cpp, cpl_mfile.h,
637            gdalwarp.cpp, wxproj.cpp: These files have been moved here from
638            thuban/extensions/thuban/
639            See there in the Attic for the older history.
640    
641            * MANIFEST.in, setup.cfg, setup.py: renamed extensions to libraries.
642    
643            * extensions/thuban/ bmpdataset.cpp, cpl_mfile.cpp, cpl_mfile.h,
644            gdalwarp.cpp, wxproj.cpp: Moved to libraries/thuban.
645    
646            * extensions/shapelib/ dbfopen.c, shapefil.h, shpopen.c, shptree.c:
647            Moved to libraries/shapelib.
648    
649            * extensions/pyshapelib/ COPYING, NEWS, dbflib.py, pytest.py,
650            shapelib.py, README, dbflib_wrap.c, setup.py, shapelib_wrap.c,
651            ChangeLog, dbflib.i, pyshapelib_api.h, shapelib.i, shptreemodule.c:
652            Moved to libraries/pyshapelib.
653    
654            * extensions/pyprojection/ MANIFEST.in, Projection.py, setup.py,
655            LICENSE, Projection.i, Projection_wrap.c, swighelp.txt:
656            Moved to libraries/pyprojection.
657    
658            * extensions/ pyprojection, pyshapelib, shapelib, thuban: Removed.
659    
660            * extensions: Removed.
661    
662    2003-08-19  Bernhard Herzog  <[email protected]>
663    
664            * test/test_viewport.py (ViewPortTest): We don't use the
665            facilities of FileTestMixin so don't derive from it.
666            (TestViewportWithPostGIS): New class with tests for using a
667            viewport on a map with postgis layers.
668    
669    2003-08-19  Bernhard Herzog  <[email protected]>
670    
671            Add the db connection management to the session.
672    
673            * Thuban/Model/session.py (Session.__init__): New instance
674            variable db_connections
675            (Session.AddDBConnection, Session.DBConnections)
676            (Session.HasDBConnections, Session.CanRemoveDBConnection)
677            (Session.RemoveDBConnection): New methods to manage and query the
678            db connections managed by the session
679            (Session.OpenDBShapeStore): New method to open a shapestore from a
680            db connection
681    
682            * Thuban/Model/messages.py (DBCONN_REMOVED, DBCONN_ADDED): New
683            messages for the db connection handling in the session
684    
685            * test/test_postgis_session.py: New. test cases for the session's
686            db connection handling with postgis connections
687    
688    2003-08-19  Bernhard Herzog  <[email protected]>
689    
690            Add very basic postgis database support and the corresponding test
691            cases. The test cases require a PostgreSQL + postgis installation
692            but no existing database. The database will be created
693            automatically by the test cases
694    
695            * test/README: Add note about skipped tests and the requirements
696            of the postgis tests.
697    
698            * Thuban/Model/postgisdb.py: New. Basic postgis database support.
699    
700            * test/test_postgis_db.py: New. Test cases for the postgis
701            support.
702    
703            * Thuban/Model/wellknowntext.py: New. Parser for well-known-text
704            format
705    
706            * test/test_wellknowntext.py: New. Test cases for the
707            wellknowntext parser
708    
709            * test/postgissupport.py: New. Support module for tests involving
710            a postgis database.
711    
712            * test/support.py (execute_as_testsuite): Shut down the postmaster
713            if it's still running after the tests
714    
715            * Thuban/Model/data.py (RAW_WKT): New constant for raw data in
716            well known text format
717    
718    2003-08-19  Jan-Oliver Wagner <[email protected]>
719    
720            * Examples/simple_extensions/hello_world.py: New. Raises a Hello World
721            message dialog.
722    
723    2003-08-18  Bernhard Herzog  <[email protected]>
724    
725            * test/support.py (ThubanTestResult.printErrors): Indent the
726            reason for the skips in the output to make it a bit more readable.
727            (execute_as_testsuite): New helper function to run a test suite
728            and print some more information.
729            (run_tests): Use execute_as_testsuite to run the tests
730    
731            * test/runtests.py (main): Use execute_as_testsuite to run the
732            tests
733    
734    2003-08-18  Bernhard Herzog  <[email protected]>
735    
736            Fix some bugs in Thuban and the test suite that were uncovered by
737            changes introduced in Python 2.3:
738    
739            * Thuban/Model/table.py (DBFTable.__init__): Make sure the
740            filename is an absolute name
741    
742            * Thuban/Model/layer.py (RasterLayer.__init__): Make sure the
743            filename is an absolute name
744    
745            * test/test_save.py (SaveSessionTest.testRasterLayer): Use a
746            unique filename to save to and use the correct relative filename
747            in the expected output.
748            (SaveSessionTest.test_dbf_table): Use the correct relative
749            filename in the expected output.
750    
751            * test/test_layer.py (TestLayer.test_raster_layer): Update the
752            test to check whether the filename is absolute.
753    
754    2003-08-18  Jan-Oliver Wagner <[email protected]>
755    
756            * Thuban/UI/about.py (About.__init__): Added Silke Reimer.
757    
758    2003-08-15  Bernhard Herzog  <[email protected]>
759    
760            Change the way shapes are returned by a shape store. The
761            ShapesInRegion method returns an iterator over actual shape
762            objects instead of a list of shape ids.
763    
764            * Thuban/Model/data.py (ShapefileShape.ShapeID): New. Return shape
765            id.
766            (ShapefileStore.ShapesInRegion): Return an iterator over the
767            shapes which yields shape objects instead of returning a list of
768            shape ids
769            (ShapefileStore.AllShapes): New. Return an iterator over all
770            shapes in the shape store
771            (DerivedShapeStore.AllShapes): New. Like in ShapefileStore
772    
773            * Thuban/Model/layer.py (Layer.ShapesInRegion): Update
774            doc-string.
775    
776            * Thuban/UI/baserenderer.py
777            (BaseRenderer.layer_ids, BaseRenderer.layer_shapes): Rename to
778            layer_shapes and make it return an iterator containg shapes
779            instead of a list of ids.
780            (BaseRenderer.draw_shape_layer): Update doc-string; Adapt to
781            layer_shapes() change
782    
783            * Thuban/UI/renderer.py (ScreenRenderer.layer_ids)
784            (ScreenRenderer.layer_shapes): Rename as in BaseRenderer
785    
786            * Thuban/UI/viewport.py (ViewPort._find_shape_in_layer): Adapt to
787            changes in the ShapesInRegion return value.
788            (ViewPort._get_hit_tester): Remove commented out code
789    
790            * test/mockgeo.py (SimpleShapeStore.ShapesInRegion): Adapt to the
791            new return value.
792            (SimpleShapeStore.AllShapes): New. Implement this method too.
793    
794            * test/test_layer.py (TestLayer.test_arc_layer)
795            (TestLayer.test_polygon_layer, TestLayer.test_point_layer)
796            (TestLayer.test_point_layer_with_projection)
797            (TestLayer.test_derived_store): Adapt to changes in the
798            ShapesInRegion return value.
799    
800            * test/test_shapefilestore.py
801            (TestShapefileStoreArc.test_shapes_in_region)
802            (TestShapefileStorePolygon.test_shapes_in_region)
803            (TestShapefileStorePoint.test_shapes_in_region): Adapt to changes
804            in the ShapesInRegion return value.
805            (TestShapefileStorePoint.test_all_shapes)
806            (TestShapefileStoreArc.test_shape_shapeid): New tests for the new
807            methods
808    
809            * test/test_derivedshapestore.py
810            (TestDerivedShapeStore.test_shapes_in_region): Adapt to changes in
811            the ShapesInRegion return value.
812            (TestDerivedShapeStore.test_all_shapes)
813            (TestDerivedShapeStore.test_shape_shapeid): New tests for the new
814            methods
815    
816    2003-08-15  Bernhard Herzog  <[email protected]>
817    
818            Make the renderers deal correctly with raw vs. python level
819            representation of shape geometries
820    
821            * Thuban/UI/baserenderer.py (BaseRenderer.low_level_renderer):
822            Return a flag useraw in addition to the callable and the parameter
823            to indicate whether the callable can deal with the raw shape data
824            or uses the higher level python lists of coordinates. The callable
825            now should accept either the raw data or the return value of the
826            shape's Points() method.
827            (BaseRenderer.draw_shape_layer): Adapt to the low_level_renderer
828            change
829            (BaseRenderer.projected_points): Instead of the shape id use the
830            points list as parameter.
831            (BaseRenderer.draw_polygon_shape, BaseRenderer.draw_arc_shape)
832            (BaseRenderer.draw_point_shape): Adapt to projected_points()
833            change and accept the points list as parameter instead of the
834            shape id.
835    
836            * Thuban/UI/renderer.py (MapRenderer.low_level_renderer): Return
837            the useraw flag as required by the BaseRenderer
838            (ScreenRenderer.draw_shape_layer): Adapt to low-level renderer
839            changes.
840    
841            * test/test_baserenderer.py
842            (TestBaseRenderer.test_point_with_classification): New test for
843            rendering a map with classifications.
844    
845    2003-08-15  Bernhard Herzog  <[email protected]>
846    
847            * Thuban/UI/viewport.py (ViewPort.find_shape_at)
848            (ViewPort._find_shape_in_layer, ViewPort._find_shape_in_layer)
849            (ViewPort._get_hit_tester, ViewPort.projected_points)
850            (ViewPort._hit_point, ViewPort._hit_arc, ViewPort._hit_polygon)
851            (ViewPort._find_label_at): Split the find_shape_at method into
852            several new methods and use the functions in the hit-test module.
853    
854            * Thuban/UI/hittest.py: New module with Python-level hit-testing
855            functions
856    
857            * test/test_hittest.py: New. Test for the new hittest module
858    
859    2003-08-15  Bernhard Herzog  <[email protected]>
860    
861            * Thuban/Model/layer.py (Layer.ShapesInRegion): Apply the layer
862            projection to all corners of the bounding box to get a better
863            approximation of the projected bounding box
864    
865            * test/test_layer.py (TestLayer.test_point_layer_with_projection):
866            New. Test coordinate handling of a layer with a projection.
867            Catches the bug fixed in Layer.ShapesInRegion
868    
869    2003-08-15  Bernhard Herzog  <[email protected]>
870    
871            Move some of the mock objects in test_baserenderer into their own
872            module so they can easily be used from other tests
873    
874            * test/mockgeo.py: New test helper module with some mock objects
875            for geometry related things like shapes, shapestores and
876            projections.
877    
878            * test/test_mockgeo.py: New. Tests for the new helper module
879    
880            * test/test_baserenderer.py: Some of the mock-objects are in
881            mockgeo now.
882    
883    2003-08-12  Jan-Oliver Wagner <[email protected]>
884    
885            * Thuban/UI/about.py (About.__init__): Added Bj�rn Broscheit.
886    
887    2003-08-12  Bernhard Herzog  <[email protected]>
888    
889            * po/de.po: New. German translations by Bjoern Broscheit
890    
891    2003-08-12  Bernhard Herzog  <[email protected]>
892    
893            * Thuban/UI/projdialog.py (UnknownProjPanel._DoLayout): Translated
894            strings have to be one string literal.
895    
896    2003-08-11  Bernhard Herzog  <[email protected]>
897    
898            * test/support.py (FloatComparisonMixin.assertPointListEquals):
899            New. This method was used in various derived classes, but it's
900            better to have it here.
901    
902            * test/test_shapefilestore.py
903            (ShapefileStoreTests.assertPointListEquals): Removed. It's now in
904            FloatComparisonMixin
905    
906            * test/test_layer.py (TestLayer.assertPointListEquals): Removed.
907            It's now in FloatComparisonMixin
908    
909            * test/test_derivedshapestore.py
910            (TestDerivedShapeStore.assertPointListEquals): Removed. It's now
911            in FloatComparisonMixin
912    
913    2003-08-11  Bernhard Herzog  <[email protected]>
914    
915            * Thuban/UI/join.py (JoinDialog.OnJoin): Add missing space to
916            error message
917    
918    2003-08-08  Jan-Oliver Wagner <[email protected]>
919    
920            * Doc/manual/thuban-manual.xml: Now use authorgroup. Added revhistory
921            with version number.
922            Changed title to reflect version number of Thuban.
923    
924  2003-08-08  Jan-Oliver Wagner <[email protected]>  2003-08-08  Jan-Oliver Wagner <[email protected]>
925    
926          * Thuban/UI/about.py (About.__init__): Reworked the hall of fame. Now          * Thuban/UI/about.py (About.__init__): Reworked the hall of fame. Now

Legend:
Removed from v.1569  
changed lines
  Added in v.1718

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26