1 |
|
2003-08-27 Bernhard Herzog <[email protected]> |
2 |
|
|
3 |
|
As preparation for the 0.9 release, switch thuban files to a |
4 |
|
non-dev namespace |
5 |
|
|
6 |
|
* Thuban/Model/save.py (SessionSaver.write_session): Write files |
7 |
|
with the http://thuban.intevation.org/dtds/thuban-0.9.dtd |
8 |
|
namespace |
9 |
|
|
10 |
|
* Thuban/Model/load.py (SessionLoader.__init__): Accept the |
11 |
|
http://thuban.intevation.org/dtds/thuban-0.9.dtd namespace too |
12 |
|
|
13 |
|
* test/test_save.py (SaveSessionTest.dtd) |
14 |
|
(SaveSessionTest.testEmptySession) |
15 |
|
(SaveSessionTest.testSingleLayer) |
16 |
|
(SaveSessionTest.testLayerProjection) |
17 |
|
(SaveSessionTest.testRasterLayer) |
18 |
|
(SaveSessionTest.testClassifiedLayer) |
19 |
|
(SaveSessionTest.test_dbf_table) |
20 |
|
(SaveSessionTest.test_joined_table) |
21 |
|
(SaveSessionTest.test_save_postgis): Update for new namespace |
22 |
|
|
23 |
|
* test/test_load.py (LoadSessionTest.dtd, TestSingleLayer) |
24 |
|
(TestLayerVisibility.file_contents, TestLabels.file_contents) |
25 |
|
(TestLayerProjection.file_contents) |
26 |
|
(TestRasterLayer.file_contents, TestJoinedTable.file_contents) |
27 |
|
(TestPostGISLayer.file_contents) |
28 |
|
(TestPostGISLayerPassword.file_contents) |
29 |
|
(TestLoadError.file_contents, TestLoadError.test): Update for new |
30 |
|
namespace |
31 |
|
|
32 |
|
2003-08-27 Bernhard Herzog <[email protected]> |
33 |
|
|
34 |
|
Make the table interface distinguish between row ids (an integer |
35 |
|
that uniquely identifies a row) and row ordinals (a simple row |
36 |
|
count from 0 to NumRows() - 1) |
37 |
|
|
38 |
|
* Thuban/Model/postgisdb.py (PostGISTable.RowIdToOrdinal) |
39 |
|
(PostGISTable.RowOrdinalToId): New methods to conver between row |
40 |
|
ids and row ordinals |
41 |
|
(PostGISTable.ReadRowAsDict, PostGISTable.ReadValue): New keyword |
42 |
|
parameter row_is_ordinal to indicate whether the row parameter is |
43 |
|
the row id or the ordinal |
44 |
|
|
45 |
|
* Thuban/Model/transientdb.py (TransientTableBase.RowIdToOrdinal) |
46 |
|
(TransientTableBase.RowOrdinalToId) |
47 |
|
(AutoTransientTable.RowIdToOrdinal) |
48 |
|
(AutoTransientTable.RowOrdinalToId): Same new methods as in |
49 |
|
PostGISTable. |
50 |
|
(TransientTableBase.ReadRowAsDict, TransientTableBase.ReadValue) |
51 |
|
(AutoTransientTable.ReadRowAsDict, AutoTransientTable.ReadValue): |
52 |
|
Same new parameter as in PostGISTable. |
53 |
|
|
54 |
|
* Thuban/Model/table.py (DBFTable.RowIdToOrdinal) |
55 |
|
(DBFTable.RowOrdinalToId, MemoryTable.RowIdToOrdinal) |
56 |
|
(MemoryTable.RowOrdinalToId): Same new methods as in PostGISTable. |
57 |
|
(DBFTable.ReadValue, DBFTable.ReadRowAsDict) |
58 |
|
(MemoryTable.ReadValue, MemoryTable.ReadRowAsDict): Same new |
59 |
|
parameter as in PostGISTable. |
60 |
|
|
61 |
|
* Thuban/UI/tableview.py (DataTable.RowIdToOrdinal) |
62 |
|
(DataTable.RowOrdinalToId): New methods to convert between row ids |
63 |
|
and row ordinals. |
64 |
|
(TableGrid.SelectRowById): New method to select a row based on its |
65 |
|
ID as opposed to its ordinal |
66 |
|
(DataTable.GetValue, TableGrid.OnRangeSelect) |
67 |
|
(TableGrid.OnSelectCell, LayerTableGrid.select_shapes) |
68 |
|
(QueryTableFrame.OnQuery, QueryTableFrame.get_selected) |
69 |
|
(LayerTableFrame.__init__): Convert between row ids and row |
70 |
|
ordinals as appropriate |
71 |
|
|
72 |
|
* test/postgissupport.py (PostGISDatabase.__init__): Add |
73 |
|
doc-string. |
74 |
|
(PostGISDatabase.initdb): The optional third item in a tuple in |
75 |
|
tables is now a (key, value) list with additional arguments to |
76 |
|
pass to upload_shapefile |
77 |
|
(upload_shapefile): New parameter gid_offset to allow gids that |
78 |
|
are not the same as the shapeids in the shapefile |
79 |
|
(PostgreSQLServer.get_default_static_data_db): Use the new |
80 |
|
gid_offset to make the gids in landmarks 1000 higher than the |
81 |
|
shapeids in the shapefile |
82 |
|
|
83 |
|
* test/test_viewport.py |
84 |
|
(TestViewportWithPostGIS.test_find_shape_at_point): Adapt to the |
85 |
|
new shapeids in the landmarks table |
86 |
|
|
87 |
|
* test/test_transientdb.py |
88 |
|
(TestTransientTable.run_iceland_political_tests) |
89 |
|
(TestTransientTable.test_transient_joined_table): Add tests for |
90 |
|
the new table methods and new keywords arguments. |
91 |
|
|
92 |
|
* test/test_postgis_db.py |
93 |
|
(TestPostGISTable.test_read_row_as_dict_row_count_mode) |
94 |
|
(TestPostGISTable.test_read_value_row_count_mode) |
95 |
|
(TestPostGISTable.test_row_id_to_ordinal) |
96 |
|
(TestPostGISTable.test_row_oridnal_to_id): New test for the new |
97 |
|
table methods and the new arguments |
98 |
|
(TestPostGISShapestorePoint.test_shapes_in_region) |
99 |
|
(TestPostGISShapestorePoint.test_shape_raw_data) |
100 |
|
(TestPostGISShapestorePoint.test_shape_points) |
101 |
|
(TestPostGISShapestorePoint.test_shape_shapeid) |
102 |
|
(TestPostGISShapestorePoint.test_all_shapes) |
103 |
|
(TestPostGISTable.test_simple_query) |
104 |
|
(TestPostGISTable.test_simple_query) |
105 |
|
(TestPostGISTable.test_simple_query) |
106 |
|
(TestPostGISTable.test_read_value) |
107 |
|
(TestPostGISTable.test_read_row_as_dict): Adapt to the new |
108 |
|
shapeids in the landmarks table |
109 |
|
|
110 |
|
* test/test_memory_table.py |
111 |
|
(TestMemoryTable.test_read_row_as_dict_row_count_mode) |
112 |
|
(TestMemoryTable.test_read_value_row_count_mode) |
113 |
|
(TestMemoryTable.test_row_id_to_ordinal) |
114 |
|
(TestMemoryTable.test_row_oridnal_to_id): New test for the new |
115 |
|
table methods and the new arguments |
116 |
|
|
117 |
|
* test/test_dbf_table.py |
118 |
|
(TestDBFTable.test_read_row_as_dict_row_count_mode) |
119 |
|
(TestDBFTable.test_read_value_row_count_mode) |
120 |
|
(TestDBFTable.test_row_id_to_ordinal) |
121 |
|
(TestDBFTable.test_row_oridnal_to_id): New test for the new table |
122 |
|
methods and the new arguments |
123 |
|
|
124 |
|
2003-08-26 Bernhard Herzog <[email protected]> |
125 |
|
|
126 |
|
* Thuban/Model/postgisdb.py (PostGISShapeStore.BoundingBox): Use a |
127 |
|
more postgis specific but much faster method to get the bounding |
128 |
|
box |
129 |
|
|
130 |
|
2003-08-26 Bernhard Herzog <[email protected]> |
131 |
|
|
132 |
|
* Thuban/Model/postgisdb.py (PostGISTable.Title) |
133 |
|
(PostGISShapeStore.AllShapes): Add these missing methods. |
134 |
|
(PostGISShapeStore.ShapesInRegion): No need to raise |
135 |
|
StopIteration. We can simply return |
136 |
|
|
137 |
|
* test/test_postgis_db.py (TestPostGISTable.test_title) |
138 |
|
(TestPostGISShapestorePoint.test_all_shapes): New tests for the |
139 |
|
new methods |
140 |
|
|
141 |
2003-08-25 Bernhard Herzog <[email protected]> |
2003-08-25 Bernhard Herzog <[email protected]> |
142 |
|
|
143 |
* Thuban/Model/postgisdb.py (shapetype_map): Add MUTLIPOLYGON. |
* Thuban/Model/postgisdb.py (shapetype_map): Add MUTLIPOLYGON. |