1 |
|
2003-10-22 Bernhard Herzog <[email protected]> |
2 |
|
|
3 |
|
Some more tweaks to the projection dialog which should fix RT |
4 |
|
#1886. |
5 |
|
|
6 |
|
* Thuban/UI/projlist.py (ProjectionList.Destroy): Unsubscribe from |
7 |
|
the ProjFile's messages and call the base class methods correctly |
8 |
|
(ProjectionList.SelectProjection): Set the wxLIST_STATE_FOCUSED |
9 |
|
flag on the newly selected item too. Otherwise some other item is |
10 |
|
focused and the first time the focus is moved with the keyboard |
11 |
|
the selection moves in unexpected ways. |
12 |
|
|
13 |
|
* Thuban/UI/projdialog.py (ProjFrame.__init__): Do not set the |
14 |
|
focus on the OK button, only on the projection list. That way the |
15 |
|
list really has the focus initially |
16 |
|
(ProjFrame.OnClose): Call the projection list's Destroy method to |
17 |
|
make it unsubscribe all messages |
18 |
|
|
19 |
|
2003-10-21 Bernhard Herzog <[email protected]> |
20 |
|
|
21 |
|
Rework the projection dialog to fix a few bugs, including RT 2166 |
22 |
|
and most of 2168 |
23 |
|
|
24 |
|
* Thuban/UI/projlist.py: New. The class ProjectionList is a |
25 |
|
special wxListCtrl to show a list of projections in a more MVC |
26 |
|
fashion |
27 |
|
|
28 |
|
* Thuban/UI/projdialog.py (ProjFrame): Substantial changes |
29 |
|
throughout the class. The main change is to use the ProjectionList |
30 |
|
class instead of a normal wxListBox. Also, add an explicit |
31 |
|
"Unknown" projection to the projection choice control. |
32 |
|
(ProjPanel.__init__): Add an "unknown" ellipsoid |
33 |
|
(TMPanel.__init__, LCCPanel.__init__): Tweak the order of |
34 |
|
instantiation of the panel's controls to make the tab-order more |
35 |
|
natural |
36 |
|
|
37 |
|
2003-10-21 Bernhard Herzog <[email protected]> |
38 |
|
|
39 |
|
* test/test_load.py (TestSingleLayer.file_contents) |
40 |
|
(TestSingleLayer.test): Add non-ascii characters to the titles of |
41 |
|
session, map and layer. This is effectively a port of the |
42 |
|
TestUnicodeStrings test in test_load_0_8.py which for some reason |
43 |
|
was only added there. |
44 |
|
|
45 |
|
* test/test_load_0_9.py (TestSingleLayer.file_contents) |
46 |
|
(TestSingleLayer.test): Same as in test_load.py: add non-ascii |
47 |
|
characters to the titles of session, map and layer,. |
48 |
|
|
49 |
|
2003-10-21 Bernhard Herzog <[email protected]> |
50 |
|
|
51 |
|
Add EPSG projection handling to .thuban files |
52 |
|
|
53 |
|
* test/test_save.py (SaveSessionTest.dtd) |
54 |
|
(SaveSessionTest.testEmptySession) |
55 |
|
(SaveSessionTest.testLayerProjection) |
56 |
|
(SaveSessionTest.testRasterLayer) |
57 |
|
(SaveSessionTest.testClassifiedLayer) |
58 |
|
(SaveSessionTest.test_dbf_table) |
59 |
|
(SaveSessionTest.test_joined_table) |
60 |
|
(SaveSessionTest.test_save_postgis): Update to 1.0-dev namespace |
61 |
|
(SaveSessionTest.testSingleLayer): Update to 1.0-dev namespace and |
62 |
|
use a and epsg projection to test saving them |
63 |
|
|
64 |
|
* test/test_load.py (LoadSessionTest.dtd): Update to 1.0-dev |
65 |
|
namespace |
66 |
|
(TestLayerVisibility.file_contents, TestLabels.file_contents) |
67 |
|
(TestLayerProjection.file_contents) |
68 |
|
(TestRasterLayer.file_contents, TestJoinedTable.file_contents) |
69 |
|
(TestPostGISLayer.file_contents) |
70 |
|
(TestPostGISLayerPassword.file_contents) |
71 |
|
(TestLoadError.file_contents, TestLoadError.test): Update to use |
72 |
|
1.0-dev namespace |
73 |
|
(TestSingleLayer.file_contents, TestSingleLayer.test): Update to |
74 |
|
use 1.0-dev namespace and use an EPSG projection to test whether |
75 |
|
loading it works |
76 |
|
|
77 |
|
* test/test_load_0_9.py: New. Effectively a copy of test_load.py |
78 |
|
as of Thuban 0.9. These are now tests to determine whether Thuban |
79 |
|
can still read files generated by Thuban 0.9 |
80 |
|
|
81 |
|
* Thuban/Model/save.py (SessionSaver.write) |
82 |
|
(SessionSaver.write_session): Use the 1.0 dtd and 1.0-dev |
83 |
|
namespace |
84 |
|
(SessionSaver.write_projection): Write the projection's epsg |
85 |
|
attribute |
86 |
|
|
87 |
|
* Thuban/Model/load.py (SessionLoader.__init__): Also accept the |
88 |
|
thuban-1.0-dev.dtd namespace |
89 |
|
(SessionLoader.check_attrs): Allow a callable object as conversion |
90 |
|
too |
91 |
|
(SessionLoader.start_projection, SessionLoader.end_projection) |
92 |
|
(SessionLoader.start_parameter): Handle the epsg attribute and |
93 |
|
rename a few instance variables to lower case |
94 |
|
|
95 |
|
* Resources/XML/thuban-1.0.dtd: New. Only difference to |
96 |
|
thuban-0.9.dtd is the epsg attribute for projections. |
97 |
|
|
98 |
|
2003-10-21 Bernhard Herzog <[email protected]> |
99 |
|
|
100 |
|
* test/runtests.py (main): Let the user specify which tests to run |
101 |
|
on the command line |
102 |
|
|
103 |
|
* test/support.py (ThubanTestResult.getDescription): Override to |
104 |
|
give a better short description. The description can be used as a |
105 |
|
parameter to run_tests to run that particular test in isolation. |
106 |
|
|
107 |
|
2003-10-21 Frank Koormann <[email protected]> |
108 |
|
|
109 |
|
Popup menu for legend. Scheduled for the 1.2 release this was too |
110 |
|
simple to implement: The popup menu is bound to the legend tree, while |
111 |
|
the events are hanlded by its anchestor, the legend panel. This |
112 |
|
allows reuse of all the event handlers already implemented for the |
113 |
|
legend toolbar buttons. |
114 |
|
|
115 |
|
* Thuban/UI/legend.py (LegendPanel.__init__): EVT_MENU macros |
116 |
|
to add handlers for the events issued by the popup menu. |
117 |
|
(LegendPanel._OnToggleVisibility): Handler for toggling layer |
118 |
|
visibility event |
119 |
|
(LegendPanel._OnProjection): Handler for layer projection event. |
120 |
|
(LegendTree.__init__): Added EVT_TREE_ITEM_RIGHT_CLICK |
121 |
|
(LegendTree._OnRightClick): Event handler for right click, select item |
122 |
|
and pop up menu. |
123 |
|
(LegendTree.ToggleVisibility): Toggle layer visibility |
124 |
|
(LegendTree.LayerProjection): Raise layer projection dialog for |
125 |
|
current layer. |
126 |
|
|
127 |
|
2003-10-21 Bernhard Herzog <[email protected]> |
128 |
|
|
129 |
|
* Resources/Projections/defaults.proj: Use correct DOCTYPE |
130 |
|
declaration. The top-level element is projectionlist not projfile |
131 |
|
|
132 |
|
2003-10-20 Bernhard Herzog <[email protected]> |
133 |
|
|
134 |
|
* Thuban/UI/projdialog.py (ProjFrame.write_proj_file): New. helper |
135 |
|
method to write a projfile and display a busy cursor and error |
136 |
|
dialogs. |
137 |
|
(ProjFrame._OnSave, ProjFrame._OnAddToList, ProjFrame._OnImport) |
138 |
|
(ProjFrame._OnExport, ProjFrame._OnRemove): Use write_proj_file |
139 |
|
(ProjFrame.__FillAvailList): Translate "<None>" too and display a |
140 |
|
busy cursor while loading the user and system prj files. |
141 |
|
|
142 |
|
2003-10-16 Bernhard Herzog <[email protected]> |
143 |
|
|
144 |
|
* Thuban/Model/resource.py (projfile_cache): Introduce a cache for |
145 |
|
ProjFile objects |
146 |
|
(clear_proj_file_cache): New function to clear the cache. Mainly |
147 |
|
useful for use by the test suite |
148 |
|
(read_proj_file): Use the cache. |
149 |
|
|
150 |
|
* test/test_proj.py (TestProjFile): Clarify the doc-string |
151 |
|
(ProjFileReadTests): Update doc-string |
152 |
|
(ProjFileReadTests.test_get_system_proj_file): Check whether the |
153 |
|
system proj files is cached. |
154 |
|
(ProjFileLoadTestCase): New base class for the proj file tests |
155 |
|
derived from support.FileLoadTestCase to provide some common |
156 |
|
behavior. |
157 |
|
(TestLoadingProjFile) |
158 |
|
(TestLoadingProjFileWithEmptyProjectionlist.file_contents) |
159 |
|
(TestProjFileWithInvalidParameters.file_contents): Derive from |
160 |
|
ProjFileLoadTestCase |
161 |
|
(TestLoadingProjFile.test_caching): New. Test whether the cache |
162 |
|
works |
163 |
|
|
164 |
|
2003-10-16 Silke Reimer <[email protected]> |
165 |
|
|
166 |
|
* debian/*: New directory with configuration files for building a thuban |
167 |
|
deb-package. |
168 |
|
|
169 |
|
2003-10-14 Bernhard Herzog <[email protected]> |
170 |
|
|
171 |
|
* test/test_proj.py: Execute support.run_tests when run as |
172 |
|
__main__ so that missing unsubscribes are detected |
173 |
|
(TestProjFile.tearDown): Destroy the proj_file properly |
174 |
|
|
175 |
|
2003-10-14 Bernhard Herzog <[email protected]> |
176 |
|
|
177 |
|
* Thuban/Model/messages.py (PROJECTION_ADDED) |
178 |
|
(PROJECTION_REPLACED, PROJECTION_REMOVED): New message types for |
179 |
|
the ProjFile objects |
180 |
|
|
181 |
|
* Thuban/Model/proj.py (ProjFile): Derive from Publisher so we can |
182 |
|
easily send messages when the projections change |
183 |
|
(ProjFile.Add, ProjFile.Remove, ProjFile.Replace): Issue messages |
184 |
|
when the change was successful |
185 |
|
|
186 |
|
* test/test_proj.py (TestProjFile.setUp): Subscribe to some of the |
187 |
|
proj file messages |
188 |
|
(TestProjFile.test_add_remove) |
189 |
|
(TestProjFile.test_remove_non_existing) |
190 |
|
(TestProjFile.test_replace) |
191 |
|
(TestProjFile.test_replace_non_existing): Test whether the right |
192 |
|
messages are sent |
193 |
|
|
194 |
|
2003-10-14 Bernhard Herzog <[email protected]> |
195 |
|
|
196 |
|
* test/test_proj.py (TestProjFile.test): Refactor into several |
197 |
|
tests |
198 |
|
(TestProjFile.test_add_remove) |
199 |
|
(TestProjFile.test_remove_non_existing) |
200 |
|
(TestProjFile.test_replace) |
201 |
|
(TestProjFile.test_replace_non_existing): Some of the new |
202 |
|
individual test cases |
203 |
|
(TestProjFileSimple): New class for the rest of the test cases |
204 |
|
that came out of the refactoring |
205 |
|
(ProjFileTest): Derive from xmlsupport.ValidationTest so that the |
206 |
|
derived classes don't have to |
207 |
|
|
208 |
|
2003-10-13 Bernhard Herzog <[email protected]> |
209 |
|
|
210 |
|
Add an optional EPSG code to the projection objects and extend the |
211 |
|
.proj file format accordingly. |
212 |
|
|
213 |
|
* Resources/XML/projfile.dtd (element projection): Add epsg |
214 |
|
attribute |
215 |
|
|
216 |
|
* Thuban/Model/proj.py (Projection.__init__): New parameter and |
217 |
|
instance variable epsg. Update doc-string |
218 |
|
(Projection.EPSGCode, Projection.Label): New methods to provide |
219 |
|
access to EPSG code and a label for use in dialogs |
220 |
|
|
221 |
|
* Thuban/Model/resource.py (ProjFileReader.start_projection) |
222 |
|
(ProjFileReader.end_projection, ProjFileSaver.write_projfile): |
223 |
|
Handle the epsg code attribute when reading or writing proj files |
224 |
|
|
225 |
|
* Thuban/UI/projdialog.py (ProjFrame._OnSave) |
226 |
|
(ProjFrame._OnAddToList, ProjFrame.__DoOnProjAvail) |
227 |
|
(ProjFrame.__FillAvailList): Use the projection's Label method to |
228 |
|
get the string for the list box |
229 |
|
|
230 |
|
* test/test_proj.py (TestProjection.test_label) |
231 |
|
(TestProjection.test_label_epsg) |
232 |
|
(TestProjection.test_epsgcode_for_non_epsg_projection) |
233 |
|
(TestProjection.test_epsgcode_for_real_epsg_projection): New tests |
234 |
|
for the label and EPSGCode methods |
235 |
|
(WriteProjFileTests.doTestWrite, WriteProjFileTests.test_write) |
236 |
|
(WriteProjFileTests.test_write_empty_file): Create the ProjFile |
237 |
|
objects in the test cases and put the expected contents into the |
238 |
|
test case methods too. Update doTestWrite accordingly |
239 |
|
(TestLoadingProjFile) |
240 |
|
(TestLoadingProjFileWithEmptyProjectionlist): New classes with the |
241 |
|
read tests from TestProjFile. |
242 |
|
(TestProjFile.doTestRead, TestProjFile.testRead): Removed. These |
243 |
|
tests are now in the new classes. |
244 |
|
(sample_projfile, sample_projfile_data) |
245 |
|
(sample_projfile2, sample_projfile_data2): Removed. Not used |
246 |
|
anymore. |
247 |
|
(TestProjFile.test_read_unreadable_file): No need to reset the |
248 |
|
permissions at the end anymore since we use a unique filename |
249 |
|
|
250 |
|
2003-10-13 Bernhard Herzog <[email protected]> |
251 |
|
|
252 |
|
* test/test_proj.py: Some more refactoring of the test cases |
253 |
|
(ProjFileTest): New base class for the proj file tests. |
254 |
|
(TestProjFile): Derive from ProjFileTest |
255 |
|
(TestProjFile.test_read_unreadable_file) |
256 |
|
(TestProjFile.test_read_empty_file, TestProjFile.doTestRead): Use |
257 |
|
the new filename method to get a unique filename |
258 |
|
(TestProjFile.doTestWrite, TestProjFile.testWrite): Removed. |
259 |
|
(WriteProjFileTests): New class for proj file write tests. |
260 |
|
Contains the write test that were in TestProjFile originally. |
261 |
|
|
262 |
|
2003-10-13 Bernhard Herzog <[email protected]> |
263 |
|
|
264 |
|
* test/test_proj.py (TestProjFile.testRead) |
265 |
|
(TestProjFile.test_read_non_existing_file) |
266 |
|
(TestProjFile.test_read_unreadable_file) |
267 |
|
(TestProjFile.test_read_empty_file): Split into several methods. |
268 |
|
|
269 |
|
2003-10-10 Bernhard Herzog <[email protected]> |
270 |
|
|
271 |
|
* Thuban/UI/sizers.py: New file with custom sizers. |
272 |
|
|
273 |
|
* Thuban/UI/projdialog.py (ProjFrame.build_dialog): Instantiate |
274 |
|
all projection type specific panels and put them into a |
275 |
|
NotebookLikeSizer. This way the dialog doesn't change its size |
276 |
|
when a different projection is selected |
277 |
|
(ProjFrame.__init__): Rename projection_panels |
278 |
|
projection_panel_defs and reuse projection_panels for a list of |
279 |
|
the instantiated panels. |
280 |
|
(ProjFrame._show_proj_panel, ProjFrame.__DoOnProjAvail) |
281 |
|
(ProjFrame.__DoOnProjChoice): Changes due to the new handling of |
282 |
|
the panels |
283 |
|
(UnknownProjPanel._DoLayout): Place the newlines in the message |
284 |
|
differently to make the panel narrower. |
285 |
|
(TMPanel._DoLayout): Layout the parameters in one column. |
286 |
|
|
287 |
|
2003-10-10 Bernhard Herzog <[email protected]> |
288 |
|
|
289 |
|
* Thuban/UI/projdialog.py (ProjFrame.build_dialog): New method |
290 |
|
that contains all the setup for the dialog's widgets, layout and |
291 |
|
event handling. |
292 |
|
(__): Call build_dialog to build the dialog. |
293 |
|
(ProjFrame.__set_properties, ProjFrame.__do_layout): Removed. |
294 |
|
Their functionality is now in build_dialog |
295 |
|
(ProjFrame.__VerifyButtons, ProjFrame.__VerifyButtons) |
296 |
|
(ProjFrame.__DoOnProjAvail, ProjFrame.__DoOnProjAvail) |
297 |
|
(ProjFrame.__DoOnProjChoice): Small updates due to slightly |
298 |
|
different widget names and hierarchy introduced with build_dialog. |
299 |
|
|
300 |
|
2003-10-10 Bernhard Herzog <[email protected]> |
301 |
|
|
302 |
|
* README: Fix typo. |
303 |
|
|
304 |
|
2003-10-09 Bernhard Herzog <[email protected]> |
305 |
|
|
306 |
|
* Thuban/Model/proj.py (ProjFile.Add): Do not check whether the |
307 |
|
projection is already in the list. This is *a lot* faster when |
308 |
|
loading files with hundreds of projections since it saves a linear |
309 |
|
search. OTOH this will allow adding the same projection to the |
310 |
|
user.proj file multiple times in the projection dialog but we'll |
311 |
|
deal with that later |
312 |
|
|
313 |
|
2003-10-09 Jan-Oliver Wagner <[email protected]> |
314 |
|
|
315 |
|
* devtools: New. Directory for developer tools that are not intended |
316 |
|
for the regular user. |
317 |
|
|
318 |
|
* devtools/create_epsg.py: New. Convert the epsg file of proj into |
319 |
|
a python .proj file. |
320 |
|
|
321 |
|
2003-10-09 Bernhard Herzog <[email protected]> |
322 |
|
|
323 |
|
* test/test_proj.py |
324 |
|
(TestProjection.test_get_parameter_without_equals_sign): New. Test |
325 |
|
whether GetParameter handles parameters without "=" sign correctly |
326 |
|
|
327 |
|
* Thuban/Model/proj.py (Projection.GetParameter): Handle |
328 |
|
parameters that do not contain a "=". Update the doc-string |
329 |
|
|
330 |
|
2003-10-08 Bernhard Herzog <[email protected]> |
331 |
|
|
332 |
|
* Thuban/UI/projdialog.py (ProjFrame.__set_properties): Remove the |
333 |
|
length limit on the projname text control |
334 |
|
|
335 |
|
2003-10-08 Bernhard Herzog <[email protected]> |
336 |
|
|
337 |
|
* test/test_proj.py (TestProjection.test_get_projection_units_geo) |
338 |
|
(TestProjection.test_get_projection_units_normal): New. Tests for |
339 |
|
the Projection.GetProjectedUnits method |
340 |
|
|
341 |
|
2003-10-08 Jan-Oliver Wagner <[email protected]> |
342 |
|
|
343 |
|
* Thuban/Model/resource.py (get_user_proj_file): small bug-fix: |
344 |
|
Added missing 'val' parameter. |
345 |
|
|
346 |
|
2003-10-08 Bernhard Herzog <[email protected]> |
347 |
|
|
348 |
|
* Thuban/UI/projdialog.py (ProjFrame.__DoOnProjAvail): When the |
349 |
|
projection type of the currently selected projection is not known, |
350 |
|
i.e. there's no panel for it, use the UnknownProjPanel |
351 |
|
(ProjFrame.__DoOnProjChoice, ProjFrame._show_proj_panel): Split |
352 |
|
the actual replacing of the proj panel into the new method |
353 |
|
_show_proj_panel. |
354 |
|
(UnknownProjPanel): Add doc-string. |
355 |
|
(UnknownProjPanel._DoLayout): Insert a newline into the text so |
356 |
|
that the panel is not so wide. |
357 |
|
|
358 |
|
2003-10-08 Bernhard Herzog <[email protected]> |
359 |
|
|
360 |
|
* Thuban/Model/resource.py (read_proj_file): Return the warnings |
361 |
|
too. Update the doc-string |
362 |
|
(get_proj_files): Removed. It wasn't used anywhere |
363 |
|
(get_system_proj_files, get_system_proj_file): Rename to |
364 |
|
get_system_proj_file and return the ProjFile object and not a list |
365 |
|
of ProjFile objects. Update the callers. |
366 |
|
(get_user_proj_files, get_user_proj_file): Rename to |
367 |
|
get_user_proj_file return the ProjFile object and not a list of |
368 |
|
ProjFile objects. Update the callers. |
369 |
|
(ProjFileReader.__init__): New instance variable for the warnings. |
370 |
|
Rename the __pf ivar to projfile. Update the methods referring to |
371 |
|
__pf |
372 |
|
(ProjFileReader.end_projection): Catch any errors raised when |
373 |
|
instantiating the projection and record that as an error. The |
374 |
|
projection will not be in the final ProjFile object. |
375 |
|
(ProjFileReader.GetWarnings): New method to return the warnings. |
376 |
|
|
377 |
|
* Thuban/UI/projdialog.py (ProjFrame.show_warnings): New method to |
378 |
|
show the warnings from the projfile reader |
379 |
|
(ProjFrame._OnImport): Deal with any warnings returned by |
380 |
|
read_proj_file |
381 |
|
(ProjFrame.__FillAvailList): Deal with any warnings returned by |
382 |
|
get_system_proj_file or get_user_proj_file. |
383 |
|
|
384 |
|
* test/test_proj.py (TestProjFile.doTestRead): Check the warnings. |
385 |
|
(TestProjFileWithInvalidParameters.file_contents): New test cases |
386 |
|
to test whether read_proj_file handles invalid projection |
387 |
|
parameters correctly |
388 |
|
(TestProjFile.test_get_system_proj_file): New. Simple test for |
389 |
|
resource.get_system_proj_file |
390 |
|
|
391 |
|
2003-10-07 Bernhard Herzog <[email protected]> |
392 |
|
|
393 |
|
* test/test_derivedshapestore.py |
394 |
|
(TestDerivedShapeStoreExceptions.tearDown): Clear the session |
395 |
|
properly so that the temporary directories get deleted correctly |
396 |
|
|
397 |
|
2003-10-06 Bernhard Herzog <[email protected]> |
398 |
|
|
399 |
|
Handle the title changes in a proper MVC way. |
400 |
|
|
401 |
|
* Thuban/UI/mainwindow.py (MainWindow.__init__): Subscribe to the |
402 |
|
canvas' TITLE_CHANGED messages |
403 |
|
(MainWindow.update_title): New. Update the main window's title |
404 |
|
(MainWindow.__SetTitle): Removed. Use update_title instead. |
405 |
|
(MainWindow.SetMap): Use update_title instead of __SetTitle |
406 |
|
(MainWindow.RenameMap): Do change the window title explicitly |
407 |
|
here. That's handled in a proper MVC way now. |
408 |
|
(MainWindow.title_changed): New. Subscriber for the TITLE_CHANGED |
409 |
|
messages |
410 |
|
|
411 |
|
* Thuban/Lib/connector.py (Conduit): New class to help classes |
412 |
|
that forward messages |
413 |
|
|
414 |
|
* Thuban/UI/viewport.py: Forward the map's TITLE_CHANGED messages |
415 |
|
(ViewPort): Derive from Conduit instead of Publisher |
416 |
|
(ViewPort.Subscribe, ViewPort.Unsubscribe): Use the new base class |
417 |
|
when calling the inherited versions |
418 |
|
(ViewPort._subscribe_map, ViewPort._unsubscribe_map): New helper |
419 |
|
methods to subscribe and unsubscribe map messages |
420 |
|
(ViewPort.SetMap, ViewPort.Destroy): Use the new helper methods to |
421 |
|
handle the map subscriptions |
422 |
|
(ViewPort.Map, ViewPort.map_projection_changed) |
423 |
|
(ViewPort.layer_projection_changed): Add or update doc-strings |
424 |
|
|
425 |
|
* test/test_connector.py (TestPublisher.test_issue_simple): Fix |
426 |
|
typo |
427 |
|
(MyConduit): Helper class for the Conduit test. |
428 |
|
(TestConduit): Test cases for Conduit |
429 |
|
|
430 |
|
* test/test_connector.py: Use support.run_tests as main. |
431 |
|
|
432 |
|
* test/test_viewport.py (ViewPortTest.setUp): Also subscribe to |
433 |
|
the TITLE_CHANGED messages |
434 |
|
(ViewPortTest.test_forwarding_title_changed): New test to check |
435 |
|
whether the viewport forwards the map's TITLE_CHANGED messages |
436 |
|
(TestViewportWithPostGIS.tearDown): Call the map's Destroy method |
437 |
|
after the port's because the latter may require a still functional |
438 |
|
map. |
439 |
|
|
440 |
|
2003-10-06 Bernhard Herzog <[email protected]> |
441 |
|
|
442 |
|
* Thuban/UI/application.py (ThubanApplication.maps_changed): Add |
443 |
|
doc-string |
444 |
|
|
445 |
|
2003-10-06 Bernhard Herzog <[email protected]> |
446 |
|
|
447 |
|
* test/test_viewport.py (ViewPortTest.setUp) |
448 |
|
(SimpleViewPortTest.test_init_with_size): Move the test for the |
449 |
|
initial size as a constructor parameter from ViewPortTest.setUp |
450 |
|
method to a new separate test in SimpleViewPortTest. |
451 |
|
|
452 |
|
2003-10-06 Bernhard Herzog <[email protected]> |
453 |
|
|
454 |
|
* test/test_viewport.py (MockView): New class derived from |
455 |
|
ViewPort with a mock implementation of GetTextExtent to be used in |
456 |
|
the test cases |
457 |
|
(ViewPortTest.setUp): Use MockView instead of ViewPort |
458 |
|
|
459 |
|
* Thuban/UI/viewport.py (ViewPort.GetTextExtent): Turn this method |
460 |
|
into what would be a "pure virtual function" in C++: always raise |
461 |
|
NotImplementedError. Mock implementations for test cases don't |
462 |
|
belong into the real code |
463 |
|
|
464 |
|
2003-10-02 Bernhard Herzog <[email protected]> |
465 |
|
|
466 |
|
* test/test_layer.py (TestLayer.test_empty_layer): Explicitly |
467 |
|
close the dbf file we create so that it's contents have been |
468 |
|
written properly. |
469 |
|
|
470 |
|
* libraries/shapelib/shptree.c, libraries/shapelib/shpopen.c, |
471 |
|
libraries/shapelib/shapefil.h, libraries/shapelib/dbfopen.c: |
472 |
|
Update to shapelib 1.2.10 |
473 |
|
|
474 |
|
2003-10-01 Jan-Oliver Wagner <[email protected]> |
475 |
|
|
476 |
|
* Thuban/UI/tree.py, Thuban/UI/main.py: Remove the #! line as |
477 |
|
it annoys lintian which warns about these files not being |
478 |
|
executable. The #! isn't necessary here since if you absolutely |
479 |
|
must execute them you can always say "python <filename>". |
480 |
|
|
481 |
|
2003-09-26 Bernhard Herzog <[email protected]> |
482 |
|
|
483 |
|
* Thuban/Model/classgen.py (GenQuantiles0): Removed since it's |
484 |
|
only used in GREAT-ER but not used in Thuban itself. When GREAT-ER |
485 |
|
is ported to a newer the import will fail, so it should be noticed |
486 |
|
immediately that this function is gone. |
487 |
|
Fixes RT#1919 |
488 |
|
|
489 |
|
2003-09-26 Bernhard Herzog <[email protected]> |
490 |
|
|
491 |
|
Add a DTD for the projection files and make thuban write valid |
492 |
|
projection files |
493 |
|
|
494 |
|
* Resources/XML/projfile.dtd: New. DTD for thuban's projection |
495 |
|
files |
496 |
|
|
497 |
|
* Thuban/Model/resource.py (ProjFileSaver.write): Use |
498 |
|
'projectionlist' as the name in the document type declaration so |
499 |
|
that it matches the element type of the root element. |
500 |
|
|
501 |
|
* test/test_proj.py (sample_projfile, sample_projfile2): Use |
502 |
|
'projectionlist' as the name in the document type declaration just |
503 |
|
as it is done now in the files thuban would write |
504 |
|
(sample_projfile, sample_projfile_data): Fix spelling of |
505 |
|
"Mercator" |
506 |
|
(TestProjFile.doTestWrite): Validate the written and the expected |
507 |
|
XML data |
508 |
|
(TestProjFile): Derive from ValidationTest so that we can run xml |
509 |
|
validation tests |
510 |
|
|
511 |
|
2003-09-24 Bernhard Herzog <[email protected]> |
512 |
|
|
513 |
|
* Thuban/UI/renderer.py (ExportRenderer.render_legend): Do not |
514 |
|
modify the list returned by map.Layers() in place since it is the |
515 |
|
actual list of layers used by the map. |
516 |
|
|
517 |
|
2003-09-23 Jan-Oliver Wagner <[email protected]> |
518 |
|
|
519 |
|
* Doc/manual/thuban-manual.xml: Added subsection to chapter |
520 |
|
Extensions to describe the extensions coming with the Thuban |
521 |
|
standard package (gns2shp and importAPR). |
522 |
|
|
523 |
|
2003-09-23 Bernhard Herzog <[email protected]> |
524 |
|
|
525 |
|
* libraries/thuban/wxproj.cpp (project_point): if there's an |
526 |
|
inverse but no forward projection, convert to degrees after |
527 |
|
applying the inverse projection. Fixes RT#2096 |
528 |
|
|
529 |
|
* test/test_wxproj.py: New. Test cases for wxproj.so. One test |
530 |
|
implicitly tests for the fix to RT#2096 |
531 |
|
|
532 |
|
* test/support.py (FloatComparisonMixin.assertFloatSeqEqual): |
533 |
|
Check that the sequences have the same lengths |
534 |
|
|
535 |
|
* Resources/Projections/defaults.proj (Geographic projection): Use |
536 |
|
a much more precise value for the to_meter attribute. |
537 |
|
|
538 |
|
2003-09-22 Bernhard Herzog <[email protected]> |
539 |
|
|
540 |
|
* test/support.py (initthuban): Make sure to unset the LANG env. |
541 |
|
var. so that tests that compare translated strings work. Solves RT |
542 |
|
#2094 |
543 |
|
|
544 |
|
2003-09-22 Jan-Oliver Wagner <[email protected]> |
545 |
|
|
546 |
|
Small improvement of APR import. |
547 |
|
|
548 |
|
* Extensions/importAPR/test/test_apr.py (aprTest.test_LClass): |
549 |
|
Added tests for text-ranges. |
550 |
|
|
551 |
|
* Extensions/importAPR/apr.py (APR_LClass.GetThubanRange): Now |
552 |
|
returns a string object if the range is based on text. |
553 |
|
|
554 |
|
* Extensions/importAPR/importAPR.py (import_apr_dialog): Unified |
555 |
|
range retrieval. |
556 |
|
|
557 |
|
2003-09-22 Jan-Oliver Wagner <[email protected]> |
558 |
|
|
559 |
|
Initial version of the importAPR extension which is in |
560 |
|
experimental state. |
561 |
|
|
562 |
|
* /Extensions/importAPR/, /Extensions/importAPR/samples/, |
563 |
|
/Extensions/importAPR/test/: New directories. |
564 |
|
|
565 |
|
* /Extensions/importAPR/samples/README: New: Howto load the samples. |
566 |
|
|
567 |
|
* /Extensions/importAPR/samples/iceland.apr: New: A sample APR |
568 |
|
file which refers to the Thuban Iceland demo data. |
569 |
|
|
570 |
|
* /Extensions/importAPR/test/README: New: Howto execute the tests. |
571 |
|
|
572 |
|
* /Extensions/importAPR/test/test_apr.py: New: Tests for APR classes. |
573 |
|
|
574 |
|
* /Extensions/importAPR/apr.py: New: Classes for ArcView Objects |
575 |
|
as in '.apr'-files. |
576 |
|
|
577 |
|
* /Extensions/importAPR/odb.py: New: Classes for generic ArcView |
578 |
|
ODB Objects as in '.apr', '.avl' and other files. |
579 |
|
|
580 |
|
* /Extensions/importAPR/__init__.py: New: Init to make this |
581 |
|
directory a package. |
582 |
|
|
583 |
|
* /Extensions/importAPR/importAPR.py: New: Import a ArcView |
584 |
|
project file (.apr) and convert it to Thuban. |
585 |
|
|
586 |
|
2003-09-22 Jan-Oliver Wagner <[email protected]> |
587 |
|
|
588 |
|
* Extensions/gns2shp.gns2shp.py: The main module of gns2shp. |
589 |
|
|
590 |
|
2003-09-19 Jan-Oliver Wagner <[email protected]> |
591 |
|
|
592 |
|
* Doc/manual/thuban-manual.xml: Extended section 'Installation' |
593 |
|
with description on RPM installation and RPM binary package |
594 |
|
creation. |
595 |
|
|
596 |
|
2003-09-18 Bernhard Herzog <[email protected]> |
597 |
|
|
598 |
|
* setup.py (data_files): Only add the mo files if the Locales |
599 |
|
directory actually exists, so that setup.py works with a fresh CVS |
600 |
|
checkout |
601 |
|
|
602 |
|
2003-09-12 Jan-Oliver Wagner <[email protected]> |
603 |
|
|
604 |
|
* Examples/simple_extensions/simple_tool.py: bugfix: Tool is now |
605 |
|
in viewport, not anymore in view |
606 |
|
|
607 |
|
2003-09-04 Jan-Oliver Wagner <[email protected]> |
608 |
|
|
609 |
|
Introducing first Extension (gns2shp). |
610 |
|
|
611 |
|
* Extensions, Extensions/gns2shp, Extensions/gns2shp/test: New. |
612 |
|
|
613 |
|
* Extensions/__init__.py: New. init to make this dir a package. |
614 |
|
|
615 |
|
* Extensions/gns2shp/__init__.py: New. init to make this dir a package. |
616 |
|
|
617 |
|
* Extensions/gns2shp/test/README: New. some info on this test directory. |
618 |
|
|
619 |
|
* Extensions/gns2shp/test/ls.txt: New. test data set (Liechtenstein). |
620 |
|
|
621 |
|
* Extensions/gns2shp/test/test_gns2shp.py: New. Test for correct creation |
622 |
|
of Shapefile from GNS text file format |
623 |
|
|
624 |
|
2003-09-03 Jan-Oliver Wagner <[email protected]> |
625 |
|
|
626 |
|
Fix/workaround for bug #2019: |
627 |
|
https://intevation.de/rt/webrt?serial_num=2019 |
628 |
|
|
629 |
|
* Thuban/UI/identifyview.py (IdentifyView.ID_STOP): New. |
630 |
|
(IdentifyView.__init__): Added another button that allows to |
631 |
|
stop the identify mode. |
632 |
|
(IdentifyView.OnStop): New. Stops the identify mode. |
633 |
|
|
634 |
|
2003-09-03 Jan-Oliver Wagner <[email protected]> |
635 |
|
|
636 |
|
Introducing a new exception dialog that allows to exit the |
637 |
|
application immediately. |
638 |
|
This fixes bug #2060: https://intevation.de/rt/webrt?serial_num=2060 |
639 |
|
|
640 |
|
* Thuban/UI/exceptiondialog.py: New. A special exception dialog. |
641 |
|
|
642 |
|
* Thuban/UI/application.py (ThubanApplication.ShowExceptionDialog): |
643 |
|
Made strings available to translations. Exchanged the simple |
644 |
|
ScrolledMessageDialog by the new ExceptionDialog. |
645 |
|
|
646 |
|
2003-09-01 Bernhard Herzog <[email protected]> |
647 |
|
|
648 |
|
* NEWS: New. Summary of changes and release notes. |
649 |
|
|
650 |
|
* MANIFEST.in: Add NEWS |
651 |
|
|
652 |
|
2003-09-01 Bernhard Herzog <[email protected]> |
653 |
|
|
654 |
|
* MANIFEST.in: Correct the include statement for the mo-files and |
655 |
|
include the documentation too. |
656 |
|
|
657 |
|
* setup.py (data_files): Add the .mo files |
658 |
|
(setup call): Up to version 0.9.0 |
659 |
|
|
660 |
|
2003-09-01 Bernhard Herzog <[email protected]> |
661 |
|
|
662 |
|
* Thuban/UI/dbdialog.py (ChooseDBTableDialog.__init__): Change the |
663 |
|
parameter list to just parent and session |
664 |
|
(ChooseDBTableDialog.__set_properties): Removed. Setting the |
665 |
|
selection of empty list boxes is not allowed (and produces C++ |
666 |
|
assertion errors) and the rest of the setup is better done in |
667 |
|
__init__ anyway. |
668 |
|
(ChooseDBTableDialog.OnCancel, ChooseDBTableDialog.OnOK) |
669 |
|
(ChooseDBTableDialog.OnLBDClick, DBDialog.OnOK): Use the Python |
670 |
|
builtins True/False for booleans to avoid warnings from wxPython |
671 |
|
|
672 |
|
* Thuban/UI/mainwindow.py (MainWindow.AddDBLayer): Adapt to new |
673 |
|
ChooseDBTableDialog constructor parameters. |
674 |
|
|
675 |
|
2003-09-01 Bernhard Herzog <[email protected]> |
676 |
|
|
677 |
|
* Thuban/Model/postgisdb.py |
678 |
|
(PostGISTable): Extend doc-string |
679 |
|
(PostGISTable._fetch_table_information): Set the column index |
680 |
|
correctly, pretending ignored columns don't exist. |
681 |
|
|
682 |
|
* test/test_postgis_db.py (TestPostGISIgnoredColumns): New tests |
683 |
|
for postgis tables with data types not yet supported by thuban. |
684 |
|
|
685 |
|
2003-08-29 Bernhard Herzog <[email protected]> |
686 |
|
|
687 |
|
* HOWTO-Release: Tweak item about running the tests. |
688 |
|
|
689 |
|
2003-08-29 Jan-Oliver Wagner <[email protected]> |
690 |
|
|
691 |
|
* /Doc/manual/thuban-manual.xml: updated to version 1.0pre2. |
692 |
|
|
693 |
|
2003-08-29 Bernhard Herzog <[email protected]> |
694 |
|
|
695 |
|
Add some missing parameters to projections. Proj complains about |
696 |
|
them on windows but for some reason not on Linux. |
697 |
|
|
698 |
|
* test/test_save.py (SaveSessionTest.testLayerProjection): Add |
699 |
|
missing required projection parameters |
700 |
|
|
701 |
|
* test/test_proj.py (TestProjFile.test): Add missing required |
702 |
|
projection parameters |
703 |
|
|
704 |
|
* test/test_load_0_8.py (TestLayerProjection.file_contents) |
705 |
|
(TestLayerProjection.test): Add missing required projection |
706 |
|
parameters and tests for them |
707 |
|
|
708 |
|
* test/test_load.py (TestLayerProjection.file_contents) |
709 |
|
(TestLayerProjection.test): Add missing required projection |
710 |
|
parameters and tests for them |
711 |
|
|
712 |
|
* test/test_layer.py (TestLayer.test_base_layer): Add missing |
713 |
|
required projection parameters |
714 |
|
|
715 |
|
2003-08-29 Bernhard Herzog <[email protected]> |
716 |
|
|
717 |
|
* libraries/pyprojection/Projection.i: Use pj_get_errno_ref to |
718 |
|
access the pj_errno because directly accessing pj_errno doesn't |
719 |
|
work on windows if the proj library is in a DLL |
720 |
|
|
721 |
|
* libraries/pyprojection/Projection_wrap.c: Update from Projection.i |
722 |
|
|
723 |
|
2003-08-28 Bernhard Herzog <[email protected]> |
724 |
|
|
725 |
|
* test/test_proj.py: Import things from Thuban after calling |
726 |
|
initthuban |
727 |
|
|
728 |
|
* test/test_load.py (LoadSessionTest.filenames): New class |
729 |
|
variable with the filename attributes to normalize |
730 |
|
(LoadSessionTest.check_format): Pass self.filenames to |
731 |
|
sax_eventlist to normalize the filename attributes |
732 |
|
|
733 |
|
* test/xmlsupport.py: Add cvs keywords |
734 |
|
(SaxEventLister.__init__): New parameter filenames which indicates |
735 |
|
attributes that contain filenames |
736 |
|
(SaxEventLister.startElementNS): Normalize the filename attributes |
737 |
|
with os.path.normpath |
738 |
|
(sax_eventlist): New parameter filenames to pass through to |
739 |
|
SaxEventLister |
740 |
|
|
741 |
|
* test/test_derivedshapestore.py: Make this file callable as a |
742 |
|
program to execute the tests |
743 |
|
(TestDerivedShapeStoreExceptions.test_table_with_wrong_size): Bind |
744 |
|
the session to self.session so that it gets destroyed properly |
745 |
|
|
746 |
|
* test/test_layer.py (TestLayer.tearDown): Call the session's |
747 |
|
Destroy method |
748 |
|
|
749 |
|
* test/test_map.py (TestMapBase.tearDown): Destroy self.session |
750 |
|
too if it exists |
751 |
|
(TestMapAddLayer.test_add_layer): Bind the session to self.session |
752 |
|
so that it gets destroyed properly |
753 |
|
|
754 |
|
* test/postgissupport.py (reason_for_not_running_tests): Add a |
755 |
|
test for the existence of popen2.Popen4. |
756 |
|
|
757 |
|
* test/test_save.py (SaveSessionTest.tearDown): New. Provide a |
758 |
|
reliable way to destroy the sessions created in the test cases |
759 |
|
(SaveSessionTest.test_dbf_table): Bind the session to self.session |
760 |
|
so that it gets destroyed properly |
761 |
|
(SaveSessionTest.testLayerProjection): Bind the session to |
762 |
|
self.session so that it gets destroyed properly |
763 |
|
|
764 |
|
* test/test_session.py (UnreferencedTablesTests.tearDown): Make |
765 |
|
sure that the session is destroyed properly |
766 |
|
|
767 |
|
* test/test_shapefilestore.py: Make this callable as a program to |
768 |
|
execute the tests |
769 |
|
|
770 |
|
* test/test_scalebar.py: Remove unnecessary import of _ from |
771 |
|
Thuban |
772 |
|
|
773 |
|
* test/support.py (print_garbage_information): Call initthuban |
774 |
|
here because it may be called indirectly from test cases that test |
775 |
|
test support modules which do not use anything from thuban itself |
776 |
|
(ThubanTestProgram.runTests): Remove unnecessary debug print |
777 |
|
|
778 |
|
2003-08-28 Bernhard Herzog <[email protected]> |
779 |
|
|
780 |
|
* Thuban/version.py (longversion): Update to 0.9 |
781 |
|
|
782 |
|
* Thuban/UI/mainwindow.py: Remove some unused imports |
783 |
|
|
784 |
|
* README: Add section about required additional software. Add date |
785 |
|
and revision CVS keywords |
786 |
|
|
787 |
|
* HOWTO-Release: Add item about the translations. Add date and |
788 |
|
revision CVs keywords and change formatting to match README a bit |
789 |
|
better |
790 |
|
|
791 |
|
* po/de.po: Update for 0.9 |
792 |
|
|
793 |
|
* test/README: Tweak the wording a little because many tests are |
794 |
|
not really unittest. |
795 |
|
|
796 |
|
2003-08-27 Bernhard Herzog <[email protected]> |
797 |
|
|
798 |
|
As preparation for the 0.9 release, switch thuban files to a |
799 |
|
non-dev namespace |
800 |
|
|
801 |
|
* Thuban/Model/save.py (SessionSaver.write_session): Write files |
802 |
|
with the http://thuban.intevation.org/dtds/thuban-0.9.dtd |
803 |
|
namespace |
804 |
|
|
805 |
|
* Thuban/Model/load.py (SessionLoader.__init__): Accept the |
806 |
|
http://thuban.intevation.org/dtds/thuban-0.9.dtd namespace too |
807 |
|
|
808 |
|
* test/test_save.py (SaveSessionTest.dtd) |
809 |
|
(SaveSessionTest.testEmptySession) |
810 |
|
(SaveSessionTest.testSingleLayer) |
811 |
|
(SaveSessionTest.testLayerProjection) |
812 |
|
(SaveSessionTest.testRasterLayer) |
813 |
|
(SaveSessionTest.testClassifiedLayer) |
814 |
|
(SaveSessionTest.test_dbf_table) |
815 |
|
(SaveSessionTest.test_joined_table) |
816 |
|
(SaveSessionTest.test_save_postgis): Update for new namespace |
817 |
|
|
818 |
|
* test/test_load.py (LoadSessionTest.dtd, TestSingleLayer) |
819 |
|
(TestLayerVisibility.file_contents, TestLabels.file_contents) |
820 |
|
(TestLayerProjection.file_contents) |
821 |
|
(TestRasterLayer.file_contents, TestJoinedTable.file_contents) |
822 |
|
(TestPostGISLayer.file_contents) |
823 |
|
(TestPostGISLayerPassword.file_contents) |
824 |
|
(TestLoadError.file_contents, TestLoadError.test): Update for new |
825 |
|
namespace |
826 |
|
|
827 |
|
2003-08-27 Bernhard Herzog <[email protected]> |
828 |
|
|
829 |
|
Make the table interface distinguish between row ids (an integer |
830 |
|
that uniquely identifies a row) and row ordinals (a simple row |
831 |
|
count from 0 to NumRows() - 1) |
832 |
|
|
833 |
|
* Thuban/Model/postgisdb.py (PostGISTable.RowIdToOrdinal) |
834 |
|
(PostGISTable.RowOrdinalToId): New methods to conver between row |
835 |
|
ids and row ordinals |
836 |
|
(PostGISTable.ReadRowAsDict, PostGISTable.ReadValue): New keyword |
837 |
|
parameter row_is_ordinal to indicate whether the row parameter is |
838 |
|
the row id or the ordinal |
839 |
|
|
840 |
|
* Thuban/Model/transientdb.py (TransientTableBase.RowIdToOrdinal) |
841 |
|
(TransientTableBase.RowOrdinalToId) |
842 |
|
(AutoTransientTable.RowIdToOrdinal) |
843 |
|
(AutoTransientTable.RowOrdinalToId): Same new methods as in |
844 |
|
PostGISTable. |
845 |
|
(TransientTableBase.ReadRowAsDict, TransientTableBase.ReadValue) |
846 |
|
(AutoTransientTable.ReadRowAsDict, AutoTransientTable.ReadValue): |
847 |
|
Same new parameter as in PostGISTable. |
848 |
|
|
849 |
|
* Thuban/Model/table.py (DBFTable.RowIdToOrdinal) |
850 |
|
(DBFTable.RowOrdinalToId, MemoryTable.RowIdToOrdinal) |
851 |
|
(MemoryTable.RowOrdinalToId): Same new methods as in PostGISTable. |
852 |
|
(DBFTable.ReadValue, DBFTable.ReadRowAsDict) |
853 |
|
(MemoryTable.ReadValue, MemoryTable.ReadRowAsDict): Same new |
854 |
|
parameter as in PostGISTable. |
855 |
|
|
856 |
|
* Thuban/UI/tableview.py (DataTable.RowIdToOrdinal) |
857 |
|
(DataTable.RowOrdinalToId): New methods to convert between row ids |
858 |
|
and row ordinals. |
859 |
|
(TableGrid.SelectRowById): New method to select a row based on its |
860 |
|
ID as opposed to its ordinal |
861 |
|
(DataTable.GetValue, TableGrid.OnRangeSelect) |
862 |
|
(TableGrid.OnSelectCell, LayerTableGrid.select_shapes) |
863 |
|
(QueryTableFrame.OnQuery, QueryTableFrame.get_selected) |
864 |
|
(LayerTableFrame.__init__): Convert between row ids and row |
865 |
|
ordinals as appropriate |
866 |
|
|
867 |
|
* test/postgissupport.py (PostGISDatabase.__init__): Add |
868 |
|
doc-string. |
869 |
|
(PostGISDatabase.initdb): The optional third item in a tuple in |
870 |
|
tables is now a (key, value) list with additional arguments to |
871 |
|
pass to upload_shapefile |
872 |
|
(upload_shapefile): New parameter gid_offset to allow gids that |
873 |
|
are not the same as the shapeids in the shapefile |
874 |
|
(PostgreSQLServer.get_default_static_data_db): Use the new |
875 |
|
gid_offset to make the gids in landmarks 1000 higher than the |
876 |
|
shapeids in the shapefile |
877 |
|
|
878 |
|
* test/test_viewport.py |
879 |
|
(TestViewportWithPostGIS.test_find_shape_at_point): Adapt to the |
880 |
|
new shapeids in the landmarks table |
881 |
|
|
882 |
|
* test/test_transientdb.py |
883 |
|
(TestTransientTable.run_iceland_political_tests) |
884 |
|
(TestTransientTable.test_transient_joined_table): Add tests for |
885 |
|
the new table methods and new keywords arguments. |
886 |
|
|
887 |
|
* test/test_postgis_db.py |
888 |
|
(TestPostGISTable.test_read_row_as_dict_row_count_mode) |
889 |
|
(TestPostGISTable.test_read_value_row_count_mode) |
890 |
|
(TestPostGISTable.test_row_id_to_ordinal) |
891 |
|
(TestPostGISTable.test_row_oridnal_to_id): New test for the new |
892 |
|
table methods and the new arguments |
893 |
|
(TestPostGISShapestorePoint.test_shapes_in_region) |
894 |
|
(TestPostGISShapestorePoint.test_shape_raw_data) |
895 |
|
(TestPostGISShapestorePoint.test_shape_points) |
896 |
|
(TestPostGISShapestorePoint.test_shape_shapeid) |
897 |
|
(TestPostGISShapestorePoint.test_all_shapes) |
898 |
|
(TestPostGISTable.test_simple_query) |
899 |
|
(TestPostGISTable.test_simple_query) |
900 |
|
(TestPostGISTable.test_simple_query) |
901 |
|
(TestPostGISTable.test_read_value) |
902 |
|
(TestPostGISTable.test_read_row_as_dict): Adapt to the new |
903 |
|
shapeids in the landmarks table |
904 |
|
|
905 |
|
* test/test_memory_table.py |
906 |
|
(TestMemoryTable.test_read_row_as_dict_row_count_mode) |
907 |
|
(TestMemoryTable.test_read_value_row_count_mode) |
908 |
|
(TestMemoryTable.test_row_id_to_ordinal) |
909 |
|
(TestMemoryTable.test_row_oridnal_to_id): New test for the new |
910 |
|
table methods and the new arguments |
911 |
|
|
912 |
|
* test/test_dbf_table.py |
913 |
|
(TestDBFTable.test_read_row_as_dict_row_count_mode) |
914 |
|
(TestDBFTable.test_read_value_row_count_mode) |
915 |
|
(TestDBFTable.test_row_id_to_ordinal) |
916 |
|
(TestDBFTable.test_row_oridnal_to_id): New test for the new table |
917 |
|
methods and the new arguments |
918 |
|
|
919 |
|
2003-08-26 Bernhard Herzog <[email protected]> |
920 |
|
|
921 |
|
* Thuban/Model/postgisdb.py (PostGISShapeStore.BoundingBox): Use a |
922 |
|
more postgis specific but much faster method to get the bounding |
923 |
|
box |
924 |
|
|
925 |
|
2003-08-26 Bernhard Herzog <[email protected]> |
926 |
|
|
927 |
|
* Thuban/Model/postgisdb.py (PostGISTable.Title) |
928 |
|
(PostGISShapeStore.AllShapes): Add these missing methods. |
929 |
|
(PostGISShapeStore.ShapesInRegion): No need to raise |
930 |
|
StopIteration. We can simply return |
931 |
|
|
932 |
|
* test/test_postgis_db.py (TestPostGISTable.test_title) |
933 |
|
(TestPostGISShapestorePoint.test_all_shapes): New tests for the |
934 |
|
new methods |
935 |
|
|
936 |
|
2003-08-25 Bernhard Herzog <[email protected]> |
937 |
|
|
938 |
|
* Thuban/Model/postgisdb.py (shapetype_map): Add MUTLIPOLYGON. |
939 |
|
|
940 |
|
* test/test_postgis_db.py (PolygonTests): New class containing |
941 |
|
those tests from TestPostGISShapestorePolygon that can also be |
942 |
|
used to test MUTLIPOLYGON tables |
943 |
|
(TestPostGISShapestorePolygon): Most tests are now in PolygonTests |
944 |
|
so derive from that |
945 |
|
(TestPostGISShapestoreMultiPolygon): New class with tests for |
946 |
|
MUTLIPOLYGON tables |
947 |
|
|
948 |
|
* test/postgissupport.py (PostGISDatabase.initdb): Allow the |
949 |
|
tables argument to have tuples with three items to override the |
950 |
|
WKT type used. |
951 |
|
(PostgreSQLServer.get_default_static_data_db): Use the above to |
952 |
|
create a polygon table with MUTLIPOLYGONs |
953 |
|
(point_to_wkt, coords_to_point, polygon_to_wkt, coords_to_polygon) |
954 |
|
(arc_to_wkt, coords_to_multilinestring): Rename from *_to_wkt to |
955 |
|
coords_to* |
956 |
|
(coords_to_multipolygon): New. Convert to MUTLIPOLYGON |
957 |
|
(wkt_converter): New. Map WKT types to converters |
958 |
|
(upload_shapefile): New parameter force_wkt_type to use a |
959 |
|
different WKT type than the default |
960 |
|
|
961 |
2003-08-25 Bernhard Herzog <[email protected]> |
2003-08-25 Bernhard Herzog <[email protected]> |
962 |
|
|
963 |
* Thuban/UI/application.py |
* Thuban/UI/application.py |
1901 |
|
|
1902 |
* Thuban/Model/range.py, Thuban/version.py: Remove the #! line as |
* Thuban/Model/range.py, Thuban/version.py: Remove the #! line as |
1903 |
it annoys lintian which warns about these files not being |
it annoys lintian which warns about these files not being |
1904 |
executable. The #1 isn't necessary here since if you absolutely |
executable. The #! isn't necessary here since if you absolutely |
1905 |
must execute them you can always say "python <filename>". |
must execute them you can always say "python <filename>". |
1906 |
|
|
1907 |
* Thuban/UI/renderer.py (ScreenRenderer.draw_shape_layer): Remove |
* Thuban/UI/renderer.py (ScreenRenderer.draw_shape_layer): Remove |