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