1 |
|
2003-10-08 Bernhard Herzog <[email protected]> |
2 |
|
|
3 |
|
* Thuban/Model/resource.py (read_proj_file): Return the warnings |
4 |
|
too. Update the doc-string |
5 |
|
(get_proj_files): Removed. It wasn't used anywhere |
6 |
|
(get_system_proj_files, get_system_proj_file): Rename to |
7 |
|
get_system_proj_file and return the ProjFile object and not a list |
8 |
|
of ProjFile objects. Update the callers. |
9 |
|
(get_user_proj_files, get_user_proj_file): Rename to |
10 |
|
get_user_proj_file return the ProjFile object and not a list of |
11 |
|
ProjFile objects. Update the callers. |
12 |
|
(ProjFileReader.__init__): New instance variable for the warnings. |
13 |
|
Rename the __pf ivar to projfile. Update the methods referring to |
14 |
|
__pf |
15 |
|
(ProjFileReader.end_projection): Catch any errors raised when |
16 |
|
instantiating the projection and record that as an error. The |
17 |
|
projection will not be in the final ProjFile object. |
18 |
|
(ProjFileReader.GetWarnings): New method to return the warnings. |
19 |
|
|
20 |
|
* Thuban/UI/projdialog.py (ProjFrame.show_warnings): New method to |
21 |
|
show the warnings from the projfile reader |
22 |
|
(ProjFrame._OnImport): Deal with any warnings returned by |
23 |
|
read_proj_file |
24 |
|
(ProjFrame.__FillAvailList): Deal with any warnings returned by |
25 |
|
get_system_proj_file or get_user_proj_file. |
26 |
|
|
27 |
|
* test/test_proj.py (TestProjFile.doTestRead): Check the warnings. |
28 |
|
(TestProjFileWithInvalidParameters.file_contents): New test cases |
29 |
|
to test whether read_proj_file handles invalid projection |
30 |
|
parameters correctly |
31 |
|
(TestProjFile.test_get_system_proj_file): New. Simple test for |
32 |
|
resource.get_system_proj_file |
33 |
|
|
34 |
|
2003-10-07 Bernhard Herzog <[email protected]> |
35 |
|
|
36 |
|
* test/test_derivedshapestore.py |
37 |
|
(TestDerivedShapeStoreExceptions.tearDown): Clear the session |
38 |
|
properly so that the temporary directories get deleted correctly |
39 |
|
|
40 |
|
2003-10-06 Bernhard Herzog <[email protected]> |
41 |
|
|
42 |
|
Handle the title changes in a proper MVC way. |
43 |
|
|
44 |
|
* Thuban/UI/mainwindow.py (MainWindow.__init__): Subscribe to the |
45 |
|
canvas' TITLE_CHANGED messages |
46 |
|
(MainWindow.update_title): New. Update the main window's title |
47 |
|
(MainWindow.__SetTitle): Removed. Use update_title instead. |
48 |
|
(MainWindow.SetMap): Use update_title instead of __SetTitle |
49 |
|
(MainWindow.RenameMap): Do change the window title explicitly |
50 |
|
here. That's handled in a proper MVC way now. |
51 |
|
(MainWindow.title_changed): New. Subscriber for the TITLE_CHANGED |
52 |
|
messages |
53 |
|
|
54 |
|
* Thuban/Lib/connector.py (Conduit): New class to help classes |
55 |
|
that forward messages |
56 |
|
|
57 |
|
* Thuban/UI/viewport.py: Forward the map's TITLE_CHANGED messages |
58 |
|
(ViewPort): Derive from Conduit instead of Publisher |
59 |
|
(ViewPort.Subscribe, ViewPort.Unsubscribe): Use the new base class |
60 |
|
when calling the inherited versions |
61 |
|
(ViewPort._subscribe_map, ViewPort._unsubscribe_map): New helper |
62 |
|
methods to subscribe and unsubscribe map messages |
63 |
|
(ViewPort.SetMap, ViewPort.Destroy): Use the new helper methods to |
64 |
|
handle the map subscriptions |
65 |
|
(ViewPort.Map, ViewPort.map_projection_changed) |
66 |
|
(ViewPort.layer_projection_changed): Add or update doc-strings |
67 |
|
|
68 |
|
* test/test_connector.py (TestPublisher.test_issue_simple): Fix |
69 |
|
typo |
70 |
|
(MyConduit): Helper class for the Conduit test. |
71 |
|
(TestConduit): Test cases for Conduit |
72 |
|
|
73 |
|
* test/test_connector.py: Use support.run_tests as main. |
74 |
|
|
75 |
|
* test/test_viewport.py (ViewPortTest.setUp): Also subscribe to |
76 |
|
the TITLE_CHANGED messages |
77 |
|
(ViewPortTest.test_forwarding_title_changed): New test to check |
78 |
|
whether the viewport forwards the map's TITLE_CHANGED messages |
79 |
|
(TestViewportWithPostGIS.tearDown): Call the map's Destroy method |
80 |
|
after the port's because the latter may require a still functional |
81 |
|
map. |
82 |
|
|
83 |
|
2003-10-06 Bernhard Herzog <[email protected]> |
84 |
|
|
85 |
|
* Thuban/UI/application.py (ThubanApplication.maps_changed): Add |
86 |
|
doc-string |
87 |
|
|
88 |
|
2003-10-06 Bernhard Herzog <[email protected]> |
89 |
|
|
90 |
|
* test/test_viewport.py (ViewPortTest.setUp) |
91 |
|
(SimpleViewPortTest.test_init_with_size): Move the test for the |
92 |
|
initial size as a constructor parameter from ViewPortTest.setUp |
93 |
|
method to a new separate test in SimpleViewPortTest. |
94 |
|
|
95 |
|
2003-10-06 Bernhard Herzog <[email protected]> |
96 |
|
|
97 |
|
* test/test_viewport.py (MockView): New class derived from |
98 |
|
ViewPort with a mock implementation of GetTextExtent to be used in |
99 |
|
the test cases |
100 |
|
(ViewPortTest.setUp): Use MockView instead of ViewPort |
101 |
|
|
102 |
|
* Thuban/UI/viewport.py (ViewPort.GetTextExtent): Turn this method |
103 |
|
into what would be a "pure virtual function" in C++: always raise |
104 |
|
NotImplementedError. Mock implementations for test cases don't |
105 |
|
belong into the real code |
106 |
|
|
107 |
|
2003-10-02 Bernhard Herzog <[email protected]> |
108 |
|
|
109 |
|
* test/test_layer.py (TestLayer.test_empty_layer): Explicitly |
110 |
|
close the dbf file we create so that it's contents have been |
111 |
|
written properly. |
112 |
|
|
113 |
|
* libraries/shapelib/shptree.c, libraries/shapelib/shpopen.c, |
114 |
|
libraries/shapelib/shapefil.h, libraries/shapelib/dbfopen.c: |
115 |
|
Update to shapelib 1.2.10 |
116 |
|
|
117 |
|
2003-10-01 Jan-Oliver Wagner <[email protected]> |
118 |
|
|
119 |
|
* Thuban/UI/tree.py, Thuban/UI/main.py: Remove the #! line as |
120 |
|
it annoys lintian which warns about these files not being |
121 |
|
executable. The #! isn't necessary here since if you absolutely |
122 |
|
must execute them you can always say "python <filename>". |
123 |
|
|
124 |
|
2003-09-26 Bernhard Herzog <[email protected]> |
125 |
|
|
126 |
|
* Thuban/Model/classgen.py (GenQuantiles0): Removed since it's |
127 |
|
only used in GREAT-ER but not used in Thuban itself. When GREAT-ER |
128 |
|
is ported to a newer the import will fail, so it should be noticed |
129 |
|
immediately that this function is gone. |
130 |
|
Fixes RT#1919 |
131 |
|
|
132 |
|
2003-09-26 Bernhard Herzog <[email protected]> |
133 |
|
|
134 |
|
Add a DTD for the projection files and make thuban write valid |
135 |
|
projection files |
136 |
|
|
137 |
|
* Resources/XML/projfile.dtd: New. DTD for thuban's projection |
138 |
|
files |
139 |
|
|
140 |
|
* Thuban/Model/resource.py (ProjFileSaver.write): Use |
141 |
|
'projectionlist' as the name in the document type declaration so |
142 |
|
that it matches the element type of the root element. |
143 |
|
|
144 |
|
* test/test_proj.py (sample_projfile, sample_projfile2): Use |
145 |
|
'projectionlist' as the name in the document type declaration just |
146 |
|
as it is done now in the files thuban would write |
147 |
|
(sample_projfile, sample_projfile_data): Fix spelling of |
148 |
|
"Mercator" |
149 |
|
(TestProjFile.doTestWrite): Validate the written and the expected |
150 |
|
XML data |
151 |
|
(TestProjFile): Derive from ValidationTest so that we can run xml |
152 |
|
validation tests |
153 |
|
|
154 |
|
2003-09-24 Bernhard Herzog <[email protected]> |
155 |
|
|
156 |
|
* Thuban/UI/renderer.py (ExportRenderer.render_legend): Do not |
157 |
|
modify the list returned by map.Layers() in place since it is the |
158 |
|
actual list of layers used by the map. |
159 |
|
|
160 |
|
2003-09-23 Jan-Oliver Wagner <[email protected]> |
161 |
|
|
162 |
|
* Doc/manual/thuban-manual.xml: Added subsection to chapter |
163 |
|
Extensions to describe the extensions coming with the Thuban |
164 |
|
standard package (gns2shp and importAPR). |
165 |
|
|
166 |
|
2003-09-23 Bernhard Herzog <[email protected]> |
167 |
|
|
168 |
|
* libraries/thuban/wxproj.cpp (project_point): if there's an |
169 |
|
inverse but no forward projection, convert to degrees after |
170 |
|
applying the inverse projection. Fixes RT#2096 |
171 |
|
|
172 |
|
* test/test_wxproj.py: New. Test cases for wxproj.so. One test |
173 |
|
implicitly tests for the fix to RT#2096 |
174 |
|
|
175 |
|
* test/support.py (FloatComparisonMixin.assertFloatSeqEqual): |
176 |
|
Check that the sequences have the same lengths |
177 |
|
|
178 |
|
* Resources/Projections/defaults.proj (Geographic projection): Use |
179 |
|
a much more precise value for the to_meter attribute. |
180 |
|
|
181 |
|
2003-09-22 Bernhard Herzog <[email protected]> |
182 |
|
|
183 |
|
* test/support.py (initthuban): Make sure to unset the LANG env. |
184 |
|
var. so that tests that compare translated strings work. Solves RT |
185 |
|
#2094 |
186 |
|
|
187 |
|
2003-09-22 Jan-Oliver Wagner <[email protected]> |
188 |
|
|
189 |
|
Small improvement of APR import. |
190 |
|
|
191 |
|
* Extensions/importAPR/test/test_apr.py (aprTest.test_LClass): |
192 |
|
Added tests for text-ranges. |
193 |
|
|
194 |
|
* Extensions/importAPR/apr.py (APR_LClass.GetThubanRange): Now |
195 |
|
returns a string object if the range is based on text. |
196 |
|
|
197 |
|
* Extensions/importAPR/importAPR.py (import_apr_dialog): Unified |
198 |
|
range retrieval. |
199 |
|
|
200 |
|
2003-09-22 Jan-Oliver Wagner <[email protected]> |
201 |
|
|
202 |
|
Initial version of the importAPR extension which is in |
203 |
|
experimental state. |
204 |
|
|
205 |
|
* /Extensions/importAPR/, /Extensions/importAPR/samples/, |
206 |
|
/Extensions/importAPR/test/: New directories. |
207 |
|
|
208 |
|
* /Extensions/importAPR/samples/README: New: Howto load the samples. |
209 |
|
|
210 |
|
* /Extensions/importAPR/samples/iceland.apr: New: A sample APR |
211 |
|
file which refers to the Thuban Iceland demo data. |
212 |
|
|
213 |
|
* /Extensions/importAPR/test/README: New: Howto execute the tests. |
214 |
|
|
215 |
|
* /Extensions/importAPR/test/test_apr.py: New: Tests for APR classes. |
216 |
|
|
217 |
|
* /Extensions/importAPR/apr.py: New: Classes for ArcView Objects |
218 |
|
as in '.apr'-files. |
219 |
|
|
220 |
|
* /Extensions/importAPR/odb.py: New: Classes for generic ArcView |
221 |
|
ODB Objects as in '.apr', '.avl' and other files. |
222 |
|
|
223 |
|
* /Extensions/importAPR/__init__.py: New: Init to make this |
224 |
|
directory a package. |
225 |
|
|
226 |
|
* /Extensions/importAPR/importAPR.py: New: Import a ArcView |
227 |
|
project file (.apr) and convert it to Thuban. |
228 |
|
|
229 |
|
2003-09-22 Jan-Oliver Wagner <[email protected]> |
230 |
|
|
231 |
|
* Extensions/gns2shp.gns2shp.py: The main module of gns2shp. |
232 |
|
|
233 |
|
2003-09-19 Jan-Oliver Wagner <[email protected]> |
234 |
|
|
235 |
|
* Doc/manual/thuban-manual.xml: Extended section 'Installation' |
236 |
|
with description on RPM installation and RPM binary package |
237 |
|
creation. |
238 |
|
|
239 |
|
2003-09-18 Bernhard Herzog <[email protected]> |
240 |
|
|
241 |
|
* setup.py (data_files): Only add the mo files if the Locales |
242 |
|
directory actually exists, so that setup.py works with a fresh CVS |
243 |
|
checkout |
244 |
|
|
245 |
|
2003-09-12 Jan-Oliver Wagner <[email protected]> |
246 |
|
|
247 |
|
* Examples/simple_extensions/simple_tool.py: bugfix: Tool is now |
248 |
|
in viewport, not anymore in view |
249 |
|
|
250 |
|
2003-09-04 Jan-Oliver Wagner <[email protected]> |
251 |
|
|
252 |
|
Introducing first Extension (gns2shp). |
253 |
|
|
254 |
|
* Extensions, Extensions/gns2shp, Extensions/gns2shp/test: New. |
255 |
|
|
256 |
|
* Extensions/__init__.py: New. init to make this dir a package. |
257 |
|
|
258 |
|
* Extensions/gns2shp/__init__.py: New. init to make this dir a package. |
259 |
|
|
260 |
|
* Extensions/gns2shp/test/README: New. some info on this test directory. |
261 |
|
|
262 |
|
* Extensions/gns2shp/test/ls.txt: New. test data set (Liechtenstein). |
263 |
|
|
264 |
|
* Extensions/gns2shp/test/test_gns2shp.py: New. Test for correct creation |
265 |
|
of Shapefile from GNS text file format |
266 |
|
|
267 |
|
2003-09-03 Jan-Oliver Wagner <[email protected]> |
268 |
|
|
269 |
|
Fix/workaround for bug #2019: |
270 |
|
https://intevation.de/rt/webrt?serial_num=2019 |
271 |
|
|
272 |
|
* Thuban/UI/identifyview.py (IdentifyView.ID_STOP): New. |
273 |
|
(IdentifyView.__init__): Added another button that allows to |
274 |
|
stop the identify mode. |
275 |
|
(IdentifyView.OnStop): New. Stops the identify mode. |
276 |
|
|
277 |
|
2003-09-03 Jan-Oliver Wagner <[email protected]> |
278 |
|
|
279 |
|
Introducing a new exception dialog that allows to exit the |
280 |
|
application immediately. |
281 |
|
This fixes bug #2060: https://intevation.de/rt/webrt?serial_num=2060 |
282 |
|
|
283 |
|
* Thuban/UI/exceptiondialog.py: New. A special exception dialog. |
284 |
|
|
285 |
|
* Thuban/UI/application.py (ThubanApplication.ShowExceptionDialog): |
286 |
|
Made strings available to translations. Exchanged the simple |
287 |
|
ScrolledMessageDialog by the new ExceptionDialog. |
288 |
|
|
289 |
|
2003-09-01 Bernhard Herzog <[email protected]> |
290 |
|
|
291 |
|
* NEWS: New. Summary of changes and release notes. |
292 |
|
|
293 |
|
* MANIFEST.in: Add NEWS |
294 |
|
|
295 |
|
2003-09-01 Bernhard Herzog <[email protected]> |
296 |
|
|
297 |
|
* MANIFEST.in: Correct the include statement for the mo-files and |
298 |
|
include the documentation too. |
299 |
|
|
300 |
|
* setup.py (data_files): Add the .mo files |
301 |
|
(setup call): Up to version 0.9.0 |
302 |
|
|
303 |
|
2003-09-01 Bernhard Herzog <[email protected]> |
304 |
|
|
305 |
|
* Thuban/UI/dbdialog.py (ChooseDBTableDialog.__init__): Change the |
306 |
|
parameter list to just parent and session |
307 |
|
(ChooseDBTableDialog.__set_properties): Removed. Setting the |
308 |
|
selection of empty list boxes is not allowed (and produces C++ |
309 |
|
assertion errors) and the rest of the setup is better done in |
310 |
|
__init__ anyway. |
311 |
|
(ChooseDBTableDialog.OnCancel, ChooseDBTableDialog.OnOK) |
312 |
|
(ChooseDBTableDialog.OnLBDClick, DBDialog.OnOK): Use the Python |
313 |
|
builtins True/False for booleans to avoid warnings from wxPython |
314 |
|
|
315 |
|
* Thuban/UI/mainwindow.py (MainWindow.AddDBLayer): Adapt to new |
316 |
|
ChooseDBTableDialog constructor parameters. |
317 |
|
|
318 |
|
2003-09-01 Bernhard Herzog <[email protected]> |
319 |
|
|
320 |
|
* Thuban/Model/postgisdb.py |
321 |
|
(PostGISTable): Extend doc-string |
322 |
|
(PostGISTable._fetch_table_information): Set the column index |
323 |
|
correctly, pretending ignored columns don't exist. |
324 |
|
|
325 |
|
* test/test_postgis_db.py (TestPostGISIgnoredColumns): New tests |
326 |
|
for postgis tables with data types not yet supported by thuban. |
327 |
|
|
328 |
|
2003-08-29 Bernhard Herzog <[email protected]> |
329 |
|
|
330 |
|
* HOWTO-Release: Tweak item about running the tests. |
331 |
|
|
332 |
|
2003-08-29 Jan-Oliver Wagner <[email protected]> |
333 |
|
|
334 |
|
* /Doc/manual/thuban-manual.xml: updated to version 1.0pre2. |
335 |
|
|
336 |
2003-08-29 Bernhard Herzog <[email protected]> |
2003-08-29 Bernhard Herzog <[email protected]> |
337 |
|
|
338 |
Add some missing parameters to projections. Proj complains about |
Add some missing parameters to projections. Proj complains about |
1544 |
|
|
1545 |
* Thuban/Model/range.py, Thuban/version.py: Remove the #! line as |
* Thuban/Model/range.py, Thuban/version.py: Remove the #! line as |
1546 |
it annoys lintian which warns about these files not being |
it annoys lintian which warns about these files not being |
1547 |
executable. The #1 isn't necessary here since if you absolutely |
executable. The #! isn't necessary here since if you absolutely |
1548 |
must execute them you can always say "python <filename>". |
must execute them you can always say "python <filename>". |
1549 |
|
|
1550 |
* Thuban/UI/renderer.py (ScreenRenderer.draw_shape_layer): Remove |
* Thuban/UI/renderer.py (ScreenRenderer.draw_shape_layer): Remove |