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

Legend:
Removed from v.1560  
changed lines
  Added in v.1767

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26