/[thuban]/branches/WIP-pyshapelib-bramz/ChangeLog
ViewVC logotype

Diff of /branches/WIP-pyshapelib-bramz/ChangeLog

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

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

Legend:
Removed from v.1582  
changed lines
  Added in v.1737

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26