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

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26