1 |
2004-03-11 Bernhard Herzog <[email protected]> |
2004-03-11 Bernhard Herzog <[email protected]> |
2 |
|
|
3 |
|
Next step for explicit id/geometry columns: User interaction |
4 |
|
|
5 |
|
* Thuban/UI/dbdialog.py (ChooseDBTableDialog.__init__): Rework how |
6 |
|
the dialog is constructed. Add combo boxes to select id and |
7 |
|
geometry column. Rename some instance variables. |
8 |
|
(ChooseDBTableDialog.GetTable): Return id and geometry column |
9 |
|
names |
10 |
|
(ChooseDBTableDialog.OnTableSelect): New. Event handler for |
11 |
|
selections in the table list |
12 |
|
|
13 |
|
* Thuban/UI/mainwindow.py (MainWindow.AddDBLayer): Use id_column |
14 |
|
and geometry_column |
15 |
|
|
16 |
|
* Thuban/Model/session.py (Session.OpenDBShapeStore): Add the new |
17 |
|
parameters for id_column and geometry column of PostGISShapeStore |
18 |
|
here as well. |
19 |
|
|
20 |
|
* Thuban/Model/postgisdb.py (type_map): Add ROWID psycog type. |
21 |
|
(_raw_type_map): New. Map raw PostgreSQL type ints to thuban types |
22 |
|
(PostGISConnection.GeometryTables): Use a better query to |
23 |
|
determine which relations in the database might be usable for |
24 |
|
shapestores. Now supports views as well but is more PostgreSQL |
25 |
|
specific |
26 |
|
(PostGISConnection.table_columns): New. Somewhat experimental |
27 |
|
method to let the db dialogs provide lists of columns to users so |
28 |
|
that they can select id and geometry columns. |
29 |
|
(PostGISTable.__init__): The default value of the id_column |
30 |
|
parameter is now None it still means "gid" effectively, though. |
31 |
|
(PostGISTable.IDColumn): New introspection method to return a |
32 |
|
column object for the id column |
33 |
|
(PostGISShapeStore.GeometryColumn): New introspection method to |
34 |
|
return a column object for the geometry column |
35 |
|
|
36 |
|
* test/test_postgis_db.py |
37 |
|
(TestPostGISConnection.test_gis_tables_non_empty): |
38 |
|
Removed. Subsumed by the new: |
39 |
|
(TestPostGISConnection.test_gis_tables_with_views_and_tables): |
40 |
|
New. Tes the GeometryTables and table_columns methods with actual |
41 |
|
tables and views. |
42 |
|
(PointTests.test_id_column, PointTests.test_geometry_column): |
43 |
|
New. tests for the new methods. |
44 |
|
(TestPostGISShapestorePoint.setUp) |
45 |
|
(TestPostGISShapestorePointSRID.setUp) |
46 |
|
(TestPostGISShapestorePointExplicitGIDColumn.setUp): Fill the |
47 |
|
instance variables needed by the new tests |
48 |
|
|
49 |
|
2004-03-11 Bernhard Herzog <[email protected]> |
50 |
|
|
51 |
* Thuban/UI/classgen.py (GenQuantilesPanel.GetList): The row |
* Thuban/UI/classgen.py (GenQuantilesPanel.GetList): The row |
52 |
numbers given to ReadValue are ordinals. |
numbers given to ReadValue are ordinals. |
53 |
|
|