1 |
|
2003-08-27 Bernhard Herzog <[email protected]> |
2 |
|
|
3 |
|
Make the table interface distinguish between row ids (an integer |
4 |
|
that uniquely identifies a row) and row ordinals (a simple row |
5 |
|
count from 0 to NumRows() - 1) |
6 |
|
|
7 |
|
* Thuban/Model/postgisdb.py (PostGISTable.RowIdToOrdinal) |
8 |
|
(PostGISTable.RowOrdinalToId): New methods to conver between row |
9 |
|
ids and row ordinals |
10 |
|
(PostGISTable.ReadRowAsDict, PostGISTable.ReadValue): New keyword |
11 |
|
parameter row_is_ordinal to indicate whether the row parameter is |
12 |
|
the row id or the ordinal |
13 |
|
|
14 |
|
* Thuban/Model/transientdb.py (TransientTableBase.RowIdToOrdinal) |
15 |
|
(TransientTableBase.RowOrdinalToId) |
16 |
|
(AutoTransientTable.RowIdToOrdinal) |
17 |
|
(AutoTransientTable.RowOrdinalToId): Same new methods as in |
18 |
|
PostGISTable. |
19 |
|
(TransientTableBase.ReadRowAsDict, TransientTableBase.ReadValue) |
20 |
|
(AutoTransientTable.ReadRowAsDict, AutoTransientTable.ReadValue): |
21 |
|
Same new parameter as in PostGISTable. |
22 |
|
|
23 |
|
* Thuban/Model/table.py (DBFTable.RowIdToOrdinal) |
24 |
|
(DBFTable.RowOrdinalToId, MemoryTable.RowIdToOrdinal) |
25 |
|
(MemoryTable.RowOrdinalToId): Same new methods as in PostGISTable. |
26 |
|
(DBFTable.ReadValue, DBFTable.ReadRowAsDict) |
27 |
|
(MemoryTable.ReadValue, MemoryTable.ReadRowAsDict): Same new |
28 |
|
parameter as in PostGISTable. |
29 |
|
|
30 |
|
* Thuban/UI/tableview.py (DataTable.RowIdToOrdinal) |
31 |
|
(DataTable.RowOrdinalToId): New methods to convert between row ids |
32 |
|
and row ordinals. |
33 |
|
(TableGrid.SelectRowById): New method to select a row based on its |
34 |
|
ID as opposed to its ordinal |
35 |
|
(DataTable.GetValue, TableGrid.OnRangeSelect) |
36 |
|
(TableGrid.OnSelectCell, LayerTableGrid.select_shapes) |
37 |
|
(QueryTableFrame.OnQuery, QueryTableFrame.get_selected) |
38 |
|
(LayerTableFrame.__init__): Convert between row ids and row |
39 |
|
ordinals as appropriate |
40 |
|
|
41 |
|
* test/postgissupport.py (PostGISDatabase.__init__): Add |
42 |
|
doc-string. |
43 |
|
(PostGISDatabase.initdb): The optional third item in a tuple in |
44 |
|
tables is now a (key, value) list with additional arguments to |
45 |
|
pass to upload_shapefile |
46 |
|
(upload_shapefile): New parameter gid_offset to allow gids that |
47 |
|
are not the same as the shapeids in the shapefile |
48 |
|
(PostgreSQLServer.get_default_static_data_db): Use the new |
49 |
|
gid_offset to make the gids in landmarks 1000 higher than the |
50 |
|
shapeids in the shapefile |
51 |
|
|
52 |
|
* test/test_viewport.py |
53 |
|
(TestViewportWithPostGIS.test_find_shape_at_point): Adapt to the |
54 |
|
new shapeids in the landmarks table |
55 |
|
|
56 |
|
* test/test_transientdb.py |
57 |
|
(TestTransientTable.run_iceland_political_tests) |
58 |
|
(TestTransientTable.test_transient_joined_table): Add tests for |
59 |
|
the new table methods and new keywords arguments. |
60 |
|
|
61 |
|
* test/test_postgis_db.py |
62 |
|
(TestPostGISTable.test_read_row_as_dict_row_count_mode) |
63 |
|
(TestPostGISTable.test_read_value_row_count_mode) |
64 |
|
(TestPostGISTable.test_row_id_to_ordinal) |
65 |
|
(TestPostGISTable.test_row_oridnal_to_id): New test for the new |
66 |
|
table methods and the new arguments |
67 |
|
(TestPostGISShapestorePoint.test_shapes_in_region) |
68 |
|
(TestPostGISShapestorePoint.test_shape_raw_data) |
69 |
|
(TestPostGISShapestorePoint.test_shape_points) |
70 |
|
(TestPostGISShapestorePoint.test_shape_shapeid) |
71 |
|
(TestPostGISShapestorePoint.test_all_shapes) |
72 |
|
(TestPostGISTable.test_simple_query) |
73 |
|
(TestPostGISTable.test_simple_query) |
74 |
|
(TestPostGISTable.test_simple_query) |
75 |
|
(TestPostGISTable.test_read_value) |
76 |
|
(TestPostGISTable.test_read_row_as_dict): Adapt to the new |
77 |
|
shapeids in the landmarks table |
78 |
|
|
79 |
|
* test/test_memory_table.py |
80 |
|
(TestMemoryTable.test_read_row_as_dict_row_count_mode) |
81 |
|
(TestMemoryTable.test_read_value_row_count_mode) |
82 |
|
(TestMemoryTable.test_row_id_to_ordinal) |
83 |
|
(TestMemoryTable.test_row_oridnal_to_id): New test for the new |
84 |
|
table methods and the new arguments |
85 |
|
|
86 |
|
* test/test_dbf_table.py |
87 |
|
(TestDBFTable.test_read_row_as_dict_row_count_mode) |
88 |
|
(TestDBFTable.test_read_value_row_count_mode) |
89 |
|
(TestDBFTable.test_row_id_to_ordinal) |
90 |
|
(TestDBFTable.test_row_oridnal_to_id): New test for the new table |
91 |
|
methods and the new arguments |
92 |
|
|
93 |
2003-08-26 Bernhard Herzog <[email protected]> |
2003-08-26 Bernhard Herzog <[email protected]> |
94 |
|
|
95 |
* Thuban/Model/postgisdb.py (PostGISShapeStore.BoundingBox): Use a |
* Thuban/Model/postgisdb.py (PostGISShapeStore.BoundingBox): Use a |