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]> |
2004-06-03 Bernhard Herzog <[email protected]> |
352 |
|
|
353 |
* Thuban/Model/layer.py (Layer.TreeInfo): Convert the bounding box |
* Thuban/Model/layer.py (Layer.TreeInfo): Convert the bounding box |