1 |
|
2004-07-22 Bernhard Herzog <[email protected]> |
2 |
|
|
3 |
|
* test/test_viewport.py: Use support.run_tests as the main |
4 |
|
function when running asa script. |
5 |
|
|
6 |
|
2004-07-22 Jan Sch�ngel <[email protected]> |
7 |
|
|
8 |
|
* Extensions/umn_mapserver/mf_export.py: Added "import os" |
9 |
|
Removed the old "import Thuban.UI.mainwindow" code. |
10 |
|
(tbextent_to_map): Removed the extra function and at the code direct |
11 |
|
to "thuban_to_map" function. |
12 |
|
(write_creatorcomment): Added. Now a short comment is added to the |
13 |
|
beginning of an generated mapfile. |
14 |
|
(export_mapfile): Now the Path and filename are saved in to variables, |
15 |
|
and not together in one variable. This is needed for the new |
16 |
|
write_creatorcomment function. |
17 |
|
|
18 |
|
* Extensions/umn_mapserver/mf_import.py (import_mapfile): Added the |
19 |
|
import module "re". Also added Range and the ClassGroupRange import |
20 |
|
from Thuban. Both are needed for the new range expression import. |
21 |
|
(create_rangeexpression): Added. Creates a Range Expression in Thuban |
22 |
|
style from a given mapfile expression. |
23 |
|
(added_rasterlayer): Make some small code changes. The shapepath is |
24 |
|
now stored in an extra variable and the clazz_name is set empty if no |
25 |
|
class name set in the mapfile. |
26 |
|
Changed the Error message for Range Expressions, becaus the new |
27 |
|
function create a error string which will be shown in the dialog. |
28 |
|
|
29 |
|
* Extensions/umn_mapserver/test/test_mapserver.py: Added a test for the |
30 |
|
range expression import. |
31 |
|
|
32 |
|
2004-07-21 Jan-Oliver Wagner <[email protected]> |
33 |
|
|
34 |
|
* Extensions/umn_mapserver/README: Added hint that |
35 |
|
installation as root can be avoided. Removed all tabs. |
36 |
|
|
37 |
|
2004-07-16 Bernhard Herzog <[email protected]> |
38 |
|
|
39 |
|
* test/test_viewport.py |
40 |
|
(ViewPortTest.test_changing_map_projection): Check that changing |
41 |
|
the projection of an empty map shown in a viewport doesn't lead to |
42 |
|
exceptions in the viewport's handler for the |
43 |
|
MAP_PROJECTION_CHANGED messages |
44 |
|
|
45 |
|
* Thuban/UI/viewport.py (ViewPort.map_projection_changed): Only |
46 |
|
try to keep the same region visible when the map actually contains |
47 |
|
something |
48 |
|
|
49 |
|
2004-07-15 Jan Sch�ngel <[email protected]> |
50 |
|
|
51 |
|
* Extensions/umn_mapserver/mapfile.py: Added a function to get the |
52 |
|
mappath directly from the mapobj. Is needed because of the changes |
53 |
|
in mf_import.py. |
54 |
|
(MF_Layer.add_thubanclass): Added a new comment. |
55 |
|
(MF_Map.set_extent): Fixed a bug with exporting empty mapobj. If the |
56 |
|
mapobj is empty there is no extent get from thuban an so no one can |
57 |
|
set to th mapobj. |
58 |
|
|
59 |
|
* Extensions/umn_mapserver/mf_import.py (import_mapfile): Updated |
60 |
|
the discription. |
61 |
|
Split the funktion in to three smaller ones. The new functions are |
62 |
|
add_rasterlayer, add_polygonlayer and select_layer2import. |
63 |
|
Removed the mapfilepath and filepath initialisation, because its know |
64 |
|
include in the new functions. |
65 |
|
Now nothing will be imported if cancel is pressed in the |
66 |
|
layer choice dialog. |
67 |
|
|
68 |
|
2004-07-14 Jan Sch�ngel <[email protected]> |
69 |
|
|
70 |
|
* Extensions/umn_mapserver/mapfile.py: Added ClassGroupDefault to |
71 |
|
import. |
72 |
|
(MF_Symbolset): Removed the extra variable for numsymbols. |
73 |
|
(MF_Class.__init__): Added a comment to the exception clause. |
74 |
|
Removed the extent init, because it was not needed anymore. |
75 |
|
(MF_Layer.add_thubanclass): Added the code to set the class name to |
76 |
|
the expression value from thuban if no label is defined. |
77 |
|
Added the code to export Range expressions from thuban to the mapfile. |
78 |
|
(MF_Map.set_extent): Removed the exception and replace it by some if |
79 |
|
code. If the size of a map is not defined the size will be set to 1,1. |
80 |
|
This is necessary because if the extent is set, mapscript checks if |
81 |
|
the size is greater than zero. |
82 |
|
(MF_Web): Added the get and set function for the template. |
83 |
|
|
84 |
|
* Extensions/umn_mapserver/mf_export.py: Added the function to check |
85 |
|
if a mapobject exists and used it to set the status of the menu items. |
86 |
|
If no mapfile exists the settings could not be edditied. |
87 |
|
Define after which menuitem the exportitem will include. |
88 |
|
|
89 |
|
* Extensions/umn_mapserver/mf_handle.py: Removed the import |
90 |
|
Thuban.UI.mainwindow clause, because it is not needed. |
91 |
|
Added the command Refresh() to all "OnChangeColor()" functions, |
92 |
|
because the color preview window was not updated on a color change. |
93 |
|
Added the function to check if a mapobject exists and used it to set the |
94 |
|
status of the menu items. If no mapobject exists the settings could not |
95 |
|
be edditied. |
96 |
|
(Map_Dialog): Moved the imagetype selector from the |
97 |
|
Outputformat_Dialog to Map_Dialog and removed Outputformat_Dialog. |
98 |
|
(Web_Dialog): Removed the name label and added the template textbox. |
99 |
|
|
100 |
|
* Extensions/umn_mapserver/mf_import.py (import_mapfile): Replace |
101 |
|
the exception handling on loading the layers by an if statement. It |
102 |
|
is not necessary to us the exception there. |
103 |
|
The Filepath creation now use os.path.join to build the path. |
104 |
|
|
105 |
|
* Extensions/umn_mapserver/test/test_mapserver.py: Moved the testMap |
106 |
|
definition from global to the setUp function. Now the testMap will |
107 |
|
initialize new on each test. |
108 |
|
|
109 |
|
* Extensions/umn_mapserver/sample/iceland.map: Include three new |
110 |
|
classes in the Line Layer, to test logical Expressions. |
111 |
|
Set the status of the class "Point9" in the Point Layer to off |
112 |
|
|
113 |
|
2004-07-13 Bernhard Herzog <[email protected]> |
114 |
|
|
115 |
|
* Thuban/UI/baserenderer.py |
116 |
|
(BaseRenderer.render_map_incrementally): Fix a logic bug in the |
117 |
|
optimization that tries not to draw layers under a raster layer. |
118 |
|
The bug was harmless. All it effectively did was to produce The a |
119 |
|
strange messages about not being able to draw Layer instances for |
120 |
|
all vector layers below a raster layer which would be invisible |
121 |
|
anyway because the raster layer currently always covers the entire |
122 |
|
window |
123 |
|
|
124 |
|
2004-07-08 Jan Sch�ngel <[email protected]> |
125 |
|
|
126 |
|
* Extensions/umn_mapserver/mapfile.py: Added code to generade and get |
127 |
|
a list of supported outputformats. This formats are not alle supported |
128 |
|
because there is no possibility to get the outputformat without the |
129 |
|
name known. Make some formal changes to the code. |
130 |
|
(MF_Map.set_name()): Fixed a bug if the name is None. |
131 |
|
|
132 |
|
* Extensions/umn_mapserver/mf_handle.py: Removed the image_type import |
133 |
|
statement, because its not needed anymore. The Outputformat is now |
134 |
|
given as string from the object. Make some formal changes to the code. |
135 |
|
|
136 |
|
* Extensions/umn_mapserver/test/test_mapserver.py: Added new test for |
137 |
|
most of the new setting which were added during the last changes. |
138 |
|
Removed the MF_Size Test. |
139 |
|
|
140 |
|
* Extensions/umn_mapserver/test/test.map: Added a new class to the |
141 |
|
cultural Layer to test expressions and the the status of that layer |
142 |
|
from on to default. |
143 |
|
Changed the data path the the correct Thuban Data |
144 |
|
Added the Outputformat Object and Symbol Object |
145 |
|
|
146 |
|
2004-07-07 Jan Sch�ngel <[email protected]> |
147 |
|
|
148 |
|
* Extensions/umn_mapserver/mapfile.py: Added some new |
149 |
|
settings to edit (outputformat, label, imagetype) |
150 |
|
|
151 |
|
* Extensions/umn_mapserver/mf_handle.py: Added some setting to |
152 |
|
the Label Dialog and add the OutputDialog. |
153 |
|
Make some changes to the code order. |
154 |
|
|
155 |
|
2004-07-06 Jan Sch�ngel <[email protected]> |
156 |
|
|
157 |
|
* Extensions/umn_mapserver/mapfile.py: Added the symbolObj, pointObj |
158 |
|
and line Obj and add the scalebar_status_type, scalebar_style_type and |
159 |
|
scalebar_position_type. |
160 |
|
Added the symbol- and symbolsetObject (MF_Symbol,MF_Symbolset). The |
161 |
|
are only used to create a Symbol like the circle in Thuban. |
162 |
|
Added the scalebarObject (MF_Scalebar) |
163 |
|
(MF_Class): Added set_status and get_status. |
164 |
|
(MF_Layer.add_thubanclass): Added code to set the class status |
165 |
|
(MF_Map): Added code to handle the symbols and scalebar |
166 |
|
(MF_Label): Added the set_partials and get_partials functions |
167 |
|
|
168 |
|
* Extensions/umn_mapserver/mf_export.py: Added MF_Symbol to import |
169 |
|
from mapfile. Added a function to create a circle object like the one |
170 |
|
from thuban if no one exists. |
171 |
|
|
172 |
|
* Extensions/umn_mapserver/mf_handle.py: All colors are now set when |
173 |
|
press ok in the assosiated dialog and not at the end of the |
174 |
|
colordialog. |
175 |
|
Added the Dialog for the Scalebar. |
176 |
|
(Label_Dialog): Added the offset option |
177 |
|
|
178 |
|
* Extensions/umn_mapserver/mf_import.py: Added code to import the |
179 |
|
status of the Classes. |
180 |
|
Fixed a bug with the projection. Now the to_meter parameter will be |
181 |
|
added to the Projection only if it doesn't exists. |
182 |
|
|
183 |
|
2004-07-01 Jan Sch�ngel <[email protected]> |
184 |
|
|
185 |
|
Added the functionality to handle the content thuban is not |
186 |
|
able to handle directly. |
187 |
|
|
188 |
|
* Extensions/umn_mapserver/mf_handle.py: New. This module extents |
189 |
|
Thuban with the possibility to edit the mapfile content. |
190 |
|
|
191 |
|
* Extensions/umn_mapserver/mf_import.py: Added the possibility |
192 |
|
to import mapfiles without any layer selected. So it is possible |
193 |
|
to edit the other settings in a mapfile. |
194 |
|
(import_mapfile): Added code to use the editing functions. |
195 |
|
Added the possibility to import the projection to a layer if one |
196 |
|
is defined. |
197 |
|
Status settings (On,Off) will now set in thuban (visible, invisible). |
198 |
|
fixed a bug with with classnames. If no classname is set in mapfile |
199 |
|
the value in Thuban will set to the expression. |
200 |
|
|
201 |
|
* Extensions/umn_mapserver/mf_export.py(export_mapfile): Added the |
202 |
|
possibility to save a new mapfile or use the old one which is |
203 |
|
imported or new created. |
204 |
|
Added code to use the editing functions. |
205 |
|
Remove some not needed import statements |
206 |
|
|
207 |
|
* Extensions/umn_mapserver/mapfile.py: Added new types which are |
208 |
|
need for the editing functions. |
209 |
|
Added needed set-functions for the editing functions. |
210 |
|
Added the possibility to export rasterimages. |
211 |
|
Added new classes (MF_Web, MF_Label, MF_Legend, MF_Symbol, |
212 |
|
MF_SymbolSet). MF_Symbol and MF_SymbolSet are not needed at the |
213 |
|
moment. |
214 |
|
(MF_Class.set_thubanstyle): Now point layers will set to a default |
215 |
|
symbol to show a circle in mapserver and not only a 1px dot. |
216 |
|
(MF_Style.__init__): Fixed a bug with the color. Color was not set |
217 |
|
correct before. |
218 |
|
(MF_Size): Removed, because it is not needed. |
219 |
|
|
220 |
|
* Extensions/umn_mapserver/README: Added the hints to use the |
221 |
|
export and editing functions, too. |
222 |
|
|
223 |
|
* Extensions/umn_mapserver/sample/iceland.map: Added the |
224 |
|
new parameter "UNITS METERS". |
225 |
|
Change the political layer to status OFF. |
226 |
|
|
227 |
|
* Extensions/umn_mapserver/sample/README: Added some |
228 |
|
more details to setup the sample in the MapServer. |
229 |
|
|
230 |
|
2004-06-26 Bernhard Reiter <[email protected]> |
231 |
|
|
232 |
|
* Extensions/svgexport/test/test_svgmapwriter.py: |
233 |
|
Removed class VFile and used standard StringIO instead. |
234 |
|
|
235 |
|
2004-06-23 Jan Sch�ngel <[email protected]> |
236 |
|
|
237 |
|
Add the export function to the umn_mapserver extension. |
238 |
|
|
239 |
|
* Extension/umn_mapserver/mf_export.py: New. This module extents |
240 |
|
Thuban with the possibility to export the Thuban content. |
241 |
|
|
242 |
|
* Extensions/umn_mapserver/mapfile.py: Expand the classes to use |
243 |
|
with the export module. Especially added the possibility to |
244 |
|
add thuban objects directly to the map objects. |
245 |
|
|
246 |
|
* Extensions/umn_mapserver/mf_import.py: Removed the wxCHANGE_DIR, |
247 |
|
because of the hint from Bernhard Herzog. |
248 |
|
Corrected the handling of absolute pathnames. |
249 |
|
Changed the Text of the Menu-Item, now the beginning is upper case. |
250 |
|
|
251 |
|
* Extensions/umn_mapserver/README: Added the --with-tiff statement. |
252 |
|
|
253 |
2004-06-16 Jan Sch�ngel <[email protected]> |
2004-06-16 Jan Sch�ngel <[email protected]> |
254 |
|
|
255 |
Add a sample and make some changes. |
Add a sample and make some changes. |