1 |
|
2005-01-24 Bernhard Herzog <[email protected]> |
2 |
|
|
3 |
|
Rework the status bar updates a bit to make sure the message about |
4 |
|
the projections is produced at the right times. |
5 |
|
|
6 |
|
* Thuban/UI/mainwindow.py (MainWindow.update_status_bar_messages): |
7 |
|
New class variable with messages that may require a status bar |
8 |
|
update. |
9 |
|
(MainWindow.view_position_changed) |
10 |
|
(MainWindow.update_status_bar): Rename from view_position_changed |
11 |
|
to update_status_bar. It's meaning has changed now that it may |
12 |
|
also generate messages about problems with projection settings. |
13 |
|
(MainWindow.__init__): Use the new update_status_bar_messages |
14 |
|
class variable to subscribe update_status_bar |
15 |
|
(MainWindow.set_position_text): Update doc-string. This method |
16 |
|
has to be renamed at some point. See doc-string and comments. |
17 |
|
(MainWindow.OnClose): Unsubscribe update_status_bar from all |
18 |
|
messages in update_status_bar_messages |
19 |
|
|
20 |
|
* Thuban/UI/viewport.py (ViewPort.forwarded_map_messages): New |
21 |
|
class attribute. map messages to be forwarded by the viewport. |
22 |
|
(ViewPort._subscribe_map, ViewPort._unsubscribe_map): (un)subscribe |
23 |
|
the messages in forwarded_map_messages |
24 |
|
|
25 |
|
2005-01-21 Bernhard Herzog <[email protected]> |
26 |
|
|
27 |
|
* test/postgissupport.py (PostGISDatabase.__init__): Tweak |
28 |
|
doc-string |
29 |
|
(find_postgis_sql): Update for postgis-1.0.0-rc1, which uses a |
30 |
|
different name for the initialization SQL file. |
31 |
|
|
32 |
|
2005-01-21 Jonathan Coles <[email protected]> |
33 |
|
|
34 |
|
* Thuban/UI/baserenderer.py (proj_params_to_str): New. Takes |
35 |
|
a projection and returns a formatted string representing the |
36 |
|
parameters to feed to gdalwarp. This function eliminates |
37 |
|
redundancy in draw_raster_layer(). |
38 |
|
(BaseRenderer.render_map_incrementally): Removed the optimization which |
39 |
|
drew the top most raster layer first and then only those vector- |
40 |
|
based layers that are above it. With the support for transparency |
41 |
|
this optimization breaks correct behaviour. |
42 |
|
(BaseRenderer.draw_raster_layer): Reorganize code to support possible |
43 |
|
future enhancements to raster layer bounding box. The old behaviour has |
44 |
|
not changed. Also, change calling parameters to draw_raster_data() |
45 |
|
to specify new RAW data format and mask. |
46 |
|
(BaseRenderer.draw_raster_data): Change signature to include an optional |
47 |
|
parameter for mask information. Change documentation to mention |
48 |
|
support for new parameter and added option for RAW data format. |
49 |
|
The data argument is now a list of [width, height, data]. |
50 |
|
|
51 |
|
* Thuban/UI/renderer.py (MapRenderer.draw_raster_data): Add new optional |
52 |
|
mask parameter. Add new condition for RAW format, which |
53 |
|
significantly reduces rendering time. Add condition for |
54 |
|
mask parameter. |
55 |
|
|
56 |
|
* libraries/thuban/gdalwarp.cpp (GetImageData): New. Creates a |
57 |
|
data array of RGB values from the projected image returned from |
58 |
|
the gdal warping functions. In the case of palette based images, it |
59 |
|
converts the NO_DATA index to the mask color. |
60 |
|
(ProjectRasterFile): Removed all custom memory driver references |
61 |
|
and replaced it with the standard in-memory dataset provided |
62 |
|
by gdal. The return data is no longer a BMP file, but an array |
63 |
|
of RGB values, one set triple per pixel. |
64 |
|
|
65 |
|
* libraries/thuban/bmpdataset.cpp: Removed. Unnecessary. |
66 |
|
* libraries/thuban/cpl_mfile.h: Removed. Unnecessary. |
67 |
|
* libraries/thuban/cpl_mfile.cpp: Removed. Unnecessary. |
68 |
|
|
69 |
|
* setup.py (thuban_build_ext.finalize_options): Removed mention |
70 |
|
of cpl_mfile.cpp and bmpdataset.cpp files in the list of source |
71 |
|
files. These are obsolete with the new version of gdalwarp.cpp |
72 |
|
|
73 |
|
* test/test_baserenderer.py (SimpleRenderer.draw_raster_data): |
74 |
|
Updated signature. |
75 |
|
(TestBaseRenderer.test_raster_no_projection): Changed the test |
76 |
|
data to be data in the uncompressed RAW format returned from |
77 |
|
ProjectRasterFile. |
78 |
|
|
79 |
|
2005-01-21 Jan-Oliver Wagner <[email protected]> |
80 |
|
|
81 |
|
* Thuban/UI/mainwindow.py (MainWindow.view_position_changed): Made |
82 |
|
string available for i18n. |
83 |
|
|
84 |
|
2005-01-20 Russell Nelson <[email protected]> |
85 |
|
|
86 |
|
* Resources/Projections/defaults.proj: Ruin the speling of the |
87 |
|
Lambert-93 projection so it doesn't run into the wx UTF-8 bug. |
88 |
|
It's the wrong thing to do in the long run, but it's necessary for |
89 |
|
those users until that bug is fixed. Otherwise the projection |
90 |
|
dialog segfaults. Better to annoy some Lambert-93 users with a |
91 |
|
spelling mistake than every Fedora Core 3 user of Thuban-CVS. |
92 |
|
|
93 |
|
2005-01-20 Bernhard Reiter <[email protected]> |
94 |
|
|
95 |
|
* Thuban/UI/mainwindow.py (MainWindow.view_position_changed): Added |
96 |
|
docstring and comment that the warning code here is a hack. |
97 |
|
|
98 |
|
2005-01-20 Russell Nelson <[email protected]> |
99 |
|
|
100 |
|
* Thuban/UI/mainwindow.py (MainWindow.view_position_changed): Warn |
101 |
|
user about misprojected layers when their lat/lon bounding |
102 |
|
box exceeds rational lat/lon values. |
103 |
|
|
104 |
|
2005-01-20 Bernhard Reiter <[email protected]> |
105 |
|
|
106 |
|
* Thuban/UI/about.py (unicodeToLocale): Improved: |
107 |
|
Use 'ascii' and then 'replace' for other characters |
108 |
|
when getdefaultlocale returns None. Thanks to Bernhard H. . |
109 |
|
|
110 |
|
2005-01-20 Bernhard Reiter <[email protected]> |
111 |
|
|
112 |
|
* Thuban/UI/classgen.py (GenQuantilesPanel.OnRetrieve): Added a comment |
113 |
|
that OnRangeText might be called twice and using None as argument. |
114 |
|
|
115 |
|
2005-01-20 Bernhard Reiter <[email protected]> |
116 |
|
|
117 |
|
* Thuban/UI/classgen.py (GenQuantilesPanel.OnRetrieve): Add a |
118 |
|
OnRangeText(0) to work around a different in wx Behaviour noticed |
119 |
|
on MacOSX, thanks to Lorenzo Moretti and Daniel Calvelo for the fix. |
120 |
|
|
121 |
|
2005-01-20 Bernhard Reiter <[email protected]> |
122 |
|
|
123 |
|
* Thuban/UI/about.py: take iso-8859-15 when getdefaultlocale returns |
124 |
|
None. (Fixes rt#2910.) |
125 |
|
|
126 |
|
2005-01-18 Frank Koormann <[email protected]> |
127 |
|
|
128 |
|
New Extension: mouseposition |
129 |
|
Tool to collect mouse click positions (map coordinates) in a dialog. |
130 |
|
|
131 |
|
* Extensions/mouseposition/__init__.py: New, extension registration |
132 |
|
|
133 |
|
* Extensions/mouseposition/mouseposition.py: New, implements the |
134 |
|
dialog and adds a tool to Thuban mainwindow. |
135 |
|
|
136 |
|
* Extensions/mouseposition/position.xpm: New, icon for tool. |
137 |
|
|
138 |
|
2005-01-14 Jan-Oliver Wagner <[email protected]> |
139 |
|
|
140 |
|
* Doc/manual/thuban-manual-de.xml: More translations. |
141 |
|
|
142 |
|
2005-01-11 Frank Koormann <[email protected]> |
143 |
|
|
144 |
|
* Thuban/UI/mainwindow.py (MainWindow.DuplicateLayer): |
145 |
|
Fix indention bug. |
146 |
|
|
147 |
|
2005-01-09 Frank Koormann <[email protected]> |
148 |
|
|
149 |
|
* Thuban/UI/mainwindow.py (MainWindow.DuplicateLayer): |
150 |
|
BugFix 2901: Explicitly copy layers ClassificationColumn since it |
151 |
|
is not part of the layers Classification. |
152 |
|
|
153 |
|
2005-01-03 Frank Koormann <[email protected]> |
154 |
|
|
155 |
|
* Thuban/UI/renderer.py (ScreenRendererdraw_selection_incrementally): |
156 |
|
BugFix 2883: Former implementation only worked on classified point |
157 |
|
layers: KeyError was raised, now use the default size if field is None. |
158 |
|
|
159 |
|
2004-12-27 Bernhard Reiter <[email protected]> |
160 |
|
|
161 |
|
svgexport 1.0.0cvs: Fixed label export. |
162 |
|
|
163 |
|
* Extensions/svgexport/test/test_svgmapwriter.py: |
164 |
|
class TestSVGRenderer(): New class; new test test_label_font(). |
165 |
|
|
166 |
|
* Extensions/svgexport/svgmapwriter.py |
167 |
|
(SVGRenderer.label_font()): initialised Font size with self.factor now, |
168 |
|
makes test_label_font happy. |
169 |
|
|
170 |
|
* Extensions/svgexport/TODO: crossed out fixed label export item. |
171 |
|
Added item for options. |
172 |
|
|
173 |
|
* Extensions/svgexport/__init__.py: Bumped version to 1.0.0cvs. |
174 |
|
|
175 |
|
2004-12-27 Russell Nelson <[email protected]> |
176 |
|
|
177 |
|
Middle mouse button pans. |
178 |
|
|
179 |
|
* Thuban/UI/view.py (MapCanvas.__init__): Subscribe also |
180 |
|
OnMiddleDown and OnMiddleUp events. |
181 |
|
(MapCanvas.OnMiddleDown): New. Activate the pan tool and remember the |
182 |
|
previously used tool. |
183 |
|
(MapCanvas.OnMiddleUp): New. Reactivate the remebered tool used before |
184 |
|
pressing the middle mouse button. |
185 |
|
|
186 |
|
2004-12-27 Jan-Oliver Wagner <[email protected]> |
187 |
|
|
188 |
|
* Doc/manual/thuban-manual-de.xml: More translations. |
189 |
|
|
190 |
|
2004-12-23 Jan-Oliver Wagner <[email protected]> |
191 |
|
|
192 |
|
* Thuban/UI/projdialog.py (ProjFrame.load_user_proj): Added a |
193 |
|
\n to stderr after the warnings. Thanks to Russell Nelson. |
194 |
|
|
195 |
|
2004-12-20 Nina Hueffmeyer <[email protected]> |
196 |
|
|
197 |
|
* Extensions/ogr/ogrshapes.py: Fixed some issues from |
198 |
|
Bernhard (coding guidelines etc.). Additionally it is now possible to |
199 |
|
display shapefiles containing feature collections (e.g.polygons |
200 |
|
with holes). Works with gdal 1.2.1 now. |
201 |
|
|
202 |
|
* Extensions/ogr/test/test_OGRShapestore.py: Fixed some issues |
203 |
|
from Bernhard (coding guidelines etc.). If ogr can't be imported, |
204 |
|
tests are skipped now. |
205 |
|
|
206 |
|
* Extensions/ogr/ogrstart.py: Fixed some typings. |
207 |
|
|
208 |
|
2004-12-20 Bernhard Reiter <[email protected]> |
209 |
|
|
210 |
|
* Extensions/svgexport/TODO: updated to add support for |
211 |
|
raster layers and labels for 1.0.1. |
212 |
|
|
213 |
|
* Extensions/svgexport/svgmapwriter.py (draw_raster_layer): |
214 |
|
Issue a warning now. |
215 |
|
|
216 |
|
2004-12-19 Bernhard Reiter <[email protected]> |
217 |
|
|
218 |
|
* Extensions/svgexport/TODO: Added idea to support triggering |
219 |
|
the application down the pipe. |
220 |
|
|
221 |
|
2004-12-19 Bernhard Reiter <[email protected]> |
222 |
|
|
223 |
|
svgexport: Improved code quality, mainly by better naming. |
224 |
|
|
225 |
|
* Extensions/svgexport/svgmapwriter.py: |
226 |
|
DrawPath() renamed to DrawPolygonPath(), |
227 |
|
added documentation, improved comments and variable names. |
228 |
|
|
229 |
|
* Extensions/svgexport/svgmapwriter.py, |
230 |
|
Extensions/svgexport/test/test_svgmapwriter.py: |
231 |
|
All using DrawPolygonPath() now, the default parameter closed=True |
232 |
|
omitted. |
233 |
|
|
234 |
|
* Extensions/svgexport/test/test_svgmapwriter.py: |
235 |
|
renamed test_polygon_opened() to test_polyline() |
236 |
|
renamed test_transparent_polygon() to test_transparent_polyline() |
237 |
|
|
238 |
|
2004-12-18 Jan-Oliver Wagner <[email protected]> |
239 |
|
|
240 |
|
Some fixes of gns2shp extension. |
241 |
|
|
242 |
|
* Extensions/gns2shp/test/__init__.py: New. Make this directory a |
243 |
|
package. |
244 |
|
|
245 |
|
* Extensions/gns2shp/test/test_gns2shp.py: Add some import paths |
246 |
|
dynamically. |
247 |
|
|
248 |
|
* Extensions/gns2shp/test/README: Simplified description how to test. |
249 |
|
|
250 |
|
* Extensions/gns2shp/gns2shp.py (gns2shp): Fixed doc-string, |
251 |
|
fixed some dimensions of fields according to the GNS documentation |
252 |
|
which seems to change undocumented. |
253 |
|
Now killing trailing \n and/or \r from MODIFY_DATE. |
254 |
|
This fixes RT#2453. |
255 |
|
|
256 |
|
2004-12-18 Bernhard Reiter <[email protected]> |
257 |
|
|
258 |
|
svgexport 1.0.0: Treats holes and islands nicely. Documentation added. |
259 |
|
|
260 |
|
* Extensions/svgexport/test/test_svgmapwriter.py: |
261 |
|
Added new tests: test_export_polygon_with_hole() |
262 |
|
and test_polygon_with_hole(). |
263 |
|
|
264 |
|
* Extensions/svgexport/svgmapwriter.py |
265 |
|
(draw_polygon_shape()): Uses DrawPath correctly now. |
266 |
|
|
267 |
|
* Doc/manual/thuban-manual.xml: Added documentation for stable |
268 |
|
extention svgexport. |
269 |
|
* Doc/manual/thuban-manual-de.xml: Copied English section about |
270 |
|
svexport over. |
271 |
|
|
272 |
|
* Extensions/svgexport/__init__.py: Bumped version number to 1.0.0. |
273 |
|
|
274 |
|
* Extensions/svgexport/svgsaver.py,maplegend.py: |
275 |
|
Moved from experimental to stable extension menu. |
276 |
|
|
277 |
|
* Extensions/svgexport/TODO: updated. |
278 |
|
|
279 |
|
|
280 |
|
2004-12-18 Bernhard Reiter <[email protected]> |
281 |
|
|
282 |
|
Added Extensions/svgexport/TODO |
283 |
|
|
284 |
|
2004-12-18 Bernhard Reiter <[email protected]> |
285 |
|
|
286 |
|
Refactored in svgexport: |
287 |
|
DrawPath replaces DrawPolygon; added newline in front of "M" in paths. |
288 |
|
|
289 |
|
* Extensions/svgexport/svgmapwriter.py |
290 |
|
Added verbosity level 3 to print out polygon points. |
291 |
|
(class Point): added __repr__ |
292 |
|
(class Brush, __str__()): Added space after ,. |
293 |
|
(DrawPolygon): Renamed to DrawPath() |
294 |
|
(DrawPath): Takes list of polygons as input now, adds \n before "M"s. |
295 |
|
(DrawLines): Using DrawPath now. |
296 |
|
|
297 |
|
* Extensions/svgexport/test/test_svgmapwriter.py: |
298 |
|
Replaced DrawPolygon() calls with DrawPath() and put the first argument |
299 |
|
inside another list. Adapted test data with a newline before "M". |
300 |
|
|
301 |
|
2004-12-18 Bernhard Reiter <[email protected]> |
302 |
|
|
303 |
|
Refactored svgexport tests: 9 double tests runs eliminated; |
304 |
|
code size reduced by 8 lines. |
305 |
|
|
306 |
|
* Extensions/svgexport/test/test_svgmapwriter.py: |
307 |
|
(class TestWithDC): Renamed to BaseTestWithDC, moved to top. |
308 |
|
(class BaseWithDCtools): New, subclass from BaseTestWithDC. |
309 |
|
(class TestDrawSplines): now subclass from BaseTestWithDCtools, |
310 |
|
this fixed the double running of the nine tests of TestVirtualDC. |
311 |
|
(class TestVirtualDC): Using self.dc and self.file from setUp(). |
312 |
|
|
313 |
|
2004-12-17 Bernhard Herzog <[email protected]> |
314 |
|
|
315 |
|
Two windows specific fixes ported from thuban-1�0-branch: |
316 |
|
|
317 |
|
* Thuban/UI/about.py (unicodeToLocale): Use getdefaultlocale |
318 |
|
instead of getlocale because getlocale doesn't return a usable |
319 |
|
encoding name on a german windows 2000 |
320 |
|
|
321 |
|
* setup.py: windows build: Removed the absolute path names and |
322 |
|
made all prfixes relative to the directory containing setup.py. |
323 |
|
Makes it a little easier to adapt to a different system. |
324 |
|
|
325 |
|
2004-12-16 Bernhard Herzog <[email protected]> |
326 |
|
|
327 |
|
Add support for PostGIS tables with LINESTRING geometries. |
328 |
|
Fixes RT#2299 |
329 |
|
|
330 |
|
* Thuban/Model/postgisdb.py (shapetype_map): Add LINESTRING |
331 |
|
|
332 |
|
* test/postgissupport.py |
333 |
|
(PostgreSQLServer.get_default_static_data_db): Rename the "roads" |
334 |
|
table to "roads-multi" because it now uses MULTILINESTRING |
335 |
|
geometries and introduce a new "roads" table that uses LINESTRING |
336 |
|
(coords_to_multilinestring): Make the doc string more precise |
337 |
|
(coords_to_linestring): New. Create a LINESTRING WKT |
338 |
|
representatin |
339 |
|
(wkt_converter): Add coords_to_linestring |
340 |
|
(upload_shapefile): Rephrase the doc-string a bit. |
341 |
|
|
342 |
|
* test/test_postgis_db.py (TestPostGISShapestoreArc) |
343 |
|
(LineStringTests) |
344 |
|
(TestPostGISShapestoreLineString) |
345 |
|
(TestPostGISShapestoreMultiLineString): Split |
346 |
|
TestPostGISShapestoreArc into a base class LineStringTests and two |
347 |
|
derived classes TestPostGISShapestoreLineString for LINESTRING |
348 |
|
geometries and TestPostGISShapestoreMultiLineString for |
349 |
|
MULTILINESTRING geometries. Most test methods are in the base |
350 |
|
class with the exception of tests that explicitly check the raw |
351 |
|
format. |
352 |
|
|
353 |
|
2004-12-16 Bernhard Herzog <[email protected]> |
354 |
|
|
355 |
|
Make the test suite work with PostGIS 0.8.2 and PostgreSQL 7.4 |
356 |
|
|
357 |
|
* test/postgissupport.py (find_postgis_sql): Different postgis |
358 |
|
versions put the postgis.sql file into slightly different places |
359 |
|
so we have to look in both. The updated doc string describes this |
360 |
|
is more detail. |
361 |
|
|
362 |
|
* test/test_postgis_db.py |
363 |
|
(TestPostGISSpecialCases.test_column_name_quoting): The return |
364 |
|
value of UniqueValues is unsorted, so it has to be sorted for |
365 |
|
comparison. |
366 |
|
|
367 |
|
2004-12-16 Bernhard Herzog <[email protected]> |
368 |
|
|
369 |
|
Fix for RT#2237 |
370 |
|
|
371 |
|
* Thuban/UI/projdialog.py (ProjFrame._show_proj_panel): If the |
372 |
|
panel to be shown is the UnknownProjPanel disable the OK and Try |
373 |
|
buttons. Otherwise enable them. |
374 |
|
(ProjFrame.__GetProjection): The UnknownProjPanel returns None for |
375 |
|
the parameters. In that case __GetProjection also returns None |
376 |
|
now. |
377 |
|
|
378 |
|
2004-12-15 Bernhard Herzog <[email protected]> |
379 |
|
|
380 |
|
* Thuban/UI/classgen.py (GenQuantilesPanel.__init__): Set the |
381 |
|
minimum number of classes to 2. The calculate_quantiles needs at |
382 |
|
least two and raises an exception otherwise. |
383 |
|
Fixes RT#2549 |
384 |
|
|
385 |
|
2004-12-15 Bernhard Herzog <[email protected]> |
386 |
|
|
387 |
|
* test/postgissupport.py (PostgreSQLServer.execute_sql): Extend to |
388 |
|
so that it returns a result for select statements. |
389 |
|
(PostgreSQLServer.server_version): New. Return the version of the |
390 |
|
server software. |
391 |
|
(PostgreSQLServer.require_authentication): The format of |
392 |
|
pg_hba.conf has changed between PostgrSQL 7.2 and 7.3. Check the |
393 |
|
server version and generate the file in the correct format |
394 |
|
|
395 |
|
2004-12-15 Bernhard Herzog <[email protected]> |
396 |
|
|
397 |
|
* test/postgissupport.py (PostgreSQLServer.is_running): Fix typo |
398 |
|
in the doc string and rephrase it a little. |
399 |
|
|
400 |
|
2004-12-15 Frank Koormann <[email protected]> |
401 |
|
|
402 |
|
* test/test_load.py (TestAltPath.checkSession): New, extended checks if |
403 |
|
session has been loaded successfully. The check is called by the relevant |
404 |
|
tests after executing load_session(). |
405 |
|
|
406 |
|
2004-12-13 Bernhard Herzog <[email protected]> |
407 |
|
|
408 |
|
Make sure the region used to determine which shapes are visible |
409 |
|
actually matches the region on the printed page. If this isn't |
410 |
|
done properly some shapes might not be printed. |
411 |
|
Fixes RT #2692 |
412 |
|
|
413 |
|
* Thuban/UI/view.py (MapPrintout.draw_on_dc): The region for the |
414 |
|
renderer has to be at the same position as the mapregion |
415 |
|
|
416 |
|
* Thuban/UI/renderer.py (ExportRenderer.RenderMap): self.region |
417 |
|
has to be moved by (self.shiftx, self.shifty) too. |
418 |
|
|
419 |
|
2004-12-13 Bernhard Herzog <[email protected]> |
420 |
|
|
421 |
|
* libraries/pyprojection/Projection.i: Work around a bug in the |
422 |
|
generated python code which leads to exception in the __del__ |
423 |
|
method when the constructor fails. See the comments in the code |
424 |
|
for more details. |
425 |
|
|
426 |
|
* libraries/pyprojection/Projection.py: Updated from Projection.i |
427 |
|
with SWIG. |
428 |
|
|
429 |
|
2004-12-13 Bernhard Herzog <[email protected]> |
430 |
|
|
431 |
|
* test/test_load.py (TestAltPath.test_01_single_path_error_fix) |
432 |
|
(TestAltPath.test_02_path_error_fix_from_list) |
433 |
|
(TestAltPath.test_05_path_error_fix_from_list_changed) |
434 |
|
(TestAltPath.test_06_path_error_fix_from_list_fails): self.session |
435 |
|
is destroyed in tearDown, so there's no need to do it in a test |
436 |
|
case. |
437 |
|
|
438 |
|
* Thuban/Model/load.py (SessionLoader.open_shapefile): Remove a |
439 |
|
debug print |
440 |
|
|
441 |
|
2004-12-13 Bernhard Herzog <[email protected]> |
442 |
|
|
443 |
|
* Extensions/svgexport/test/test_svgmapwriter.py |
444 |
|
(TestDrawSplines.setUp): Do not use super with the unittest |
445 |
|
classes because in Python 2.2 they're still old-style classes. |
446 |
|
|
447 |
|
2004-12-13 Frank Koormann <[email protected]> |
448 |
|
|
449 |
|
Alternative Path feature: When loading a (moved) session where |
450 |
|
shapefiles cannot be found, ask the user. Use the specified path |
451 |
|
if further shapefiles are missing. However, ask the usr for confirmation |
452 |
|
in such cases. |
453 |
|
|
454 |
|
* test/test_load.py (TestAltPath): New, tests for alternative path feature |
455 |
|
in load_session() |
456 |
|
(Shapefile_CallBack): Helper, implements controllable callback. |
457 |
|
|
458 |
|
* Thuban/UI/application.py (ThubanApplication.OnInit): |
459 |
|
Added "alt_path" to self.path |
460 |
|
(ThubanApplication.OpenSession): Added shapefile_callback as second |
461 |
|
callback similar to db_connection_callback. |
462 |
|
(ThubanApplication.run_alt_path_dialog): New, implementaion of |
463 |
|
shapefile_callback. In addition to raising the dialog the control of |
464 |
|
self.path('alt_path') is implemented here. |
465 |
|
|
466 |
|
* Thuban/Model/load.py (SessionLoader.__init__): Added shapefile_callback. |
467 |
|
(SessionLoader.open_shapefile): Open shapefile, eventually with |
468 |
|
alternative path. This wrapps the "theSession.OpenShapefile(filename)" |
469 |
|
formerly used in start_fileshapesource()/start_layer(). |
470 |
|
(SessionLoader.start_fileshapesource): Call open_shapefile(). |
471 |
|
(SessionLoader.start_layer): Call open_shapefile(). |
472 |
|
(load_session): Added shapefile_callback. |
473 |
|
|
474 |
|
* Thuban/UI/altpathdialog.py: New, implements dialogs for alternative path |
475 |
|
feature (search / check). |
476 |
|
|
477 |
|
* Doc/manual/thuban-manual.xml: Added documentation of new feature. |
478 |
|
|
479 |
|
2004-12-11 Bernhard Reiter <[email protected]> |
480 |
|
|
481 |
|
svgexport 0.9.2: Point size supports for maps. |
482 |
|
|
483 |
|
* Extensions/svgexport/svgmapwriter.py: Added import of SHAPETYPE_POINT |
484 |
|
(def draw_point_shape): new parameter size defaults to 2 as before. |
485 |
|
(draw_shape_layer_incrementally): Moved draw_func log line higher. |
486 |
|
Added draw_func call with size when dealing with a point layer. |
487 |
|
|
488 |
|
* Extensions/svgexport/__init__.py: bumped version to 0.9.2. |
489 |
|
|
490 |
|
2004-12-11 Bernhard Reiter <[email protected]> |
491 |
|
|
492 |
|
Made sure that newlines are inserted in the svg path d attributes |
493 |
|
to raise the chance that the line length will be below 255 characters, |
494 |
|
as recommended by REC SVG 1.1 in section 8.3.1. |
495 |
|
|
496 |
|
* Extensions/svgexport/svgmapwriter.py(DrawPolygon): |
497 |
|
Adding \n before L's and changed whitespace handling. |
498 |
|
|
499 |
|
* Extensions/svgexport/test/test_svgmapwriter.py: |
500 |
|
Adapted tests to new whitespace handling of DrawPolygon. |
501 |
|
|
502 |
|
2004-12-11 Bernhard Reiter <[email protected]> |
503 |
|
|
504 |
|
* Doc/technotes/coding_guidelines.txt: easy typo fixed. |
505 |
|
|
506 |
|
* Extensions/svgexport/test/test_svgmapwriter.py: |
507 |
|
Removed test_drawbezier in favour of new test_drawspline3 and |
508 |
|
test_drawspline4 within new class TestDrawSplines(TestVirtualDC). |
509 |
|
All only to test DrawSpline. |
510 |
|
|
511 |
|
* Extensions/svgexport/svgmapwriter.py(DrawSpline): |
512 |
|
New implementation now really using the strange algorithm of |
513 |
|
xfig 3.1's approximated splines and its conversion to postscript |
514 |
|
with one twist: SVG can do quadratic beziers, so skipped translation |
515 |
|
to cubic beziers. |
516 |
|
(TestWithDC): Typo in comment fixed. |
517 |
|
|
518 |
|
2004-12-09 Martin Schulze <[email protected]> |
519 |
|
|
520 |
|
* Thuban/Model/classgen.py: Added missing character encoding |
521 |
|
|
522 |
|
* Extensions/wms/properties.py (OpenWMSProperties): removed |
523 |
|
|
524 |
|
* Extensions/wms/parser.py (WMSCapabilitiesParser.error): Dropped |
525 |
|
support for get_srs_discrepancies() since there are no |
526 |
|
discrepancies anymore (was a thinko) |
527 |
|
|
528 |
|
* Extensions/wms/layer.py (WMSLayer.GetMapImg): Improved graphic |
529 |
|
format priority now that more formats are supported globally by |
530 |
|
the render engine. |
531 |
|
|
532 |
|
2004-12-08 Silke Reimer <[email protected]> |
533 |
|
* Extensions/ogr/ogrshapes.py: Substituted ogr-method CloseRings |
534 |
|
because it is not available in all versions of ogr |
535 |
|
|
536 |
|
2004-12-08 Bernhard Reiter <[email protected]> |
537 |
|
* Extensions/ogr/__init__.py: Added empty __init__.py to heal |
538 |
|
global tests until a real one is commited. |
539 |
|
|
540 |
|
2004-12-07 Nina H�ffmeyer <[email protected]> |
541 |
|
|
542 |
|
* /Extensions/ogr/: Adding a new extension to read shapefiles with |
543 |
|
ogr. It is planned to add other vector formats. |
544 |
|
|
545 |
|
* /test/runtests.py: Adding tests from /Extensions/ogr/test/. |
546 |
|
|
547 |
|
2004-12-07 Jan-Oliver Wagner <[email protected]> |
548 |
|
|
549 |
|
* /Extensions/svgexport/test/test_svgmapwriter.py: Reverting |
550 |
|
part of a (non-)fix to renable that the tests are always |
551 |
|
executed. |
552 |
|
|
553 |
|
2004-12-07 Bernhard Reiter <[email protected]> |
554 |
|
|
555 |
|
* Extensions/svgexport/test/test_svgmapwriter.py: |
556 |
|
Added test_drawbezier() to test DrawSpline(). |
557 |
|
|
558 |
|
* Extensions/svgexport/svgmapwriter.py(DrawSpline): |
559 |
|
Really implemented bezier drawing. |
560 |
|
|
561 |
|
* Extensions/svgexport/__init__.py: Bumped version of svgexport |
562 |
|
to 0.9.1 because now the legend examples lines styles |
563 |
|
will be drawing with beziers. |
564 |
|
|
565 |
|
2004-12-05 Martin Schulze <[email protected]> |
566 |
|
|
567 |
|
* Thuban/UI/renderer.py (raster_format_map): Added PNG, TIFF and |
568 |
|
GIF as supported bitmap image formats (helpful for the WMS extension) |
569 |
|
|
570 |
|
2004-11-30 Martin Schulze <[email protected]> |
571 |
|
|
572 |
|
* Extensions/wms/test/test_ogclib.py (TestOGCLib.test_compareURLs): |
573 |
|
Improved the test for the internal compare method |
574 |
|
|
575 |
|
2004-11-27 Jan-Oliver Wagner <[email protected]> |
576 |
|
|
577 |
|
* Thuban/UI/about.py (About.__init__): Added |
578 |
|
Norbert Solymosi for hungarian translation and Ole Rahn |
579 |
|
as contrbutor. Moved Bernhard Reiter from Contributor |
580 |
|
to Developer. |
581 |
|
|
582 |
|
2004-11-27 Bernhard Reiter <[email protected]> |
583 |
|
|
584 |
|
* Extensions/svgexport/test/test_svgmapwriter.py: |
585 |
|
Removed Jan from author list as he did not change enough significant |
586 |
|
lines yet. |
587 |
|
|
588 |
|
* Extensions/svgexport/__init__.py: Added Bernhard as author |
589 |
|
of the Extension. |
590 |
|
|
591 |
|
2004-11-27 Jan-Oliver Wagner <[email protected]> |
592 |
|
|
593 |
|
* po/hu.po: New. Hungarian translation. Contributed |
594 |
|
by Norbert Solymosi. |
595 |
|
|
596 |
|
2004-11-26 Bernhard Herzog <[email protected]> |
597 |
|
|
598 |
|
* Extensions/svgexport/test/test_svgmapwriter.py |
599 |
|
(Testobjectexport.test_transparent_polygon): Commented out some |
600 |
|
debug prints |
601 |
|
|
602 |
|
2004-11-24 Jan-Oliver Wagner <[email protected]> |
603 |
|
|
604 |
|
Fix broken tests for svg extension and added svg legend |
605 |
|
to Experimental menu. |
606 |
|
|
607 |
|
* Extensions/svgexport/test/test_svgmapwriter.py: Fix to have |
608 |
|
the test run correctly even if the extension is a package. |
609 |
|
Also removed the "import Thuban" which makes no sense. |
610 |
|
|
611 |
|
* Extensions/svgexport/__init__.py: Fix to have the extensions' |
612 |
|
test module also be executed from the global test routine. |
613 |
|
This is done by looking for the absense of the DISPLAY variable. |
614 |
|
|
615 |
|
* Extensions/svgexport/maplegend.py: Moved the menu entry from Extensions |
616 |
|
to Experimental menu since this module has yet not reached a stable |
617 |
|
status (ie. 1.0). |
618 |
|
|
619 |
|
2004-11-22 Bernhard Reiter <[email protected]> |
620 |
|
|
621 |
|
* Extensions/svgexport/svgmapwriter.py: |
622 |
|
Added verbose variable and some logging depending on it. |
623 |
|
(class VirtualDC(XMLWriter)): Minor improvement in the polygon loop, |
624 |
|
because counting i is not necessary. |
625 |
|
(class Pen, class Brush): Added simple __str__ methods. |
626 |
|
(SVGRenderer.draw_polygone_shape): Fix #2698 (transparent polygons are |
627 |
|
not exported to svg file) Note: holes still unhandled. |
628 |
|
|
629 |
|
* Extensions/svgexport/test/test_svgmapwriter.py: |
630 |
|
Made a baseclass TestWithDC for test needed a DC. |
631 |
|
Added tests for bug #2698 (transparent polygons are not |
632 |
|
exported to svg file): |
633 |
|
Testobjectexport.test_transparent_polygon() |
634 |
|
|
635 |
|
* Thuban/Model/base.py (UnsetModified): |
636 |
|
Fixed some typos in docstring. |
637 |
|
|
638 |
|
* Thuban/UI/baserenderer.py (BaseRenderer.draw_polygon_shape()): |
639 |
|
Added hints on the used algorithm for handling holes. |
640 |
|
|
641 |
|
2004-11-20 Jan-Oliver Wagner <[email protected]> |
642 |
|
|
643 |
|
Some face lifting for the examples. |
644 |
|
|
645 |
|
* Examples/__init__.py: Make this directory a package. |
646 |
|
|
647 |
|
* Examples/simple_extensions/__init__.py: Make this directory a package. |
648 |
|
|
649 |
|
* Examples/simple_extensions/hello_world.py: Moved entry from Extensions |
650 |
|
menu to Examples menu. |
651 |
|
|
652 |
|
* Examples/simple_extensions/simple_command.py: Some more comments, |
653 |
|
minor changes. |
654 |
|
|
655 |
|
* Examples/simple_extensions/simple_tool.py: Minor changes. |
656 |
|
|
657 |
|
2004-11-20 Jan-Oliver Wagner <[email protected]> |
658 |
|
|
659 |
|
Changed way of extension registry for wms and added extension |
660 |
|
registry for umn_mapserver extension. |
661 |
|
|
662 |
|
* Extensions/wms/__init__.py: Added registry entry and the importing |
663 |
|
of the actual wms module. Included a test for the required PyOGCLib. |
664 |
|
|
665 |
|
* Extensions/wms/wms.py: Removed registry entry (moved to __init__.py). |
666 |
|
|
667 |
|
* Extensions/umn_mapserver/__init__.py: Added registry entry and the |
668 |
|
importing of the actual umn mapserver management modules. |
669 |
|
Included a test for the required Python MapScript. |
670 |
|
|
671 |
|
2004-11-20 Jan-Oliver Wagner <[email protected]> |
672 |
|
|
673 |
|
Changed way of extension registry for importAPR, bboxdump |
674 |
|
and added extension registry for svgexport.extension registry for |
675 |
|
svgexport. |
676 |
|
|
677 |
|
* Extensions/importAPR/__init__.py: Added registry entry and the importing |
678 |
|
of the actual importAPR module. |
679 |
|
|
680 |
|
* Extensions/importAPR/importAPR.py: Removed registry entry (moved to |
681 |
|
__init__.py). |
682 |
|
|
683 |
|
* Extensions/bboxdump/__init__.py: Added registry entry and the importing |
684 |
|
����of the actual bboxdump module. |
685 |
|
|
686 |
|
* Extensions/bboxdump/bboxdump.py: Removed registry entry (moved to |
687 |
|
����__init__.py). |
688 |
|
|
689 |
|
* Extensions/svgexport/__init__.py: Added registry entry and the importing |
690 |
|
of the svgsaver module. |
691 |
|
|
692 |
|
* Extensions/svgexport/svgsaver.py: Moved the menu entry from Extensions |
693 |
|
to Experimental menu since this module has yet not reached a stable |
694 |
|
status (ie. 1.0). |
695 |
|
|
696 |
|
2004-11-18 Jan-Oliver Wagner <[email protected]> |
697 |
|
|
698 |
|
Now the hit test considers the size of point symbols. |
699 |
|
|
700 |
|
* Thuban/UI/viewport.py (ViewPort._hit_point): Added optional parameter |
701 |
|
'size' defaulting to the previously fixed value 5. |
702 |
|
Extended doc-string. |
703 |
|
(Viewport._find_shape_in_layer): Resolved FIXME regarding flexibility |
704 |
|
for symbols. |
705 |
|
Now the size of the largest point symbol is determined to find out |
706 |
|
about whether the point has been hit. |
707 |
|
This fixes the problem that only clicks inside a fixed distance of |
708 |
|
5 where found. |
709 |
|
|
710 |
|
2004-11-17 Jan-Oliver Wagner <[email protected]> |
711 |
|
|
712 |
|
Another open issue fixed regarding sizeable symbols: correct rendering of |
713 |
|
selected symbols. |
714 |
|
|
715 |
|
* Thuban/UI/renderer.py (ScreenRenderer.draw_selection_incrementally): |
716 |
|
Added consideration of the specific size of point symbols. |
717 |
|
The property for each point symbol is retrieved and the size applied |
718 |
|
for the rendering method. |
719 |
|
Added doc-string. |
720 |
|
|
721 |
|
2004-11-16 Jan-Oliver Wagner <[email protected]> |
722 |
|
|
723 |
|
Changed way of Extension Registry for gns2shp and profiling. |
724 |
|
|
725 |
|
* Extensions/gns2shp/gns2shp.py: Removed registry entry (moved to |
726 |
|
__init__.py). |
727 |
|
|
728 |
|
* Extensions/gns2shp/__init__.py: Added registry entry and the importing |
729 |
|
of the actual gns2shp module. |
730 |
|
|
731 |
|
* Extensions/profiling/profiling.py: Removed registry entry (moved to |
732 |
|
__init__.py). |
733 |
|
|
734 |
|
* Extensions/profiling/__init__.py: Added registry entry and the importing |
735 |
|
of the actual profiling module. |
736 |
|
|
737 |
2004-10-28 Bernhard Reiter <[email protected]> |
2004-10-28 Bernhard Reiter <[email protected]> |
738 |
|
|
739 |
* Extensions/svgexport/: Minor improvements to doc strings. |
* Extensions/svgexport/: Minor improvements to doc strings. |