1 |
|
2003-09-26 Bernhard Herzog <[email protected]> |
2 |
|
|
3 |
|
* Thuban/Model/classgen.py (GenQuantiles0): Removed since it's |
4 |
|
only used in GREAT-ER but not used in Thuban itself. When GREAT-ER |
5 |
|
is ported to a newer the import will fail, so it should be noticed |
6 |
|
immediately that this function is gone. |
7 |
|
Fixes RT#1919 |
8 |
|
|
9 |
|
2003-09-26 Bernhard Herzog <[email protected]> |
10 |
|
|
11 |
|
Add a DTD for the projection files and make thuban write valid |
12 |
|
projection files |
13 |
|
|
14 |
|
* Resources/XML/projfile.dtd: New. DTD for thuban's projection |
15 |
|
files |
16 |
|
|
17 |
|
* Thuban/Model/resource.py (ProjFileSaver.write): Use |
18 |
|
'projectionlist' as the name in the document type declaration so |
19 |
|
that it matches the element type of the root element. |
20 |
|
|
21 |
|
* test/test_proj.py (sample_projfile, sample_projfile2): Use |
22 |
|
'projectionlist' as the name in the document type declaration just |
23 |
|
as it is done now in the files thuban would write |
24 |
|
(sample_projfile, sample_projfile_data): Fix spelling of |
25 |
|
"Mercator" |
26 |
|
(TestProjFile.doTestWrite): Validate the written and the expected |
27 |
|
XML data |
28 |
|
(TestProjFile): Derive from ValidationTest so that we can run xml |
29 |
|
validation tests |
30 |
|
|
31 |
|
2003-09-24 Bernhard Herzog <[email protected]> |
32 |
|
|
33 |
|
* Thuban/UI/renderer.py (ExportRenderer.render_legend): Do not |
34 |
|
modify the list returned by map.Layers() in place since it is the |
35 |
|
actual list of layers used by the map. |
36 |
|
|
37 |
|
2003-09-23 Jan-Oliver Wagner <[email protected]> |
38 |
|
|
39 |
|
* Doc/manual/thuban-manual.xml: Added subsection to chapter |
40 |
|
Extensions to describe the extensions coming with the Thuban |
41 |
|
standard package (gns2shp and importAPR). |
42 |
|
|
43 |
|
2003-09-23 Bernhard Herzog <[email protected]> |
44 |
|
|
45 |
|
* libraries/thuban/wxproj.cpp (project_point): if there's an |
46 |
|
inverse but no forward projection, convert to degrees after |
47 |
|
applying the inverse projection. Fixes RT#2096 |
48 |
|
|
49 |
|
* test/test_wxproj.py: New. Test cases for wxproj.so. One test |
50 |
|
implicitly tests for the fix to RT#2096 |
51 |
|
|
52 |
|
* test/support.py (FloatComparisonMixin.assertFloatSeqEqual): |
53 |
|
Check that the sequences have the same lengths |
54 |
|
|
55 |
|
* Resources/Projections/defaults.proj (Geographic projection): Use |
56 |
|
a much more precise value for the to_meter attribute. |
57 |
|
|
58 |
|
2003-09-22 Bernhard Herzog <[email protected]> |
59 |
|
|
60 |
|
* test/support.py (initthuban): Make sure to unset the LANG env. |
61 |
|
var. so that tests that compare translated strings work. Solves RT |
62 |
|
#2094 |
63 |
|
|
64 |
|
2003-09-22 Jan-Oliver Wagner <[email protected]> |
65 |
|
|
66 |
|
Small improvement of APR import. |
67 |
|
|
68 |
|
* Extensions/importAPR/test/test_apr.py (aprTest.test_LClass): |
69 |
|
Added tests for text-ranges. |
70 |
|
|
71 |
|
* Extensions/importAPR/apr.py (APR_LClass.GetThubanRange): Now |
72 |
|
returns a string object if the range is based on text. |
73 |
|
|
74 |
|
* Extensions/importAPR/importAPR.py (import_apr_dialog): Unified |
75 |
|
range retrieval. |
76 |
|
|
77 |
|
2003-09-22 Jan-Oliver Wagner <[email protected]> |
78 |
|
|
79 |
|
Initial version of the importAPR extension which is in |
80 |
|
experimental state. |
81 |
|
|
82 |
|
* /Extensions/importAPR/, /Extensions/importAPR/samples/, |
83 |
|
/Extensions/importAPR/test/: New directories. |
84 |
|
|
85 |
|
* /Extensions/importAPR/samples/README: New: Howto load the samples. |
86 |
|
|
87 |
|
* /Extensions/importAPR/samples/iceland.apr: New: A sample APR |
88 |
|
file which refers to the Thuban Iceland demo data. |
89 |
|
|
90 |
|
* /Extensions/importAPR/test/README: New: Howto execute the tests. |
91 |
|
|
92 |
|
* /Extensions/importAPR/test/test_apr.py: New: Tests for APR classes. |
93 |
|
|
94 |
|
* /Extensions/importAPR/apr.py: New: Classes for ArcView Objects |
95 |
|
as in '.apr'-files. |
96 |
|
|
97 |
|
* /Extensions/importAPR/odb.py: New: Classes for generic ArcView |
98 |
|
ODB Objects as in '.apr', '.avl' and other files. |
99 |
|
|
100 |
|
* /Extensions/importAPR/__init__.py: New: Init to make this |
101 |
|
directory a package. |
102 |
|
|
103 |
|
* /Extensions/importAPR/importAPR.py: New: Import a ArcView |
104 |
|
project file (.apr) and convert it to Thuban. |
105 |
|
|
106 |
|
2003-09-22 Jan-Oliver Wagner <[email protected]> |
107 |
|
|
108 |
|
* Extensions/gns2shp.gns2shp.py: The main module of gns2shp. |
109 |
|
|
110 |
|
2003-09-19 Jan-Oliver Wagner <[email protected]> |
111 |
|
|
112 |
|
* Doc/manual/thuban-manual.xml: Extended section 'Installation' |
113 |
|
with description on RPM installation and RPM binary package |
114 |
|
creation. |
115 |
|
|
116 |
|
2003-09-18 Bernhard Herzog <[email protected]> |
117 |
|
|
118 |
|
* setup.py (data_files): Only add the mo files if the Locales |
119 |
|
directory actually exists, so that setup.py works with a fresh CVS |
120 |
|
checkout |
121 |
|
|
122 |
|
2003-09-12 Jan-Oliver Wagner <[email protected]> |
123 |
|
|
124 |
|
* Examples/simple_extensions/simple_tool.py: bugfix: Tool is now |
125 |
|
in viewport, not anymore in view |
126 |
|
|
127 |
|
2003-09-04 Jan-Oliver Wagner <[email protected]> |
128 |
|
|
129 |
|
Introducing first Extension (gns2shp). |
130 |
|
|
131 |
|
* Extensions, Extensions/gns2shp, Extensions/gns2shp/test: New. |
132 |
|
|
133 |
|
* Extensions/__init__.py: New. init to make this dir a package. |
134 |
|
|
135 |
|
* Extensions/gns2shp/__init__.py: New. init to make this dir a package. |
136 |
|
|
137 |
|
* Extensions/gns2shp/test/README: New. some info on this test directory. |
138 |
|
|
139 |
|
* Extensions/gns2shp/test/ls.txt: New. test data set (Liechtenstein). |
140 |
|
|
141 |
|
* Extensions/gns2shp/test/test_gns2shp.py: New. Test for correct creation |
142 |
|
of Shapefile from GNS text file format |
143 |
|
|
144 |
|
2003-09-03 Jan-Oliver Wagner <[email protected]> |
145 |
|
|
146 |
|
Fix/workaround for bug #2019: |
147 |
|
https://intevation.de/rt/webrt?serial_num=2019 |
148 |
|
|
149 |
|
* Thuban/UI/identifyview.py (IdentifyView.ID_STOP): New. |
150 |
|
(IdentifyView.__init__): Added another button that allows to |
151 |
|
stop the identify mode. |
152 |
|
(IdentifyView.OnStop): New. Stops the identify mode. |
153 |
|
|
154 |
|
2003-09-03 Jan-Oliver Wagner <[email protected]> |
155 |
|
|
156 |
|
Introducing a new exception dialog that allows to exit the |
157 |
|
application immediately. |
158 |
|
This fixes bug #2060: https://intevation.de/rt/webrt?serial_num=2060 |
159 |
|
|
160 |
|
* Thuban/UI/exceptiondialog.py: New. A special exception dialog. |
161 |
|
|
162 |
|
* Thuban/UI/application.py (ThubanApplication.ShowExceptionDialog): |
163 |
|
Made strings available to translations. Exchanged the simple |
164 |
|
ScrolledMessageDialog by the new ExceptionDialog. |
165 |
|
|
166 |
|
2003-09-01 Bernhard Herzog <[email protected]> |
167 |
|
|
168 |
|
* NEWS: New. Summary of changes and release notes. |
169 |
|
|
170 |
|
* MANIFEST.in: Add NEWS |
171 |
|
|
172 |
|
2003-09-01 Bernhard Herzog <[email protected]> |
173 |
|
|
174 |
|
* MANIFEST.in: Correct the include statement for the mo-files and |
175 |
|
include the documentation too. |
176 |
|
|
177 |
|
* setup.py (data_files): Add the .mo files |
178 |
|
(setup call): Up to version 0.9.0 |
179 |
|
|
180 |
|
2003-09-01 Bernhard Herzog <[email protected]> |
181 |
|
|
182 |
|
* Thuban/UI/dbdialog.py (ChooseDBTableDialog.__init__): Change the |
183 |
|
parameter list to just parent and session |
184 |
|
(ChooseDBTableDialog.__set_properties): Removed. Setting the |
185 |
|
selection of empty list boxes is not allowed (and produces C++ |
186 |
|
assertion errors) and the rest of the setup is better done in |
187 |
|
__init__ anyway. |
188 |
|
(ChooseDBTableDialog.OnCancel, ChooseDBTableDialog.OnOK) |
189 |
|
(ChooseDBTableDialog.OnLBDClick, DBDialog.OnOK): Use the Python |
190 |
|
builtins True/False for booleans to avoid warnings from wxPython |
191 |
|
|
192 |
|
* Thuban/UI/mainwindow.py (MainWindow.AddDBLayer): Adapt to new |
193 |
|
ChooseDBTableDialog constructor parameters. |
194 |
|
|
195 |
|
2003-09-01 Bernhard Herzog <[email protected]> |
196 |
|
|
197 |
|
* Thuban/Model/postgisdb.py |
198 |
|
(PostGISTable): Extend doc-string |
199 |
|
(PostGISTable._fetch_table_information): Set the column index |
200 |
|
correctly, pretending ignored columns don't exist. |
201 |
|
|
202 |
|
* test/test_postgis_db.py (TestPostGISIgnoredColumns): New tests |
203 |
|
for postgis tables with data types not yet supported by thuban. |
204 |
|
|
205 |
|
2003-08-29 Bernhard Herzog <[email protected]> |
206 |
|
|
207 |
|
* HOWTO-Release: Tweak item about running the tests. |
208 |
|
|
209 |
|
2003-08-29 Jan-Oliver Wagner <[email protected]> |
210 |
|
|
211 |
|
* /Doc/manual/thuban-manual.xml: updated to version 1.0pre2. |
212 |
|
|
213 |
|
2003-08-29 Bernhard Herzog <[email protected]> |
214 |
|
|
215 |
|
Add some missing parameters to projections. Proj complains about |
216 |
|
them on windows but for some reason not on Linux. |
217 |
|
|
218 |
|
* test/test_save.py (SaveSessionTest.testLayerProjection): Add |
219 |
|
missing required projection parameters |
220 |
|
|
221 |
|
* test/test_proj.py (TestProjFile.test): Add missing required |
222 |
|
projection parameters |
223 |
|
|
224 |
|
* test/test_load_0_8.py (TestLayerProjection.file_contents) |
225 |
|
(TestLayerProjection.test): Add missing required projection |
226 |
|
parameters and tests for them |
227 |
|
|
228 |
|
* test/test_load.py (TestLayerProjection.file_contents) |
229 |
|
(TestLayerProjection.test): Add missing required projection |
230 |
|
parameters and tests for them |
231 |
|
|
232 |
|
* test/test_layer.py (TestLayer.test_base_layer): Add missing |
233 |
|
required projection parameters |
234 |
|
|
235 |
|
2003-08-29 Bernhard Herzog <[email protected]> |
236 |
|
|
237 |
|
* libraries/pyprojection/Projection.i: Use pj_get_errno_ref to |
238 |
|
access the pj_errno because directly accessing pj_errno doesn't |
239 |
|
work on windows if the proj library is in a DLL |
240 |
|
|
241 |
|
* libraries/pyprojection/Projection_wrap.c: Update from Projection.i |
242 |
|
|
243 |
|
2003-08-28 Bernhard Herzog <[email protected]> |
244 |
|
|
245 |
|
* test/test_proj.py: Import things from Thuban after calling |
246 |
|
initthuban |
247 |
|
|
248 |
|
* test/test_load.py (LoadSessionTest.filenames): New class |
249 |
|
variable with the filename attributes to normalize |
250 |
|
(LoadSessionTest.check_format): Pass self.filenames to |
251 |
|
sax_eventlist to normalize the filename attributes |
252 |
|
|
253 |
|
* test/xmlsupport.py: Add cvs keywords |
254 |
|
(SaxEventLister.__init__): New parameter filenames which indicates |
255 |
|
attributes that contain filenames |
256 |
|
(SaxEventLister.startElementNS): Normalize the filename attributes |
257 |
|
with os.path.normpath |
258 |
|
(sax_eventlist): New parameter filenames to pass through to |
259 |
|
SaxEventLister |
260 |
|
|
261 |
|
* test/test_derivedshapestore.py: Make this file callable as a |
262 |
|
program to execute the tests |
263 |
|
(TestDerivedShapeStoreExceptions.test_table_with_wrong_size): Bind |
264 |
|
the session to self.session so that it gets destroyed properly |
265 |
|
|
266 |
|
* test/test_layer.py (TestLayer.tearDown): Call the session's |
267 |
|
Destroy method |
268 |
|
|
269 |
|
* test/test_map.py (TestMapBase.tearDown): Destroy self.session |
270 |
|
too if it exists |
271 |
|
(TestMapAddLayer.test_add_layer): Bind the session to self.session |
272 |
|
so that it gets destroyed properly |
273 |
|
|
274 |
|
* test/postgissupport.py (reason_for_not_running_tests): Add a |
275 |
|
test for the existence of popen2.Popen4. |
276 |
|
|
277 |
|
* test/test_save.py (SaveSessionTest.tearDown): New. Provide a |
278 |
|
reliable way to destroy the sessions created in the test cases |
279 |
|
(SaveSessionTest.test_dbf_table): Bind the session to self.session |
280 |
|
so that it gets destroyed properly |
281 |
|
(SaveSessionTest.testLayerProjection): Bind the session to |
282 |
|
self.session so that it gets destroyed properly |
283 |
|
|
284 |
|
* test/test_session.py (UnreferencedTablesTests.tearDown): Make |
285 |
|
sure that the session is destroyed properly |
286 |
|
|
287 |
|
* test/test_shapefilestore.py: Make this callable as a program to |
288 |
|
execute the tests |
289 |
|
|
290 |
|
* test/test_scalebar.py: Remove unnecessary import of _ from |
291 |
|
Thuban |
292 |
|
|
293 |
|
* test/support.py (print_garbage_information): Call initthuban |
294 |
|
here because it may be called indirectly from test cases that test |
295 |
|
test support modules which do not use anything from thuban itself |
296 |
|
(ThubanTestProgram.runTests): Remove unnecessary debug print |
297 |
|
|
298 |
|
2003-08-28 Bernhard Herzog <[email protected]> |
299 |
|
|
300 |
|
* Thuban/version.py (longversion): Update to 0.9 |
301 |
|
|
302 |
|
* Thuban/UI/mainwindow.py: Remove some unused imports |
303 |
|
|
304 |
|
* README: Add section about required additional software. Add date |
305 |
|
and revision CVS keywords |
306 |
|
|
307 |
|
* HOWTO-Release: Add item about the translations. Add date and |
308 |
|
revision CVs keywords and change formatting to match README a bit |
309 |
|
better |
310 |
|
|
311 |
|
* po/de.po: Update for 0.9 |
312 |
|
|
313 |
|
* test/README: Tweak the wording a little because many tests are |
314 |
|
not really unittest. |
315 |
|
|
316 |
|
2003-08-27 Bernhard Herzog <[email protected]> |
317 |
|
|
318 |
|
As preparation for the 0.9 release, switch thuban files to a |
319 |
|
non-dev namespace |
320 |
|
|
321 |
|
* Thuban/Model/save.py (SessionSaver.write_session): Write files |
322 |
|
with the http://thuban.intevation.org/dtds/thuban-0.9.dtd |
323 |
|
namespace |
324 |
|
|
325 |
|
* Thuban/Model/load.py (SessionLoader.__init__): Accept the |
326 |
|
http://thuban.intevation.org/dtds/thuban-0.9.dtd namespace too |
327 |
|
|
328 |
|
* test/test_save.py (SaveSessionTest.dtd) |
329 |
|
(SaveSessionTest.testEmptySession) |
330 |
|
(SaveSessionTest.testSingleLayer) |
331 |
|
(SaveSessionTest.testLayerProjection) |
332 |
|
(SaveSessionTest.testRasterLayer) |
333 |
|
(SaveSessionTest.testClassifiedLayer) |
334 |
|
(SaveSessionTest.test_dbf_table) |
335 |
|
(SaveSessionTest.test_joined_table) |
336 |
|
(SaveSessionTest.test_save_postgis): Update for new namespace |
337 |
|
|
338 |
|
* test/test_load.py (LoadSessionTest.dtd, TestSingleLayer) |
339 |
|
(TestLayerVisibility.file_contents, TestLabels.file_contents) |
340 |
|
(TestLayerProjection.file_contents) |
341 |
|
(TestRasterLayer.file_contents, TestJoinedTable.file_contents) |
342 |
|
(TestPostGISLayer.file_contents) |
343 |
|
(TestPostGISLayerPassword.file_contents) |
344 |
|
(TestLoadError.file_contents, TestLoadError.test): Update for new |
345 |
|
namespace |
346 |
|
|
347 |
|
2003-08-27 Bernhard Herzog <[email protected]> |
348 |
|
|
349 |
|
Make the table interface distinguish between row ids (an integer |
350 |
|
that uniquely identifies a row) and row ordinals (a simple row |
351 |
|
count from 0 to NumRows() - 1) |
352 |
|
|
353 |
|
* Thuban/Model/postgisdb.py (PostGISTable.RowIdToOrdinal) |
354 |
|
(PostGISTable.RowOrdinalToId): New methods to conver between row |
355 |
|
ids and row ordinals |
356 |
|
(PostGISTable.ReadRowAsDict, PostGISTable.ReadValue): New keyword |
357 |
|
parameter row_is_ordinal to indicate whether the row parameter is |
358 |
|
the row id or the ordinal |
359 |
|
|
360 |
|
* Thuban/Model/transientdb.py (TransientTableBase.RowIdToOrdinal) |
361 |
|
(TransientTableBase.RowOrdinalToId) |
362 |
|
(AutoTransientTable.RowIdToOrdinal) |
363 |
|
(AutoTransientTable.RowOrdinalToId): Same new methods as in |
364 |
|
PostGISTable. |
365 |
|
(TransientTableBase.ReadRowAsDict, TransientTableBase.ReadValue) |
366 |
|
(AutoTransientTable.ReadRowAsDict, AutoTransientTable.ReadValue): |
367 |
|
Same new parameter as in PostGISTable. |
368 |
|
|
369 |
|
* Thuban/Model/table.py (DBFTable.RowIdToOrdinal) |
370 |
|
(DBFTable.RowOrdinalToId, MemoryTable.RowIdToOrdinal) |
371 |
|
(MemoryTable.RowOrdinalToId): Same new methods as in PostGISTable. |
372 |
|
(DBFTable.ReadValue, DBFTable.ReadRowAsDict) |
373 |
|
(MemoryTable.ReadValue, MemoryTable.ReadRowAsDict): Same new |
374 |
|
parameter as in PostGISTable. |
375 |
|
|
376 |
|
* Thuban/UI/tableview.py (DataTable.RowIdToOrdinal) |
377 |
|
(DataTable.RowOrdinalToId): New methods to convert between row ids |
378 |
|
and row ordinals. |
379 |
|
(TableGrid.SelectRowById): New method to select a row based on its |
380 |
|
ID as opposed to its ordinal |
381 |
|
(DataTable.GetValue, TableGrid.OnRangeSelect) |
382 |
|
(TableGrid.OnSelectCell, LayerTableGrid.select_shapes) |
383 |
|
(QueryTableFrame.OnQuery, QueryTableFrame.get_selected) |
384 |
|
(LayerTableFrame.__init__): Convert between row ids and row |
385 |
|
ordinals as appropriate |
386 |
|
|
387 |
|
* test/postgissupport.py (PostGISDatabase.__init__): Add |
388 |
|
doc-string. |
389 |
|
(PostGISDatabase.initdb): The optional third item in a tuple in |
390 |
|
tables is now a (key, value) list with additional arguments to |
391 |
|
pass to upload_shapefile |
392 |
|
(upload_shapefile): New parameter gid_offset to allow gids that |
393 |
|
are not the same as the shapeids in the shapefile |
394 |
|
(PostgreSQLServer.get_default_static_data_db): Use the new |
395 |
|
gid_offset to make the gids in landmarks 1000 higher than the |
396 |
|
shapeids in the shapefile |
397 |
|
|
398 |
|
* test/test_viewport.py |
399 |
|
(TestViewportWithPostGIS.test_find_shape_at_point): Adapt to the |
400 |
|
new shapeids in the landmarks table |
401 |
|
|
402 |
|
* test/test_transientdb.py |
403 |
|
(TestTransientTable.run_iceland_political_tests) |
404 |
|
(TestTransientTable.test_transient_joined_table): Add tests for |
405 |
|
the new table methods and new keywords arguments. |
406 |
|
|
407 |
|
* test/test_postgis_db.py |
408 |
|
(TestPostGISTable.test_read_row_as_dict_row_count_mode) |
409 |
|
(TestPostGISTable.test_read_value_row_count_mode) |
410 |
|
(TestPostGISTable.test_row_id_to_ordinal) |
411 |
|
(TestPostGISTable.test_row_oridnal_to_id): New test for the new |
412 |
|
table methods and the new arguments |
413 |
|
(TestPostGISShapestorePoint.test_shapes_in_region) |
414 |
|
(TestPostGISShapestorePoint.test_shape_raw_data) |
415 |
|
(TestPostGISShapestorePoint.test_shape_points) |
416 |
|
(TestPostGISShapestorePoint.test_shape_shapeid) |
417 |
|
(TestPostGISShapestorePoint.test_all_shapes) |
418 |
|
(TestPostGISTable.test_simple_query) |
419 |
|
(TestPostGISTable.test_simple_query) |
420 |
|
(TestPostGISTable.test_simple_query) |
421 |
|
(TestPostGISTable.test_read_value) |
422 |
|
(TestPostGISTable.test_read_row_as_dict): Adapt to the new |
423 |
|
shapeids in the landmarks table |
424 |
|
|
425 |
|
* test/test_memory_table.py |
426 |
|
(TestMemoryTable.test_read_row_as_dict_row_count_mode) |
427 |
|
(TestMemoryTable.test_read_value_row_count_mode) |
428 |
|
(TestMemoryTable.test_row_id_to_ordinal) |
429 |
|
(TestMemoryTable.test_row_oridnal_to_id): New test for the new |
430 |
|
table methods and the new arguments |
431 |
|
|
432 |
|
* test/test_dbf_table.py |
433 |
|
(TestDBFTable.test_read_row_as_dict_row_count_mode) |
434 |
|
(TestDBFTable.test_read_value_row_count_mode) |
435 |
|
(TestDBFTable.test_row_id_to_ordinal) |
436 |
|
(TestDBFTable.test_row_oridnal_to_id): New test for the new table |
437 |
|
methods and the new arguments |
438 |
|
|
439 |
|
2003-08-26 Bernhard Herzog <[email protected]> |
440 |
|
|
441 |
|
* Thuban/Model/postgisdb.py (PostGISShapeStore.BoundingBox): Use a |
442 |
|
more postgis specific but much faster method to get the bounding |
443 |
|
box |
444 |
|
|
445 |
|
2003-08-26 Bernhard Herzog <[email protected]> |
446 |
|
|
447 |
|
* Thuban/Model/postgisdb.py (PostGISTable.Title) |
448 |
|
(PostGISShapeStore.AllShapes): Add these missing methods. |
449 |
|
(PostGISShapeStore.ShapesInRegion): No need to raise |
450 |
|
StopIteration. We can simply return |
451 |
|
|
452 |
|
* test/test_postgis_db.py (TestPostGISTable.test_title) |
453 |
|
(TestPostGISShapestorePoint.test_all_shapes): New tests for the |
454 |
|
new methods |
455 |
|
|
456 |
|
2003-08-25 Bernhard Herzog <[email protected]> |
457 |
|
|
458 |
|
* Thuban/Model/postgisdb.py (shapetype_map): Add MUTLIPOLYGON. |
459 |
|
|
460 |
|
* test/test_postgis_db.py (PolygonTests): New class containing |
461 |
|
those tests from TestPostGISShapestorePolygon that can also be |
462 |
|
used to test MUTLIPOLYGON tables |
463 |
|
(TestPostGISShapestorePolygon): Most tests are now in PolygonTests |
464 |
|
so derive from that |
465 |
|
(TestPostGISShapestoreMultiPolygon): New class with tests for |
466 |
|
MUTLIPOLYGON tables |
467 |
|
|
468 |
|
* test/postgissupport.py (PostGISDatabase.initdb): Allow the |
469 |
|
tables argument to have tuples with three items to override the |
470 |
|
WKT type used. |
471 |
|
(PostgreSQLServer.get_default_static_data_db): Use the above to |
472 |
|
create a polygon table with MUTLIPOLYGONs |
473 |
|
(point_to_wkt, coords_to_point, polygon_to_wkt, coords_to_polygon) |
474 |
|
(arc_to_wkt, coords_to_multilinestring): Rename from *_to_wkt to |
475 |
|
coords_to* |
476 |
|
(coords_to_multipolygon): New. Convert to MUTLIPOLYGON |
477 |
|
(wkt_converter): New. Map WKT types to converters |
478 |
|
(upload_shapefile): New parameter force_wkt_type to use a |
479 |
|
different WKT type than the default |
480 |
|
|
481 |
|
2003-08-25 Bernhard Herzog <[email protected]> |
482 |
|
|
483 |
|
* Thuban/UI/application.py |
484 |
|
(ThubanApplication.run_db_param_dialog): New. Suitable as a |
485 |
|
db_connection_callback. Main difference is that the dialog run |
486 |
|
from this method doesn't have a parent so it can be used even when |
487 |
|
there is no main window |
488 |
|
(ThubanApplication.OpenSession): Use self.run_db_param_dialog if |
489 |
|
no db_connection_callback was given. This way the dialog pops up |
490 |
|
even when the .thuban file was given as a command line parameter. |
491 |
|
|
492 |
|
2003-08-25 Bernhard Herzog <[email protected]> |
493 |
|
|
494 |
|
* Thuban/UI/view.py (MapCanvas.OnLeftUp): Release the the mouse |
495 |
|
before calling MouseLeftUp. MouseLeftUp may pop up modal dialogs |
496 |
|
which leads to an effectively frozen X session because the user |
497 |
|
can only interact with the dialog but the mouse is still grabbed |
498 |
|
by the canvas. |
499 |
|
Also, call the tool's Hide method before MouseLeftUp because |
500 |
|
MouseLeftUp may change the tool's coordinates. |
501 |
|
|
502 |
|
2003-08-25 Bernhard Herzog <[email protected]> |
503 |
|
|
504 |
|
* Thuban/UI/application.py (ThubanApplication.OpenSession): Catch |
505 |
|
LoadCancelled exceptions and handle them by returning immediately. |
506 |
|
|
507 |
|
2003-08-25 Bernhard Herzog <[email protected]> |
508 |
|
|
509 |
|
GUI part of loading sessions with postgis connections which may |
510 |
|
require user interaction to get passwords or updated parameters |
511 |
|
|
512 |
|
* Thuban/UI/dbdialog.py (DBDialog): Reimplement to make it look a |
513 |
|
bit nucer and be more generic. |
514 |
|
(DBFrame.OnAdd): Adapt to new DBDialog interface |
515 |
|
|
516 |
|
* Thuban/UI/application.py (ThubanApplication.OpenSession): New |
517 |
|
optional parameter db_connection_callback which is passed to |
518 |
|
load_session. |
519 |
|
|
520 |
|
* Thuban/UI/mainwindow.py (MainWindow.run_db_param_dialog): New. |
521 |
|
Suitable as a db_connection_callback |
522 |
|
(MainWindow.OpenSession): Use self.run_db_param_dialog as the |
523 |
|
db_connection_callback of the application's OpenSession method |
524 |
|
|
525 |
|
|
526 |
|
2003-08-25 Bernhard Herzog <[email protected]> |
527 |
|
|
528 |
|
Basic loading of sessions containing postgis connections: |
529 |
|
|
530 |
|
* Thuban/Model/load.py (LoadError): Add doc-string |
531 |
|
(LoadCancelled): New exception class to indicate a cancelled load |
532 |
|
(SessionLoader.__init__): Add the db_connection_callback parameter |
533 |
|
which will be used by the loader to get updated parameters and a |
534 |
|
password for a database connection |
535 |
|
(SessionLoader.__init__): Add the new XML elements to the |
536 |
|
dispatchers dictionary |
537 |
|
(SessionLoader.check_attrs): Two new conversions, ascii to convert |
538 |
|
to a byte-string object and idref as a generic id reference |
539 |
|
(SessionLoader.start_dbconnection) |
540 |
|
(SessionLoader.start_dbshapesource): New. Handlers for the new XML |
541 |
|
elements |
542 |
|
(load_session): Add the db_connection_callback to pass through the |
543 |
|
SessionLoader |
544 |
|
|
545 |
|
* test/test_load.py (TestPostGISLayer, TestPostGISLayerPassword): |
546 |
|
New classes to test loading of sessions with postgis database |
547 |
|
connections. |
548 |
|
|
549 |
|
2003-08-25 Bernhard Herzog <[email protected]> |
550 |
|
|
551 |
|
* Thuban/UI/mainwindow.py (__ThubanVersion__): Remove this and |
552 |
|
replace it and the comment with __BuildDate__ by the Source: and |
553 |
|
Id: cvs keywords as used in the other files. |
554 |
|
|
555 |
|
2003-08-25 Bernhard Herzog <[email protected]> |
556 |
|
|
557 |
|
* Thuban/Model/load.py (SessionLoader.check_attrs): Raise a |
558 |
|
LoadError when a required attribute is missing. The code used to |
559 |
|
be commented out for some reason, but probably should have been |
560 |
|
active. |
561 |
|
|
562 |
|
* test/test_load.py (TestLoadError.test): Test the message in the |
563 |
|
LoadError too to make sure it really is about the missing |
564 |
|
attribute |
565 |
|
|
566 |
|
2003-08-22 Bernhard Herzog <[email protected]> |
567 |
|
|
568 |
|
* test/test_save.py (SaveSessionTest.test_dbf_table) |
569 |
|
(SaveSessionTest.test_joined_table): Add XML validation tests. |
570 |
|
|
571 |
|
2003-08-22 Bernhard Herzog <[email protected]> |
572 |
|
|
573 |
|
Implement saving a session with a postgis connection |
574 |
|
|
575 |
|
* Resources/XML/thuban-0.9.dtd (dbconnection, dbshapesource) New |
576 |
|
elements for database connections and shapestores using db |
577 |
|
connections |
578 |
|
(session): Add the dbconnections to the content model |
579 |
|
|
580 |
|
* Thuban/Model/save.py (SessionSaver.write_db_connections): New. |
581 |
|
Write the db connections |
582 |
|
(SessionSaver.write_session): Call write_db_connections to write |
583 |
|
the connection before the data sources |
584 |
|
(SessionSaver.write_data_containers): Handle postgis shapestores |
585 |
|
|
586 |
|
* test/test_save.py (SaveSessionTest.thubanids) |
587 |
|
(SaveSessionTest.thubanidrefs): Update for new DTD |
588 |
|
(SaveSessionTest.test_save_postgis): New. Test saving a session |
589 |
|
with postgis connections |
590 |
|
|
591 |
|
* Thuban/Model/postgisdb.py (PostGISTable.DBConnection) |
592 |
|
(PostGISTable.TableName): New accessor methods for the connection |
593 |
|
and table name |
594 |
|
|
595 |
|
* test/test_postgis_db.py (TestPostGISTable.test_dbconn) |
596 |
|
(TestPostGISTable.test_dbname): New methods to test the new |
597 |
|
PostGISConnection methods |
598 |
|
|
599 |
|
2003-08-22 Bernhard Herzog <[email protected]> |
600 |
|
|
601 |
|
* Thuban/Model/postgisdb.py (ConnectionError): New exception class |
602 |
|
for exceptions occurring when establishing a Database connection |
603 |
|
(PostGISConnection.connect): Catch psycopg.OperationalError during |
604 |
|
connects and raise ConnectionError. |
605 |
|
|
606 |
|
* test/test_postgis_db.py (TestPostgisDBExceptions): New class for |
607 |
|
tests for database exceptions |
608 |
|
|
609 |
|
2003-08-22 Bernhard Herzog <[email protected]> |
610 |
|
|
611 |
|
Prepare the test suite for tests with required authentication |
612 |
|
|
613 |
|
* test/postgissupport.py (PostgreSQLServer.__init__): Add instance |
614 |
|
variables with two predefined users/passwords, one for the admin |
615 |
|
and one for a non-privileged user. |
616 |
|
(PostgreSQLServer.createdb): Pass the admin name to initdb and add |
617 |
|
the non-privileged user to the database and set the admin password |
618 |
|
(PostgreSQLServer.wait_for_postmaster): Use the admin user name. |
619 |
|
Better error reporting |
620 |
|
(PostgreSQLServer.connection_params) |
621 |
|
(PostgreSQLServer.connection_string): New methods to return |
622 |
|
information about how to connect to the server |
623 |
|
(PostgreSQLServer.execute_sql): New. Convenience method to execute |
624 |
|
SQL statements |
625 |
|
(PostgreSQLServer.require_authentication): Toggle whether the |
626 |
|
server requires authentication |
627 |
|
(PostgreSQLServer.create_user, PostgreSQLServer.alter_user): New. |
628 |
|
Add or alter users |
629 |
|
(PostGISDatabase.initdb): Pass the admin name one the |
630 |
|
subprocesses' command lines. Grant select rights on |
631 |
|
geometry_columns to everybody. |
632 |
|
(upload_shapefile): Use the admin name and password when |
633 |
|
connecting. Grant select rights on the new table to everybody. |
634 |
|
|
635 |
|
* test/test_viewport.py (TestViewportWithPostGIS.setUp): Use the |
636 |
|
server's new methods to get the connection parameters. |
637 |
|
|
638 |
|
* test/test_postgis_session.py (TestSessionWithPostGIS.setUp) |
639 |
|
(TestSessionWithPostGIS.test_remove_dbconn_exception): Use the |
640 |
|
server's new methods to get the connection parameters. |
641 |
|
|
642 |
|
* test/test_postgis_db.py |
643 |
|
(TestPostGISConnection.test_gis_tables_empty) |
644 |
|
(TestPostGISConnection.test_gis_tables_non_empty) |
645 |
|
(PostGISStaticTests.setUp): Use the server's new methods to get |
646 |
|
the connection parameters. |
647 |
|
|
648 |
|
2003-08-22 Bernhard Herzog <[email protected]> |
649 |
|
|
650 |
|
* Thuban/UI/about.py (About.__init__): Add the psycopg version. |
651 |
|
|
652 |
|
* Thuban/version.py: Add psycopg version |
653 |
|
|
654 |
|
* Thuban/Model/postgisdb.py (psycopg_version): New. Return the |
655 |
|
version of the psycopg module |
656 |
|
|
657 |
|
2003-08-22 Bernhard Herzog <[email protected]> |
658 |
|
|
659 |
|
* Thuban/UI/dbdialog.py (DBPwdDlg): Removed because it's not used. |
660 |
|
(DBFrame.OnEdit): Removed because it's not used and wouldn't work |
661 |
|
at the moment. The functionality should probably be implemented |
662 |
|
some time, though. |
663 |
|
(DBFrame.OnRemove): Display a message if the connection can't be |
664 |
|
removed because it's still in use. |
665 |
|
|
666 |
|
2003-08-22 Jan-Oliver Wagner <[email protected]> |
667 |
|
|
668 |
|
* Thuban/UI/about.py (About.__init__): split up the huge about |
669 |
|
text into elements/lists for easier translation. This fixes bug |
670 |
|
https://intevation.de/rt/webrt?serial_num=2058 |
671 |
|
Also, made some forgotten string available for the i18n. |
672 |
|
|
673 |
|
2003-08-21 Bernhard Herzog <[email protected]> |
674 |
|
|
675 |
|
Make postgis support really optional including insensitive menu |
676 |
|
items. |
677 |
|
|
678 |
|
* Thuban/Model/postgisdb.py (has_postgis_support): New. Return |
679 |
|
whether the postgis is supported. |
680 |
|
|
681 |
|
* Thuban/UI/dbdialog.py: Put the psycopg import into try..except |
682 |
|
to make postgis support optional |
683 |
|
|
684 |
|
* Thuban/UI/mainwindow.py (_has_postgis_support): New. Context |
685 |
|
version of Thuban.Model.postgisdb.has_postgis_support |
686 |
|
(database_management command): Make it only sensitive if postgis |
687 |
|
is supported. |
688 |
|
|
689 |
|
2003-08-21 Jan-Oliver Wagner <[email protected]> |
690 |
|
|
691 |
|
* Doc/manual/thuban-manual.xml: Added CVS revision for rev-history. |
692 |
|
(section Adding and Removing Layers): Added text and described |
693 |
|
multi-selection. |
694 |
|
(chapter Extensions): New. |
695 |
|
|
696 |
|
2003-08-21 Jan-Oliver Wagner <[email protected]> |
697 |
|
|
698 |
|
* Thuban/UI/mainwindow.py (MainWindow.AddLayer): Changed dialog |
699 |
|
settings to allow multiple files to load into the map. |
700 |
|
Also reduced selection to *.shp as a default. |
701 |
|
|
702 |
2003-08-20 Bernhard Herzog <[email protected]> |
2003-08-20 Bernhard Herzog <[email protected]> |
703 |
|
|
704 |
Add dialogs and commands to open database connections and add |
Add dialogs and commands to open database connections and add |