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