1 |
|
2004-07-22 Jan Sch�ngel <[email protected]> |
2 |
|
|
3 |
|
* Extensions/umn_mapserver/mf_export.py: Added "import os" |
4 |
|
Removed the old "import Thuban.UI.mainwindow" code. |
5 |
|
(tbextent_to_map): Removed the extra function and at the code direct |
6 |
|
to "thuban_to_map" function. |
7 |
|
(write_creatorcomment): Added. Now a short comment is added to the |
8 |
|
beginning of an generated mapfile. |
9 |
|
(export_mapfile): Now the Path and filename are saved in to variables, |
10 |
|
and not together in one variable. This is needed for the new |
11 |
|
write_creatorcomment function. |
12 |
|
|
13 |
|
* Extensions/umn_mapserver/mf_import.py (import_mapfile): Added the |
14 |
|
import module "re". Also added Range and the ClassGroupRange import |
15 |
|
from Thuban. Both are needed for the new range expression import. |
16 |
|
(create_rangeexpression): Added. Creates a Range Expression in Thuban |
17 |
|
style from a given mapfile expression. |
18 |
|
(added_rasterlayer): Make some small code changes. The shapepath is |
19 |
|
now stored in an extra variable and the clazz_name is set empty if no |
20 |
|
class name set in the mapfile. |
21 |
|
Changed the Error message for Range Expressions, becaus the new |
22 |
|
function create a error string which will be shown in the dialog. |
23 |
|
|
24 |
|
* Extensions/umn_mapserver/test/test_mapserver.py: Added a test for the |
25 |
|
range expression import. |
26 |
|
|
27 |
|
2004-07-21 Jan-Oliver Wagner <[email protected]> |
28 |
|
|
29 |
|
* Extensions/umn_mapserver/README: Added hint that |
30 |
|
installation as root can be avoided. Removed all tabs. |
31 |
|
|
32 |
|
2004-07-16 Bernhard Herzog <[email protected]> |
33 |
|
|
34 |
|
* test/test_viewport.py |
35 |
|
(ViewPortTest.test_changing_map_projection): Check that changing |
36 |
|
the projection of an empty map shown in a viewport doesn't lead to |
37 |
|
exceptions in the viewport's handler for the |
38 |
|
MAP_PROJECTION_CHANGED messages |
39 |
|
|
40 |
|
* Thuban/UI/viewport.py (ViewPort.map_projection_changed): Only |
41 |
|
try to keep the same region visible when the map actually contains |
42 |
|
something |
43 |
|
|
44 |
|
2004-07-15 Jan Sch�ngel <[email protected]> |
45 |
|
|
46 |
|
* Extensions/umn_mapserver/mapfile.py: Added a function to get the |
47 |
|
mappath directly from the mapobj. Is needed because of the changes |
48 |
|
in mf_import.py. |
49 |
|
(MF_Layer.add_thubanclass): Added a new comment. |
50 |
|
(MF_Map.set_extent): Fixed a bug with exporting empty mapobj. If the |
51 |
|
mapobj is empty there is no extent get from thuban an so no one can |
52 |
|
set to th mapobj. |
53 |
|
|
54 |
|
* Extensions/umn_mapserver/mf_import.py (import_mapfile): Updated |
55 |
|
the discription. |
56 |
|
Split the funktion in to three smaller ones. The new functions are |
57 |
|
add_rasterlayer, add_polygonlayer and select_layer2import. |
58 |
|
Removed the mapfilepath and filepath initialisation, because its know |
59 |
|
include in the new functions. |
60 |
|
Now nothing will be imported if cancel is pressed in the |
61 |
|
layer choice dialog. |
62 |
|
|
63 |
|
2004-07-14 Jan Sch�ngel <[email protected]> |
64 |
|
|
65 |
|
* Extensions/umn_mapserver/mapfile.py: Added ClassGroupDefault to |
66 |
|
import. |
67 |
|
(MF_Symbolset): Removed the extra variable for numsymbols. |
68 |
|
(MF_Class.__init__): Added a comment to the exception clause. |
69 |
|
Removed the extent init, because it was not needed anymore. |
70 |
|
(MF_Layer.add_thubanclass): Added the code to set the class name to |
71 |
|
the expression value from thuban if no label is defined. |
72 |
|
Added the code to export Range expressions from thuban to the mapfile. |
73 |
|
(MF_Map.set_extent): Removed the exception and replace it by some if |
74 |
|
code. If the size of a map is not defined the size will be set to 1,1. |
75 |
|
This is necessary because if the extent is set, mapscript checks if |
76 |
|
the size is greater than zero. |
77 |
|
(MF_Web): Added the get and set function for the template. |
78 |
|
|
79 |
|
* Extensions/umn_mapserver/mf_export.py: Added the function to check |
80 |
|
if a mapobject exists and used it to set the status of the menu items. |
81 |
|
If no mapfile exists the settings could not be edditied. |
82 |
|
Define after which menuitem the exportitem will include. |
83 |
|
|
84 |
|
* Extensions/umn_mapserver/mf_handle.py: Removed the import |
85 |
|
Thuban.UI.mainwindow clause, because it is not needed. |
86 |
|
Added the command Refresh() to all "OnChangeColor()" functions, |
87 |
|
because the color preview window was not updated on a color change. |
88 |
|
Added the function to check if a mapobject exists and used it to set the |
89 |
|
status of the menu items. If no mapobject exists the settings could not |
90 |
|
be edditied. |
91 |
|
(Map_Dialog): Moved the imagetype selector from the |
92 |
|
Outputformat_Dialog to Map_Dialog and removed Outputformat_Dialog. |
93 |
|
(Web_Dialog): Removed the name label and added the template textbox. |
94 |
|
|
95 |
|
* Extensions/umn_mapserver/mf_import.py (import_mapfile): Replace |
96 |
|
the exception handling on loading the layers by an if statement. It |
97 |
|
is not necessary to us the exception there. |
98 |
|
The Filepath creation now use os.path.join to build the path. |
99 |
|
|
100 |
|
* Extensions/umn_mapserver/test/test_mapserver.py: Moved the testMap |
101 |
|
definition from global to the setUp function. Now the testMap will |
102 |
|
initialize new on each test. |
103 |
|
|
104 |
|
* Extensions/umn_mapserver/sample/iceland.map: Include three new |
105 |
|
classes in the Line Layer, to test logical Expressions. |
106 |
|
Set the status of the class "Point9" in the Point Layer to off |
107 |
|
|
108 |
|
2004-07-13 Bernhard Herzog <[email protected]> |
109 |
|
|
110 |
|
* Thuban/UI/baserenderer.py |
111 |
|
(BaseRenderer.render_map_incrementally): Fix a logic bug in the |
112 |
|
optimization that tries not to draw layers under a raster layer. |
113 |
|
The bug was harmless. All it effectively did was to produce The a |
114 |
|
strange messages about not being able to draw Layer instances for |
115 |
|
all vector layers below a raster layer which would be invisible |
116 |
|
anyway because the raster layer currently always covers the entire |
117 |
|
window |
118 |
|
|
119 |
|
2004-07-08 Jan Sch�ngel <[email protected]> |
120 |
|
|
121 |
|
* Extensions/umn_mapserver/mapfile.py: Added code to generade and get |
122 |
|
a list of supported outputformats. This formats are not alle supported |
123 |
|
because there is no possibility to get the outputformat without the |
124 |
|
name known. Make some formal changes to the code. |
125 |
|
(MF_Map.set_name()): Fixed a bug if the name is None. |
126 |
|
|
127 |
|
* Extensions/umn_mapserver/mf_handle.py: Removed the image_type import |
128 |
|
statement, because its not needed anymore. The Outputformat is now |
129 |
|
given as string from the object. Make some formal changes to the code. |
130 |
|
|
131 |
|
* Extensions/umn_mapserver/test/test_mapserver.py: Added new test for |
132 |
|
most of the new setting which were added during the last changes. |
133 |
|
Removed the MF_Size Test. |
134 |
|
|
135 |
|
* Extensions/umn_mapserver/test/test.map: Added a new class to the |
136 |
|
cultural Layer to test expressions and the the status of that layer |
137 |
|
from on to default. |
138 |
|
Changed the data path the the correct Thuban Data |
139 |
|
Added the Outputformat Object and Symbol Object |
140 |
|
|
141 |
|
2004-07-07 Jan Sch�ngel <[email protected]> |
142 |
|
|
143 |
|
* Extensions/umn_mapserver/mapfile.py: Added some new |
144 |
|
settings to edit (outputformat, label, imagetype) |
145 |
|
|
146 |
|
* Extensions/umn_mapserver/mf_handle.py: Added some setting to |
147 |
|
the Label Dialog and add the OutputDialog. |
148 |
|
Make some changes to the code order. |
149 |
|
|
150 |
|
2004-07-06 Jan Sch�ngel <[email protected]> |
151 |
|
|
152 |
|
* Extensions/umn_mapserver/mapfile.py: Added the symbolObj, pointObj |
153 |
|
and line Obj and add the scalebar_status_type, scalebar_style_type and |
154 |
|
scalebar_position_type. |
155 |
|
Added the symbol- and symbolsetObject (MF_Symbol,MF_Symbolset). The |
156 |
|
are only used to create a Symbol like the circle in Thuban. |
157 |
|
Added the scalebarObject (MF_Scalebar) |
158 |
|
(MF_Class): Added set_status and get_status. |
159 |
|
(MF_Layer.add_thubanclass): Added code to set the class status |
160 |
|
(MF_Map): Added code to handle the symbols and scalebar |
161 |
|
(MF_Label): Added the set_partials and get_partials functions |
162 |
|
|
163 |
|
* Extensions/umn_mapserver/mf_export.py: Added MF_Symbol to import |
164 |
|
from mapfile. Added a function to create a circle object like the one |
165 |
|
from thuban if no one exists. |
166 |
|
|
167 |
|
* Extensions/umn_mapserver/mf_handle.py: All colors are now set when |
168 |
|
press ok in the assosiated dialog and not at the end of the |
169 |
|
colordialog. |
170 |
|
Added the Dialog for the Scalebar. |
171 |
|
(Label_Dialog): Added the offset option |
172 |
|
|
173 |
|
* Extensions/umn_mapserver/mf_import.py: Added code to import the |
174 |
|
status of the Classes. |
175 |
|
Fixed a bug with the projection. Now the to_meter parameter will be |
176 |
|
added to the Projection only if it doesn't exists. |
177 |
|
|
178 |
|
2004-07-01 Jan Sch�ngel <[email protected]> |
179 |
|
|
180 |
|
Added the functionality to handle the content thuban is not |
181 |
|
able to handle directly. |
182 |
|
|
183 |
|
* Extensions/umn_mapserver/mf_handle.py: New. This module extents |
184 |
|
Thuban with the possibility to edit the mapfile content. |
185 |
|
|
186 |
|
* Extensions/umn_mapserver/mf_import.py: Added the possibility |
187 |
|
to import mapfiles without any layer selected. So it is possible |
188 |
|
to edit the other settings in a mapfile. |
189 |
|
(import_mapfile): Added code to use the editing functions. |
190 |
|
Added the possibility to import the projection to a layer if one |
191 |
|
is defined. |
192 |
|
Status settings (On,Off) will now set in thuban (visible, invisible). |
193 |
|
fixed a bug with with classnames. If no classname is set in mapfile |
194 |
|
the value in Thuban will set to the expression. |
195 |
|
|
196 |
|
* Extensions/umn_mapserver/mf_export.py(export_mapfile): Added the |
197 |
|
possibility to save a new mapfile or use the old one which is |
198 |
|
imported or new created. |
199 |
|
Added code to use the editing functions. |
200 |
|
Remove some not needed import statements |
201 |
|
|
202 |
|
* Extensions/umn_mapserver/mapfile.py: Added new types which are |
203 |
|
need for the editing functions. |
204 |
|
Added needed set-functions for the editing functions. |
205 |
|
Added the possibility to export rasterimages. |
206 |
|
Added new classes (MF_Web, MF_Label, MF_Legend, MF_Symbol, |
207 |
|
MF_SymbolSet). MF_Symbol and MF_SymbolSet are not needed at the |
208 |
|
moment. |
209 |
|
(MF_Class.set_thubanstyle): Now point layers will set to a default |
210 |
|
symbol to show a circle in mapserver and not only a 1px dot. |
211 |
|
(MF_Style.__init__): Fixed a bug with the color. Color was not set |
212 |
|
correct before. |
213 |
|
(MF_Size): Removed, because it is not needed. |
214 |
|
|
215 |
|
* Extensions/umn_mapserver/README: Added the hints to use the |
216 |
|
export and editing functions, too. |
217 |
|
|
218 |
|
* Extensions/umn_mapserver/sample/iceland.map: Added the |
219 |
|
new parameter "UNITS METERS". |
220 |
|
Change the political layer to status OFF. |
221 |
|
|
222 |
|
* Extensions/umn_mapserver/sample/README: Added some |
223 |
|
more details to setup the sample in the MapServer. |
224 |
|
|
225 |
|
2004-06-26 Bernhard Reiter <[email protected]> |
226 |
|
|
227 |
|
* Extensions/svgexport/test/test_svgmapwriter.py: |
228 |
|
Removed class VFile and used standard StringIO instead. |
229 |
|
|
230 |
|
2004-06-23 Jan Sch�ngel <[email protected]> |
231 |
|
|
232 |
|
Add the export function to the umn_mapserver extension. |
233 |
|
|
234 |
|
* Extension/umn_mapserver/mf_export.py: New. This module extents |
235 |
|
Thuban with the possibility to export the Thuban content. |
236 |
|
|
237 |
|
* Extensions/umn_mapserver/mapfile.py: Expand the classes to use |
238 |
|
with the export module. Especially added the possibility to |
239 |
|
add thuban objects directly to the map objects. |
240 |
|
|
241 |
|
* Extensions/umn_mapserver/mf_import.py: Removed the wxCHANGE_DIR, |
242 |
|
because of the hint from Bernhard Herzog. |
243 |
|
Corrected the handling of absolute pathnames. |
244 |
|
Changed the Text of the Menu-Item, now the beginning is upper case. |
245 |
|
|
246 |
|
* Extensions/umn_mapserver/README: Added the --with-tiff statement. |
247 |
|
|
248 |
|
2004-06-16 Jan Sch�ngel <[email protected]> |
249 |
|
|
250 |
|
Add a sample and make some changes. |
251 |
|
|
252 |
|
* Extension/umn_mapserver/mf_import.py: Changed the wxPython.wx |
253 |
|
import from * to explicit used statements. Changed the |
254 |
|
Thuban.UI.mainwindow import phrase, too. |
255 |
|
(import_mapfile):Corrected a clerical mistake. |
256 |
|
Added wxCHANGE_DIR in OpenFile Dialog. |
257 |
|
Added a MultipleChoiceDialog, to select the layers to load from |
258 |
|
mapfile into thuban. Thereby the projection is only set if one layer |
259 |
|
is selected. |
260 |
|
Added the possibility to handle relative pathnames which uses |
261 |
|
up-level references. |
262 |
|
Removed some doubled code. |
263 |
|
Corrected an error with integer values used as label in thuban |
264 |
|
ClassGroup. |
265 |
|
|
266 |
|
* Extensions/umn_mapserver/sample: New. |
267 |
|
|
268 |
|
* Extensions/umn_mapserver/sample/README: New. Describes the |
269 |
|
usage of the sample files. |
270 |
|
|
271 |
|
* Extensions/umn_mapserver/sample/iceland.map: New. This is |
272 |
|
a suitable .map-file for the iceland data. |
273 |
|
|
274 |
|
* Extensions/umn_mapserver/sample/index.html: New. The template |
275 |
|
for the mapfile. |
276 |
|
|
277 |
|
* Extensions/umn_mapserver/sample/iceland.html: New. Initialisation |
278 |
|
file for the Iceland Application on web. |
279 |
|
|
280 |
|
* Extensions/umn_mapserver/README: Corrected a inaccuracy and added |
281 |
|
some details. |
282 |
|
|
283 |
|
* Extensions/umn_mapserver/test/test_mapserver |
284 |
|
(mapserver_import_Test_generalClasses.test_MF_Color): |
285 |
|
Corrected the thubancolor test. |
286 |
|
|
287 |
|
2004-06-15 Jan Sch�ngel <[email protected]> |
288 |
|
|
289 |
|
* Extensions/umn_mapserver/README: New. Install instruction. |
290 |
|
|
291 |
|
2004-06-14 Bernhard Reiter <[email protected]> |
292 |
|
|
293 |
|
* libraries/thuban/cpl_mfile.h: Added copyright header. |
294 |
|
|
295 |
|
* libraries/thuban/ cpl_mfile.cpp, cpl_mfile.h: Added non-protecting |
296 |
|
Free Software License so that it is most useful with gdalwarp |
297 |
|
and bmpdataset. |
298 |
|
|
299 |
|
2004-06-14 Bernhard Herzog <[email protected]> |
300 |
|
|
301 |
|
* Thuban/UI/multiplechoicedialog.py (__version__): Add missing |
302 |
|
import of wxPython.wx itself (as opposed to the contents of |
303 |
|
wxPython.wx). For some reason wxPython.wx is available as |
304 |
|
wxPython.wx.wx in at least some 2.4 releases. Fixes RT#2482 |
305 |
|
wrt. wxPython 2.4. |
306 |
|
|
307 |
|
2004-06-10 Jan Sch�ngel <[email protected]> |
308 |
|
|
309 |
|
Initial version of new extension "umn_mapserver". This extension aims |
310 |
|
to manage configuration for the UMN MapServer application. This |
311 |
|
inital version just imports the .map-files and displays all, Thuban is |
312 |
|
capable of. |
313 |
|
|
314 |
|
* Extensions/umn_mapserver, Extensions/umn_mapserver/test: New. |
315 |
|
|
316 |
|
* Extensions/umn_mapserver/test/README: New. Describes how to run the |
317 |
|
tests. |
318 |
|
|
319 |
|
* Extensions/umn_mapserver/test/test.map: New. This is a test |
320 |
|
.map-file for automated tests of the umn_mapserver extension of |
321 |
|
Thuban. |
322 |
|
|
323 |
|
* Extensions/umn_mapserver/test/test_mapserver.py: New. Tests for |
324 |
|
UMN Mapserver classes. |
325 |
|
|
326 |
|
* Extensions/umn_mapserver/__init__.py: New. Init to make this |
327 |
|
directory a package. |
328 |
|
|
329 |
|
* Extensions/umn_mapserver/mapfile.py: New. Classes to represent |
330 |
|
'.map'-file objects. |
331 |
|
|
332 |
|
* Extensions/umn_mapserver/mf_import.py: New. This module extends |
333 |
|
Thuban with the possibility to handle UMN MapServer mapfiles. |
334 |
|
|
335 |
|
2004-06-03 Bernhard Herzog <[email protected]> |
336 |
|
|
337 |
|
* Thuban/Model/layer.py (Layer.TreeInfo): Convert the bounding box |
338 |
|
to a tuple before using it as arguments to the % operator. This |
339 |
|
fixes the formatting issue filed in RT#2239 on 2004-01-13 and |
340 |
|
reported today on thuban-list by Jan Sch�ngel |
341 |
|
|
342 |
|
* test/test_layer.py (TestLayerModification.setUp): Save the |
343 |
|
filename as an instance variable so we can refer to it in tests |
344 |
|
(TestLayerModification.test_tree_info): Uncomment this method |
345 |
|
again and make it work. This tests for the formatting issue |
346 |
|
filed in RT#2239 on 2004-01-13 |
347 |
|
|
348 |
|
2004-05-28 Bernhard Herzog <[email protected]> |
349 |
|
|
350 |
|
* Thuban/UI/baserenderer.py: Fix some typos. |
351 |
|
|
352 |
|
2004-05-18 Jan-Oliver Wagner <[email protected]> |
353 |
|
|
354 |
|
* Extensions/gns2shp/gns2shp.py (gns2shp): Fixed a bug |
355 |
|
by increasing a field size. |
356 |
|
|
357 |
|
2004-05-17 Bernhard Herzog <[email protected]> |
358 |
|
|
359 |
|
Update to newest shapelib and get rid of Thuban specific |
360 |
|
extensions, i.e. use the new DBFUpdateHeader instead of our |
361 |
|
DBFCommit kludge |
362 |
|
|
363 |
|
* libraries/shapelib/shpopen.c: Update to version from current |
364 |
|
shapelib CVS. |
365 |
|
|
366 |
|
* libraries/shapelib/shapefil.h: Update to version from current |
367 |
|
shapelib CVS. |
368 |
|
|
369 |
|
* libraries/shapelib/dbfopen.c: Update to version from current |
370 |
|
shapelib CVS. |
371 |
|
(DBFCommit): Effectively removed since shapelib itself has |
372 |
|
DBFUpdateHeader now which is better for what DBFCommit wanted to |
373 |
|
achieve. |
374 |
|
We're now using an unmodified version of dbfopen. |
375 |
|
|
376 |
|
* setup.py (extensions): Add the HAVE_UPDATE_HEADER macro with |
377 |
|
value '1' to the Lib.dbflibc extension. This simply reflects the |
378 |
|
shapelib and pyshapelib updates |
379 |
|
|
380 |
|
2004-05-16 Jan-Oliver Wagner <[email protected]> |
381 |
|
|
382 |
|
Finished introduction of Menu.FindOrInsertMenu. |
383 |
|
|
384 |
|
* Extensions/drawshape/drawshape.py: Add the command |
385 |
|
to the experimental menu additionally to the toolbar. |
386 |
|
|
387 |
|
* Extensions/svgexport/svgsaver.py: Use FindOrInsertMenu() instead of |
388 |
|
finding menu on its own. |
389 |
|
|
390 |
|
* Doc/manual/thuban-manual.xml: updated sample file |
391 |
|
to use FindOrInsertMenu(). |
392 |
|
|
393 |
|
* Examples/simple_extensions/hello_world.py: Use FindOrInsertMenu() |
394 |
|
instead of finding menu on its own. |
395 |
|
|
396 |
|
2004-05-11 Jan-Oliver Wagner <[email protected]> |
397 |
|
|
398 |
|
* test/test_menu.py (MenuTest.test): Added testing |
399 |
|
of method Menu.FindOrInsertMenu. |
400 |
|
|
401 |
2004-05-10 Jan-Oliver Wagner <[email protected]> |
2004-05-10 Jan-Oliver Wagner <[email protected]> |
402 |
|
|
403 |
Introduce and use Menu.FindOrInsertMenu. |
Introduce and use Menu.FindOrInsertMenu. |