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