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

Legend:
Removed from v.1580  
changed lines
  Added in v.1688

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26