1 |
|
2003-09-01 Bernhard Herzog <[email protected]> |
2 |
|
|
3 |
|
* MANIFEST.in: Correct the include statement for the mo-files and |
4 |
|
include the documentation too. |
5 |
|
|
6 |
|
* setup.py (data_files): Add the .mo files |
7 |
|
(setup call): Up to version 0.9.0 |
8 |
|
|
9 |
|
2003-09-01 Bernhard Herzog <[email protected]> |
10 |
|
|
11 |
|
* Thuban/UI/dbdialog.py (ChooseDBTableDialog.__init__): Change the |
12 |
|
parameter list to just parent and session |
13 |
|
(ChooseDBTableDialog.__set_properties): Removed. Setting the |
14 |
|
selection of empty list boxes is not allowed (and produces C++ |
15 |
|
assertion errors) and the rest of the setup is better done in |
16 |
|
__init__ anyway. |
17 |
|
(ChooseDBTableDialog.OnCancel, ChooseDBTableDialog.OnOK) |
18 |
|
(ChooseDBTableDialog.OnLBDClick, DBDialog.OnOK): Use the Python |
19 |
|
builtins True/False for booleans to avoid warnings from wxPython |
20 |
|
|
21 |
|
* Thuban/UI/mainwindow.py (MainWindow.AddDBLayer): Adapt to new |
22 |
|
ChooseDBTableDialog constructor parameters. |
23 |
|
|
24 |
|
2003-09-01 Bernhard Herzog <[email protected]> |
25 |
|
|
26 |
|
* Thuban/Model/postgisdb.py |
27 |
|
(PostGISTable): Extend doc-string |
28 |
|
(PostGISTable._fetch_table_information): Set the column index |
29 |
|
correctly, pretending ignored columns don't exist. |
30 |
|
|
31 |
|
* test/test_postgis_db.py (TestPostGISIgnoredColumns): New tests |
32 |
|
for postgis tables with data types not yet supported by thuban. |
33 |
|
|
34 |
|
2003-08-29 Bernhard Herzog <[email protected]> |
35 |
|
|
36 |
|
* HOWTO-Release: Tweak item about running the tests. |
37 |
|
|
38 |
|
2003-08-29 Jan-Oliver Wagner <[email protected]> |
39 |
|
|
40 |
|
* /Doc/manual/thuban-manual.xml: updated to version 1.0pre2. |
41 |
|
|
42 |
|
2003-08-29 Bernhard Herzog <[email protected]> |
43 |
|
|
44 |
|
Add some missing parameters to projections. Proj complains about |
45 |
|
them on windows but for some reason not on Linux. |
46 |
|
|
47 |
|
* test/test_save.py (SaveSessionTest.testLayerProjection): Add |
48 |
|
missing required projection parameters |
49 |
|
|
50 |
|
* test/test_proj.py (TestProjFile.test): Add missing required |
51 |
|
projection parameters |
52 |
|
|
53 |
|
* test/test_load_0_8.py (TestLayerProjection.file_contents) |
54 |
|
(TestLayerProjection.test): Add missing required projection |
55 |
|
parameters and tests for them |
56 |
|
|
57 |
|
* test/test_load.py (TestLayerProjection.file_contents) |
58 |
|
(TestLayerProjection.test): Add missing required projection |
59 |
|
parameters and tests for them |
60 |
|
|
61 |
|
* test/test_layer.py (TestLayer.test_base_layer): Add missing |
62 |
|
required projection parameters |
63 |
|
|
64 |
|
2003-08-29 Bernhard Herzog <[email protected]> |
65 |
|
|
66 |
|
* libraries/pyprojection/Projection.i: Use pj_get_errno_ref to |
67 |
|
access the pj_errno because directly accessing pj_errno doesn't |
68 |
|
work on windows if the proj library is in a DLL |
69 |
|
|
70 |
|
* libraries/pyprojection/Projection_wrap.c: Update from Projection.i |
71 |
|
|
72 |
|
2003-08-28 Bernhard Herzog <[email protected]> |
73 |
|
|
74 |
|
* test/test_proj.py: Import things from Thuban after calling |
75 |
|
initthuban |
76 |
|
|
77 |
|
* test/test_load.py (LoadSessionTest.filenames): New class |
78 |
|
variable with the filename attributes to normalize |
79 |
|
(LoadSessionTest.check_format): Pass self.filenames to |
80 |
|
sax_eventlist to normalize the filename attributes |
81 |
|
|
82 |
|
* test/xmlsupport.py: Add cvs keywords |
83 |
|
(SaxEventLister.__init__): New parameter filenames which indicates |
84 |
|
attributes that contain filenames |
85 |
|
(SaxEventLister.startElementNS): Normalize the filename attributes |
86 |
|
with os.path.normpath |
87 |
|
(sax_eventlist): New parameter filenames to pass through to |
88 |
|
SaxEventLister |
89 |
|
|
90 |
|
* test/test_derivedshapestore.py: Make this file callable as a |
91 |
|
program to execute the tests |
92 |
|
(TestDerivedShapeStoreExceptions.test_table_with_wrong_size): Bind |
93 |
|
the session to self.session so that it gets destroyed properly |
94 |
|
|
95 |
|
* test/test_layer.py (TestLayer.tearDown): Call the session's |
96 |
|
Destroy method |
97 |
|
|
98 |
|
* test/test_map.py (TestMapBase.tearDown): Destroy self.session |
99 |
|
too if it exists |
100 |
|
(TestMapAddLayer.test_add_layer): Bind the session to self.session |
101 |
|
so that it gets destroyed properly |
102 |
|
|
103 |
|
* test/postgissupport.py (reason_for_not_running_tests): Add a |
104 |
|
test for the existence of popen2.Popen4. |
105 |
|
|
106 |
|
* test/test_save.py (SaveSessionTest.tearDown): New. Provide a |
107 |
|
reliable way to destroy the sessions created in the test cases |
108 |
|
(SaveSessionTest.test_dbf_table): Bind the session to self.session |
109 |
|
so that it gets destroyed properly |
110 |
|
(SaveSessionTest.testLayerProjection): Bind the session to |
111 |
|
self.session so that it gets destroyed properly |
112 |
|
|
113 |
|
* test/test_session.py (UnreferencedTablesTests.tearDown): Make |
114 |
|
sure that the session is destroyed properly |
115 |
|
|
116 |
|
* test/test_shapefilestore.py: Make this callable as a program to |
117 |
|
execute the tests |
118 |
|
|
119 |
|
* test/test_scalebar.py: Remove unnecessary import of _ from |
120 |
|
Thuban |
121 |
|
|
122 |
|
* test/support.py (print_garbage_information): Call initthuban |
123 |
|
here because it may be called indirectly from test cases that test |
124 |
|
test support modules which do not use anything from thuban itself |
125 |
|
(ThubanTestProgram.runTests): Remove unnecessary debug print |
126 |
|
|
127 |
|
2003-08-28 Bernhard Herzog <[email protected]> |
128 |
|
|
129 |
|
* Thuban/version.py (longversion): Update to 0.9 |
130 |
|
|
131 |
|
* Thuban/UI/mainwindow.py: Remove some unused imports |
132 |
|
|
133 |
|
* README: Add section about required additional software. Add date |
134 |
|
and revision CVS keywords |
135 |
|
|
136 |
|
* HOWTO-Release: Add item about the translations. Add date and |
137 |
|
revision CVs keywords and change formatting to match README a bit |
138 |
|
better |
139 |
|
|
140 |
|
* po/de.po: Update for 0.9 |
141 |
|
|
142 |
|
* test/README: Tweak the wording a little because many tests are |
143 |
|
not really unittest. |
144 |
|
|
145 |
|
2003-08-27 Bernhard Herzog <[email protected]> |
146 |
|
|
147 |
|
As preparation for the 0.9 release, switch thuban files to a |
148 |
|
non-dev namespace |
149 |
|
|
150 |
|
* Thuban/Model/save.py (SessionSaver.write_session): Write files |
151 |
|
with the http://thuban.intevation.org/dtds/thuban-0.9.dtd |
152 |
|
namespace |
153 |
|
|
154 |
|
* Thuban/Model/load.py (SessionLoader.__init__): Accept the |
155 |
|
http://thuban.intevation.org/dtds/thuban-0.9.dtd namespace too |
156 |
|
|
157 |
|
* test/test_save.py (SaveSessionTest.dtd) |
158 |
|
(SaveSessionTest.testEmptySession) |
159 |
|
(SaveSessionTest.testSingleLayer) |
160 |
|
(SaveSessionTest.testLayerProjection) |
161 |
|
(SaveSessionTest.testRasterLayer) |
162 |
|
(SaveSessionTest.testClassifiedLayer) |
163 |
|
(SaveSessionTest.test_dbf_table) |
164 |
|
(SaveSessionTest.test_joined_table) |
165 |
|
(SaveSessionTest.test_save_postgis): Update for new namespace |
166 |
|
|
167 |
|
* test/test_load.py (LoadSessionTest.dtd, TestSingleLayer) |
168 |
|
(TestLayerVisibility.file_contents, TestLabels.file_contents) |
169 |
|
(TestLayerProjection.file_contents) |
170 |
|
(TestRasterLayer.file_contents, TestJoinedTable.file_contents) |
171 |
|
(TestPostGISLayer.file_contents) |
172 |
|
(TestPostGISLayerPassword.file_contents) |
173 |
|
(TestLoadError.file_contents, TestLoadError.test): Update for new |
174 |
|
namespace |
175 |
|
|
176 |
|
2003-08-27 Bernhard Herzog <[email protected]> |
177 |
|
|
178 |
|
Make the table interface distinguish between row ids (an integer |
179 |
|
that uniquely identifies a row) and row ordinals (a simple row |
180 |
|
count from 0 to NumRows() - 1) |
181 |
|
|
182 |
|
* Thuban/Model/postgisdb.py (PostGISTable.RowIdToOrdinal) |
183 |
|
(PostGISTable.RowOrdinalToId): New methods to conver between row |
184 |
|
ids and row ordinals |
185 |
|
(PostGISTable.ReadRowAsDict, PostGISTable.ReadValue): New keyword |
186 |
|
parameter row_is_ordinal to indicate whether the row parameter is |
187 |
|
the row id or the ordinal |
188 |
|
|
189 |
|
* Thuban/Model/transientdb.py (TransientTableBase.RowIdToOrdinal) |
190 |
|
(TransientTableBase.RowOrdinalToId) |
191 |
|
(AutoTransientTable.RowIdToOrdinal) |
192 |
|
(AutoTransientTable.RowOrdinalToId): Same new methods as in |
193 |
|
PostGISTable. |
194 |
|
(TransientTableBase.ReadRowAsDict, TransientTableBase.ReadValue) |
195 |
|
(AutoTransientTable.ReadRowAsDict, AutoTransientTable.ReadValue): |
196 |
|
Same new parameter as in PostGISTable. |
197 |
|
|
198 |
|
* Thuban/Model/table.py (DBFTable.RowIdToOrdinal) |
199 |
|
(DBFTable.RowOrdinalToId, MemoryTable.RowIdToOrdinal) |
200 |
|
(MemoryTable.RowOrdinalToId): Same new methods as in PostGISTable. |
201 |
|
(DBFTable.ReadValue, DBFTable.ReadRowAsDict) |
202 |
|
(MemoryTable.ReadValue, MemoryTable.ReadRowAsDict): Same new |
203 |
|
parameter as in PostGISTable. |
204 |
|
|
205 |
|
* Thuban/UI/tableview.py (DataTable.RowIdToOrdinal) |
206 |
|
(DataTable.RowOrdinalToId): New methods to convert between row ids |
207 |
|
and row ordinals. |
208 |
|
(TableGrid.SelectRowById): New method to select a row based on its |
209 |
|
ID as opposed to its ordinal |
210 |
|
(DataTable.GetValue, TableGrid.OnRangeSelect) |
211 |
|
(TableGrid.OnSelectCell, LayerTableGrid.select_shapes) |
212 |
|
(QueryTableFrame.OnQuery, QueryTableFrame.get_selected) |
213 |
|
(LayerTableFrame.__init__): Convert between row ids and row |
214 |
|
ordinals as appropriate |
215 |
|
|
216 |
|
* test/postgissupport.py (PostGISDatabase.__init__): Add |
217 |
|
doc-string. |
218 |
|
(PostGISDatabase.initdb): The optional third item in a tuple in |
219 |
|
tables is now a (key, value) list with additional arguments to |
220 |
|
pass to upload_shapefile |
221 |
|
(upload_shapefile): New parameter gid_offset to allow gids that |
222 |
|
are not the same as the shapeids in the shapefile |
223 |
|
(PostgreSQLServer.get_default_static_data_db): Use the new |
224 |
|
gid_offset to make the gids in landmarks 1000 higher than the |
225 |
|
shapeids in the shapefile |
226 |
|
|
227 |
|
* test/test_viewport.py |
228 |
|
(TestViewportWithPostGIS.test_find_shape_at_point): Adapt to the |
229 |
|
new shapeids in the landmarks table |
230 |
|
|
231 |
|
* test/test_transientdb.py |
232 |
|
(TestTransientTable.run_iceland_political_tests) |
233 |
|
(TestTransientTable.test_transient_joined_table): Add tests for |
234 |
|
the new table methods and new keywords arguments. |
235 |
|
|
236 |
|
* test/test_postgis_db.py |
237 |
|
(TestPostGISTable.test_read_row_as_dict_row_count_mode) |
238 |
|
(TestPostGISTable.test_read_value_row_count_mode) |
239 |
|
(TestPostGISTable.test_row_id_to_ordinal) |
240 |
|
(TestPostGISTable.test_row_oridnal_to_id): New test for the new |
241 |
|
table methods and the new arguments |
242 |
|
(TestPostGISShapestorePoint.test_shapes_in_region) |
243 |
|
(TestPostGISShapestorePoint.test_shape_raw_data) |
244 |
|
(TestPostGISShapestorePoint.test_shape_points) |
245 |
|
(TestPostGISShapestorePoint.test_shape_shapeid) |
246 |
|
(TestPostGISShapestorePoint.test_all_shapes) |
247 |
|
(TestPostGISTable.test_simple_query) |
248 |
|
(TestPostGISTable.test_simple_query) |
249 |
|
(TestPostGISTable.test_simple_query) |
250 |
|
(TestPostGISTable.test_read_value) |
251 |
|
(TestPostGISTable.test_read_row_as_dict): Adapt to the new |
252 |
|
shapeids in the landmarks table |
253 |
|
|
254 |
|
* test/test_memory_table.py |
255 |
|
(TestMemoryTable.test_read_row_as_dict_row_count_mode) |
256 |
|
(TestMemoryTable.test_read_value_row_count_mode) |
257 |
|
(TestMemoryTable.test_row_id_to_ordinal) |
258 |
|
(TestMemoryTable.test_row_oridnal_to_id): New test for the new |
259 |
|
table methods and the new arguments |
260 |
|
|
261 |
|
* test/test_dbf_table.py |
262 |
|
(TestDBFTable.test_read_row_as_dict_row_count_mode) |
263 |
|
(TestDBFTable.test_read_value_row_count_mode) |
264 |
|
(TestDBFTable.test_row_id_to_ordinal) |
265 |
|
(TestDBFTable.test_row_oridnal_to_id): New test for the new table |
266 |
|
methods and the new arguments |
267 |
|
|
268 |
|
2003-08-26 Bernhard Herzog <[email protected]> |
269 |
|
|
270 |
|
* Thuban/Model/postgisdb.py (PostGISShapeStore.BoundingBox): Use a |
271 |
|
more postgis specific but much faster method to get the bounding |
272 |
|
box |
273 |
|
|
274 |
|
2003-08-26 Bernhard Herzog <[email protected]> |
275 |
|
|
276 |
|
* Thuban/Model/postgisdb.py (PostGISTable.Title) |
277 |
|
(PostGISShapeStore.AllShapes): Add these missing methods. |
278 |
|
(PostGISShapeStore.ShapesInRegion): No need to raise |
279 |
|
StopIteration. We can simply return |
280 |
|
|
281 |
|
* test/test_postgis_db.py (TestPostGISTable.test_title) |
282 |
|
(TestPostGISShapestorePoint.test_all_shapes): New tests for the |
283 |
|
new methods |
284 |
|
|
285 |
|
2003-08-25 Bernhard Herzog <[email protected]> |
286 |
|
|
287 |
|
* Thuban/Model/postgisdb.py (shapetype_map): Add MUTLIPOLYGON. |
288 |
|
|
289 |
|
* test/test_postgis_db.py (PolygonTests): New class containing |
290 |
|
those tests from TestPostGISShapestorePolygon that can also be |
291 |
|
used to test MUTLIPOLYGON tables |
292 |
|
(TestPostGISShapestorePolygon): Most tests are now in PolygonTests |
293 |
|
so derive from that |
294 |
|
(TestPostGISShapestoreMultiPolygon): New class with tests for |
295 |
|
MUTLIPOLYGON tables |
296 |
|
|
297 |
|
* test/postgissupport.py (PostGISDatabase.initdb): Allow the |
298 |
|
tables argument to have tuples with three items to override the |
299 |
|
WKT type used. |
300 |
|
(PostgreSQLServer.get_default_static_data_db): Use the above to |
301 |
|
create a polygon table with MUTLIPOLYGONs |
302 |
|
(point_to_wkt, coords_to_point, polygon_to_wkt, coords_to_polygon) |
303 |
|
(arc_to_wkt, coords_to_multilinestring): Rename from *_to_wkt to |
304 |
|
coords_to* |
305 |
|
(coords_to_multipolygon): New. Convert to MUTLIPOLYGON |
306 |
|
(wkt_converter): New. Map WKT types to converters |
307 |
|
(upload_shapefile): New parameter force_wkt_type to use a |
308 |
|
different WKT type than the default |
309 |
|
|
310 |
2003-08-25 Bernhard Herzog <[email protected]> |
2003-08-25 Bernhard Herzog <[email protected]> |
311 |
|
|
312 |
* Thuban/UI/application.py |
* Thuban/UI/application.py |