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]> |
2004-02-20 Bernhard Herzog <[email protected]> |
256 |
|
|
257 |
* Extensions/svgexport/test/test_svgmapwriter.py |
* Extensions/svgexport/test/test_svgmapwriter.py |