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

Legend:
Removed from v.1553  
changed lines
  Added in v.1720

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26