1 |
|
2004-03-19 Martin Schulze <[email protected]> |
2 |
|
|
3 |
|
* Extensions/wms/test/test_parser.py (TestWMSCapabilitiesParser): |
4 |
|
Moved path detection and adding into a module of its own, |
5 |
|
adjustpath, which exports thubandir as main Thuban directory. |
6 |
|
|
7 |
|
* Extensions/wms/test/test_ogclib.py (TestWMSLib): Moved path |
8 |
|
detection and adding into a module of its own, adjustpath, which |
9 |
|
exports thubandir as main Thuban directory. Reorganised the |
10 |
|
module in order to support the SkipTest feature for Thuban test |
11 |
|
cases. |
12 |
|
|
13 |
|
* Extensions/wms/test/adjustpath.py: Moved path detection and |
14 |
|
adding into a module of its own. |
15 |
|
|
16 |
|
2004-03-18 Martin Schulze <[email protected]> |
17 |
|
|
18 |
|
* Extensions/wms/test/test_parser.py: Added another test for |
19 |
|
checking whether the WMS XML parser (to be implemented) returns |
20 |
|
the information we expect. This requires a sample WMS WML file |
21 |
|
(sample.xml) which has been extracted from the frida server and |
22 |
|
"improved" manually. |
23 |
|
|
24 |
|
* Extensions/wms/test/test_ogclib.py: Added legacy code to add the |
25 |
|
main Thuban directory to the path in order to be able to import |
26 |
|
random modules. Adjusted the PyOGCLib detection to reuse the |
27 |
|
information gathered. Also added a note about the PYTHONPATH |
28 |
|
environment variable. |
29 |
|
|
30 |
|
* Extensions/wms/test/test_ogclib.py: The format specification is |
31 |
|
a mime-type, not a graphic format, hence image/jpeg wou ld be the |
32 |
|
proper format and not JPEG. We'll also have to take care of the |
33 |
|
encoding of / as %2F. |
34 |
|
|
35 |
|
2004-03-16 Martin Schulze <[email protected]> |
36 |
|
|
37 |
|
* Extensions/wms/test/test_ogclib.py: Added a (hopefully) |
38 |
|
comprehensive test for the getMapURL method, built compare URLs |
39 |
|
according to the documentation in OGC 01-068r3 |
40 |
|
|
41 |
|
* Extensions/wms/capabilities.py (WMSCapabilities): Added the |
42 |
|
class WMSCapabilities to manage capabilites, will incorporate |
43 |
|
parsing the capabilities response and provide details for other |
44 |
|
classes. |
45 |
|
|
46 |
|
2004-03-12 Bernhard Herzog <[email protected]> |
47 |
|
|
48 |
|
Support views in addition to normal tables in the postgis |
49 |
|
shapestore |
50 |
|
|
51 |
|
* Thuban/Model/postgisdb.py |
52 |
|
(PostGISShapeStore._fetch_table_information): Add a fallback for |
53 |
|
the case where the table name is not in the geometry_columns |
54 |
|
table. This is usually the case for views. Also, set |
55 |
|
self.shapestore here. |
56 |
|
(PostGISShapeStore.ShapeType): No need to query the database all |
57 |
|
the time. The shape type is now determined in |
58 |
|
_fetch_table_information |
59 |
|
|
60 |
|
* test/postgissupport.py (PostgreSQLServer.new_postgis_db) |
61 |
|
(PostgreSQLServer.get_static_data_db, PostGISDatabase.__init__): |
62 |
|
New parameter to specify views. |
63 |
|
(PostGISDatabase.has_data): Also compare the views. New views |
64 |
|
parameter |
65 |
|
(PostGISDatabase.initdb): Create the views. |
66 |
|
(PostgreSQLServer.get_default_static_data_db): Add the v_landmarks |
67 |
|
view |
68 |
|
|
69 |
|
* test/test_postgis_db.py |
70 |
|
(TestPostGISShapestorePointFromViews): New. Test a |
71 |
|
PostGISShapeStore with a view |
72 |
|
(TestPostGISShapestorePointOIDAsGIDColumn.setUp): Pass the name of |
73 |
|
the geometry_column explicitly to test whether that works |
74 |
|
|
75 |
|
2004-03-12 Bernhard Herzog <[email protected]> |
76 |
|
|
77 |
|
Final step for explicit id/geometry columns: Loading and saving |
78 |
|
|
79 |
|
* Resources/XML/thuban-1.1.dtd: New. Derived from thuban-1.0.dtd |
80 |
|
with the following changes: |
81 |
|
(dbshapesource): Two new attributes id_column and geometry_column |
82 |
|
|
83 |
|
* Thuban/Model/save.py (SessionSaver.write): Use the new dtd |
84 |
|
(SessionSaver.write_session): Use the new namespace |
85 |
|
(SessionSaver.write_data_containers): Write the new dbshapesource |
86 |
|
parameters |
87 |
|
|
88 |
|
* Thuban/Model/load.py (SessionLoader.__init__): New namespace for |
89 |
|
the new file format version |
90 |
|
(SessionLoader.start_dbshapesource): Handle the new db parameters |
91 |
|
|
92 |
|
* test/test_save.py: Update to the new dtd and namespace |
93 |
|
(SaveSessionTest.test_save_postgis): Update the NonConnectionStore |
94 |
|
mock object to provide a working IDColumn method. |
95 |
|
|
96 |
|
* test/test_load_1_0.py: New. Copy of the test_load.py before |
97 |
|
today's changes but with the round-trip tests removed. |
98 |
|
|
99 |
|
* test/test_load_0_9.py: Update doc-string. |
100 |
|
|
101 |
|
* test/test_load.py: Update all .thuban files to the new dtd and |
102 |
|
namespace. |
103 |
|
(TestPostGISLayer.file_contents): Add the new dbshapesource |
104 |
|
paramters |
105 |
|
|
106 |
|
2004-03-11 Bernhard Herzog <[email protected]> |
107 |
|
|
108 |
|
Next step for explicit id/geometry columns: User interaction |
109 |
|
|
110 |
|
* Thuban/UI/dbdialog.py (ChooseDBTableDialog.__init__): Rework how |
111 |
|
the dialog is constructed. Add combo boxes to select id and |
112 |
|
geometry column. Rename some instance variables. |
113 |
|
(ChooseDBTableDialog.GetTable): Return id and geometry column |
114 |
|
names |
115 |
|
(ChooseDBTableDialog.OnTableSelect): New. Event handler for |
116 |
|
selections in the table list |
117 |
|
|
118 |
|
* Thuban/UI/mainwindow.py (MainWindow.AddDBLayer): Use id_column |
119 |
|
and geometry_column |
120 |
|
|
121 |
|
* Thuban/Model/session.py (Session.OpenDBShapeStore): Add the new |
122 |
|
parameters for id_column and geometry column of PostGISShapeStore |
123 |
|
here as well. |
124 |
|
|
125 |
|
* Thuban/Model/postgisdb.py (type_map): Add ROWID psycog type. |
126 |
|
(_raw_type_map): New. Map raw PostgreSQL type ints to thuban types |
127 |
|
(PostGISConnection.GeometryTables): Use a better query to |
128 |
|
determine which relations in the database might be usable for |
129 |
|
shapestores. Now supports views as well but is more PostgreSQL |
130 |
|
specific |
131 |
|
(PostGISConnection.table_columns): New. Somewhat experimental |
132 |
|
method to let the db dialogs provide lists of columns to users so |
133 |
|
that they can select id and geometry columns. |
134 |
|
(PostGISTable.__init__): The default value of the id_column |
135 |
|
parameter is now None it still means "gid" effectively, though. |
136 |
|
(PostGISTable.IDColumn): New introspection method to return a |
137 |
|
column object for the id column |
138 |
|
(PostGISShapeStore.GeometryColumn): New introspection method to |
139 |
|
return a column object for the geometry column |
140 |
|
|
141 |
|
* test/test_postgis_db.py |
142 |
|
(TestPostGISConnection.test_gis_tables_non_empty): |
143 |
|
Removed. Subsumed by the new: |
144 |
|
(TestPostGISConnection.test_gis_tables_with_views_and_tables): |
145 |
|
New. Tes the GeometryTables and table_columns methods with actual |
146 |
|
tables and views. |
147 |
|
(PointTests.test_id_column, PointTests.test_geometry_column): |
148 |
|
New. tests for the new methods. |
149 |
|
(TestPostGISShapestorePoint.setUp) |
150 |
|
(TestPostGISShapestorePointSRID.setUp) |
151 |
|
(TestPostGISShapestorePointExplicitGIDColumn.setUp): Fill the |
152 |
|
instance variables needed by the new tests |
153 |
|
|
154 |
|
2004-03-11 Bernhard Herzog <[email protected]> |
155 |
|
|
156 |
|
* Thuban/UI/classgen.py (GenQuantilesPanel.GetList): The row |
157 |
|
numbers given to ReadValue are ordinals. |
158 |
|
|
159 |
|
2004-03-11 Bernhard Herzog <[email protected]> |
160 |
|
|
161 |
|
Elimiate the requirement for PostGIS tables to have a column |
162 |
|
called "gid". |
163 |
|
|
164 |
|
* Thuban/Model/postgisdb.py (PostGISTable.__init__): New parameter |
165 |
|
id_column to specify which column to use to identify rows. Also |
166 |
|
new instance variables id_column and quoted_id_column |
167 |
|
(PostGISTable.RowIdToOrdinal, PostGISTable.RowOrdinalToId) |
168 |
|
(PostGISTable.ReadRowAsDict, PostGISTable.ReadValue) |
169 |
|
(PostGISTable.SimpleQuery): Use the id column name provided to the |
170 |
|
constructor instead of "gid" |
171 |
|
(PostGISShapeStore.__init__): New parameter id_column analogously |
172 |
|
to PostGISTable.__init__. This parameter is simply passed through |
173 |
|
to the base class constructor |
174 |
|
(PostGISShapeStore._create_col_from_description): Fix typo in |
175 |
|
doc-string |
176 |
|
(PostGISShapeStore.Shape, PostGISShapeStore.AllShapes) |
177 |
|
(PostGISShapeStore.ShapesInRegion): Use the id column name |
178 |
|
provided to the constructor instead of "gid" |
179 |
|
|
180 |
|
* test/postgissupport.py |
181 |
|
(PostgreSQLServer.get_default_static_data_db): New static table |
182 |
|
landmarks_point_id with an id column != "gid. Update the comments |
183 |
|
a bit. |
184 |
|
(skip_if_addgeometrycolumn_does_not_use_quote_ident): Fix typo in |
185 |
|
doc- |
186 |
|
(upload_shapefile): New parameter gid_column to use a name other |
187 |
|
than "gid" for the column to store the shape ids |
188 |
|
|
189 |
|
* test/test_postgis_db.py (TableTests): New. Mixin-class |
190 |
|
containing all tests previously in TestPostGISTable. The actual |
191 |
|
tests are the same but the code is a bit more configurable to |
192 |
|
allow for different id columns etc. |
193 |
|
(TestPostGISTable): Derive from TableTests now for the actual |
194 |
|
tests. |
195 |
|
(TestPostGISTableExplicitGIDColumn): New. Like TestPostGISTable |
196 |
|
except that it the landmarks_point_id table to test the id_column |
197 |
|
parameter |
198 |
|
(PointTests): Extend the doc-string |
199 |
|
(TestPostGISShapestorePointExplicitGIDColumn) |
200 |
|
(TestPostGISShapestorePointOIDAsGIDColumn): New classes derived |
201 |
|
from PointTests to test the explicit id_column parameter. One |
202 |
|
tests with the name of the column holding the shape ids, the other |
203 |
|
uses PostgreSQL's OID column. For the latter a number of methods |
204 |
|
have to be overwritten to make them independent of the actual id |
205 |
|
values. |
206 |
|
|
207 |
|
2004-03-08 Silke Reimer <[email protected]> |
208 |
|
|
209 |
|
Update debian directory: |
210 |
|
|
211 |
|
* debian/changelog: Added new version. |
212 |
|
* deiban/rules: Updated management of patches (with cbds) |
213 |
|
* debian/control: Added cbds to dependencies |
214 |
|
* debian/patches/*: New. Adds better support for patches of thuban in |
215 |
|
debian |
216 |
|
* debian/menu: Syntax of menu changed slightly |
217 |
|
* debian/setup.py.patch: removed because it has been moved to |
218 |
|
debian/patechs/setup.py.patch |
219 |
|
|
220 |
|
|
221 |
|
2004-02-26 Bernhard Herzog <[email protected]> |
222 |
|
|
223 |
|
Create the Doc/technotes directory for text files with information |
224 |
|
for developers |
225 |
|
|
226 |
|
* Doc/technotes/README: New. README for the technotes |
227 |
|
|
228 |
|
* Doc/technotes/coding_guidelines.txt: New. Coding guidelines for |
229 |
|
Thuban |
230 |
|
|
231 |
|
* Doc/technotes/release_process.txt: New. Used to be |
232 |
|
HOWTO-Release. Now slightly adapted to technote formatting style. |
233 |
|
|
234 |
|
* HOWTO-Release: Removed. It's contents are now in |
235 |
|
Doc/technotes/release_process.txt |
236 |
|
|
237 |
|
2004-02-25 Bernhard Herzog <[email protected]> |
238 |
|
|
239 |
|
* libraries/thuban/wxproj.cpp (get_wx_version): New. Return the |
240 |
|
version of wxWindows the module was compiled with so we can check |
241 |
|
that against the wxPython version. |
242 |
|
|
243 |
|
* Thuban/version.py (thuban_branch, thuban_release): New variables |
244 |
|
controlling which and how Thuban versions are shown. See the |
245 |
|
comments for details. |
246 |
|
(verify_versions): Also check that the wx version that wxproj is |
247 |
|
compiled against matches that of the wxPython we use at runtime |
248 |
|
|
249 |
|
2004-02-20 Bernhard Herzog <[email protected]> |
250 |
|
|
251 |
|
* Extensions/wms/wms.py (epsg_code_to_projection): Use |
252 |
|
get_system_proj_file to read the epsg projections. The old way |
253 |
|
depended on the current directory being the top Thuban directory. |
254 |
|
|
255 |
|
2004-02-20 Bernhard Herzog <[email protected]> |
256 |
|
|
257 |
|
* Extensions/svgexport/test/test_svgmapwriter.py |
258 |
|
(TestVirtualDC.test_clippath): Remove a debug print |
259 |
|
|
260 |
|
2004-02-20 Bernhard Herzog <[email protected]> |
261 |
|
|
262 |
|
* Extensions/svgexport/__init__.py: New. Turn |
263 |
|
Extensions/svgexport into a package. |
264 |
|
|
265 |
|
* Extensions/svgexport/svgmapwriter.py: Reorder the imports and |
266 |
|
doc-string a bit. The doc-string must come first, otherwise it's |
267 |
|
not a doc-string. The __future__ import must be the first thing |
268 |
|
after the doc-string. Use only double quotes in doc-strings. |
269 |
|
Single quotes trip up emacs syntax highlighting if the text |
270 |
|
contains apostrophes. |
271 |
|
|
272 |
|
2004-02-20 Bernhard Herzog <[email protected]> |
273 |
|
|
274 |
|
* Extensions/svgexport/test/__init__.py, |
275 |
|
Extensions/svgexport/test/test_svgmapwriter.py: New. Initial test |
276 |
|
suite for svgexport |
277 |
|
|
278 |
|
* test/runtests.py (find_test_modules): New. Function with the |
279 |
|
module finding code from main. |
280 |
|
(main): Use find_test_modules to figure out the default test |
281 |
|
modules and take modules from Extensions.svgexport.test too. |
282 |
|
|
283 |
|
2004-02-19 Bernhard Herzog <[email protected]> |
284 |
|
|
285 |
|
* Thuban/UI/application.py (ThubanApplication.OnInit): Make sure |
286 |
|
the mainwindow has a reference to the map of the initial session. |
287 |
|
This fixes a bug introduced with the fix for RT#2245 |
288 |
|
|
289 |
|
2004-02-19 Bernhard Herzog <[email protected]> |
290 |
|
|
291 |
|
* Extensions/svgexport/svgsaver.py, |
292 |
|
Extensions/svgexport/svgmapwriter.py, |
293 |
|
Extensions/svgexport/maplegend.py: Added again. This time in the |
294 |
|
correct place. |
295 |
|
|
296 |
|
2004-02-17 Bernhard Herzog <[email protected]> |
297 |
|
|
298 |
|
Fix for RT#2245 |
299 |
|
|
300 |
|
* Thuban/UI/application.py (ThubanApplication.OnInit): Initialize |
301 |
|
instance variables before trying to create any windows. Creating |
302 |
|
windows can start an event loop if e.g. message boxes are popped |
303 |
|
up for some reason, and event handlers, especially EVT_UPDATE_UI |
304 |
|
may want to access things from the application. |
305 |
|
(ThubanApplication.maps_changed): The mainwindow may not have been |
306 |
|
created yet, so check whether it has been created before calling |
307 |
|
its methods |
308 |
|
|
309 |
|
* Thuban/UI/view.py (MapCanvas.OnIdle): Only try to redraw if we |
310 |
|
have a map |
311 |
|
|
312 |
|
2004-02-17 Bernhard Herzog <[email protected]> |
313 |
|
|
314 |
|
* test/test_svgmapwriter.py, Extensions/svgsaver.py, |
315 |
|
Extensions/svgmapwriter.py, Extensions/maplegend.py, |
316 |
|
extensions/svgexport/svgsaver.py, |
317 |
|
extensions/svgexport/svgmapwriter.py, |
318 |
|
extensions/svgexport/maplegend.py: Removed. These files were in |
319 |
|
the wrong places or didn't work at all. |
320 |
|
|
321 |
|
2004-02-16 Bernhard Herzog <[email protected]> |
322 |
|
|
323 |
|
* Thuban/UI/view.py (MapCanvas.Export): Remove accidentally added |
324 |
|
line |
325 |
|
|
326 |
|
2004-02-16 Bernhard Herzog <[email protected]> |
327 |
|
|
328 |
|
* Thuban/UI/view.py (MapCanvas.Export): Avoid UnboundLocalError. |
329 |
|
|
330 |
|
2004-02-15 Markus Rechtien <[email protected]> |
331 |
|
|
332 |
|
* Extensions/svgexport/svgmapwriter.py: New. Adds the capability |
333 |
|
to write a session to a file in SVG format. |
334 |
|
* Extensions/svgexport/svgsaver.py: New. Uses svgmapwriter.py |
335 |
|
to write a SVG map of a session. |
336 |
|
* Extensions/svgexport/maplegend: New. Writes a basic maplegend |
337 |
|
in SVG format for the current session. |
338 |
|
|
339 |
|
2004-02-13 Bernhard Herzog <[email protected]> |
340 |
|
|
341 |
|
* Thuban/UI/mainwindow.py (MainWindow.AddDBLayer): When the layer |
342 |
|
can't be created, return immediately after displaying the error |
343 |
|
message. |
344 |
|
|
345 |
|
2004-02-11 Bernhard Herzog <[email protected]> |
346 |
|
|
347 |
|
Handle postgis tables with more than one geometry column. |
348 |
|
|
349 |
|
* Thuban/Model/postgisdb.py |
350 |
|
(PostGISTable._fetch_table_information): Delegate the creation of |
351 |
|
column objects to a different method so that we can extend that in |
352 |
|
derived classes |
353 |
|
(PostGISTable._create_col_from_description): New. Column object |
354 |
|
creation part of _fetch_table_information |
355 |
|
(PostGISShapeStore._create_col_from_description): New. Extend |
356 |
|
inherited method to handle geometry columns |
357 |
|
(PostGISShapeStore.__init__): New parameter geometry_column to |
358 |
|
specify which geometry column to use. Optional but mandatory for |
359 |
|
tables with more than one geometry column |
360 |
|
(PostGISShapeStore._fetch_table_information): Also use the name of |
361 |
|
the geometry column when looking for the srid |
362 |
|
(PostGISShapeStore.ShapeType): Also use the name of the geometry |
363 |
|
column when looking for the shape type |
364 |
|
|
365 |
|
* test/test_save.py (SaveSessionTest.test_save_postgis): Adapt |
366 |
|
NonConnectionStore to changes in the PostGISShapeStore |
367 |
|
|
368 |
|
* test/test_postgis_db.py |
369 |
|
(TestPostGISSpecialCases.test_shapestore_two_geom_cols): Test |
370 |
|
PostGISShapeStore with tables having two geometry columns. |
371 |
|
|
372 |
|
2004-02-10 Bernhard Herzog <[email protected]> |
373 |
|
|
374 |
|
Fix some postgis problems. What remains to be done is real |
375 |
|
handling of SRIDs as they affect how reprojection is done |
376 |
|
|
377 |
|
* Thuban/Model/postgisdb.py (quote_identifier): Fix typo in |
378 |
|
doc-string |
379 |
|
(PostGISShapeStore._fetch_table_information): New. Extend |
380 |
|
inherited method to retrieve srid |
381 |
|
(PostGISShapeStore.BoundingBox): Handle tables without data. |
382 |
|
extent yields NULL for those |
383 |
|
(PostGISShapeStore.ShapesInRegion): Use the srid of the table. |
384 |
|
|
385 |
|
* test/test_postgis_db.py |
386 |
|
(TestPostGISSpecialCases.test_shapestore_empty_table): New test |
387 |
|
for the special case of a table without any data |
388 |
|
(TestPostGISShapestorePointSRID): New class with tests for a table |
389 |
|
that uses srids |
390 |
|
(PolygonTests): Fix a doc-string typo |
391 |
|
|
392 |
|
* test/postgissupport.py (PostGISDatabase.__init__): New parameter |
393 |
|
reference_systems with a specification of spacial reference |
394 |
|
systems to create in the new db. |
395 |
|
(PostgreSQLServer.new_postgis_db) |
396 |
|
(PostgreSQLServer.get_static_data_db): New parameter |
397 |
|
reference_systems to be passed through ultimately to |
398 |
|
PostGISDatabase. In new_postgis_db also check whether an existing |
399 |
|
db already has the right srids |
400 |
|
(PostgreSQLServer.get_default_static_data_db): Add srids and a |
401 |
|
table that uses srids |
402 |
|
(PostGISDatabase.initdb): Create the entries for the reference |
403 |
|
systems |
404 |
|
(PostGISDatabase.has_data): Add reference_systems parameter to |
405 |
|
check for those too |
406 |
|
(upload_shapefile): New parameter srid to create tables with a |
407 |
|
specific srid |
408 |
|
|
409 |
|
2004-02-06 Frank Koormann <[email protected]> |
410 |
|
|
411 |
|
* po/pt_BR.po: Fixed charset |
412 |
|
|
413 |
|
2004-02-05 Frank Koormann <[email protected]> |
414 |
|
|
415 |
|
* po/pt_BR.po: Fixed format string for error message, missing %s |
416 |
|
added (Thuban/UI/application.py:273) |
417 |
|
|
418 |
|
2004-02-03 Frank Koormann <[email protected]> |
419 |
|
|
420 |
|
First version of Portuguese (Brazilian) translation |
421 |
|
|
422 |
|
* po/pt_BR.po: New, translation of pot (2004-01-15 16:07+0300) for |
423 |
|
Brazilian Portuguese by Eduardo Patto Kanegae. |
424 |
|
|
425 |
|
* Thuban/UI/about.py (About.__init.py__): Added Eduardo to the list of |
426 |
|
translators. |
427 |
|
|
428 |
|
|
429 |
|
2004-01-22 Frank Koormann <[email protected]> |
430 |
|
|
431 |
|
* Doc/manual/thuban-manual.xml: Added section on installation of |
432 |
|
Thuban under Win32 systems. Fixed image path references in the postgis |
433 |
|
section. Some minor source formattings. |
434 |
|
|
435 |
2004-01-21 Frank Koormann <[email protected]> |
2004-01-21 Frank Koormann <[email protected]> |
436 |
|
|
437 |
Make Thuban remember path selections (at least for one application run). |
Make Thuban remember path selections (at least for one application run). |