1 |
|
2004-07-22 Bernhard Herzog <[email protected]> |
2 |
|
|
3 |
|
* Thuban/UI/viewport.py (ViewPort.VisibleExtent): New. Return the |
4 |
|
visible extent of the map in projected coordinates |
5 |
|
|
6 |
|
* test/test_viewport.py (SimpleViewPortTest.test_default_size) |
7 |
|
(SimpleViewPortTest.test_init_with_size): Add some VisibleExtent() |
8 |
|
tests. |
9 |
|
(SimpleViewPortTest.test_visible_extent): New. The real test for |
10 |
|
VisibleExtent() |
11 |
|
|
12 |
|
2004-07-22 Bernhard Herzog <[email protected]> |
13 |
|
|
14 |
|
* test/test_viewport.py: Use support.run_tests as the main |
15 |
|
function when running asa script. |
16 |
|
|
17 |
|
2004-07-22 Jan Sch�ngel <[email protected]> |
18 |
|
|
19 |
|
* Extensions/umn_mapserver/mf_export.py: Added "import os" |
20 |
|
Removed the old "import Thuban.UI.mainwindow" code. |
21 |
|
(tbextent_to_map): Removed the extra function and at the code direct |
22 |
|
to "thuban_to_map" function. |
23 |
|
(write_creatorcomment): Added. Now a short comment is added to the |
24 |
|
beginning of an generated mapfile. |
25 |
|
(export_mapfile): Now the Path and filename are saved in to variables, |
26 |
|
and not together in one variable. This is needed for the new |
27 |
|
write_creatorcomment function. |
28 |
|
|
29 |
|
* Extensions/umn_mapserver/mf_import.py (import_mapfile): Added the |
30 |
|
import module "re". Also added Range and the ClassGroupRange import |
31 |
|
from Thuban. Both are needed for the new range expression import. |
32 |
|
(create_rangeexpression): Added. Creates a Range Expression in Thuban |
33 |
|
style from a given mapfile expression. |
34 |
|
(added_rasterlayer): Make some small code changes. The shapepath is |
35 |
|
now stored in an extra variable and the clazz_name is set empty if no |
36 |
|
class name set in the mapfile. |
37 |
|
Changed the Error message for Range Expressions, becaus the new |
38 |
|
function create a error string which will be shown in the dialog. |
39 |
|
|
40 |
|
* Extensions/umn_mapserver/test/test_mapserver.py: Added a test for the |
41 |
|
range expression import. |
42 |
|
|
43 |
|
2004-07-21 Jan-Oliver Wagner <[email protected]> |
44 |
|
|
45 |
|
* Extensions/umn_mapserver/README: Added hint that |
46 |
|
installation as root can be avoided. Removed all tabs. |
47 |
|
|
48 |
|
2004-07-16 Bernhard Herzog <[email protected]> |
49 |
|
|
50 |
|
* test/test_viewport.py |
51 |
|
(ViewPortTest.test_changing_map_projection): Check that changing |
52 |
|
the projection of an empty map shown in a viewport doesn't lead to |
53 |
|
exceptions in the viewport's handler for the |
54 |
|
MAP_PROJECTION_CHANGED messages |
55 |
|
|
56 |
|
* Thuban/UI/viewport.py (ViewPort.map_projection_changed): Only |
57 |
|
try to keep the same region visible when the map actually contains |
58 |
|
something |
59 |
|
|
60 |
|
2004-07-15 Jan Sch�ngel <[email protected]> |
61 |
|
|
62 |
|
* Extensions/umn_mapserver/mapfile.py: Added a function to get the |
63 |
|
mappath directly from the mapobj. Is needed because of the changes |
64 |
|
in mf_import.py. |
65 |
|
(MF_Layer.add_thubanclass): Added a new comment. |
66 |
|
(MF_Map.set_extent): Fixed a bug with exporting empty mapobj. If the |
67 |
|
mapobj is empty there is no extent get from thuban an so no one can |
68 |
|
set to th mapobj. |
69 |
|
|
70 |
|
* Extensions/umn_mapserver/mf_import.py (import_mapfile): Updated |
71 |
|
the discription. |
72 |
|
Split the funktion in to three smaller ones. The new functions are |
73 |
|
add_rasterlayer, add_polygonlayer and select_layer2import. |
74 |
|
Removed the mapfilepath and filepath initialisation, because its know |
75 |
|
include in the new functions. |
76 |
|
Now nothing will be imported if cancel is pressed in the |
77 |
|
layer choice dialog. |
78 |
|
|
79 |
|
2004-07-14 Jan Sch�ngel <[email protected]> |
80 |
|
|
81 |
|
* Extensions/umn_mapserver/mapfile.py: Added ClassGroupDefault to |
82 |
|
import. |
83 |
|
(MF_Symbolset): Removed the extra variable for numsymbols. |
84 |
|
(MF_Class.__init__): Added a comment to the exception clause. |
85 |
|
Removed the extent init, because it was not needed anymore. |
86 |
|
(MF_Layer.add_thubanclass): Added the code to set the class name to |
87 |
|
the expression value from thuban if no label is defined. |
88 |
|
Added the code to export Range expressions from thuban to the mapfile. |
89 |
|
(MF_Map.set_extent): Removed the exception and replace it by some if |
90 |
|
code. If the size of a map is not defined the size will be set to 1,1. |
91 |
|
This is necessary because if the extent is set, mapscript checks if |
92 |
|
the size is greater than zero. |
93 |
|
(MF_Web): Added the get and set function for the template. |
94 |
|
|
95 |
|
* Extensions/umn_mapserver/mf_export.py: Added the function to check |
96 |
|
if a mapobject exists and used it to set the status of the menu items. |
97 |
|
If no mapfile exists the settings could not be edditied. |
98 |
|
Define after which menuitem the exportitem will include. |
99 |
|
|
100 |
|
* Extensions/umn_mapserver/mf_handle.py: Removed the import |
101 |
|
Thuban.UI.mainwindow clause, because it is not needed. |
102 |
|
Added the command Refresh() to all "OnChangeColor()" functions, |
103 |
|
because the color preview window was not updated on a color change. |
104 |
|
Added the function to check if a mapobject exists and used it to set the |
105 |
|
status of the menu items. If no mapobject exists the settings could not |
106 |
|
be edditied. |
107 |
|
(Map_Dialog): Moved the imagetype selector from the |
108 |
|
Outputformat_Dialog to Map_Dialog and removed Outputformat_Dialog. |
109 |
|
(Web_Dialog): Removed the name label and added the template textbox. |
110 |
|
|
111 |
|
* Extensions/umn_mapserver/mf_import.py (import_mapfile): Replace |
112 |
|
the exception handling on loading the layers by an if statement. It |
113 |
|
is not necessary to us the exception there. |
114 |
|
The Filepath creation now use os.path.join to build the path. |
115 |
|
|
116 |
|
* Extensions/umn_mapserver/test/test_mapserver.py: Moved the testMap |
117 |
|
definition from global to the setUp function. Now the testMap will |
118 |
|
initialize new on each test. |
119 |
|
|
120 |
|
* Extensions/umn_mapserver/sample/iceland.map: Include three new |
121 |
|
classes in the Line Layer, to test logical Expressions. |
122 |
|
Set the status of the class "Point9" in the Point Layer to off |
123 |
|
|
124 |
|
2004-07-13 Bernhard Herzog <[email protected]> |
125 |
|
|
126 |
|
* Thuban/UI/baserenderer.py |
127 |
|
(BaseRenderer.render_map_incrementally): Fix a logic bug in the |
128 |
|
optimization that tries not to draw layers under a raster layer. |
129 |
|
The bug was harmless. All it effectively did was to produce The a |
130 |
|
strange messages about not being able to draw Layer instances for |
131 |
|
all vector layers below a raster layer which would be invisible |
132 |
|
anyway because the raster layer currently always covers the entire |
133 |
|
window |
134 |
|
|
135 |
|
2004-07-08 Jan Sch�ngel <[email protected]> |
136 |
|
|
137 |
|
* Extensions/umn_mapserver/mapfile.py: Added code to generade and get |
138 |
|
a list of supported outputformats. This formats are not alle supported |
139 |
|
because there is no possibility to get the outputformat without the |
140 |
|
name known. Make some formal changes to the code. |
141 |
|
(MF_Map.set_name()): Fixed a bug if the name is None. |
142 |
|
|
143 |
|
* Extensions/umn_mapserver/mf_handle.py: Removed the image_type import |
144 |
|
statement, because its not needed anymore. The Outputformat is now |
145 |
|
given as string from the object. Make some formal changes to the code. |
146 |
|
|
147 |
|
* Extensions/umn_mapserver/test/test_mapserver.py: Added new test for |
148 |
|
most of the new setting which were added during the last changes. |
149 |
|
Removed the MF_Size Test. |
150 |
|
|
151 |
|
* Extensions/umn_mapserver/test/test.map: Added a new class to the |
152 |
|
cultural Layer to test expressions and the the status of that layer |
153 |
|
from on to default. |
154 |
|
Changed the data path the the correct Thuban Data |
155 |
|
Added the Outputformat Object and Symbol Object |
156 |
|
|
157 |
|
2004-07-07 Jan Sch�ngel <[email protected]> |
158 |
|
|
159 |
|
* Extensions/umn_mapserver/mapfile.py: Added some new |
160 |
|
settings to edit (outputformat, label, imagetype) |
161 |
|
|
162 |
|
* Extensions/umn_mapserver/mf_handle.py: Added some setting to |
163 |
|
the Label Dialog and add the OutputDialog. |
164 |
|
Make some changes to the code order. |
165 |
|
|
166 |
|
2004-07-06 Jan Sch�ngel <[email protected]> |
167 |
|
|
168 |
|
* Extensions/umn_mapserver/mapfile.py: Added the symbolObj, pointObj |
169 |
|
and line Obj and add the scalebar_status_type, scalebar_style_type and |
170 |
|
scalebar_position_type. |
171 |
|
Added the symbol- and symbolsetObject (MF_Symbol,MF_Symbolset). The |
172 |
|
are only used to create a Symbol like the circle in Thuban. |
173 |
|
Added the scalebarObject (MF_Scalebar) |
174 |
|
(MF_Class): Added set_status and get_status. |
175 |
|
(MF_Layer.add_thubanclass): Added code to set the class status |
176 |
|
(MF_Map): Added code to handle the symbols and scalebar |
177 |
|
(MF_Label): Added the set_partials and get_partials functions |
178 |
|
|
179 |
|
* Extensions/umn_mapserver/mf_export.py: Added MF_Symbol to import |
180 |
|
from mapfile. Added a function to create a circle object like the one |
181 |
|
from thuban if no one exists. |
182 |
|
|
183 |
|
* Extensions/umn_mapserver/mf_handle.py: All colors are now set when |
184 |
|
press ok in the assosiated dialog and not at the end of the |
185 |
|
colordialog. |
186 |
|
Added the Dialog for the Scalebar. |
187 |
|
(Label_Dialog): Added the offset option |
188 |
|
|
189 |
|
* Extensions/umn_mapserver/mf_import.py: Added code to import the |
190 |
|
status of the Classes. |
191 |
|
Fixed a bug with the projection. Now the to_meter parameter will be |
192 |
|
added to the Projection only if it doesn't exists. |
193 |
|
|
194 |
|
2004-07-01 Jan Sch�ngel <[email protected]> |
195 |
|
|
196 |
|
Added the functionality to handle the content thuban is not |
197 |
|
able to handle directly. |
198 |
|
|
199 |
|
* Extensions/umn_mapserver/mf_handle.py: New. This module extents |
200 |
|
Thuban with the possibility to edit the mapfile content. |
201 |
|
|
202 |
|
* Extensions/umn_mapserver/mf_import.py: Added the possibility |
203 |
|
to import mapfiles without any layer selected. So it is possible |
204 |
|
to edit the other settings in a mapfile. |
205 |
|
(import_mapfile): Added code to use the editing functions. |
206 |
|
Added the possibility to import the projection to a layer if one |
207 |
|
is defined. |
208 |
|
Status settings (On,Off) will now set in thuban (visible, invisible). |
209 |
|
fixed a bug with with classnames. If no classname is set in mapfile |
210 |
|
the value in Thuban will set to the expression. |
211 |
|
|
212 |
|
* Extensions/umn_mapserver/mf_export.py(export_mapfile): Added the |
213 |
|
possibility to save a new mapfile or use the old one which is |
214 |
|
imported or new created. |
215 |
|
Added code to use the editing functions. |
216 |
|
Remove some not needed import statements |
217 |
|
|
218 |
|
* Extensions/umn_mapserver/mapfile.py: Added new types which are |
219 |
|
need for the editing functions. |
220 |
|
Added needed set-functions for the editing functions. |
221 |
|
Added the possibility to export rasterimages. |
222 |
|
Added new classes (MF_Web, MF_Label, MF_Legend, MF_Symbol, |
223 |
|
MF_SymbolSet). MF_Symbol and MF_SymbolSet are not needed at the |
224 |
|
moment. |
225 |
|
(MF_Class.set_thubanstyle): Now point layers will set to a default |
226 |
|
symbol to show a circle in mapserver and not only a 1px dot. |
227 |
|
(MF_Style.__init__): Fixed a bug with the color. Color was not set |
228 |
|
correct before. |
229 |
|
(MF_Size): Removed, because it is not needed. |
230 |
|
|
231 |
|
* Extensions/umn_mapserver/README: Added the hints to use the |
232 |
|
export and editing functions, too. |
233 |
|
|
234 |
|
* Extensions/umn_mapserver/sample/iceland.map: Added the |
235 |
|
new parameter "UNITS METERS". |
236 |
|
Change the political layer to status OFF. |
237 |
|
|
238 |
|
* Extensions/umn_mapserver/sample/README: Added some |
239 |
|
more details to setup the sample in the MapServer. |
240 |
|
|
241 |
|
2004-06-26 Bernhard Reiter <[email protected]> |
242 |
|
|
243 |
|
* Extensions/svgexport/test/test_svgmapwriter.py: |
244 |
|
Removed class VFile and used standard StringIO instead. |
245 |
|
|
246 |
|
2004-06-23 Jan Sch�ngel <[email protected]> |
247 |
|
|
248 |
|
Add the export function to the umn_mapserver extension. |
249 |
|
|
250 |
|
* Extension/umn_mapserver/mf_export.py: New. This module extents |
251 |
|
Thuban with the possibility to export the Thuban content. |
252 |
|
|
253 |
|
* Extensions/umn_mapserver/mapfile.py: Expand the classes to use |
254 |
|
with the export module. Especially added the possibility to |
255 |
|
add thuban objects directly to the map objects. |
256 |
|
|
257 |
|
* Extensions/umn_mapserver/mf_import.py: Removed the wxCHANGE_DIR, |
258 |
|
because of the hint from Bernhard Herzog. |
259 |
|
Corrected the handling of absolute pathnames. |
260 |
|
Changed the Text of the Menu-Item, now the beginning is upper case. |
261 |
|
|
262 |
|
* Extensions/umn_mapserver/README: Added the --with-tiff statement. |
263 |
|
|
264 |
|
2004-06-16 Jan Sch�ngel <[email protected]> |
265 |
|
|
266 |
|
Add a sample and make some changes. |
267 |
|
|
268 |
|
* Extension/umn_mapserver/mf_import.py: Changed the wxPython.wx |
269 |
|
import from * to explicit used statements. Changed the |
270 |
|
Thuban.UI.mainwindow import phrase, too. |
271 |
|
(import_mapfile):Corrected a clerical mistake. |
272 |
|
Added wxCHANGE_DIR in OpenFile Dialog. |
273 |
|
Added a MultipleChoiceDialog, to select the layers to load from |
274 |
|
mapfile into thuban. Thereby the projection is only set if one layer |
275 |
|
is selected. |
276 |
|
Added the possibility to handle relative pathnames which uses |
277 |
|
up-level references. |
278 |
|
Removed some doubled code. |
279 |
|
Corrected an error with integer values used as label in thuban |
280 |
|
ClassGroup. |
281 |
|
|
282 |
|
* Extensions/umn_mapserver/sample: New. |
283 |
|
|
284 |
|
* Extensions/umn_mapserver/sample/README: New. Describes the |
285 |
|
usage of the sample files. |
286 |
|
|
287 |
|
* Extensions/umn_mapserver/sample/iceland.map: New. This is |
288 |
|
a suitable .map-file for the iceland data. |
289 |
|
|
290 |
|
* Extensions/umn_mapserver/sample/index.html: New. The template |
291 |
|
for the mapfile. |
292 |
|
|
293 |
|
* Extensions/umn_mapserver/sample/iceland.html: New. Initialisation |
294 |
|
file for the Iceland Application on web. |
295 |
|
|
296 |
|
* Extensions/umn_mapserver/README: Corrected a inaccuracy and added |
297 |
|
some details. |
298 |
|
|
299 |
|
* Extensions/umn_mapserver/test/test_mapserver |
300 |
|
(mapserver_import_Test_generalClasses.test_MF_Color): |
301 |
|
Corrected the thubancolor test. |
302 |
|
|
303 |
|
2004-06-15 Jan Sch�ngel <[email protected]> |
304 |
|
|
305 |
|
* Extensions/umn_mapserver/README: New. Install instruction. |
306 |
|
|
307 |
|
2004-06-14 Bernhard Reiter <[email protected]> |
308 |
|
|
309 |
|
* libraries/thuban/cpl_mfile.h: Added copyright header. |
310 |
|
|
311 |
|
* libraries/thuban/ cpl_mfile.cpp, cpl_mfile.h: Added non-protecting |
312 |
|
Free Software License so that it is most useful with gdalwarp |
313 |
|
and bmpdataset. |
314 |
|
|
315 |
|
2004-06-14 Bernhard Herzog <[email protected]> |
316 |
|
|
317 |
|
* Thuban/UI/multiplechoicedialog.py (__version__): Add missing |
318 |
|
import of wxPython.wx itself (as opposed to the contents of |
319 |
|
wxPython.wx). For some reason wxPython.wx is available as |
320 |
|
wxPython.wx.wx in at least some 2.4 releases. Fixes RT#2482 |
321 |
|
wrt. wxPython 2.4. |
322 |
|
|
323 |
|
2004-06-10 Jan Sch�ngel <[email protected]> |
324 |
|
|
325 |
|
Initial version of new extension "umn_mapserver". This extension aims |
326 |
|
to manage configuration for the UMN MapServer application. This |
327 |
|
inital version just imports the .map-files and displays all, Thuban is |
328 |
|
capable of. |
329 |
|
|
330 |
|
* Extensions/umn_mapserver, Extensions/umn_mapserver/test: New. |
331 |
|
|
332 |
|
* Extensions/umn_mapserver/test/README: New. Describes how to run the |
333 |
|
tests. |
334 |
|
|
335 |
|
* Extensions/umn_mapserver/test/test.map: New. This is a test |
336 |
|
.map-file for automated tests of the umn_mapserver extension of |
337 |
|
Thuban. |
338 |
|
|
339 |
|
* Extensions/umn_mapserver/test/test_mapserver.py: New. Tests for |
340 |
|
UMN Mapserver classes. |
341 |
|
|
342 |
|
* Extensions/umn_mapserver/__init__.py: New. Init to make this |
343 |
|
directory a package. |
344 |
|
|
345 |
|
* Extensions/umn_mapserver/mapfile.py: New. Classes to represent |
346 |
|
'.map'-file objects. |
347 |
|
|
348 |
|
* Extensions/umn_mapserver/mf_import.py: New. This module extends |
349 |
|
Thuban with the possibility to handle UMN MapServer mapfiles. |
350 |
|
|
351 |
|
2004-06-03 Bernhard Herzog <[email protected]> |
352 |
|
|
353 |
|
* Thuban/Model/layer.py (Layer.TreeInfo): Convert the bounding box |
354 |
|
to a tuple before using it as arguments to the % operator. This |
355 |
|
fixes the formatting issue filed in RT#2239 on 2004-01-13 and |
356 |
|
reported today on thuban-list by Jan Sch�ngel |
357 |
|
|
358 |
|
* test/test_layer.py (TestLayerModification.setUp): Save the |
359 |
|
filename as an instance variable so we can refer to it in tests |
360 |
|
(TestLayerModification.test_tree_info): Uncomment this method |
361 |
|
again and make it work. This tests for the formatting issue |
362 |
|
filed in RT#2239 on 2004-01-13 |
363 |
|
|
364 |
|
2004-05-28 Bernhard Herzog <[email protected]> |
365 |
|
|
366 |
|
* Thuban/UI/baserenderer.py: Fix some typos. |
367 |
|
|
368 |
|
2004-05-18 Jan-Oliver Wagner <[email protected]> |
369 |
|
|
370 |
|
* Extensions/gns2shp/gns2shp.py (gns2shp): Fixed a bug |
371 |
|
by increasing a field size. |
372 |
|
|
373 |
|
2004-05-17 Bernhard Herzog <[email protected]> |
374 |
|
|
375 |
|
Update to newest shapelib and get rid of Thuban specific |
376 |
|
extensions, i.e. use the new DBFUpdateHeader instead of our |
377 |
|
DBFCommit kludge |
378 |
|
|
379 |
|
* libraries/shapelib/shpopen.c: Update to version from current |
380 |
|
shapelib CVS. |
381 |
|
|
382 |
|
* libraries/shapelib/shapefil.h: Update to version from current |
383 |
|
shapelib CVS. |
384 |
|
|
385 |
|
* libraries/shapelib/dbfopen.c: Update to version from current |
386 |
|
shapelib CVS. |
387 |
|
(DBFCommit): Effectively removed since shapelib itself has |
388 |
|
DBFUpdateHeader now which is better for what DBFCommit wanted to |
389 |
|
achieve. |
390 |
|
We're now using an unmodified version of dbfopen. |
391 |
|
|
392 |
|
* setup.py (extensions): Add the HAVE_UPDATE_HEADER macro with |
393 |
|
value '1' to the Lib.dbflibc extension. This simply reflects the |
394 |
|
shapelib and pyshapelib updates |
395 |
|
|
396 |
|
2004-05-16 Jan-Oliver Wagner <[email protected]> |
397 |
|
|
398 |
|
Finished introduction of Menu.FindOrInsertMenu. |
399 |
|
|
400 |
|
* Extensions/drawshape/drawshape.py: Add the command |
401 |
|
to the experimental menu additionally to the toolbar. |
402 |
|
|
403 |
|
* Extensions/svgexport/svgsaver.py: Use FindOrInsertMenu() instead of |
404 |
|
finding menu on its own. |
405 |
|
|
406 |
|
* Doc/manual/thuban-manual.xml: updated sample file |
407 |
|
to use FindOrInsertMenu(). |
408 |
|
|
409 |
|
* Examples/simple_extensions/hello_world.py: Use FindOrInsertMenu() |
410 |
|
instead of finding menu on its own. |
411 |
|
|
412 |
|
2004-05-11 Jan-Oliver Wagner <[email protected]> |
413 |
|
|
414 |
|
* test/test_menu.py (MenuTest.test): Added testing |
415 |
|
of method Menu.FindOrInsertMenu. |
416 |
|
|
417 |
|
2004-05-10 Jan-Oliver Wagner <[email protected]> |
418 |
|
|
419 |
|
Introduce and use Menu.FindOrInsertMenu. |
420 |
|
|
421 |
|
* Thuban/UI/menu.py (Menu.FindOrInsertMenu): New. Find a |
422 |
|
given menu or, if not found, insert it. |
423 |
|
|
424 |
|
* Extensions/bboxdump/bboxdump.py, /Extensions/gns2shp/gns2shp.py, |
425 |
|
/Extensions/importAPR/importAPR.py, Extensions/profiling/profiling.py, |
426 |
|
/Extensions/wms/wms.py: Use FindOrInsertMenu() instead of finding |
427 |
|
menu on its own. |
428 |
|
|
429 |
|
2004-05-06 Jan-Oliver Wagner <[email protected]> |
430 |
|
|
431 |
|
Introduce a abstract ColorDialog class and remove |
432 |
|
and outdated file. |
433 |
|
|
434 |
|
* Thuban/UI/proj4dialog.py: Removed. It is has been |
435 |
|
replaced by projdialog for quite a while and is not used |
436 |
|
anymore. |
437 |
|
|
438 |
|
* Thuban/UI/colordialog.py: New. Abstraction for color selection |
439 |
|
dialog(s). |
440 |
|
|
441 |
|
* Thuban/UI/classifier.py (SelectPropertiesDialog.__GetColor): |
442 |
|
Now calls the abstract ColorDialog instead of wxColourDialog. |
443 |
|
This also removed the dependency to Color class conversion |
444 |
|
from this function. |
445 |
|
|
446 |
|
2004-05-04 Frank Koormann <[email protected]> |
447 |
|
|
448 |
|
* Extensions/bboxdump/__init__.py: Fixed string left over from |
449 |
|
copying. |
450 |
|
|
451 |
|
* Extensions/bboxdump/bboxdump.py (bboxdump): |
452 |
|
Use layer.ShapeStore().AllShapes() to loop over shapes instead of |
453 |
|
xrange(layer.NumShapes()). Compile the bboxmessage from a list |
454 |
|
of formatted outputs (string.join) instead of appending to the |
455 |
|
message. Two progress bar dialogs to report progress on the sometimes |
456 |
|
lenghty processing. |
457 |
|
|
458 |
|
2004-04-22 Frank Koormann <[email protected]> |
459 |
|
|
460 |
|
New Extension to dump bounding boxes of all shapes of the selected |
461 |
|
layer. An optional column can be specified to group the objects, |
462 |
|
in this case the bounding box is a union of the separate boxes. |
463 |
|
Dump can be displayed in a ScrolledMessageDialog or written to file. |
464 |
|
The Extension is simply a combination of available and well tested |
465 |
|
Thuban functionality. |
466 |
|
|
467 |
|
* Extensions/bboxdump/__init__.py: New: Init to make this |
468 |
|
directory a package. |
469 |
|
|
470 |
|
* Extensions/bboxdump/bboxdump.py: New: Dump bounding boxes of |
471 |
|
all shapes of the selected layer. |
472 |
|
|
473 |
|
2004-04-22 Jan-Oliver Wagner <[email protected]> |
474 |
|
|
475 |
|
* Thuban/UI/classgen.py (GenUniquePanel.__init__): Fixed two |
476 |
|
strings to be i18n now. |
477 |
|
|
478 |
|
2004-04-18 Jan-Oliver Wagner <[email protected]> |
479 |
|
|
480 |
|
Changing popup menu of legend from direct building |
481 |
|
to using the Menu construction as used for the mainwindow. |
482 |
|
|
483 |
|
* Thuban/UI/mainwindow.py: New method commands: layer_to_top, |
484 |
|
layer_to_bottom, layer_visibility |
485 |
|
(MainWindow.LayerToTop): New. Put current layer to the top. |
486 |
|
(MainWindow.LayerToBottom): New. Put current layer to bottom. |
487 |
|
(MainWindow.HideLayer, MainWindow.ShowLayer, _has_visible_map): |
488 |
|
Replace 1,0 by True, False. |
489 |
|
(MainWindow.ToggleLayerVisibility): New. Toggle visibility of |
490 |
|
current layer. |
491 |
|
(MainWindow.LayerShowTable): Removed raising of dialog. |
492 |
|
(_has_selected_layer_visible): New. Support function. |
493 |
|
|
494 |
|
* Thuban/UI/legend.py: ID_POP_xxx: removed. |
495 |
|
(LegendPanel.__init__): Removed EVT_MENU bindings. |
496 |
|
(LegendTree._OnRightClick): Replace direct creation of |
497 |
|
menu via wx Classes by applying the menu definition |
498 |
|
as of Menu class of menu.py. |
499 |
|
|
500 |
|
2004-04-16 Jan-Oliver Wagner <[email protected]> |
501 |
|
|
502 |
|
* Thuban/UI/exceptiondialog.py (ExceptionDialog.dialog_layout): Improved |
503 |
|
button string to stronger clearify that Thuban will be closed when hitting |
504 |
|
the button. |
505 |
|
|
506 |
|
* Thuban/UI/mainwindow.py (MainWindow.LayerShowTable): Added docstring. |
507 |
|
Now for layers without a ShapeStore a corresponding message is given |
508 |
|
to the user, that this layer has no table to show. |
509 |
|
|
510 |
|
2004-04-15 Martin Schulze <[email protected]> |
511 |
|
|
512 |
|
* Extensions/wms/layer.py (WMSLayer.setWMSFormat): Need to |
513 |
|
recalculate the format for the internal render engine as well. |
514 |
|
|
515 |
|
* Extensions/wms/properties.py (wmsProperties): First start for a |
516 |
|
properties dialog. It's functional for a first selection of |
517 |
|
layers, but still has some weired wxWidgets/GTK problems but |
518 |
|
beautification can be done later. |
519 |
|
|
520 |
|
* Extensions/wms/layer.py: Added more documentation |
521 |
|
(WMSLayer.getFormats): New: Return list of supported image formats |
522 |
|
by the WMS server |
523 |
|
(WMSLayer.getLayers): New: Return the list of layer names |
524 |
|
supported by the WMS server |
525 |
|
(WMSLayer.getLayerTitle): New: Return the title of the named layer |
526 |
|
(WMSLayer.getWMSFormat): New: Return the image format that is used |
527 |
|
for WMS GetMap requests |
528 |
|
(WMSLayer.setWMSFormat): New: Set the image format that is used |
529 |
|
for WMS GetMap requests |
530 |
|
(WMSLayer.__init__): Move away from using only one layer to using |
531 |
|
a list of layers (unsorted at the moment, though). |
532 |
|
(WMSLayer.getVisibleLayers): New: Return the list of names for all |
533 |
|
visible layers |
534 |
|
(WMSLayer.setVisibleLayers): New: Set the list of names for all |
535 |
|
visible layers |
536 |
|
|
537 |
|
* Extensions/wms/wms.py: Moved the WMS layer into layer.py in |
538 |
|
order to establish a clean structure. |
539 |
|
|
540 |
|
* Extensions/wms/layer.py: Moved the WMS layer into a file on its |
541 |
|
own in order to establish a clean structure. |
542 |
|
|
543 |
|
2004-04-13 Martin Schulze <[email protected]> |
544 |
|
|
545 |
|
* Extensions/wms/parser.py (WMSCapabilitiesParser.grok): Added |
546 |
|
support for oldstyle (WMS 1.0 apparently) image format |
547 |
|
specification. |
548 |
|
|
549 |
|
* Extensions/wms/wms.py (WMSLayer.calcFormat): Reduce the list of |
550 |
|
supported graphic formats back to JPEG and BMP, PNG and others are |
551 |
|
too *cough* experimental... Sorry, I meant to filter this out |
552 |
|
before I committed this part. This should make the WMS extension |
553 |
|
run from CVS again. |
554 |
|
(wms_dialog): Reset an empty URL to None so that the subsequent |
555 |
|
program can depend on this, since the dialog will indeed return an |
556 |
|
empty URL, causing another declaration of love by Python. |
557 |
|
|
558 |
|
* Extensions/wms/parser.py (WMSCapabilitiesParser.getLayerBBox): |
559 |
|
Whenever a native BoundingBox request cannot be fulfilled, check |
560 |
|
whether the requested SRS is EPSG:3426, in which case return the |
561 |
|
LatLonBoundingBox values. |
562 |
|
|
563 |
|
* Extensions/wms/test/test_parser.py |
564 |
|
(TestWMSCapabilitiesParser.test_LayerSRS): Added a test for |
565 |
|
ignoring AUTO:* SRS. |
566 |
|
(TestWMSCapabilitiesParser.test_LatLonBoundingBoxes_as_bboxes): |
567 |
|
Added another test method to test whether the LatLonBoundingBox |
568 |
|
values will be returned if BoundingBox values are requested with |
569 |
|
SRS set to EPSG:3426. |
570 |
|
|
571 |
|
* Extensions/wms/parser.py (WMSCapabilitiesParser.peekLayers): |
572 |
|
Added rudimentary support for non-EPSG SRS, i.e. ignore them for |
573 |
|
the moment by placing them into a variable which is currently |
574 |
|
unused. Also test whether the EPSG SRS is numerical as it should |
575 |
|
be and add an error message if it is not. |
576 |
|
|
577 |
|
* Extensions/wms/test/sample.xml: Added AUTO:* SRS since they |
578 |
|
appear in the real world as well. Since we cannot handle them yet |
579 |
|
(OGCLib can't either), we will ignore them for the moment. |
580 |
|
|
581 |
|
* Extensions/wms/parser.py: Use a variable for denoting the sample |
582 |
|
filename |
583 |
|
(WMSCapabilitiesParser.peekLayers): Added support for error |
584 |
|
messages during grok(). They will be aggregated in an array and |
585 |
|
may be displayed later. We may have to add a classification |
586 |
|
"Warning" and "Error" to this. That requires more experience, |
587 |
|
though, since not every error may be lethal. |
588 |
|
|
589 |
|
* Thuban/UI/mainwindow.py (MainWindow.LayerShowTable): Raise the |
590 |
|
ShowTable() dialog/frame when the user attempts to display it |
591 |
|
while it has been opened before already and not closed again. |
592 |
|
|
593 |
|
2004-04-11 Martin Schulze <[email protected]> |
594 |
|
|
595 |
|
* Extensions/wms/infodialog.py: Adjusted the class documentation |
596 |
|
|
597 |
|
* Extensions/wms/wms.py (WMSLayer.__init__, WMSLayer.GetMapImg): |
598 |
|
Switch to using Thuban{Begin,End}BusyCursor instead of the pure |
599 |
|
wxWidgets variants. |
600 |
|
(WMSLayer.__init__): The epsg_id variable is named top_srs now. |
601 |
|
|
602 |
|
* Extensions/wms/infodialog.py: Added an information dialog that |
603 |
|
will display various information about the WMS current resource, |
604 |
|
so that additional information such as the title, the abstract, |
605 |
|
fees and access constraints can be displayed for the user if they |
606 |
|
are documented in the WMS XML. |
607 |
|
|
608 |
|
2004-04-10 Martin Schulze <[email protected]> |
609 |
|
|
610 |
|
* Extensions/wms/parser.py (WMSCapabilitiesParser.grok): Adjusted |
611 |
|
string handling. It's "foo".lower() and not lower(foo) without |
612 |
|
lower imported from strings or something. |
613 |
|
|
614 |
|
* Extensions/wms/wms.py (WMSLayer): Incorporated WMSCapabilities |
615 |
|
from capabilities.py and parser.py. Implement priority list for |
616 |
|
supported graphics formats, take care of wbmp != bmp. PNG, TIFF |
617 |
|
and GIF are supported here, but not yet by main Thuban. Hence, |
618 |
|
support for them may be removed later. Special contribution to |
619 |
|
usability: get wxWidgets to change the cursor when we're waiting |
620 |
|
for data from the network so the user won't start to worry. This |
621 |
|
causes a redrawing error/warning, though. |
622 |
|
|
623 |
|
* Extensions/wms/parser.py (WMSCapabilitiesParser.grok): Unlink |
624 |
|
the DOM object. |
625 |
|
|
626 |
|
2004-04-01 Martin Schulze <[email protected]> |
627 |
|
|
628 |
|
* Extensions/wms/capabilities.py: Adjusted documentation |
629 |
|
(WMSCapabilities.__init__): Improved documentation, fixed syntax |
630 |
|
(WMSCapabilities.saveCapabilities): Only catch IOError when |
631 |
|
handling files |
632 |
|
(WMSCapabilities.loadCapabilities): Only catch IOError when |
633 |
|
handling files |
634 |
|
__main__: corrected variable naming |
635 |
|
(WMSCapabilities.fetchCapabilities,loadCapabilities): Make this |
636 |
|
class a specialisation of WMSCapabilitiesParser as well. Also |
637 |
|
execute grok() after loading or fetching capabilities, if that |
638 |
|
went well, so that subsequent calls can already access the data. |
639 |
|
(WMSCapabilities.getVersion): Export the used version of the |
640 |
|
GetCapabilities request, so we can use it for subsequent calls, |
641 |
|
i.e. for GetMap requests. |
642 |
|
(WMSCapabilities.fetchCapabilities): Added proper error handling |
643 |
|
when the GetCapabilities request failed, so that the surrounding |
644 |
|
program can act accordingly. |
645 |
|
|
646 |
|
2004-03-30 Martin Schulze <[email protected]> |
647 |
|
|
648 |
|
* Extensions/wms/parser.py (WMSCapabilitiesParser.getLayerSRS): |
649 |
|
Adjusted the getLayerSRS method to return the list of SRSes |
650 |
|
extracted from <SRS> elements instead of <BoundingBox> elements. |
651 |
|
Added a bit of documentation as well. |
652 |
|
(WMSCapabilitiesParser.checkLayerSRS): Removed integrity test |
653 |
|
since it was only implemented due to a misunderstanding. |
654 |
|
|
655 |
|
* Extensions/wms/test/test_parser.py |
656 |
|
(TestWMSCapabilitiesParser.test_LayerSRS): Adjust the tests to |
657 |
|
reflect the corrected interpretation of the standard: i.e. a layer |
658 |
|
does not have to define a BoundingBox for all SRSes it supports. |
659 |
|
Hence the <SRS></SRS> specification is authoritative, not the list |
660 |
|
of BoundingBoxes. |
661 |
|
(TestWMSCapabilitiesParser.test_BoundingBoxes): Added a new test |
662 |
|
to ensure None is returned for a non-existing SRS. |
663 |
|
(TestWMSCapabilitiesParser.test_grok): Removed test_grok method |
664 |
|
since it is not applicable anymore. Listing more SRSes in <SRS> |
665 |
|
elements is valid according to the specs. |
666 |
|
|
667 |
|
2004-03-26 Bernhard Reiter <[email protected]> |
668 |
|
|
669 |
|
* README: Nicer formatting of text. Improved descriptions. |
670 |
|
Reflected wxWidgets name change. |
671 |
|
|
672 |
|
* Thuban/UI/about.py: Extended copyright to 2004 and added |
673 |
|
information about the thuban-devel mailinglist. |
674 |
|
|
675 |
|
2004-03-24 Martin Schulze <[email protected]> |
676 |
|
|
677 |
|
* Extensions/wms/capabilities.py: Renamed the class to contain |
678 |
|
'WMS', also added a linebreak where required |
679 |
|
|
680 |
|
* Extensions/wms/parser.py: Finally added the XML parser for the |
681 |
|
GetCapabilities response. |
682 |
|
|
683 |
|
* Extensions/wms/test/sample.xml: Adjusted the sample file so that |
684 |
|
<SRS> elements match the <BoundingBox> elements, except for the |
685 |
|
layer 'beschriftung'. |
686 |
|
|
687 |
|
* Extensions/wms/test/test_parser.py: Encode non-ascii strings |
688 |
|
since Python uses unicode strings internally, otherwise |
689 |
|
comparisons will fail. Removed tests for getLayerBBoxSRS() since |
690 |
|
the SRS will be calculated anyway and this method is obsoleted by |
691 |
|
getLayerSRS(). Denote SRS as strings and not as cardinal numbers. |
692 |
|
Move loading the sample file into the setUp method. Added a test |
693 |
|
for finding the integrity problem in the sample response. |
694 |
|
Improved formatting. |
695 |
|
|
696 |
|
* Extensions/wms/domutils.py: Added convenience routines for |
697 |
|
handling of Document Object Model (DOM) nodes. |
698 |
|
|
699 |
|
* Extensions/wms/test/test_domutils.py: Added a test for the |
700 |
|
domutils module |
701 |
|
|
702 |
|
2004-03-19 Martin Schulze <[email protected]> |
703 |
|
|
704 |
|
* Extensions/wms/test/test_parser.py (TestWMSCapabilitiesParser): |
705 |
|
Moved path detection and adding into a module of its own, |
706 |
|
adjustpath, which exports thubandir as main Thuban directory. |
707 |
|
|
708 |
|
* Extensions/wms/test/test_ogclib.py (TestWMSLib): Moved path |
709 |
|
detection and adding into a module of its own, adjustpath, which |
710 |
|
exports thubandir as main Thuban directory. Reorganised the |
711 |
|
module in order to support the SkipTest feature for Thuban test |
712 |
|
cases. |
713 |
|
|
714 |
|
* Extensions/wms/test/adjustpath.py: Moved path detection and |
715 |
|
adding into a module of its own. |
716 |
|
|
717 |
|
2004-03-18 Martin Schulze <[email protected]> |
718 |
|
|
719 |
|
* Extensions/wms/test/test_parser.py: Added another test for |
720 |
|
checking whether the WMS XML parser (to be implemented) returns |
721 |
|
the information we expect. This requires a sample WMS WML file |
722 |
|
(sample.xml) which has been extracted from the frida server and |
723 |
|
"improved" manually. |
724 |
|
|
725 |
|
* Extensions/wms/test/test_ogclib.py: Added legacy code to add the |
726 |
|
main Thuban directory to the path in order to be able to import |
727 |
|
random modules. Adjusted the PyOGCLib detection to reuse the |
728 |
|
information gathered. Also added a note about the PYTHONPATH |
729 |
|
environment variable. |
730 |
|
|
731 |
|
* Extensions/wms/test/test_ogclib.py: The format specification is |
732 |
|
a mime-type, not a graphic format, hence image/jpeg wou ld be the |
733 |
|
proper format and not JPEG. We'll also have to take care of the |
734 |
|
encoding of / as %2F. |
735 |
|
|
736 |
|
2004-03-16 Martin Schulze <[email protected]> |
737 |
|
|
738 |
|
* Extensions/wms/test/test_ogclib.py: Added a (hopefully) |
739 |
|
comprehensive test for the getMapURL method, built compare URLs |
740 |
|
according to the documentation in OGC 01-068r3 |
741 |
|
|
742 |
|
* Extensions/wms/capabilities.py (WMSCapabilities): Added the |
743 |
|
class WMSCapabilities to manage capabilites, will incorporate |
744 |
|
parsing the capabilities response and provide details for other |
745 |
|
classes. |
746 |
|
|
747 |
|
2004-03-12 Bernhard Herzog <[email protected]> |
748 |
|
|
749 |
|
Support views in addition to normal tables in the postgis |
750 |
|
shapestore |
751 |
|
|
752 |
|
* Thuban/Model/postgisdb.py |
753 |
|
(PostGISShapeStore._fetch_table_information): Add a fallback for |
754 |
|
the case where the table name is not in the geometry_columns |
755 |
|
table. This is usually the case for views. Also, set |
756 |
|
self.shapestore here. |
757 |
|
(PostGISShapeStore.ShapeType): No need to query the database all |
758 |
|
the time. The shape type is now determined in |
759 |
|
_fetch_table_information |
760 |
|
|
761 |
|
* test/postgissupport.py (PostgreSQLServer.new_postgis_db) |
762 |
|
(PostgreSQLServer.get_static_data_db, PostGISDatabase.__init__): |
763 |
|
New parameter to specify views. |
764 |
|
(PostGISDatabase.has_data): Also compare the views. New views |
765 |
|
parameter |
766 |
|
(PostGISDatabase.initdb): Create the views. |
767 |
|
(PostgreSQLServer.get_default_static_data_db): Add the v_landmarks |
768 |
|
view |
769 |
|
|
770 |
|
* test/test_postgis_db.py |
771 |
|
(TestPostGISShapestorePointFromViews): New. Test a |
772 |
|
PostGISShapeStore with a view |
773 |
|
(TestPostGISShapestorePointOIDAsGIDColumn.setUp): Pass the name of |
774 |
|
the geometry_column explicitly to test whether that works |
775 |
|
|
776 |
|
2004-03-12 Bernhard Herzog <[email protected]> |
777 |
|
|
778 |
|
Final step for explicit id/geometry columns: Loading and saving |
779 |
|
|
780 |
|
* Resources/XML/thuban-1.1.dtd: New. Derived from thuban-1.0.dtd |
781 |
|
with the following changes: |
782 |
|
(dbshapesource): Two new attributes id_column and geometry_column |
783 |
|
|
784 |
|
* Thuban/Model/save.py (SessionSaver.write): Use the new dtd |
785 |
|
(SessionSaver.write_session): Use the new namespace |
786 |
|
(SessionSaver.write_data_containers): Write the new dbshapesource |
787 |
|
parameters |
788 |
|
|
789 |
|
* Thuban/Model/load.py (SessionLoader.__init__): New namespace for |
790 |
|
the new file format version |
791 |
|
(SessionLoader.start_dbshapesource): Handle the new db parameters |
792 |
|
|
793 |
|
* test/test_save.py: Update to the new dtd and namespace |
794 |
|
(SaveSessionTest.test_save_postgis): Update the NonConnectionStore |
795 |
|
mock object to provide a working IDColumn method. |
796 |
|
|
797 |
|
* test/test_load_1_0.py: New. Copy of the test_load.py before |
798 |
|
today's changes but with the round-trip tests removed. |
799 |
|
|
800 |
|
* test/test_load_0_9.py: Update doc-string. |
801 |
|
|
802 |
|
* test/test_load.py: Update all .thuban files to the new dtd and |
803 |
|
namespace. |
804 |
|
(TestPostGISLayer.file_contents): Add the new dbshapesource |
805 |
|
paramters |
806 |
|
|
807 |
|
2004-03-11 Bernhard Herzog <[email protected]> |
808 |
|
|
809 |
|
Next step for explicit id/geometry columns: User interaction |
810 |
|
|
811 |
|
* Thuban/UI/dbdialog.py (ChooseDBTableDialog.__init__): Rework how |
812 |
|
the dialog is constructed. Add combo boxes to select id and |
813 |
|
geometry column. Rename some instance variables. |
814 |
|
(ChooseDBTableDialog.GetTable): Return id and geometry column |
815 |
|
names |
816 |
|
(ChooseDBTableDialog.OnTableSelect): New. Event handler for |
817 |
|
selections in the table list |
818 |
|
|
819 |
|
* Thuban/UI/mainwindow.py (MainWindow.AddDBLayer): Use id_column |
820 |
|
and geometry_column |
821 |
|
|
822 |
|
* Thuban/Model/session.py (Session.OpenDBShapeStore): Add the new |
823 |
|
parameters for id_column and geometry column of PostGISShapeStore |
824 |
|
here as well. |
825 |
|
|
826 |
|
* Thuban/Model/postgisdb.py (type_map): Add ROWID psycog type. |
827 |
|
(_raw_type_map): New. Map raw PostgreSQL type ints to thuban types |
828 |
|
(PostGISConnection.GeometryTables): Use a better query to |
829 |
|
determine which relations in the database might be usable for |
830 |
|
shapestores. Now supports views as well but is more PostgreSQL |
831 |
|
specific |
832 |
|
(PostGISConnection.table_columns): New. Somewhat experimental |
833 |
|
method to let the db dialogs provide lists of columns to users so |
834 |
|
that they can select id and geometry columns. |
835 |
|
(PostGISTable.__init__): The default value of the id_column |
836 |
|
parameter is now None it still means "gid" effectively, though. |
837 |
|
(PostGISTable.IDColumn): New introspection method to return a |
838 |
|
column object for the id column |
839 |
|
(PostGISShapeStore.GeometryColumn): New introspection method to |
840 |
|
return a column object for the geometry column |
841 |
|
|
842 |
|
* test/test_postgis_db.py |
843 |
|
(TestPostGISConnection.test_gis_tables_non_empty): |
844 |
|
Removed. Subsumed by the new: |
845 |
|
(TestPostGISConnection.test_gis_tables_with_views_and_tables): |
846 |
|
New. Tes the GeometryTables and table_columns methods with actual |
847 |
|
tables and views. |
848 |
|
(PointTests.test_id_column, PointTests.test_geometry_column): |
849 |
|
New. tests for the new methods. |
850 |
|
(TestPostGISShapestorePoint.setUp) |
851 |
|
(TestPostGISShapestorePointSRID.setUp) |
852 |
|
(TestPostGISShapestorePointExplicitGIDColumn.setUp): Fill the |
853 |
|
instance variables needed by the new tests |
854 |
|
|
855 |
|
2004-03-11 Bernhard Herzog <[email protected]> |
856 |
|
|
857 |
|
* Thuban/UI/classgen.py (GenQuantilesPanel.GetList): The row |
858 |
|
numbers given to ReadValue are ordinals. |
859 |
|
|
860 |
|
2004-03-11 Bernhard Herzog <[email protected]> |
861 |
|
|
862 |
|
Elimiate the requirement for PostGIS tables to have a column |
863 |
|
called "gid". |
864 |
|
|
865 |
|
* Thuban/Model/postgisdb.py (PostGISTable.__init__): New parameter |
866 |
|
id_column to specify which column to use to identify rows. Also |
867 |
|
new instance variables id_column and quoted_id_column |
868 |
|
(PostGISTable.RowIdToOrdinal, PostGISTable.RowOrdinalToId) |
869 |
|
(PostGISTable.ReadRowAsDict, PostGISTable.ReadValue) |
870 |
|
(PostGISTable.SimpleQuery): Use the id column name provided to the |
871 |
|
constructor instead of "gid" |
872 |
|
(PostGISShapeStore.__init__): New parameter id_column analogously |
873 |
|
to PostGISTable.__init__. This parameter is simply passed through |
874 |
|
to the base class constructor |
875 |
|
(PostGISShapeStore._create_col_from_description): Fix typo in |
876 |
|
doc-string |
877 |
|
(PostGISShapeStore.Shape, PostGISShapeStore.AllShapes) |
878 |
|
(PostGISShapeStore.ShapesInRegion): Use the id column name |
879 |
|
provided to the constructor instead of "gid" |
880 |
|
|
881 |
|
* test/postgissupport.py |
882 |
|
(PostgreSQLServer.get_default_static_data_db): New static table |
883 |
|
landmarks_point_id with an id column != "gid. Update the comments |
884 |
|
a bit. |
885 |
|
(skip_if_addgeometrycolumn_does_not_use_quote_ident): Fix typo in |
886 |
|
doc- |
887 |
|
(upload_shapefile): New parameter gid_column to use a name other |
888 |
|
than "gid" for the column to store the shape ids |
889 |
|
|
890 |
|
* test/test_postgis_db.py (TableTests): New. Mixin-class |
891 |
|
containing all tests previously in TestPostGISTable. The actual |
892 |
|
tests are the same but the code is a bit more configurable to |
893 |
|
allow for different id columns etc. |
894 |
|
(TestPostGISTable): Derive from TableTests now for the actual |
895 |
|
tests. |
896 |
|
(TestPostGISTableExplicitGIDColumn): New. Like TestPostGISTable |
897 |
|
except that it the landmarks_point_id table to test the id_column |
898 |
|
parameter |
899 |
|
(PointTests): Extend the doc-string |
900 |
|
(TestPostGISShapestorePointExplicitGIDColumn) |
901 |
|
(TestPostGISShapestorePointOIDAsGIDColumn): New classes derived |
902 |
|
from PointTests to test the explicit id_column parameter. One |
903 |
|
tests with the name of the column holding the shape ids, the other |
904 |
|
uses PostgreSQL's OID column. For the latter a number of methods |
905 |
|
have to be overwritten to make them independent of the actual id |
906 |
|
values. |
907 |
|
|
908 |
|
2004-03-08 Silke Reimer <[email protected]> |
909 |
|
|
910 |
|
Update debian directory: |
911 |
|
|
912 |
|
* debian/changelog: Added new version. |
913 |
|
* deiban/rules: Updated management of patches (with cbds) |
914 |
|
* debian/control: Added cbds to dependencies |
915 |
|
* debian/patches/*: New. Adds better support for patches of thuban in |
916 |
|
debian |
917 |
|
* debian/menu: Syntax of menu changed slightly |
918 |
|
* debian/setup.py.patch: removed because it has been moved to |
919 |
|
debian/patechs/setup.py.patch |
920 |
|
|
921 |
|
|
922 |
|
2004-02-26 Bernhard Herzog <[email protected]> |
923 |
|
|
924 |
|
Create the Doc/technotes directory for text files with information |
925 |
|
for developers |
926 |
|
|
927 |
|
* Doc/technotes/README: New. README for the technotes |
928 |
|
|
929 |
|
* Doc/technotes/coding_guidelines.txt: New. Coding guidelines for |
930 |
|
Thuban |
931 |
|
|
932 |
|
* Doc/technotes/release_process.txt: New. Used to be |
933 |
|
HOWTO-Release. Now slightly adapted to technote formatting style. |
934 |
|
|
935 |
|
* HOWTO-Release: Removed. It's contents are now in |
936 |
|
Doc/technotes/release_process.txt |
937 |
|
|
938 |
|
2004-02-25 Bernhard Herzog <[email protected]> |
939 |
|
|
940 |
|
* libraries/thuban/wxproj.cpp (get_wx_version): New. Return the |
941 |
|
version of wxWindows the module was compiled with so we can check |
942 |
|
that against the wxPython version. |
943 |
|
|
944 |
|
* Thuban/version.py (thuban_branch, thuban_release): New variables |
945 |
|
controlling which and how Thuban versions are shown. See the |
946 |
|
comments for details. |
947 |
|
(verify_versions): Also check that the wx version that wxproj is |
948 |
|
compiled against matches that of the wxPython we use at runtime |
949 |
|
|
950 |
|
2004-02-20 Bernhard Herzog <[email protected]> |
951 |
|
|
952 |
|
* Extensions/wms/wms.py (epsg_code_to_projection): Use |
953 |
|
get_system_proj_file to read the epsg projections. The old way |
954 |
|
depended on the current directory being the top Thuban directory. |
955 |
|
|
956 |
|
2004-02-20 Bernhard Herzog <[email protected]> |
957 |
|
|
958 |
|
* Extensions/svgexport/test/test_svgmapwriter.py |
959 |
|
(TestVirtualDC.test_clippath): Remove a debug print |
960 |
|
|
961 |
|
2004-02-20 Bernhard Herzog <[email protected]> |
962 |
|
|
963 |
|
* Extensions/svgexport/__init__.py: New. Turn |
964 |
|
Extensions/svgexport into a package. |
965 |
|
|
966 |
|
* Extensions/svgexport/svgmapwriter.py: Reorder the imports and |
967 |
|
doc-string a bit. The doc-string must come first, otherwise it's |
968 |
|
not a doc-string. The __future__ import must be the first thing |
969 |
|
after the doc-string. Use only double quotes in doc-strings. |
970 |
|
Single quotes trip up emacs syntax highlighting if the text |
971 |
|
contains apostrophes. |
972 |
|
|
973 |
|
2004-02-20 Bernhard Herzog <[email protected]> |
974 |
|
|
975 |
|
* Extensions/svgexport/test/__init__.py, |
976 |
|
Extensions/svgexport/test/test_svgmapwriter.py: New. Initial test |
977 |
|
suite for svgexport |
978 |
|
|
979 |
|
* test/runtests.py (find_test_modules): New. Function with the |
980 |
|
module finding code from main. |
981 |
|
(main): Use find_test_modules to figure out the default test |
982 |
|
modules and take modules from Extensions.svgexport.test too. |
983 |
|
|
984 |
|
2004-02-19 Bernhard Herzog <[email protected]> |
985 |
|
|
986 |
|
* Thuban/UI/application.py (ThubanApplication.OnInit): Make sure |
987 |
|
the mainwindow has a reference to the map of the initial session. |
988 |
|
This fixes a bug introduced with the fix for RT#2245 |
989 |
|
|
990 |
2004-02-19 Bernhard Herzog <[email protected]> |
2004-02-19 Bernhard Herzog <[email protected]> |
991 |
|
|
992 |
* Extensions/svgexport/svgsaver.py, |
* Extensions/svgexport/svgsaver.py, |
5155 |
Fix problem of hidden properties dialog under windows after double |
Fix problem of hidden properties dialog under windows after double |
5156 |
click on layer tree: |
click on layer tree: |
5157 |
The tree control always gets an Expanded / Collapsed event after |
The tree control always gets an Expanded / Collapsed event after |
5158 |
the ItemActivated on double click, which raises the main window again. We add a second ItemActivated event to the queue, which simply |
the ItemActivated on double click, which raises the main window again. |
5159 |
|
We add a second ItemActivated event to the queue, which simply |
5160 |
raises the already displayed window. |
raises the already displayed window. |
5161 |
|
|
5162 |
* Thuban/UI/legend.py (LegendTree.__init__): Instance variable |
* Thuban/UI/legend.py (LegendTree.__init__): Instance variable |