1 |
|
2005-04-05 Jan-Oliver Wagner <[email protected]> |
2 |
|
|
3 |
|
* Doc/manual/thuban-manual-de.xml: More translations. |
4 |
|
|
5 |
|
2005-04-05 Bernhard Herzog <[email protected]> |
6 |
|
|
7 |
|
* libraries/thuban/wxproj.cpp: Make it work with a wxPython.h from |
8 |
|
wxPython 2.4 as well. Also, remove a now obsolete comment. |
9 |
|
|
10 |
|
2005-04-05 Bernhard Herzog <[email protected]> |
11 |
|
|
12 |
|
Use wxPython.h by default but provide a workaround when it isn't |
13 |
|
available. |
14 |
|
|
15 |
|
* setup.py (wxproj_extension): New variable. Assign the Extension |
16 |
|
instance for Lib.wxproj to this variable instead of putting it |
17 |
|
directly into the listso that it can be accessed by other code |
18 |
|
later. |
19 |
|
(thuban_build_ext.user_options): Added boolean option |
20 |
|
--use-wx-python-swig-hack. |
21 |
|
(thuban_build_ext.initialize_options): Initialize the new option |
22 |
|
to False. |
23 |
|
(thuban_build_ext.finalize_options): If the new option was given, |
24 |
|
define the preprocesser macro USE_WX_PYTHON_SWIG_HACK. |
25 |
|
(thuban_build_ext): Update the doc-string |
26 |
|
|
27 |
|
* libraries/thuban/wxproj.cpp: Normally we use |
28 |
|
wx/wxPython/wxPython.h now. Only if USE_WX_PYTHON_SWIG_HACK is |
29 |
|
defined, use swigPtrConvertHack.h instead. |
30 |
|
|
31 |
|
* libraries/thuban/swigPtrConvertHack.h: Remove the code that was |
32 |
|
copied over from wxPython.h. |
33 |
|
(decode_pointer_new): New. Equivalent of decode_pointer for |
34 |
|
wxPython 2.5. |
35 |
|
(wxPyConvertSwigPtr): Modified to cope with wxPython 2.5 as well. |
36 |
|
|
37 |
|
* README: Add section on potential build problems which explains |
38 |
|
how the work-around for a missing wxPython.h is activated. |
39 |
|
|
40 |
|
2005-03-29 Bernhard Herzog <[email protected]> |
41 |
|
|
42 |
|
* test/postgissupport.py (find_postgis_sql): Added yet another |
43 |
|
potential location for (lw)postgis.sql because the file has moved |
44 |
|
again in postgis 1.0.0 rc4. |
45 |
|
|
46 |
|
2005-03-29 Bernhard Herzog <[email protected]> |
47 |
|
|
48 |
|
* Thuban/UI/legend.py (BMP_SIZE_W, BMP_SIZE_H): Set both to 16 to |
49 |
|
match the site of the legend_icon_layer icon. Otherwise wxpython |
50 |
|
2.5 complains when the legend is created with the error: |
51 |
|
|
52 |
|
PyAssertionError: C++ assertion "(bitmap.GetWidth() == m_width && |
53 |
|
bitmap.GetHeight() == m_height) || (m_width == 0 && m_height == |
54 |
|
0)" failed in ./src/generic/imaglist.cpp(81): invalid bitmap size |
55 |
|
in wxImageList: this might work on this platform but definitely |
56 |
|
won't under Windows. |
57 |
|
|
58 |
|
2005-03-23 Jonathan Coles <[email protected]> |
59 |
|
|
60 |
|
These changes add support for adjusting the opacity of a raster layer. |
61 |
|
|
62 |
|
* Thuban/Model/layer.py (RasterLayer.Opacity): Replaces AlphaOpacity. |
63 |
|
(RasterLayer.SetOpacity): Replaces SetAlphaOpacity. Also triggers |
64 |
|
a LAYER_CHANGED event if the opacity actually changes. |
65 |
|
|
66 |
|
* Thuban/UI/baserenderer.py (BaseRenderer.draw_raster_data): Added |
67 |
|
layer parameter needed in the implementation of this method in |
68 |
|
renderer.py. |
69 |
|
|
70 |
|
* Thuban/UI/layerproperties.py (LayerProperties.dialog_layout): Fixed |
71 |
|
typo 00 -> 0. |
72 |
|
|
73 |
|
* Thuban/UI/rasterlayerproperties.py (RasterLayerProperties): Added |
74 |
|
control to adjust opacity. |
75 |
|
|
76 |
|
* Thuban/UI/renderer.py (MapRenderer.draw_raster_data): Scale the |
77 |
|
alpha data based on the opacity level of the layer. |
78 |
|
|
79 |
|
* test/test_baserenderer.py (SimpleRenderer.draw_raster_data): Now |
80 |
|
accepts a layer parameter. |
81 |
|
|
82 |
|
* test/test_layer.py (TestLayerModification.test_raster_layer): |
83 |
|
Rename opacity method calls and add test for LAYER_CHANGED. |
84 |
|
|
85 |
|
2005-03-16 Bernhard Herzog <[email protected]> |
86 |
|
|
87 |
|
* test/test_connector.py (DeletionTestMixin.check_deletions) |
88 |
|
(DeletionTestMixin.check_deletetions): renamed to check_deletions. |
89 |
|
update the callers. |
90 |
|
|
91 |
|
2005-03-14 Jan-Oliver Wagner <[email protected]> |
92 |
|
|
93 |
|
* Doc/manual/thuban-manual-de.xml: More translations. |
94 |
|
|
95 |
|
2005-03-10 Jan-Oliver Wagner <[email protected]> |
96 |
|
|
97 |
|
Introducing initialization callbacks for extensions. |
98 |
|
|
99 |
|
* Thuban/UI/extensionregistry.py (ExtensionDesc.__init__): Added |
100 |
|
optional parameter init_callback. |
101 |
|
(ExtensionDesc.init_ext): New. Executes the callback and sets |
102 |
|
a status. |
103 |
|
|
104 |
|
* Thuban/UI/application.py (ThubanApplication.OnInit): Add the |
105 |
|
initialization of the extensions. |
106 |
|
(ThubanApplication.init_extensions): Init all extensions. |
107 |
|
|
108 |
|
* Thuban/UI/about.py (About.__init__): Added status of the extensions |
109 |
|
to the about text. |
110 |
|
|
111 |
|
* Extensions/gns2shp/__init__.py: Added init method for Extension |
112 |
|
description. |
113 |
|
(init): New. Contains the initialization of the module. |
114 |
|
|
115 |
|
2005-03-04 Nina H�ffmeyer <[email protected]> |
116 |
|
|
117 |
|
* Extensions/ogr/ogrdialog.py: Added a dialog, which asks for |
118 |
|
OGRConnection to open a datasource. Removed dialog to display all |
119 |
|
available drivers. Added some doc strings. |
120 |
|
|
121 |
|
* Extensions/ogr/ogrstart.py: Added menu entry for opening an |
122 |
|
OGRDatasource with a string. Added two opening methods which return an |
123 |
|
OGRDatasource (either data from file or from DB). |
124 |
|
|
125 |
|
* Extensions/ogr/ogrshapes.py: Added class OGRGeometry, which |
126 |
|
represents a geometry reference of an OGRFeature. OGRShape now has a |
127 |
|
list of referenced geometry objects (important for geometry |
128 |
|
collections). |
129 |
|
For OGRShapeStores loaded from a DB an ID column can be specified now. |
130 |
|
|
131 |
|
2005-02-22 Jan-Oliver Wagner <[email protected]> |
132 |
|
|
133 |
|
* test/test_map.py (TestMapWithContents.test_tree_info): |
134 |
|
Added label layer for comparison. |
135 |
|
|
136 |
|
2005-02-18 Jonathan Coles <[email protected]> |
137 |
|
|
138 |
|
* libraries/thuban/gdalwarp.cpp (GetImageData): Optimize the loop |
139 |
|
which builds a mask. Handle the majority of an image in a loop, |
140 |
|
creating 8 bits at a time. Later, handle the edge case where less |
141 |
|
than 8 bits are packed. |
142 |
|
|
143 |
|
2005-02-18 Bernhard Herzog <[email protected]> |
144 |
|
|
145 |
|
* test/test_baserenderer.py (TestBaseRenderer.setUp): Fix |
146 |
|
doc-string |
147 |
|
|
148 |
|
2005-02-18 Jonathan Coles <[email protected]> |
149 |
|
|
150 |
|
* setup.py: Remove wx_cs_params from gdal compile options. |
151 |
|
|
152 |
|
2005-02-18 Jonathan Coles <[email protected]> |
153 |
|
|
154 |
|
Refactored baserenderer.py and renderer.py to remove baserenderer.py's |
155 |
|
dependencies on wxPython. Added a new method projected_raster_layer() |
156 |
|
that returns a raster layer image in projected space. This must be |
157 |
|
implemented in classes derived from BaseRenderer. This also eliminates |
158 |
|
the dependency on gdal in baserenderer.py. |
159 |
|
|
160 |
|
* Thuban/UI/baserenderer.py (BaseRenderer.draw_raster_layer): Call |
161 |
|
new projected_raster_layer() to get projected raster image instead |
162 |
|
of directly calling ProjectRasterFile(). |
163 |
|
(BaseRenderer.projected_raster_layer): New. This must be implemented |
164 |
|
by derived classes. It takes almost the same arguments as ProjectRasterFile |
165 |
|
did and returns a projected image with mask and alpha data (if requested). |
166 |
|
(BaseRenderer.render_map_incrementally): Remove the check for gdal since |
167 |
|
that check will be done in MapRenderer.projected_raster_layer(). This |
168 |
|
also allows other implementations to use different projection code. |
169 |
|
|
170 |
|
* Thuban/UI/renderer.py (MapRenderer.projected_raster_layer): |
171 |
|
Implementation of BaseRenderer.projected_raster_layer. Checks for |
172 |
|
gdal support and wxPython version. Also handles exceptions from |
173 |
|
ProjectRasterFile. |
174 |
|
|
175 |
|
* libraries/thuban/gdalwarp.cpp: Removed checks for wxPython versions |
176 |
|
and added a variable which can be set through the options argument |
177 |
|
of ProjectRasterFile. |
178 |
|
|
179 |
|
* test/test_baserenderer.py (SimpleRenderer.projected_raster_layer): New. |
180 |
|
Calls ProjectRasterFile and returns the result. |
181 |
|
(TestBaseRenderer.test_projected_raster_layer): New. Tests the results |
182 |
|
of calling projected_raster_layer() with different options. |
183 |
|
(TestBaseRenderer.test_raster_no_projection): Removed tests based on |
184 |
|
wxPython version and all tests of masks and alpha channels. These are |
185 |
|
now in test_projected_raster_layer(). |
186 |
|
|
187 |
|
2005-02-17 Jan-Oliver Wagner <[email protected]> |
188 |
|
|
189 |
|
* Thuban/Model/map.py, Thuban/Model/label.py: Fixed |
190 |
|
doc-strings to comply with coding_guidelines. |
191 |
|
|
192 |
|
2005-02-17 Jan-Oliver Wagner <[email protected]> |
193 |
|
|
194 |
|
Docstring improvements and minor fixes for labellayer. |
195 |
|
|
196 |
|
* Thuban/Model/map.py: |
197 |
|
(Map, Map.Destroy, Map.RemoveLayer, Map.ClearLayers, |
198 |
|
Map.Layers, Map.HasLayers, Map.MoveLayerToTop, |
199 |
|
Map.RaiseLayer, Map.LowerLayer, Map.MoveLayerToBottom, |
200 |
|
Map.ProjectedBoundingBox, Map.GetProjection): Improved/added |
201 |
|
doc string. |
202 |
|
(Map.BoundingBox): Removed superfluous test for label_layer |
203 |
|
and improved doc string. |
204 |
|
(Map.TreeInfo): Added label_layer and improved sdo string. |
205 |
|
|
206 |
|
* Thuban/Model/label.py: Added import of _. |
207 |
|
(Label, Label.__init__): Improved/added doc string. |
208 |
|
(LabelLayer, LabelLayer.__init__, LabelLayer.Labels, |
209 |
|
LabelLayer.RemoveLabel, LabelLayer.ClearLabels): |
210 |
|
Improved/added doc string. |
211 |
|
(LabelLayer.AddLabel): Use already defined names for |
212 |
|
align strings and improved doc string. |
213 |
|
(LabelLayer.TreeInfo): New. Return the object data for |
214 |
|
the tree view. |
215 |
|
|
216 |
|
2005-02-16 Jonathan Coles <[email protected]> |
217 |
|
|
218 |
|
Further wxPython 2.5 changes using patches from Daniel Calvelo Aros |
219 |
|
so that that wxproj doesn't crash. Added GUI support for selecting |
220 |
|
alpha channel (opacity can't be selected yet). |
221 |
|
|
222 |
|
NOTE: If wxPython.h is including in future distribution packages |
223 |
|
then it will not be necessary to have the files swigPtrConvertHack.h |
224 |
|
and wxPython_int.h included with Thuban. This is hopefully |
225 |
|
a temporary workaround. |
226 |
|
|
227 |
|
* setup.py (thuban_build_ext.finalize_options): gdalwarp needs |
228 |
|
access to the macro wxCHECK_VERSION so that it will properly |
229 |
|
generate a bit mask. There was a problem between wx2.4 and wx2.5 |
230 |
|
that this works around. |
231 |
|
|
232 |
|
* Thuban/Model/layer.py (RasterLayer.UseMask): Removed in favor |
233 |
|
of RasterLayer.MaskType. |
234 |
|
(RasterLayer.SetUseMask): Removed in favor of RasterLayer.SetMaskType |
235 |
|
(RasterLayer.MaskType): New. Returns the type of mask to use. Can |
236 |
|
specify none, a bitmap, or an alpha channel. |
237 |
|
(RasterLayer.SetMaskType): New. Set what kind of mask to use. |
238 |
|
|
239 |
|
* Thuban/UI/baserenderer.py (BaseRenderer.draw_raster_layer): |
240 |
|
Set the raster warping options for the mask based on the value |
241 |
|
of RasterLayer.MaskType. |
242 |
|
|
243 |
|
* Thuban/UI/legend.py (LegendTree.__FillTreeLayer): Remove |
244 |
|
deprecated calls to SetItemSelectedImage in favor of SetItemImage |
245 |
|
with wxTreeItemIcon_Selected. |
246 |
|
|
247 |
|
* Thuban/UI/rasterlayerproperties.py: Support selecting to use |
248 |
|
an alpha channel for the mask. |
249 |
|
|
250 |
|
* Thuban/UI/renderer.py (MapRenderer.draw_raster_data): Use alpha |
251 |
|
data if it is available and an alpha channel is supported under |
252 |
|
the current version of wxPython. |
253 |
|
|
254 |
|
* libraries/thuban/gdalwarp.cpp (GetImageData): Added compiler define |
255 |
|
to select whether 1's or 0's select the desired portion of an image |
256 |
|
in the bit mask. wx2.4 has a bug where the documentation is the opposite |
257 |
|
from behavior. |
258 |
|
(ProjectRasterFile): Only generate an alpha channel if the version |
259 |
|
of wxPython is >= 2.5.3. |
260 |
|
|
261 |
|
* libraries/thuban/wxproj.cpp: Applied patches from Daniel Calvelo Aros. |
262 |
|
When wxPython >= 2.5.3 use the special swig functions to decode an |
263 |
|
object's address. |
264 |
|
|
265 |
|
* libraries/thuban/swigPtrConvertHack.h: Includes conditional code |
266 |
|
based on the version of wxPython. If >= 2.5.3 use the special swig |
267 |
|
functions from wxPython to decode wxPython objects, otherwise use |
268 |
|
the old method of retrieving the address from the object __repr__ string. |
269 |
|
|
270 |
|
* libraries/thuban/wxPython_int.h: Copied from wxPython source. |
271 |
|
Unnecessary code was removed to make it smaller. |
272 |
|
|
273 |
|
* test/test_baserenderer.py (TestBaseRenderer.test_raster_no_projection): |
274 |
|
Add tests for returning an alpha channel. |
275 |
|
|
276 |
|
* test/test_layer.py (TestLayerModification.test_raster_layer): Fix |
277 |
|
tests that used removed functions UseMask and SetUseMask |
278 |
|
|
279 |
|
|
280 |
|
2005-02-08 Bernhard Herzog <[email protected]> |
281 |
|
|
282 |
|
More wxPython 2.5 changes. This time taken from a patch from |
283 |
|
Daniel Calvelo Aros. |
284 |
|
|
285 |
|
* Thuban/UI/tableview.py (QueryTableFrame.__init__) |
286 |
|
(QueryTableFrame.__init__): Pass the size of a spacer as a single |
287 |
|
item. |
288 |
|
|
289 |
|
* Thuban/UI/projdialog.py (ProjFrame.build_dialog) |
290 |
|
(ProjFrame.build_dialog): Pass the size of a spacer as a single |
291 |
|
item. |
292 |
|
|
293 |
|
* Thuban/UI/dbdialog.py (ChooseDBTableDialog.__init__): Pass the |
294 |
|
size of a spacer as a single item. |
295 |
|
|
296 |
|
* Thuban/UI/classifier.py (Classifier.dialog_layout): Pass the |
297 |
|
size of a spacer as a single item. |
298 |
|
|
299 |
|
2005-02-08 Bernhard Herzog <[email protected]> |
300 |
|
|
301 |
|
Compatibility with wxPython 2.5. The changes should make it work |
302 |
|
better with 2.5 while still keeping compatibility with 2.4. There |
303 |
|
are still problems with 2.5, though. |
304 |
|
|
305 |
|
* Thuban/UI/dock.py (DockableWindow.__CreateBorder): Pass the size |
306 |
|
of a spacer as a single item. |
307 |
|
|
308 |
|
* Thuban/UI/classifier.py (ClassGroupPropertiesCtrl): Derive only |
309 |
|
from wxControl |
310 |
|
|
311 |
|
* Thuban/UI/legend.py (LegendTree): When running with wxPython < |
312 |
|
2.5, add an implementation of the GetFirstChild method that does |
313 |
|
not require the second parameter. |
314 |
|
(LegendTree.find_layer, LegendTree._OnMsgMapLayersAdded) |
315 |
|
(LegendTree._OnMsgMapLayersRemoved, LegendTree.DeleteAllItems) |
316 |
|
(LegendTree.DeleteChildren, LegendTree.__ShowHideLayer): Do not |
317 |
|
pass the second parameter to GetFirstChild |
318 |
|
|
319 |
|
2005-02-08 Nina H�ffmeyer <[email protected]> |
320 |
|
|
321 |
|
* Extensions/ogr/ogrshapes.py: Removed some print commands. |
322 |
|
|
323 |
|
* Extensions/ogr/ogrstart.py: Changed the GUI. OGR is no longer an |
324 |
|
additional menu but appears as a possibility in the menu Map. |
325 |
|
|
326 |
|
2005-02-07 Jonathan Coles <[email protected]> |
327 |
|
* libraries/thuban/gdalwarp.cpp: Removed the macros PYTHON_ERR |
328 |
|
and PYTHON_ERRF since they were no longer necessary. |
329 |
|
|
330 |
|
2005-02-07 Bernhard Reiter <[email protected]> |
331 |
|
* Thuban/UI/classifier.py (ClassGrid.DeleteSelectedRows): |
332 |
|
Enable translation for message string. |
333 |
|
|
334 |
|
2005-02-06 Martin Schulze <[email protected]> |
335 |
|
|
336 |
|
* Extensions/wms/infodialog.py (wmsInfoDialog.__init__): Adjusted |
337 |
|
the arguments of the contstructor to fit the global scheme |
338 |
|
|
339 |
|
2005-01-31 Nina H�ffmeyer <[email protected]> |
340 |
|
|
341 |
|
* Extensions/ogr/ogrdialog.py: Added class ogrdialog.py, which provides |
342 |
|
some dialogs needed to start ogr. |
343 |
|
|
344 |
|
* Extensions/ogr/__init__.py: Changed comments to avoid encoding |
345 |
|
warnings. |
346 |
|
|
347 |
|
* Extensions/ogr/test/test_OGRShapestore.py: Changed comments to avoid |
348 |
|
encoding warnings. |
349 |
|
|
350 |
|
2005-01-28 Jonathan Coles <[email protected]> |
351 |
|
|
352 |
|
* libraries/thuban/gdalwarp.cpp (GetImageData): Recode how the |
353 |
|
mask is packed into a bit array. It's now slightly faster. |
354 |
|
|
355 |
|
2005-01-28 Jonathan Coles <[email protected]> |
356 |
|
|
357 |
|
* Thuban/Model/layer.py (RasterLayer.__init__): Make use_mask |
358 |
|
default to true. |
359 |
|
|
360 |
|
* Thuban/Model/load.py (SessionLoader.start_rasterlayer): Remove |
361 |
|
code that loads the state of the layer's use_mask flag. Its |
362 |
|
usefulness is still being debated. |
363 |
|
|
364 |
|
* Thuban/Model/save.py (SessionSaver.write_layer): Remove |
365 |
|
code that saves the state of the layer's use_mask flag. Its |
366 |
|
usefulness is still being debated. |
367 |
|
|
368 |
|
* Thuban/UI/baserenderer.py (BaseRenderer.draw_raster_layer): Pass |
369 |
|
options to ProjectRasterFile based on the state of layer.UseMask(). |
370 |
|
Catch more exceptions from ProjectRasterFile so that Thuban doesn't |
371 |
|
quit is there is a problem projecting. |
372 |
|
(BaseRenderer.draw_raster_data): Change the documentation to |
373 |
|
describe the new format (XBM) that the mask data will be in. |
374 |
|
|
375 |
|
* Thuban/UI/renderer.py (MapRenderer.draw_raster_data): The mask |
376 |
|
data is in XBM format when format='RAW' which means it doesn't |
377 |
|
need to be converted to a wxImage before being used as a mask |
378 |
|
for a wxBitmap. Assume that if format != 'RAW' that the image |
379 |
|
data and mask data are in the same format. |
380 |
|
|
381 |
|
* libraries/thuban/gdalwarp.cpp (GetImageData): If alpha is enabled |
382 |
|
and a mask is requested, convert the alpha band to a bit array in |
383 |
|
XBM format. if an alpha channel is requested, simply return the |
384 |
|
data in the alpha band. Provide better error handling by returning |
385 |
|
python error messages (also fixes RT #2947). |
386 |
|
(ProjectRasterFile): Support multiple mask options, rather than simply |
387 |
|
a flag indicating that a mask should or should not be used. Provide |
388 |
|
better error handling by returning python error messages. |
389 |
|
|
390 |
|
* test/test_baserenderer.py (TestBaseRenderer.test_raster_no_projection): |
391 |
|
Add mask data to test. |
392 |
|
|
393 |
|
* test/test_layer.py (TestLayer.test_raster_layer): Test that a layer |
394 |
|
should use the mask by default. |
395 |
|
(TestLayerModificaton.test_raster_layer): Test that a layer should use |
396 |
|
the mask by default. |
397 |
|
|
398 |
|
* test/test_load.py (TestRasterLayer.test): Remove testing for |
399 |
|
use_mask flag in file. |
400 |
|
|
401 |
|
* test/test_save.py (SaveSessionTest.testRasterLayer): Remove testing |
402 |
|
for use_mask in file. |
403 |
|
|
404 |
|
* test/test_load_1_0_1.py: Removed. Shouldn't have been checked in. |
405 |
|
|
406 |
|
2005-01-26 Jonathan Coles <[email protected]> |
407 |
|
|
408 |
|
Add a new dialog box for raster layers. The dialog box allows |
409 |
|
the user to toggle a mask that is generated by ProjectRasterFile |
410 |
|
and is used to only draw the real parts of the projected image. |
411 |
|
|
412 |
|
* Thuban/UI/baserenderer.py (BaseRenderer.draw_raster_layer): |
413 |
|
Instruct the warping code to generate a mask if the raster layer |
414 |
|
requests one. |
415 |
|
(BaseRenderer.draw_raster_data): Removed obsolete optional mask argument. |
416 |
|
|
417 |
|
* Thuban/UI/renderer.py (MapRenderer.draw_raster_data): Removed |
418 |
|
obsolete optional mask argument. |
419 |
|
|
420 |
|
* Thuban/UI/classifier.py (Classifier): Change the parent class |
421 |
|
to LayerProperties and rework the code to support layout calls |
422 |
|
from the parent. |
423 |
|
(Classifier.dialog_layout): New. Layout the dialog box. |
424 |
|
(Classifier.map_layers_removed): Removed. Moved to parent class. |
425 |
|
(Classifier.map_replaced): Removed. Moved to parent class. |
426 |
|
(Classifier._OnTry): Renamed to OnTry to support parent class. |
427 |
|
(Classifier.OnClose): Removed. Supplied in parent class. |
428 |
|
(Classifier._OnCloseBtn): Removed. Supplied in parent class as OnCloseBtn. |
429 |
|
(Classifier._OnOK): Renamed to OnOK to support parent class. |
430 |
|
(Classifier._OnRevert): Renamed to OnRevert to support parent class. |
431 |
|
|
432 |
|
* Thuban/UI/layerproperties.py: New. Base class for layer properties |
433 |
|
dialog boxes. |
434 |
|
|
435 |
|
* Thuban/UI/rasterlayerproperties.py: New. Class for displaying |
436 |
|
raster layer properties. |
437 |
|
|
438 |
|
* libraries/thuban/gdalwarp.cpp: Replace the old gdalwarp.cpp code |
439 |
|
with the non-simple version supplied with gdal. This allows added |
440 |
|
features such as creating an alpha band. |
441 |
|
(GetImageData): Generate a mask array from the alpha band that is |
442 |
|
generated by gdal if the user has selected it. Try to support images |
443 |
|
that have more than three bands, such as images with RGB plus an |
444 |
|
alpha band. |
445 |
|
(ProjectRasterFile): Convert python argument for mask and tell |
446 |
|
gdal to enable or disable an alpha band. |
447 |
|
|
448 |
|
* Thuban/Model/layer.py (BaseLayer.Type): New. Returns a string |
449 |
|
describing what kind of layer the class is. Defaults to "Unknown", |
450 |
|
but should be overridden by subclasses. |
451 |
|
(Layer.Type): New. Override base class method. |
452 |
|
(RasterLayer.__init__): Create a flag for using a mask. Record extra |
453 |
|
data from gdal for display in the properties dialog. |
454 |
|
(RasterLayer.Type): New. Override base class method. |
455 |
|
(RasterLayer.UseMask): New. Returns True if the mask should be used. |
456 |
|
(RasterLayer.SetUseMask): New. Set if the mask should be used. |
457 |
|
(RasterLayer.ImageInfo): New. Return extra information about the image. |
458 |
|
|
459 |
|
* Thuban/Model/load.py (SessionLoader.start_rasterlayer): Load |
460 |
|
the mask information. |
461 |
|
|
462 |
|
* Thuban/Model/save.py (SessionSaver.write_layer): Save mask information. |
463 |
|
|
464 |
|
* Thuban/UI/mainwindow.py: Register the RasterLayerProperties and |
465 |
|
Classifier classes as dialogs to use with the proper layer types. |
466 |
|
|
467 |
|
* test/test_baserenderer.py (TestBaseRenderer.test_raster_no_projection): |
468 |
|
Fix test. |
469 |
|
|
470 |
|
* test/test_layer.py (TestLayer.test_raster_layer): Test new methods. |
471 |
|
(TestLayerModification.build_path): New. Support function. |
472 |
|
(TestLayerModification.test_raster_layer): New. Test new methods. |
473 |
|
|
474 |
|
* test/test_save.py (SaveSessionTest.testRasterLayer): Add tests for mask. |
475 |
|
|
476 |
|
* test/test_load.py (TestRasterLayer): Add tests for mask. |
477 |
|
|
478 |
|
* test/test_load_1_0_1.py: New. Copied from test_load.py. |
479 |
|
|
480 |
|
* test/test_baserenderer.py (SimpleRenderer.draw_raster_data): Removed |
481 |
|
obsolete optional mask argument. |
482 |
|
|
483 |
|
2005-01-26 Nina H�ffmeyer <[email protected]> |
484 |
|
|
485 |
|
* Extensions/ogr/ogrshapes.py: Added two dictionaries to ShapeStore |
486 |
|
which maps the ids and the ordinals. Fixed RowIdToOrdinal(), |
487 |
|
RowOrdinalToId() and ReadRowAsDict(). |
488 |
|
|
489 |
|
* Extensions/ogr/ogrstart.py: Added menu item which opens database |
490 |
|
layers for existing database connections. |
491 |
|
|
492 |
|
* Extensions/ogr/test/test_OGRShapestore.py: Fixed a message string. |
493 |
|
|
494 |
|
|
495 |
|
2005-01-26 Jan-Oliver Wagner <[email protected]> |
496 |
|
|
497 |
|
* Doc/manual/thuban-manual-de.xml: More translations. |
498 |
|
|
499 |
|
2005-01-24 Bernhard Herzog <[email protected]> |
500 |
|
|
501 |
|
Rework the status bar updates a bit to make sure the message about |
502 |
|
the projections is produced at the right times. |
503 |
|
|
504 |
|
* Thuban/UI/mainwindow.py (MainWindow.update_status_bar_messages): |
505 |
|
New class variable with messages that may require a status bar |
506 |
|
update. |
507 |
|
(MainWindow.view_position_changed) |
508 |
|
(MainWindow.update_status_bar): Rename from view_position_changed |
509 |
|
to update_status_bar. It's meaning has changed now that it may |
510 |
|
also generate messages about problems with projection settings. |
511 |
|
(MainWindow.__init__): Use the new update_status_bar_messages |
512 |
|
class variable to subscribe update_status_bar |
513 |
|
(MainWindow.set_position_text): Update doc-string. This method |
514 |
|
has to be renamed at some point. See doc-string and comments. |
515 |
|
(MainWindow.OnClose): Unsubscribe update_status_bar from all |
516 |
|
messages in update_status_bar_messages |
517 |
|
|
518 |
|
* Thuban/UI/viewport.py (ViewPort.forwarded_map_messages): New |
519 |
|
class attribute. map messages to be forwarded by the viewport. |
520 |
|
(ViewPort._subscribe_map, ViewPort._unsubscribe_map): (un)subscribe |
521 |
|
the messages in forwarded_map_messages |
522 |
|
|
523 |
|
2005-01-21 Bernhard Herzog <[email protected]> |
524 |
|
|
525 |
|
* test/postgissupport.py (PostGISDatabase.__init__): Tweak |
526 |
|
doc-string |
527 |
|
(find_postgis_sql): Update for postgis-1.0.0-rc1, which uses a |
528 |
|
different name for the initialization SQL file. |
529 |
|
|
530 |
|
2005-01-21 Jonathan Coles <[email protected]> |
531 |
|
|
532 |
|
* Thuban/UI/baserenderer.py (proj_params_to_str): New. Takes |
533 |
|
a projection and returns a formatted string representing the |
534 |
|
parameters to feed to gdalwarp. This function eliminates |
535 |
|
redundancy in draw_raster_layer(). |
536 |
|
(BaseRenderer.render_map_incrementally): Removed the optimization which |
537 |
|
drew the top most raster layer first and then only those vector- |
538 |
|
based layers that are above it. With the support for transparency |
539 |
|
this optimization breaks correct behaviour. |
540 |
|
(BaseRenderer.draw_raster_layer): Reorganize code to support possible |
541 |
|
future enhancements to raster layer bounding box. The old behaviour has |
542 |
|
not changed. Also, change calling parameters to draw_raster_data() |
543 |
|
to specify new RAW data format and mask. |
544 |
|
(BaseRenderer.draw_raster_data): Change signature to include an optional |
545 |
|
parameter for mask information. Change documentation to mention |
546 |
|
support for new parameter and added option for RAW data format. |
547 |
|
The data argument is now a list of [width, height, data]. |
548 |
|
|
549 |
|
* Thuban/UI/renderer.py (MapRenderer.draw_raster_data): Add new optional |
550 |
|
mask parameter. Add new condition for RAW format, which |
551 |
|
significantly reduces rendering time. Add condition for |
552 |
|
mask parameter. |
553 |
|
|
554 |
|
* libraries/thuban/gdalwarp.cpp (GetImageData): New. Creates a |
555 |
|
data array of RGB values from the projected image returned from |
556 |
|
the gdal warping functions. In the case of palette based images, it |
557 |
|
converts the NO_DATA index to the mask color. |
558 |
|
(ProjectRasterFile): Removed all custom memory driver references |
559 |
|
and replaced it with the standard in-memory dataset provided |
560 |
|
by gdal. The return data is no longer a BMP file, but an array |
561 |
|
of RGB values, one set triple per pixel. |
562 |
|
|
563 |
|
* libraries/thuban/bmpdataset.cpp: Removed. Unnecessary. |
564 |
|
* libraries/thuban/cpl_mfile.h: Removed. Unnecessary. |
565 |
|
* libraries/thuban/cpl_mfile.cpp: Removed. Unnecessary. |
566 |
|
|
567 |
|
* setup.py (thuban_build_ext.finalize_options): Removed mention |
568 |
|
of cpl_mfile.cpp and bmpdataset.cpp files in the list of source |
569 |
|
files. These are obsolete with the new version of gdalwarp.cpp |
570 |
|
|
571 |
|
* test/test_baserenderer.py (SimpleRenderer.draw_raster_data): |
572 |
|
Updated signature. |
573 |
|
(TestBaseRenderer.test_raster_no_projection): Changed the test |
574 |
|
data to be data in the uncompressed RAW format returned from |
575 |
|
ProjectRasterFile. |
576 |
|
|
577 |
|
2005-01-21 Jan-Oliver Wagner <[email protected]> |
578 |
|
|
579 |
|
* Thuban/UI/mainwindow.py (MainWindow.view_position_changed): Made |
580 |
|
string available for i18n. |
581 |
|
|
582 |
|
2005-01-20 Russell Nelson <[email protected]> |
583 |
|
|
584 |
|
* Resources/Projections/defaults.proj: Ruin the speling of the |
585 |
|
Lambert-93 projection so it doesn't run into the wx UTF-8 bug. |
586 |
|
It's the wrong thing to do in the long run, but it's necessary for |
587 |
|
those users until that bug is fixed. Otherwise the projection |
588 |
|
dialog segfaults. Better to annoy some Lambert-93 users with a |
589 |
|
spelling mistake than every Fedora Core 3 user of Thuban-CVS. |
590 |
|
|
591 |
|
2005-01-20 Bernhard Reiter <[email protected]> |
592 |
|
|
593 |
|
* Thuban/UI/mainwindow.py (MainWindow.view_position_changed): Added |
594 |
|
docstring and comment that the warning code here is a hack. |
595 |
|
|
596 |
|
2005-01-20 Russell Nelson <[email protected]> |
597 |
|
|
598 |
|
* Thuban/UI/mainwindow.py (MainWindow.view_position_changed): Warn |
599 |
|
user about misprojected layers when their lat/lon bounding |
600 |
|
box exceeds rational lat/lon values. |
601 |
|
|
602 |
|
2005-01-20 Bernhard Reiter <[email protected]> |
603 |
|
|
604 |
|
* Thuban/UI/about.py (unicodeToLocale): Improved: |
605 |
|
Use 'ascii' and then 'replace' for other characters |
606 |
|
when getdefaultlocale returns None. Thanks to Bernhard H. . |
607 |
|
|
608 |
|
2005-01-20 Bernhard Reiter <[email protected]> |
609 |
|
|
610 |
|
* Thuban/UI/classgen.py (GenQuantilesPanel.OnRetrieve): Added a comment |
611 |
|
that OnRangeText might be called twice and using None as argument. |
612 |
|
|
613 |
|
2005-01-20 Bernhard Reiter <[email protected]> |
614 |
|
|
615 |
|
* Thuban/UI/classgen.py (GenQuantilesPanel.OnRetrieve): Add a |
616 |
|
OnRangeText(0) to work around a different in wx Behaviour noticed |
617 |
|
on MacOSX, thanks to Lorenzo Moretti and Daniel Calvelo for the fix. |
618 |
|
|
619 |
|
2005-01-20 Bernhard Reiter <[email protected]> |
620 |
|
|
621 |
|
* Thuban/UI/about.py: take iso-8859-15 when getdefaultlocale returns |
622 |
|
None. (Fixes rt#2910.) |
623 |
|
|
624 |
|
2005-01-18 Frank Koormann <[email protected]> |
625 |
|
|
626 |
|
New Extension: mouseposition |
627 |
|
Tool to collect mouse click positions (map coordinates) in a dialog. |
628 |
|
|
629 |
|
* Extensions/mouseposition/__init__.py: New, extension registration |
630 |
|
|
631 |
|
* Extensions/mouseposition/mouseposition.py: New, implements the |
632 |
|
dialog and adds a tool to Thuban mainwindow. |
633 |
|
|
634 |
|
* Extensions/mouseposition/position.xpm: New, icon for tool. |
635 |
|
|
636 |
|
2005-01-14 Jan-Oliver Wagner <[email protected]> |
637 |
|
|
638 |
|
* Doc/manual/thuban-manual-de.xml: More translations. |
639 |
|
|
640 |
|
2005-01-11 Frank Koormann <[email protected]> |
641 |
|
|
642 |
|
* Thuban/UI/mainwindow.py (MainWindow.DuplicateLayer): |
643 |
|
Fix indention bug. |
644 |
|
|
645 |
|
2005-01-09 Frank Koormann <[email protected]> |
646 |
|
|
647 |
|
* Thuban/UI/mainwindow.py (MainWindow.DuplicateLayer): |
648 |
|
BugFix 2901: Explicitly copy layers ClassificationColumn since it |
649 |
|
is not part of the layers Classification. |
650 |
|
|
651 |
|
2005-01-03 Frank Koormann <[email protected]> |
652 |
|
|
653 |
|
* Thuban/UI/renderer.py (ScreenRendererdraw_selection_incrementally): |
654 |
|
BugFix 2883: Former implementation only worked on classified point |
655 |
|
layers: KeyError was raised, now use the default size if field is None. |
656 |
|
|
657 |
|
2004-12-27 Bernhard Reiter <[email protected]> |
658 |
|
|
659 |
|
svgexport 1.0.0cvs: Fixed label export. |
660 |
|
|
661 |
|
* Extensions/svgexport/test/test_svgmapwriter.py: |
662 |
|
class TestSVGRenderer(): New class; new test test_label_font(). |
663 |
|
|
664 |
|
* Extensions/svgexport/svgmapwriter.py |
665 |
|
(SVGRenderer.label_font()): initialised Font size with self.factor now, |
666 |
|
makes test_label_font happy. |
667 |
|
|
668 |
|
* Extensions/svgexport/TODO: crossed out fixed label export item. |
669 |
|
Added item for options. |
670 |
|
|
671 |
|
* Extensions/svgexport/__init__.py: Bumped version to 1.0.0cvs. |
672 |
|
|
673 |
|
2004-12-27 Russell Nelson <[email protected]> |
674 |
|
|
675 |
|
Middle mouse button pans. |
676 |
|
|
677 |
|
* Thuban/UI/view.py (MapCanvas.__init__): Subscribe also |
678 |
|
OnMiddleDown and OnMiddleUp events. |
679 |
|
(MapCanvas.OnMiddleDown): New. Activate the pan tool and remember the |
680 |
|
previously used tool. |
681 |
|
(MapCanvas.OnMiddleUp): New. Reactivate the remebered tool used before |
682 |
|
pressing the middle mouse button. |
683 |
|
|
684 |
|
2004-12-27 Jan-Oliver Wagner <[email protected]> |
685 |
|
|
686 |
|
* Doc/manual/thuban-manual-de.xml: More translations. |
687 |
|
|
688 |
|
2004-12-23 Jan-Oliver Wagner <[email protected]> |
689 |
|
|
690 |
|
* Thuban/UI/projdialog.py (ProjFrame.load_user_proj): Added a |
691 |
|
\n to stderr after the warnings. Thanks to Russell Nelson. |
692 |
|
|
693 |
|
2004-12-20 Nina Hueffmeyer <[email protected]> |
694 |
|
|
695 |
|
* Extensions/ogr/ogrshapes.py: Fixed some issues from |
696 |
|
Bernhard (coding guidelines etc.). Additionally it is now possible to |
697 |
|
display shapefiles containing feature collections (e.g.polygons |
698 |
|
with holes). Works with gdal 1.2.1 now. |
699 |
|
|
700 |
|
* Extensions/ogr/test/test_OGRShapestore.py: Fixed some issues |
701 |
|
from Bernhard (coding guidelines etc.). If ogr can't be imported, |
702 |
|
tests are skipped now. |
703 |
|
|
704 |
|
* Extensions/ogr/ogrstart.py: Fixed some typings. |
705 |
|
|
706 |
|
2004-12-20 Bernhard Reiter <[email protected]> |
707 |
|
|
708 |
|
* Extensions/svgexport/TODO: updated to add support for |
709 |
|
raster layers and labels for 1.0.1. |
710 |
|
|
711 |
|
* Extensions/svgexport/svgmapwriter.py (draw_raster_layer): |
712 |
|
Issue a warning now. |
713 |
|
|
714 |
|
2004-12-19 Bernhard Reiter <[email protected]> |
715 |
|
|
716 |
|
* Extensions/svgexport/TODO: Added idea to support triggering |
717 |
|
the application down the pipe. |
718 |
|
|
719 |
|
2004-12-19 Bernhard Reiter <[email protected]> |
720 |
|
|
721 |
|
svgexport: Improved code quality, mainly by better naming. |
722 |
|
|
723 |
|
* Extensions/svgexport/svgmapwriter.py: |
724 |
|
DrawPath() renamed to DrawPolygonPath(), |
725 |
|
added documentation, improved comments and variable names. |
726 |
|
|
727 |
|
* Extensions/svgexport/svgmapwriter.py, |
728 |
|
Extensions/svgexport/test/test_svgmapwriter.py: |
729 |
|
All using DrawPolygonPath() now, the default parameter closed=True |
730 |
|
omitted. |
731 |
|
|
732 |
|
* Extensions/svgexport/test/test_svgmapwriter.py: |
733 |
|
renamed test_polygon_opened() to test_polyline() |
734 |
|
renamed test_transparent_polygon() to test_transparent_polyline() |
735 |
|
|
736 |
|
2004-12-18 Jan-Oliver Wagner <[email protected]> |
737 |
|
|
738 |
|
Some fixes of gns2shp extension. |
739 |
|
|
740 |
|
* Extensions/gns2shp/test/__init__.py: New. Make this directory a |
741 |
|
package. |
742 |
|
|
743 |
|
* Extensions/gns2shp/test/test_gns2shp.py: Add some import paths |
744 |
|
dynamically. |
745 |
|
|
746 |
|
* Extensions/gns2shp/test/README: Simplified description how to test. |
747 |
|
|
748 |
|
* Extensions/gns2shp/gns2shp.py (gns2shp): Fixed doc-string, |
749 |
|
fixed some dimensions of fields according to the GNS documentation |
750 |
|
which seems to change undocumented. |
751 |
|
Now killing trailing \n and/or \r from MODIFY_DATE. |
752 |
|
This fixes RT#2453. |
753 |
|
|
754 |
|
2004-12-18 Bernhard Reiter <[email protected]> |
755 |
|
|
756 |
|
svgexport 1.0.0: Treats holes and islands nicely. Documentation added. |
757 |
|
|
758 |
|
* Extensions/svgexport/test/test_svgmapwriter.py: |
759 |
|
Added new tests: test_export_polygon_with_hole() |
760 |
|
and test_polygon_with_hole(). |
761 |
|
|
762 |
|
* Extensions/svgexport/svgmapwriter.py |
763 |
|
(draw_polygon_shape()): Uses DrawPath correctly now. |
764 |
|
|
765 |
|
* Doc/manual/thuban-manual.xml: Added documentation for stable |
766 |
|
extention svgexport. |
767 |
|
* Doc/manual/thuban-manual-de.xml: Copied English section about |
768 |
|
svexport over. |
769 |
|
|
770 |
|
* Extensions/svgexport/__init__.py: Bumped version number to 1.0.0. |
771 |
|
|
772 |
|
* Extensions/svgexport/svgsaver.py,maplegend.py: |
773 |
|
Moved from experimental to stable extension menu. |
774 |
|
|
775 |
|
* Extensions/svgexport/TODO: updated. |
776 |
|
|
777 |
|
|
778 |
|
2004-12-18 Bernhard Reiter <[email protected]> |
779 |
|
|
780 |
|
Added Extensions/svgexport/TODO |
781 |
|
|
782 |
|
2004-12-18 Bernhard Reiter <[email protected]> |
783 |
|
|
784 |
|
Refactored in svgexport: |
785 |
|
DrawPath replaces DrawPolygon; added newline in front of "M" in paths. |
786 |
|
|
787 |
|
* Extensions/svgexport/svgmapwriter.py |
788 |
|
Added verbosity level 3 to print out polygon points. |
789 |
|
(class Point): added __repr__ |
790 |
|
(class Brush, __str__()): Added space after ,. |
791 |
|
(DrawPolygon): Renamed to DrawPath() |
792 |
|
(DrawPath): Takes list of polygons as input now, adds \n before "M"s. |
793 |
|
(DrawLines): Using DrawPath now. |
794 |
|
|
795 |
|
* Extensions/svgexport/test/test_svgmapwriter.py: |
796 |
|
Replaced DrawPolygon() calls with DrawPath() and put the first argument |
797 |
|
inside another list. Adapted test data with a newline before "M". |
798 |
|
|
799 |
|
2004-12-18 Bernhard Reiter <[email protected]> |
800 |
|
|
801 |
|
Refactored svgexport tests: 9 double tests runs eliminated; |
802 |
|
code size reduced by 8 lines. |
803 |
|
|
804 |
|
* Extensions/svgexport/test/test_svgmapwriter.py: |
805 |
|
(class TestWithDC): Renamed to BaseTestWithDC, moved to top. |
806 |
|
(class BaseWithDCtools): New, subclass from BaseTestWithDC. |
807 |
|
(class TestDrawSplines): now subclass from BaseTestWithDCtools, |
808 |
|
this fixed the double running of the nine tests of TestVirtualDC. |
809 |
|
(class TestVirtualDC): Using self.dc and self.file from setUp(). |
810 |
|
|
811 |
|
2004-12-17 Bernhard Herzog <[email protected]> |
812 |
|
|
813 |
|
Two windows specific fixes ported from thuban-1�0-branch: |
814 |
|
|
815 |
|
* Thuban/UI/about.py (unicodeToLocale): Use getdefaultlocale |
816 |
|
instead of getlocale because getlocale doesn't return a usable |
817 |
|
encoding name on a german windows 2000 |
818 |
|
|
819 |
|
* setup.py: windows build: Removed the absolute path names and |
820 |
|
made all prfixes relative to the directory containing setup.py. |
821 |
|
Makes it a little easier to adapt to a different system. |
822 |
|
|
823 |
|
2004-12-16 Bernhard Herzog <[email protected]> |
824 |
|
|
825 |
|
Add support for PostGIS tables with LINESTRING geometries. |
826 |
|
Fixes RT#2299 |
827 |
|
|
828 |
|
* Thuban/Model/postgisdb.py (shapetype_map): Add LINESTRING |
829 |
|
|
830 |
|
* test/postgissupport.py |
831 |
|
(PostgreSQLServer.get_default_static_data_db): Rename the "roads" |
832 |
|
table to "roads-multi" because it now uses MULTILINESTRING |
833 |
|
geometries and introduce a new "roads" table that uses LINESTRING |
834 |
|
(coords_to_multilinestring): Make the doc string more precise |
835 |
|
(coords_to_linestring): New. Create a LINESTRING WKT |
836 |
|
representatin |
837 |
|
(wkt_converter): Add coords_to_linestring |
838 |
|
(upload_shapefile): Rephrase the doc-string a bit. |
839 |
|
|
840 |
|
* test/test_postgis_db.py (TestPostGISShapestoreArc) |
841 |
|
(LineStringTests) |
842 |
|
(TestPostGISShapestoreLineString) |
843 |
|
(TestPostGISShapestoreMultiLineString): Split |
844 |
|
TestPostGISShapestoreArc into a base class LineStringTests and two |
845 |
|
derived classes TestPostGISShapestoreLineString for LINESTRING |
846 |
|
geometries and TestPostGISShapestoreMultiLineString for |
847 |
|
MULTILINESTRING geometries. Most test methods are in the base |
848 |
|
class with the exception of tests that explicitly check the raw |
849 |
|
format. |
850 |
|
|
851 |
|
2004-12-16 Bernhard Herzog <[email protected]> |
852 |
|
|
853 |
|
Make the test suite work with PostGIS 0.8.2 and PostgreSQL 7.4 |
854 |
|
|
855 |
|
* test/postgissupport.py (find_postgis_sql): Different postgis |
856 |
|
versions put the postgis.sql file into slightly different places |
857 |
|
so we have to look in both. The updated doc string describes this |
858 |
|
is more detail. |
859 |
|
|
860 |
|
* test/test_postgis_db.py |
861 |
|
(TestPostGISSpecialCases.test_column_name_quoting): The return |
862 |
|
value of UniqueValues is unsorted, so it has to be sorted for |
863 |
|
comparison. |
864 |
|
|
865 |
|
2004-12-16 Bernhard Herzog <[email protected]> |
866 |
|
|
867 |
|
Fix for RT#2237 |
868 |
|
|
869 |
|
* Thuban/UI/projdialog.py (ProjFrame._show_proj_panel): If the |
870 |
|
panel to be shown is the UnknownProjPanel disable the OK and Try |
871 |
|
buttons. Otherwise enable them. |
872 |
|
(ProjFrame.__GetProjection): The UnknownProjPanel returns None for |
873 |
|
the parameters. In that case __GetProjection also returns None |
874 |
|
now. |
875 |
|
|
876 |
|
2004-12-15 Bernhard Herzog <[email protected]> |
877 |
|
|
878 |
|
* Thuban/UI/classgen.py (GenQuantilesPanel.__init__): Set the |
879 |
|
minimum number of classes to 2. The calculate_quantiles needs at |
880 |
|
least two and raises an exception otherwise. |
881 |
|
Fixes RT#2549 |
882 |
|
|
883 |
|
2004-12-15 Bernhard Herzog <[email protected]> |
884 |
|
|
885 |
|
* test/postgissupport.py (PostgreSQLServer.execute_sql): Extend to |
886 |
|
so that it returns a result for select statements. |
887 |
|
(PostgreSQLServer.server_version): New. Return the version of the |
888 |
|
server software. |
889 |
|
(PostgreSQLServer.require_authentication): The format of |
890 |
|
pg_hba.conf has changed between PostgrSQL 7.2 and 7.3. Check the |
891 |
|
server version and generate the file in the correct format |
892 |
|
|
893 |
|
2004-12-15 Bernhard Herzog <[email protected]> |
894 |
|
|
895 |
|
* test/postgissupport.py (PostgreSQLServer.is_running): Fix typo |
896 |
|
in the doc string and rephrase it a little. |
897 |
|
|
898 |
|
2004-12-15 Frank Koormann <[email protected]> |
899 |
|
|
900 |
|
* test/test_load.py (TestAltPath.checkSession): New, extended checks if |
901 |
|
session has been loaded successfully. The check is called by the relevant |
902 |
|
tests after executing load_session(). |
903 |
|
|
904 |
|
2004-12-13 Bernhard Herzog <[email protected]> |
905 |
|
|
906 |
|
Make sure the region used to determine which shapes are visible |
907 |
|
actually matches the region on the printed page. If this isn't |
908 |
|
done properly some shapes might not be printed. |
909 |
|
Fixes RT #2692 |
910 |
|
|
911 |
|
* Thuban/UI/view.py (MapPrintout.draw_on_dc): The region for the |
912 |
|
renderer has to be at the same position as the mapregion |
913 |
|
|
914 |
|
* Thuban/UI/renderer.py (ExportRenderer.RenderMap): self.region |
915 |
|
has to be moved by (self.shiftx, self.shifty) too. |
916 |
|
|
917 |
|
2004-12-13 Bernhard Herzog <[email protected]> |
918 |
|
|
919 |
|
* libraries/pyprojection/Projection.i: Work around a bug in the |
920 |
|
generated python code which leads to exception in the __del__ |
921 |
|
method when the constructor fails. See the comments in the code |
922 |
|
for more details. |
923 |
|
|
924 |
|
* libraries/pyprojection/Projection.py: Updated from Projection.i |
925 |
|
with SWIG. |
926 |
|
|
927 |
|
2004-12-13 Bernhard Herzog <[email protected]> |
928 |
|
|
929 |
|
* test/test_load.py (TestAltPath.test_01_single_path_error_fix) |
930 |
|
(TestAltPath.test_02_path_error_fix_from_list) |
931 |
|
(TestAltPath.test_05_path_error_fix_from_list_changed) |
932 |
|
(TestAltPath.test_06_path_error_fix_from_list_fails): self.session |
933 |
|
is destroyed in tearDown, so there's no need to do it in a test |
934 |
|
case. |
935 |
|
|
936 |
|
* Thuban/Model/load.py (SessionLoader.open_shapefile): Remove a |
937 |
|
debug print |
938 |
|
|
939 |
|
2004-12-13 Bernhard Herzog <[email protected]> |
940 |
|
|
941 |
|
* Extensions/svgexport/test/test_svgmapwriter.py |
942 |
|
(TestDrawSplines.setUp): Do not use super with the unittest |
943 |
|
classes because in Python 2.2 they're still old-style classes. |
944 |
|
|
945 |
|
2004-12-13 Frank Koormann <[email protected]> |
946 |
|
|
947 |
|
Alternative Path feature: When loading a (moved) session where |
948 |
|
shapefiles cannot be found, ask the user. Use the specified path |
949 |
|
if further shapefiles are missing. However, ask the usr for confirmation |
950 |
|
in such cases. |
951 |
|
|
952 |
|
* test/test_load.py (TestAltPath): New, tests for alternative path feature |
953 |
|
in load_session() |
954 |
|
(Shapefile_CallBack): Helper, implements controllable callback. |
955 |
|
|
956 |
|
* Thuban/UI/application.py (ThubanApplication.OnInit): |
957 |
|
Added "alt_path" to self.path |
958 |
|
(ThubanApplication.OpenSession): Added shapefile_callback as second |
959 |
|
callback similar to db_connection_callback. |
960 |
|
(ThubanApplication.run_alt_path_dialog): New, implementaion of |
961 |
|
shapefile_callback. In addition to raising the dialog the control of |
962 |
|
self.path('alt_path') is implemented here. |
963 |
|
|
964 |
|
* Thuban/Model/load.py (SessionLoader.__init__): Added shapefile_callback. |
965 |
|
(SessionLoader.open_shapefile): Open shapefile, eventually with |
966 |
|
alternative path. This wrapps the "theSession.OpenShapefile(filename)" |
967 |
|
formerly used in start_fileshapesource()/start_layer(). |
968 |
|
(SessionLoader.start_fileshapesource): Call open_shapefile(). |
969 |
|
(SessionLoader.start_layer): Call open_shapefile(). |
970 |
|
(load_session): Added shapefile_callback. |
971 |
|
|
972 |
|
* Thuban/UI/altpathdialog.py: New, implements dialogs for alternative path |
973 |
|
feature (search / check). |
974 |
|
|
975 |
|
* Doc/manual/thuban-manual.xml: Added documentation of new feature. |
976 |
|
|
977 |
|
2004-12-11 Bernhard Reiter <[email protected]> |
978 |
|
|
979 |
|
svgexport 0.9.2: Point size supports for maps. |
980 |
|
|
981 |
|
* Extensions/svgexport/svgmapwriter.py: Added import of SHAPETYPE_POINT |
982 |
|
(def draw_point_shape): new parameter size defaults to 2 as before. |
983 |
|
(draw_shape_layer_incrementally): Moved draw_func log line higher. |
984 |
|
Added draw_func call with size when dealing with a point layer. |
985 |
|
|
986 |
|
* Extensions/svgexport/__init__.py: bumped version to 0.9.2. |
987 |
|
|
988 |
|
2004-12-11 Bernhard Reiter <[email protected]> |
989 |
|
|
990 |
|
Made sure that newlines are inserted in the svg path d attributes |
991 |
|
to raise the chance that the line length will be below 255 characters, |
992 |
|
as recommended by REC SVG 1.1 in section 8.3.1. |
993 |
|
|
994 |
|
* Extensions/svgexport/svgmapwriter.py(DrawPolygon): |
995 |
|
Adding \n before L's and changed whitespace handling. |
996 |
|
|
997 |
|
* Extensions/svgexport/test/test_svgmapwriter.py: |
998 |
|
Adapted tests to new whitespace handling of DrawPolygon. |
999 |
|
|
1000 |
|
2004-12-11 Bernhard Reiter <[email protected]> |
1001 |
|
|
1002 |
|
* Doc/technotes/coding_guidelines.txt: easy typo fixed. |
1003 |
|
|
1004 |
|
* Extensions/svgexport/test/test_svgmapwriter.py: |
1005 |
|
Removed test_drawbezier in favour of new test_drawspline3 and |
1006 |
|
test_drawspline4 within new class TestDrawSplines(TestVirtualDC). |
1007 |
|
All only to test DrawSpline. |
1008 |
|
|
1009 |
|
* Extensions/svgexport/svgmapwriter.py(DrawSpline): |
1010 |
|
New implementation now really using the strange algorithm of |
1011 |
|
xfig 3.1's approximated splines and its conversion to postscript |
1012 |
|
with one twist: SVG can do quadratic beziers, so skipped translation |
1013 |
|
to cubic beziers. |
1014 |
|
(TestWithDC): Typo in comment fixed. |
1015 |
|
|
1016 |
|
2004-12-09 Martin Schulze <[email protected]> |
1017 |
|
|
1018 |
|
* Thuban/Model/classgen.py: Added missing character encoding |
1019 |
|
|
1020 |
|
* Extensions/wms/properties.py (OpenWMSProperties): removed |
1021 |
|
|
1022 |
|
* Extensions/wms/parser.py (WMSCapabilitiesParser.error): Dropped |
1023 |
|
support for get_srs_discrepancies() since there are no |
1024 |
|
discrepancies anymore (was a thinko) |
1025 |
|
|
1026 |
|
* Extensions/wms/layer.py (WMSLayer.GetMapImg): Improved graphic |
1027 |
|
format priority now that more formats are supported globally by |
1028 |
|
the render engine. |
1029 |
|
|
1030 |
|
2004-12-08 Silke Reimer <[email protected]> |
1031 |
|
* Extensions/ogr/ogrshapes.py: Substituted ogr-method CloseRings |
1032 |
|
because it is not available in all versions of ogr |
1033 |
|
|
1034 |
|
2004-12-08 Bernhard Reiter <[email protected]> |
1035 |
|
* Extensions/ogr/__init__.py: Added empty __init__.py to heal |
1036 |
|
global tests until a real one is commited. |
1037 |
|
|
1038 |
|
2004-12-07 Nina H�ffmeyer <[email protected]> |
1039 |
|
|
1040 |
|
* /Extensions/ogr/: Adding a new extension to read shapefiles with |
1041 |
|
ogr. It is planned to add other vector formats. |
1042 |
|
|
1043 |
|
* /test/runtests.py: Adding tests from /Extensions/ogr/test/. |
1044 |
|
|
1045 |
|
2004-12-07 Jan-Oliver Wagner <[email protected]> |
1046 |
|
|
1047 |
|
* /Extensions/svgexport/test/test_svgmapwriter.py: Reverting |
1048 |
|
part of a (non-)fix to renable that the tests are always |
1049 |
|
executed. |
1050 |
|
|
1051 |
|
2004-12-07 Bernhard Reiter <[email protected]> |
1052 |
|
|
1053 |
|
* Extensions/svgexport/test/test_svgmapwriter.py: |
1054 |
|
Added test_drawbezier() to test DrawSpline(). |
1055 |
|
|
1056 |
|
* Extensions/svgexport/svgmapwriter.py(DrawSpline): |
1057 |
|
Really implemented bezier drawing. |
1058 |
|
|
1059 |
|
* Extensions/svgexport/__init__.py: Bumped version of svgexport |
1060 |
|
to 0.9.1 because now the legend examples lines styles |
1061 |
|
will be drawing with beziers. |
1062 |
|
|
1063 |
|
2004-12-05 Martin Schulze <[email protected]> |
1064 |
|
|
1065 |
|
* Thuban/UI/renderer.py (raster_format_map): Added PNG, TIFF and |
1066 |
|
GIF as supported bitmap image formats (helpful for the WMS extension) |
1067 |
|
|
1068 |
|
2004-11-30 Martin Schulze <[email protected]> |
1069 |
|
|
1070 |
|
* Extensions/wms/test/test_ogclib.py (TestOGCLib.test_compareURLs): |
1071 |
|
Improved the test for the internal compare method |
1072 |
|
|
1073 |
|
2004-11-27 Jan-Oliver Wagner <[email protected]> |
1074 |
|
|
1075 |
|
* Thuban/UI/about.py (About.__init__): Added |
1076 |
|
Norbert Solymosi for hungarian translation and Ole Rahn |
1077 |
|
as contrbutor. Moved Bernhard Reiter from Contributor |
1078 |
|
to Developer. |
1079 |
|
|
1080 |
|
2004-11-27 Bernhard Reiter <[email protected]> |
1081 |
|
|
1082 |
|
* Extensions/svgexport/test/test_svgmapwriter.py: |
1083 |
|
Removed Jan from author list as he did not change enough significant |
1084 |
|
lines yet. |
1085 |
|
|
1086 |
|
* Extensions/svgexport/__init__.py: Added Bernhard as author |
1087 |
|
of the Extension. |
1088 |
|
|
1089 |
|
2004-11-27 Jan-Oliver Wagner <[email protected]> |
1090 |
|
|
1091 |
|
* po/hu.po: New. Hungarian translation. Contributed |
1092 |
|
by Norbert Solymosi. |
1093 |
|
|
1094 |
|
2004-11-26 Bernhard Herzog <[email protected]> |
1095 |
|
|
1096 |
|
* Extensions/svgexport/test/test_svgmapwriter.py |
1097 |
|
(Testobjectexport.test_transparent_polygon): Commented out some |
1098 |
|
debug prints |
1099 |
|
|
1100 |
|
2004-11-24 Jan-Oliver Wagner <[email protected]> |
1101 |
|
|
1102 |
|
Fix broken tests for svg extension and added svg legend |
1103 |
|
to Experimental menu. |
1104 |
|
|
1105 |
|
* Extensions/svgexport/test/test_svgmapwriter.py: Fix to have |
1106 |
|
the test run correctly even if the extension is a package. |
1107 |
|
Also removed the "import Thuban" which makes no sense. |
1108 |
|
|
1109 |
|
* Extensions/svgexport/__init__.py: Fix to have the extensions' |
1110 |
|
test module also be executed from the global test routine. |
1111 |
|
This is done by looking for the absense of the DISPLAY variable. |
1112 |
|
|
1113 |
|
* Extensions/svgexport/maplegend.py: Moved the menu entry from Extensions |
1114 |
|
to Experimental menu since this module has yet not reached a stable |
1115 |
|
status (ie. 1.0). |
1116 |
|
|
1117 |
|
2004-11-22 Bernhard Reiter <[email protected]> |
1118 |
|
|
1119 |
|
* Extensions/svgexport/svgmapwriter.py: |
1120 |
|
Added verbose variable and some logging depending on it. |
1121 |
|
(class VirtualDC(XMLWriter)): Minor improvement in the polygon loop, |
1122 |
|
because counting i is not necessary. |
1123 |
|
(class Pen, class Brush): Added simple __str__ methods. |
1124 |
|
(SVGRenderer.draw_polygone_shape): Fix #2698 (transparent polygons are |
1125 |
|
not exported to svg file) Note: holes still unhandled. |
1126 |
|
|
1127 |
|
* Extensions/svgexport/test/test_svgmapwriter.py: |
1128 |
|
Made a baseclass TestWithDC for test needed a DC. |
1129 |
|
Added tests for bug #2698 (transparent polygons are not |
1130 |
|
exported to svg file): |
1131 |
|
Testobjectexport.test_transparent_polygon() |
1132 |
|
|
1133 |
|
* Thuban/Model/base.py (UnsetModified): |
1134 |
|
Fixed some typos in docstring. |
1135 |
|
|
1136 |
|
* Thuban/UI/baserenderer.py (BaseRenderer.draw_polygon_shape()): |
1137 |
|
Added hints on the used algorithm for handling holes. |
1138 |
|
|
1139 |
|
2004-11-20 Jan-Oliver Wagner <[email protected]> |
1140 |
|
|
1141 |
|
Some face lifting for the examples. |
1142 |
|
|
1143 |
|
* Examples/__init__.py: Make this directory a package. |
1144 |
|
|
1145 |
|
* Examples/simple_extensions/__init__.py: Make this directory a package. |
1146 |
|
|
1147 |
|
* Examples/simple_extensions/hello_world.py: Moved entry from Extensions |
1148 |
|
menu to Examples menu. |
1149 |
|
|
1150 |
|
* Examples/simple_extensions/simple_command.py: Some more comments, |
1151 |
|
minor changes. |
1152 |
|
|
1153 |
|
* Examples/simple_extensions/simple_tool.py: Minor changes. |
1154 |
|
|
1155 |
|
2004-11-20 Jan-Oliver Wagner <[email protected]> |
1156 |
|
|
1157 |
|
Changed way of extension registry for wms and added extension |
1158 |
|
registry for umn_mapserver extension. |
1159 |
|
|
1160 |
|
* Extensions/wms/__init__.py: Added registry entry and the importing |
1161 |
|
of the actual wms module. Included a test for the required PyOGCLib. |
1162 |
|
|
1163 |
|
* Extensions/wms/wms.py: Removed registry entry (moved to __init__.py). |
1164 |
|
|
1165 |
|
* Extensions/umn_mapserver/__init__.py: Added registry entry and the |
1166 |
|
importing of the actual umn mapserver management modules. |
1167 |
|
Included a test for the required Python MapScript. |
1168 |
|
|
1169 |
|
2004-11-20 Jan-Oliver Wagner <[email protected]> |
1170 |
|
|
1171 |
|
Changed way of extension registry for importAPR, bboxdump |
1172 |
|
and added extension registry for svgexport.extension registry for |
1173 |
|
svgexport. |
1174 |
|
|
1175 |
|
* Extensions/importAPR/__init__.py: Added registry entry and the importing |
1176 |
|
of the actual importAPR module. |
1177 |
|
|
1178 |
|
* Extensions/importAPR/importAPR.py: Removed registry entry (moved to |
1179 |
|
__init__.py). |
1180 |
|
|
1181 |
|
* Extensions/bboxdump/__init__.py: Added registry entry and the importing |
1182 |
|
����of the actual bboxdump module. |
1183 |
|
|
1184 |
|
* Extensions/bboxdump/bboxdump.py: Removed registry entry (moved to |
1185 |
|
����__init__.py). |
1186 |
|
|
1187 |
|
* Extensions/svgexport/__init__.py: Added registry entry and the importing |
1188 |
|
of the svgsaver module. |
1189 |
|
|
1190 |
|
* Extensions/svgexport/svgsaver.py: Moved the menu entry from Extensions |
1191 |
|
to Experimental menu since this module has yet not reached a stable |
1192 |
|
status (ie. 1.0). |
1193 |
|
|
1194 |
|
2004-11-18 Jan-Oliver Wagner <[email protected]> |
1195 |
|
|
1196 |
|
Now the hit test considers the size of point symbols. |
1197 |
|
|
1198 |
|
* Thuban/UI/viewport.py (ViewPort._hit_point): Added optional parameter |
1199 |
|
'size' defaulting to the previously fixed value 5. |
1200 |
|
Extended doc-string. |
1201 |
|
(Viewport._find_shape_in_layer): Resolved FIXME regarding flexibility |
1202 |
|
for symbols. |
1203 |
|
Now the size of the largest point symbol is determined to find out |
1204 |
|
about whether the point has been hit. |
1205 |
|
This fixes the problem that only clicks inside a fixed distance of |
1206 |
|
5 where found. |
1207 |
|
|
1208 |
2004-11-17 Jan-Oliver Wagner <[email protected]> |
2004-11-17 Jan-Oliver Wagner <[email protected]> |
1209 |
|
|
1210 |
Another open issue regarding sizeable symbols: correct rendering of |
Another open issue fixed regarding sizeable symbols: correct rendering of |
1211 |
selected symbols. |
selected symbols. |
1212 |
|
|
1213 |
* Thuban/UI/renderer.py (ScreenRenderer.draw_selection_incrementally): |
* Thuban/UI/renderer.py (ScreenRenderer.draw_selection_incrementally): |