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

Legend:
Removed from v.1584  
changed lines
  Added in v.1760

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26