1 |
|
2003-09-22 Bernhard Herzog <[email protected]> |
2 |
|
|
3 |
|
* test/support.py (initthuban): Make sure to unset the LANG env. |
4 |
|
var. so that tests that compare translated strings work. Solves RT |
5 |
|
#2094 |
6 |
|
|
7 |
|
2003-09-22 Jan-Oliver Wagner <[email protected]> |
8 |
|
|
9 |
|
Small improvement of APR import. |
10 |
|
|
11 |
|
* Extensions/importAPR/test/test_apr.py (aprTest.test_LClass): |
12 |
|
Added tests for text-ranges. |
13 |
|
|
14 |
|
* Extensions/importAPR/apr.py (APR_LClass.GetThubanRange): Now |
15 |
|
returns a string object if the range is based on text. |
16 |
|
|
17 |
|
* Extensions/importAPR/importAPR.py (import_apr_dialog): Unified |
18 |
|
range retrieval. |
19 |
|
|
20 |
|
2003-09-22 Jan-Oliver Wagner <[email protected]> |
21 |
|
|
22 |
|
Initial version of the importAPR extension which is in |
23 |
|
experimental state. |
24 |
|
|
25 |
|
* /Extensions/importAPR/, /Extensions/importAPR/samples/, |
26 |
|
/Extensions/importAPR/test/: New directories. |
27 |
|
|
28 |
|
* /Extensions/importAPR/samples/README: New: Howto load the samples. |
29 |
|
|
30 |
|
* /Extensions/importAPR/samples/iceland.apr: New: A sample APR |
31 |
|
file which refers to the Thuban Iceland demo data. |
32 |
|
|
33 |
|
* /Extensions/importAPR/test/README: New: Howto execute the tests. |
34 |
|
|
35 |
|
* /Extensions/importAPR/test/test_apr.py: New: Tests for APR classes. |
36 |
|
|
37 |
|
* /Extensions/importAPR/apr.py: New: Classes for ArcView Objects |
38 |
|
as in '.apr'-files. |
39 |
|
|
40 |
|
* /Extensions/importAPR/odb.py: New: Classes for generic ArcView |
41 |
|
ODB Objects as in '.apr', '.avl' and other files. |
42 |
|
|
43 |
|
* /Extensions/importAPR/__init__.py: New: Init to make this |
44 |
|
directory a package. |
45 |
|
|
46 |
|
* /Extensions/importAPR/importAPR.py: New: Import a ArcView |
47 |
|
project file (.apr) and convert it to Thuban. |
48 |
|
|
49 |
|
2003-09-22 Jan-Oliver Wagner <[email protected]> |
50 |
|
|
51 |
|
* Extensions/gns2shp.gns2shp.py: The main module of gns2shp. |
52 |
|
|
53 |
|
2003-09-19 Jan-Oliver Wagner <[email protected]> |
54 |
|
|
55 |
|
* Doc/manual/thuban-manual.xml: Extended section 'Installation' |
56 |
|
with description on RPM installation and RPM binary package |
57 |
|
creation. |
58 |
|
|
59 |
|
2003-09-18 Bernhard Herzog <[email protected]> |
60 |
|
|
61 |
|
* setup.py (data_files): Only add the mo files if the Locales |
62 |
|
directory actually exists, so that setup.py works with a fresh CVS |
63 |
|
checkout |
64 |
|
|
65 |
|
2003-09-12 Jan-Oliver Wagner <[email protected]> |
66 |
|
|
67 |
|
* Examples/simple_extensions/simple_tool.py: bugfix: Tool is now |
68 |
|
in viewport, not anymore in view |
69 |
|
|
70 |
|
2003-09-04 Jan-Oliver Wagner <[email protected]> |
71 |
|
|
72 |
|
Introducing first Extension (gns2shp). |
73 |
|
|
74 |
|
* Extensions, Extensions/gns2shp, Extensions/gns2shp/test: New. |
75 |
|
|
76 |
|
* Extensions/__init__.py: New. init to make this dir a package. |
77 |
|
|
78 |
|
* Extensions/gns2shp/__init__.py: New. init to make this dir a package. |
79 |
|
|
80 |
|
* Extensions/gns2shp/test/README: New. some info on this test directory. |
81 |
|
|
82 |
|
* Extensions/gns2shp/test/ls.txt: New. test data set (Liechtenstein). |
83 |
|
|
84 |
|
* Extensions/gns2shp/test/test_gns2shp.py: New. Test for correct creation |
85 |
|
of Shapefile from GNS text file format |
86 |
|
|
87 |
|
2003-09-03 Jan-Oliver Wagner <[email protected]> |
88 |
|
|
89 |
|
Fix/workaround for bug #2019: |
90 |
|
https://intevation.de/rt/webrt?serial_num=2019 |
91 |
|
|
92 |
|
* Thuban/UI/identifyview.py (IdentifyView.ID_STOP): New. |
93 |
|
(IdentifyView.__init__): Added another button that allows to |
94 |
|
stop the identify mode. |
95 |
|
(IdentifyView.OnStop): New. Stops the identify mode. |
96 |
|
|
97 |
|
2003-09-03 Jan-Oliver Wagner <[email protected]> |
98 |
|
|
99 |
|
Introducing a new exception dialog that allows to exit the |
100 |
|
application immediately. |
101 |
|
This fixes bug #2060: https://intevation.de/rt/webrt?serial_num=2060 |
102 |
|
|
103 |
|
* Thuban/UI/exceptiondialog.py: New. A special exception dialog. |
104 |
|
|
105 |
|
* Thuban/UI/application.py (ThubanApplication.ShowExceptionDialog): |
106 |
|
Made strings available to translations. Exchanged the simple |
107 |
|
ScrolledMessageDialog by the new ExceptionDialog. |
108 |
|
|
109 |
|
2003-09-01 Bernhard Herzog <[email protected]> |
110 |
|
|
111 |
|
* NEWS: New. Summary of changes and release notes. |
112 |
|
|
113 |
|
* MANIFEST.in: Add NEWS |
114 |
|
|
115 |
|
2003-09-01 Bernhard Herzog <[email protected]> |
116 |
|
|
117 |
|
* MANIFEST.in: Correct the include statement for the mo-files and |
118 |
|
include the documentation too. |
119 |
|
|
120 |
|
* setup.py (data_files): Add the .mo files |
121 |
|
(setup call): Up to version 0.9.0 |
122 |
|
|
123 |
|
2003-09-01 Bernhard Herzog <[email protected]> |
124 |
|
|
125 |
|
* Thuban/UI/dbdialog.py (ChooseDBTableDialog.__init__): Change the |
126 |
|
parameter list to just parent and session |
127 |
|
(ChooseDBTableDialog.__set_properties): Removed. Setting the |
128 |
|
selection of empty list boxes is not allowed (and produces C++ |
129 |
|
assertion errors) and the rest of the setup is better done in |
130 |
|
__init__ anyway. |
131 |
|
(ChooseDBTableDialog.OnCancel, ChooseDBTableDialog.OnOK) |
132 |
|
(ChooseDBTableDialog.OnLBDClick, DBDialog.OnOK): Use the Python |
133 |
|
builtins True/False for booleans to avoid warnings from wxPython |
134 |
|
|
135 |
|
* Thuban/UI/mainwindow.py (MainWindow.AddDBLayer): Adapt to new |
136 |
|
ChooseDBTableDialog constructor parameters. |
137 |
|
|
138 |
|
2003-09-01 Bernhard Herzog <[email protected]> |
139 |
|
|
140 |
|
* Thuban/Model/postgisdb.py |
141 |
|
(PostGISTable): Extend doc-string |
142 |
|
(PostGISTable._fetch_table_information): Set the column index |
143 |
|
correctly, pretending ignored columns don't exist. |
144 |
|
|
145 |
|
* test/test_postgis_db.py (TestPostGISIgnoredColumns): New tests |
146 |
|
for postgis tables with data types not yet supported by thuban. |
147 |
|
|
148 |
|
2003-08-29 Bernhard Herzog <[email protected]> |
149 |
|
|
150 |
|
* HOWTO-Release: Tweak item about running the tests. |
151 |
|
|
152 |
|
2003-08-29 Jan-Oliver Wagner <[email protected]> |
153 |
|
|
154 |
|
* /Doc/manual/thuban-manual.xml: updated to version 1.0pre2. |
155 |
|
|
156 |
|
2003-08-29 Bernhard Herzog <[email protected]> |
157 |
|
|
158 |
|
Add some missing parameters to projections. Proj complains about |
159 |
|
them on windows but for some reason not on Linux. |
160 |
|
|
161 |
|
* test/test_save.py (SaveSessionTest.testLayerProjection): Add |
162 |
|
missing required projection parameters |
163 |
|
|
164 |
|
* test/test_proj.py (TestProjFile.test): Add missing required |
165 |
|
projection parameters |
166 |
|
|
167 |
|
* test/test_load_0_8.py (TestLayerProjection.file_contents) |
168 |
|
(TestLayerProjection.test): Add missing required projection |
169 |
|
parameters and tests for them |
170 |
|
|
171 |
|
* test/test_load.py (TestLayerProjection.file_contents) |
172 |
|
(TestLayerProjection.test): Add missing required projection |
173 |
|
parameters and tests for them |
174 |
|
|
175 |
|
* test/test_layer.py (TestLayer.test_base_layer): Add missing |
176 |
|
required projection parameters |
177 |
|
|
178 |
|
2003-08-29 Bernhard Herzog <[email protected]> |
179 |
|
|
180 |
|
* libraries/pyprojection/Projection.i: Use pj_get_errno_ref to |
181 |
|
access the pj_errno because directly accessing pj_errno doesn't |
182 |
|
work on windows if the proj library is in a DLL |
183 |
|
|
184 |
|
* libraries/pyprojection/Projection_wrap.c: Update from Projection.i |
185 |
|
|
186 |
|
2003-08-28 Bernhard Herzog <[email protected]> |
187 |
|
|
188 |
|
* test/test_proj.py: Import things from Thuban after calling |
189 |
|
initthuban |
190 |
|
|
191 |
|
* test/test_load.py (LoadSessionTest.filenames): New class |
192 |
|
variable with the filename attributes to normalize |
193 |
|
(LoadSessionTest.check_format): Pass self.filenames to |
194 |
|
sax_eventlist to normalize the filename attributes |
195 |
|
|
196 |
|
* test/xmlsupport.py: Add cvs keywords |
197 |
|
(SaxEventLister.__init__): New parameter filenames which indicates |
198 |
|
attributes that contain filenames |
199 |
|
(SaxEventLister.startElementNS): Normalize the filename attributes |
200 |
|
with os.path.normpath |
201 |
|
(sax_eventlist): New parameter filenames to pass through to |
202 |
|
SaxEventLister |
203 |
|
|
204 |
|
* test/test_derivedshapestore.py: Make this file callable as a |
205 |
|
program to execute the tests |
206 |
|
(TestDerivedShapeStoreExceptions.test_table_with_wrong_size): Bind |
207 |
|
the session to self.session so that it gets destroyed properly |
208 |
|
|
209 |
|
* test/test_layer.py (TestLayer.tearDown): Call the session's |
210 |
|
Destroy method |
211 |
|
|
212 |
|
* test/test_map.py (TestMapBase.tearDown): Destroy self.session |
213 |
|
too if it exists |
214 |
|
(TestMapAddLayer.test_add_layer): Bind the session to self.session |
215 |
|
so that it gets destroyed properly |
216 |
|
|
217 |
|
* test/postgissupport.py (reason_for_not_running_tests): Add a |
218 |
|
test for the existence of popen2.Popen4. |
219 |
|
|
220 |
|
* test/test_save.py (SaveSessionTest.tearDown): New. Provide a |
221 |
|
reliable way to destroy the sessions created in the test cases |
222 |
|
(SaveSessionTest.test_dbf_table): Bind the session to self.session |
223 |
|
so that it gets destroyed properly |
224 |
|
(SaveSessionTest.testLayerProjection): Bind the session to |
225 |
|
self.session so that it gets destroyed properly |
226 |
|
|
227 |
|
* test/test_session.py (UnreferencedTablesTests.tearDown): Make |
228 |
|
sure that the session is destroyed properly |
229 |
|
|
230 |
|
* test/test_shapefilestore.py: Make this callable as a program to |
231 |
|
execute the tests |
232 |
|
|
233 |
|
* test/test_scalebar.py: Remove unnecessary import of _ from |
234 |
|
Thuban |
235 |
|
|
236 |
|
* test/support.py (print_garbage_information): Call initthuban |
237 |
|
here because it may be called indirectly from test cases that test |
238 |
|
test support modules which do not use anything from thuban itself |
239 |
|
(ThubanTestProgram.runTests): Remove unnecessary debug print |
240 |
|
|
241 |
|
2003-08-28 Bernhard Herzog <[email protected]> |
242 |
|
|
243 |
|
* Thuban/version.py (longversion): Update to 0.9 |
244 |
|
|
245 |
|
* Thuban/UI/mainwindow.py: Remove some unused imports |
246 |
|
|
247 |
|
* README: Add section about required additional software. Add date |
248 |
|
and revision CVS keywords |
249 |
|
|
250 |
|
* HOWTO-Release: Add item about the translations. Add date and |
251 |
|
revision CVs keywords and change formatting to match README a bit |
252 |
|
better |
253 |
|
|
254 |
|
* po/de.po: Update for 0.9 |
255 |
|
|
256 |
|
* test/README: Tweak the wording a little because many tests are |
257 |
|
not really unittest. |
258 |
|
|
259 |
|
2003-08-27 Bernhard Herzog <[email protected]> |
260 |
|
|
261 |
|
As preparation for the 0.9 release, switch thuban files to a |
262 |
|
non-dev namespace |
263 |
|
|
264 |
|
* Thuban/Model/save.py (SessionSaver.write_session): Write files |
265 |
|
with the http://thuban.intevation.org/dtds/thuban-0.9.dtd |
266 |
|
namespace |
267 |
|
|
268 |
|
* Thuban/Model/load.py (SessionLoader.__init__): Accept the |
269 |
|
http://thuban.intevation.org/dtds/thuban-0.9.dtd namespace too |
270 |
|
|
271 |
|
* test/test_save.py (SaveSessionTest.dtd) |
272 |
|
(SaveSessionTest.testEmptySession) |
273 |
|
(SaveSessionTest.testSingleLayer) |
274 |
|
(SaveSessionTest.testLayerProjection) |
275 |
|
(SaveSessionTest.testRasterLayer) |
276 |
|
(SaveSessionTest.testClassifiedLayer) |
277 |
|
(SaveSessionTest.test_dbf_table) |
278 |
|
(SaveSessionTest.test_joined_table) |
279 |
|
(SaveSessionTest.test_save_postgis): Update for new namespace |
280 |
|
|
281 |
|
* test/test_load.py (LoadSessionTest.dtd, TestSingleLayer) |
282 |
|
(TestLayerVisibility.file_contents, TestLabels.file_contents) |
283 |
|
(TestLayerProjection.file_contents) |
284 |
|
(TestRasterLayer.file_contents, TestJoinedTable.file_contents) |
285 |
|
(TestPostGISLayer.file_contents) |
286 |
|
(TestPostGISLayerPassword.file_contents) |
287 |
|
(TestLoadError.file_contents, TestLoadError.test): Update for new |
288 |
|
namespace |
289 |
|
|
290 |
|
2003-08-27 Bernhard Herzog <[email protected]> |
291 |
|
|
292 |
|
Make the table interface distinguish between row ids (an integer |
293 |
|
that uniquely identifies a row) and row ordinals (a simple row |
294 |
|
count from 0 to NumRows() - 1) |
295 |
|
|
296 |
|
* Thuban/Model/postgisdb.py (PostGISTable.RowIdToOrdinal) |
297 |
|
(PostGISTable.RowOrdinalToId): New methods to conver between row |
298 |
|
ids and row ordinals |
299 |
|
(PostGISTable.ReadRowAsDict, PostGISTable.ReadValue): New keyword |
300 |
|
parameter row_is_ordinal to indicate whether the row parameter is |
301 |
|
the row id or the ordinal |
302 |
|
|
303 |
|
* Thuban/Model/transientdb.py (TransientTableBase.RowIdToOrdinal) |
304 |
|
(TransientTableBase.RowOrdinalToId) |
305 |
|
(AutoTransientTable.RowIdToOrdinal) |
306 |
|
(AutoTransientTable.RowOrdinalToId): Same new methods as in |
307 |
|
PostGISTable. |
308 |
|
(TransientTableBase.ReadRowAsDict, TransientTableBase.ReadValue) |
309 |
|
(AutoTransientTable.ReadRowAsDict, AutoTransientTable.ReadValue): |
310 |
|
Same new parameter as in PostGISTable. |
311 |
|
|
312 |
|
* Thuban/Model/table.py (DBFTable.RowIdToOrdinal) |
313 |
|
(DBFTable.RowOrdinalToId, MemoryTable.RowIdToOrdinal) |
314 |
|
(MemoryTable.RowOrdinalToId): Same new methods as in PostGISTable. |
315 |
|
(DBFTable.ReadValue, DBFTable.ReadRowAsDict) |
316 |
|
(MemoryTable.ReadValue, MemoryTable.ReadRowAsDict): Same new |
317 |
|
parameter as in PostGISTable. |
318 |
|
|
319 |
|
* Thuban/UI/tableview.py (DataTable.RowIdToOrdinal) |
320 |
|
(DataTable.RowOrdinalToId): New methods to convert between row ids |
321 |
|
and row ordinals. |
322 |
|
(TableGrid.SelectRowById): New method to select a row based on its |
323 |
|
ID as opposed to its ordinal |
324 |
|
(DataTable.GetValue, TableGrid.OnRangeSelect) |
325 |
|
(TableGrid.OnSelectCell, LayerTableGrid.select_shapes) |
326 |
|
(QueryTableFrame.OnQuery, QueryTableFrame.get_selected) |
327 |
|
(LayerTableFrame.__init__): Convert between row ids and row |
328 |
|
ordinals as appropriate |
329 |
|
|
330 |
|
* test/postgissupport.py (PostGISDatabase.__init__): Add |
331 |
|
doc-string. |
332 |
|
(PostGISDatabase.initdb): The optional third item in a tuple in |
333 |
|
tables is now a (key, value) list with additional arguments to |
334 |
|
pass to upload_shapefile |
335 |
|
(upload_shapefile): New parameter gid_offset to allow gids that |
336 |
|
are not the same as the shapeids in the shapefile |
337 |
|
(PostgreSQLServer.get_default_static_data_db): Use the new |
338 |
|
gid_offset to make the gids in landmarks 1000 higher than the |
339 |
|
shapeids in the shapefile |
340 |
|
|
341 |
|
* test/test_viewport.py |
342 |
|
(TestViewportWithPostGIS.test_find_shape_at_point): Adapt to the |
343 |
|
new shapeids in the landmarks table |
344 |
|
|
345 |
|
* test/test_transientdb.py |
346 |
|
(TestTransientTable.run_iceland_political_tests) |
347 |
|
(TestTransientTable.test_transient_joined_table): Add tests for |
348 |
|
the new table methods and new keywords arguments. |
349 |
|
|
350 |
|
* test/test_postgis_db.py |
351 |
|
(TestPostGISTable.test_read_row_as_dict_row_count_mode) |
352 |
|
(TestPostGISTable.test_read_value_row_count_mode) |
353 |
|
(TestPostGISTable.test_row_id_to_ordinal) |
354 |
|
(TestPostGISTable.test_row_oridnal_to_id): New test for the new |
355 |
|
table methods and the new arguments |
356 |
|
(TestPostGISShapestorePoint.test_shapes_in_region) |
357 |
|
(TestPostGISShapestorePoint.test_shape_raw_data) |
358 |
|
(TestPostGISShapestorePoint.test_shape_points) |
359 |
|
(TestPostGISShapestorePoint.test_shape_shapeid) |
360 |
|
(TestPostGISShapestorePoint.test_all_shapes) |
361 |
|
(TestPostGISTable.test_simple_query) |
362 |
|
(TestPostGISTable.test_simple_query) |
363 |
|
(TestPostGISTable.test_simple_query) |
364 |
|
(TestPostGISTable.test_read_value) |
365 |
|
(TestPostGISTable.test_read_row_as_dict): Adapt to the new |
366 |
|
shapeids in the landmarks table |
367 |
|
|
368 |
|
* test/test_memory_table.py |
369 |
|
(TestMemoryTable.test_read_row_as_dict_row_count_mode) |
370 |
|
(TestMemoryTable.test_read_value_row_count_mode) |
371 |
|
(TestMemoryTable.test_row_id_to_ordinal) |
372 |
|
(TestMemoryTable.test_row_oridnal_to_id): New test for the new |
373 |
|
table methods and the new arguments |
374 |
|
|
375 |
|
* test/test_dbf_table.py |
376 |
|
(TestDBFTable.test_read_row_as_dict_row_count_mode) |
377 |
|
(TestDBFTable.test_read_value_row_count_mode) |
378 |
|
(TestDBFTable.test_row_id_to_ordinal) |
379 |
|
(TestDBFTable.test_row_oridnal_to_id): New test for the new table |
380 |
|
methods and the new arguments |
381 |
|
|
382 |
|
2003-08-26 Bernhard Herzog <[email protected]> |
383 |
|
|
384 |
|
* Thuban/Model/postgisdb.py (PostGISShapeStore.BoundingBox): Use a |
385 |
|
more postgis specific but much faster method to get the bounding |
386 |
|
box |
387 |
|
|
388 |
|
2003-08-26 Bernhard Herzog <[email protected]> |
389 |
|
|
390 |
|
* Thuban/Model/postgisdb.py (PostGISTable.Title) |
391 |
|
(PostGISShapeStore.AllShapes): Add these missing methods. |
392 |
|
(PostGISShapeStore.ShapesInRegion): No need to raise |
393 |
|
StopIteration. We can simply return |
394 |
|
|
395 |
|
* test/test_postgis_db.py (TestPostGISTable.test_title) |
396 |
|
(TestPostGISShapestorePoint.test_all_shapes): New tests for the |
397 |
|
new methods |
398 |
|
|
399 |
|
2003-08-25 Bernhard Herzog <[email protected]> |
400 |
|
|
401 |
|
* Thuban/Model/postgisdb.py (shapetype_map): Add MUTLIPOLYGON. |
402 |
|
|
403 |
|
* test/test_postgis_db.py (PolygonTests): New class containing |
404 |
|
those tests from TestPostGISShapestorePolygon that can also be |
405 |
|
used to test MUTLIPOLYGON tables |
406 |
|
(TestPostGISShapestorePolygon): Most tests are now in PolygonTests |
407 |
|
so derive from that |
408 |
|
(TestPostGISShapestoreMultiPolygon): New class with tests for |
409 |
|
MUTLIPOLYGON tables |
410 |
|
|
411 |
|
* test/postgissupport.py (PostGISDatabase.initdb): Allow the |
412 |
|
tables argument to have tuples with three items to override the |
413 |
|
WKT type used. |
414 |
|
(PostgreSQLServer.get_default_static_data_db): Use the above to |
415 |
|
create a polygon table with MUTLIPOLYGONs |
416 |
|
(point_to_wkt, coords_to_point, polygon_to_wkt, coords_to_polygon) |
417 |
|
(arc_to_wkt, coords_to_multilinestring): Rename from *_to_wkt to |
418 |
|
coords_to* |
419 |
|
(coords_to_multipolygon): New. Convert to MUTLIPOLYGON |
420 |
|
(wkt_converter): New. Map WKT types to converters |
421 |
|
(upload_shapefile): New parameter force_wkt_type to use a |
422 |
|
different WKT type than the default |
423 |
|
|
424 |
2003-08-25 Bernhard Herzog <[email protected]> |
2003-08-25 Bernhard Herzog <[email protected]> |
425 |
|
|
426 |
* Thuban/UI/application.py |
* Thuban/UI/application.py |