/[thuban]/branches/WIP-pyshapelib-bramz/ChangeLog
ViewVC logotype

Annotation of /branches/WIP-pyshapelib-bramz/ChangeLog

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2543 - (hide annotations)
Fri Jan 21 16:58:31 2005 UTC (20 years, 1 month ago) by bh
Original Path: trunk/thuban/ChangeLog
File size: 432470 byte(s)
(PostGISDatabase.__init__): Tweak
doc-string
(find_postgis_sql): Update for postgis-1.0.0-rc1, which uses a
different name for the initialization SQL file.

1 bh 2543 2005-01-21 Bernhard Herzog <[email protected]>
2    
3     * test/postgissupport.py (PostGISDatabase.__init__): Tweak
4     doc-string
5     (find_postgis_sql): Update for postgis-1.0.0-rc1, which uses a
6     different name for the initialization SQL file.
7    
8 jonathan 2537 2005-01-21 Jonathan Coles <[email protected]>
9 jan 2542
10     * Thuban/UI/baserenderer.py (proj_params_to_str): New. Takes
11     a projection and returns a formatted string representing the
12     parameters to feed to gdalwarp. This function eliminates
13     redundancy in draw_raster_layer().
14     (BaseRenderer.render_map_incrementally): Removed the optimization which
15     drew the top most raster layer first and then only those vector-
16     based layers that are above it. With the support for transparency
17     this optimization breaks correct behaviour.
18     (BaseRenderer.draw_raster_layer): Reorganize code to support possible
19     future enhancements to raster layer bounding box. The old behaviour has
20     not changed. Also, change calling parameters to draw_raster_data()
21     to specify new RAW data format and mask.
22     (BaseRenderer.draw_raster_data): Change signature to include an optional
23     parameter for mask information. Change documentation to mention
24     support for new parameter and added option for RAW data format.
25     The data argument is now a list of [width, height, data].
26    
27     * Thuban/UI/renderer.py (MapRenderer.draw_raster_data): Add new optional
28     mask parameter. Add new condition for RAW format, which
29     significantly reduces rendering time. Add condition for
30     mask parameter.
31    
32     * libraries/thuban/gdalwarp.cpp (GetImageData): New. Creates a
33 jonathan 2537 data array of RGB values from the projected image returned from
34     the gdal warping functions. In the case of palette based images, it
35 jan 2542 converts the NO_DATA index to the mask color.
36     (ProjectRasterFile): Removed all custom memory driver references
37     and replaced it with the standard in-memory dataset provided
38     by gdal. The return data is no longer a BMP file, but an array
39     of RGB values, one set triple per pixel.
40 jonathan 2537
41     * libraries/thuban/bmpdataset.cpp: Removed. Unnecessary.
42     * libraries/thuban/cpl_mfile.h: Removed. Unnecessary.
43     * libraries/thuban/cpl_mfile.cpp: Removed. Unnecessary.
44    
45 jan 2542 * setup.py (thuban_build_ext.finalize_options): Removed mention
46     of cpl_mfile.cpp and bmpdataset.cpp files in the list of source
47     files. These are obsolete with the new version of gdalwarp.cpp
48    
49     * test/test_baserenderer.py (SimpleRenderer.draw_raster_data):
50     Updated signature.
51     (TestBaseRenderer.test_raster_no_projection): Changed the test
52     data to be data in the uncompressed RAW format returned from
53     ProjectRasterFile.
54    
55 jan 2535 2005-01-21 Jan-Oliver Wagner <[email protected]>
56    
57 jan 2542 * Thuban/UI/mainwindow.py (MainWindow.view_position_changed): Made
58     string available for i18n.
59 jan 2535
60 russell 2532 2005-01-20 Russell Nelson <[email protected]>
61    
62     * Resources/Projections/defaults.proj: Ruin the speling of the
63 russell 2533 Lambert-93 projection so it doesn't run into the wx UTF-8 bug.
64     It's the wrong thing to do in the long run, but it's necessary for
65     those users until that bug is fixed. Otherwise the projection
66     dialog segfaults. Better to annoy some Lambert-93 users with a
67     spelling mistake than every Fedora Core 3 user of Thuban-CVS.
68 russell 2532
69 bernhard 2531 2005-01-20 Bernhard Reiter <[email protected]>
70    
71 jan 2542 * Thuban/UI/mainwindow.py (MainWindow.view_position_changed): Added
72     docstring and comment that the warning code here is a hack.
73 bernhard 2531
74 russell 2529 2005-01-20 Russell Nelson <[email protected]>
75    
76 jan 2542 * Thuban/UI/mainwindow.py (MainWindow.view_position_changed): Warn
77     user about misprojected layers when their lat/lon bounding
78 russell 2529 box exceeds rational lat/lon values.
79    
80 bernhard 2525 2005-01-20 Bernhard Reiter <[email protected]>
81    
82 jan 2542 * Thuban/UI/about.py (unicodeToLocale): Improved:
83 bernhard 2528 Use 'ascii' and then 'replace' for other characters
84     when getdefaultlocale returns None. Thanks to Bernhard H. .
85 jan 2542
86 bernhard 2528 2005-01-20 Bernhard Reiter <[email protected]>
87    
88 jan 2542 * Thuban/UI/classgen.py (GenQuantilesPanel.OnRetrieve): Added a comment
89 bernhard 2527 that OnRangeText might be called twice and using None as argument.
90 jan 2542
91 bernhard 2527 2005-01-20 Bernhard Reiter <[email protected]>
92    
93 jan 2542 * Thuban/UI/classgen.py (GenQuantilesPanel.OnRetrieve): Add a
94     OnRangeText(0) to work around a different in wx Behaviour noticed
95     on MacOSX, thanks to Lorenzo Moretti and Daniel Calvelo for the fix.
96    
97 bernhard 2526 2005-01-20 Bernhard Reiter <[email protected]>
98    
99     * Thuban/UI/about.py: take iso-8859-15 when getdefaultlocale returns
100 bernhard 2525 None. (Fixes rt#2910.)
101    
102 frank 2524 2005-01-18 Frank Koormann <[email protected]>
103    
104     New Extension: mouseposition
105     Tool to collect mouse click positions (map coordinates) in a dialog.
106    
107     * Extensions/mouseposition/__init__.py: New, extension registration
108    
109     * Extensions/mouseposition/mouseposition.py: New, implements the
110     dialog and adds a tool to Thuban mainwindow.
111    
112     * Extensions/mouseposition/position.xpm: New, icon for tool.
113    
114 jan 2522 2005-01-14 Jan-Oliver Wagner <[email protected]>
115    
116     * Doc/manual/thuban-manual-de.xml: More translations.
117    
118 frank 2520 2005-01-11 Frank Koormann <[email protected]>
119    
120     * Thuban/UI/mainwindow.py (MainWindow.DuplicateLayer):
121     Fix indention bug.
122    
123 frank 2517 2005-01-09 Frank Koormann <[email protected]>
124    
125     * Thuban/UI/mainwindow.py (MainWindow.DuplicateLayer):
126 frank 2520 BugFix 2901: Explicitly copy layers ClassificationColumn since it
127 frank 2517 is not part of the layers Classification.
128    
129 frank 2515 2005-01-03 Frank Koormann <[email protected]>
130    
131 frank 2517 * Thuban/UI/renderer.py (ScreenRendererdraw_selection_incrementally):
132     BugFix 2883: Former implementation only worked on classified point
133     layers: KeyError was raised, now use the default size if field is None.
134 frank 2515
135 bernhard 2513 2004-12-27 Bernhard Reiter <[email protected]>
136    
137     svgexport 1.0.0cvs: Fixed label export.
138    
139     * Extensions/svgexport/test/test_svgmapwriter.py:
140     class TestSVGRenderer(): New class; new test test_label_font().
141    
142     * Extensions/svgexport/svgmapwriter.py
143     (SVGRenderer.label_font()): initialised Font size with self.factor now,
144     makes test_label_font happy.
145    
146     * Extensions/svgexport/TODO: crossed out fixed label export item.
147     Added item for options.
148    
149     * Extensions/svgexport/__init__.py: Bumped version to 1.0.0cvs.
150    
151 russell 2511 2004-12-27 Russell Nelson <[email protected]>
152    
153 jan 2512 Middle mouse button pans.
154 russell 2511
155 jan 2512 * Thuban/UI/view.py (MapCanvas.__init__): Subscribe also
156     OnMiddleDown and OnMiddleUp events.
157     (MapCanvas.OnMiddleDown): New. Activate the pan tool and remember the
158     previously used tool.
159     (MapCanvas.OnMiddleUp): New. Reactivate the remebered tool used before
160     pressing the middle mouse button.
161    
162 jan 2509 2004-12-27 Jan-Oliver Wagner <[email protected]>
163    
164     * Doc/manual/thuban-manual-de.xml: More translations.
165    
166 jan 2506 2004-12-23 Jan-Oliver Wagner <[email protected]>
167    
168     * Thuban/UI/projdialog.py (ProjFrame.load_user_proj): Added a
169     \n to stderr after the warnings. Thanks to Russell Nelson.
170    
171 nhueffme 2493 2004-12-20 Nina Hueffmeyer <[email protected]>
172    
173     * Extensions/ogr/ogrshapes.py: Fixed some issues from
174     Bernhard (coding guidelines etc.). Additionally it is now possible to
175     display shapefiles containing feature collections (e.g.polygons
176     with holes). Works with gdal 1.2.1 now.
177    
178     * Extensions/ogr/test/test_OGRShapestore.py: Fixed some issues
179     from Bernhard (coding guidelines etc.). If ogr can't be imported,
180     tests are skipped now.
181    
182     * Extensions/ogr/ogrstart.py: Fixed some typings.
183    
184 bernhard 2490 2004-12-20 Bernhard Reiter <[email protected]>
185    
186     * Extensions/svgexport/TODO: updated to add support for
187     raster layers and labels for 1.0.1.
188    
189     * Extensions/svgexport/svgmapwriter.py (draw_raster_layer):
190     Issue a warning now.
191    
192 bernhard 2488 2004-12-19 Bernhard Reiter <[email protected]>
193    
194 bernhard 2489 * Extensions/svgexport/TODO: Added idea to support triggering
195     the application down the pipe.
196    
197     2004-12-19 Bernhard Reiter <[email protected]>
198    
199 bernhard 2488 svgexport: Improved code quality, mainly by better naming.
200    
201     * Extensions/svgexport/svgmapwriter.py:
202     DrawPath() renamed to DrawPolygonPath(),
203     added documentation, improved comments and variable names.
204    
205     * Extensions/svgexport/svgmapwriter.py,
206     Extensions/svgexport/test/test_svgmapwriter.py:
207     All using DrawPolygonPath() now, the default parameter closed=True
208     omitted.
209    
210     * Extensions/svgexport/test/test_svgmapwriter.py:
211     renamed test_polygon_opened() to test_polyline()
212     renamed test_transparent_polygon() to test_transparent_polyline()
213    
214 jan 2487 2004-12-18 Jan-Oliver Wagner <[email protected]>
215    
216     Some fixes of gns2shp extension.
217    
218     * Extensions/gns2shp/test/__init__.py: New. Make this directory a
219     package.
220    
221     * Extensions/gns2shp/test/test_gns2shp.py: Add some import paths
222     dynamically.
223    
224     * Extensions/gns2shp/test/README: Simplified description how to test.
225    
226     * Extensions/gns2shp/gns2shp.py (gns2shp): Fixed doc-string,
227     fixed some dimensions of fields according to the GNS documentation
228     which seems to change undocumented.
229     Now killing trailing \n and/or \r from MODIFY_DATE.
230     This fixes RT#2453.
231    
232 bernhard 2479 2004-12-18 Bernhard Reiter <[email protected]>
233 bernhard 2480
234 bernhard 2482 svgexport 1.0.0: Treats holes and islands nicely. Documentation added.
235    
236     * Extensions/svgexport/test/test_svgmapwriter.py:
237     Added new tests: test_export_polygon_with_hole()
238     and test_polygon_with_hole().
239    
240     * Extensions/svgexport/svgmapwriter.py
241     (draw_polygon_shape()): Uses DrawPath correctly now.
242    
243     * Doc/manual/thuban-manual.xml: Added documentation for stable
244     extention svgexport.
245     * Doc/manual/thuban-manual-de.xml: Copied English section about
246     svexport over.
247    
248 jan 2509 * Extensions/svgexport/__init__.py: Bumped version number to 1.0.0.
249 bernhard 2482
250     * Extensions/svgexport/svgsaver.py,maplegend.py:
251     Moved from experimental to stable extension menu.
252    
253     * Extensions/svgexport/TODO: updated.
254    
255    
256     2004-12-18 Bernhard Reiter <[email protected]>
257    
258 bernhard 2481 Added Extensions/svgexport/TODO
259    
260     2004-12-18 Bernhard Reiter <[email protected]>
261    
262 bernhard 2480 Refactored in svgexport:
263     DrawPath replaces DrawPolygon; added newline in front of "M" in paths.
264    
265     * Extensions/svgexport/svgmapwriter.py
266     Added verbosity level 3 to print out polygon points.
267     (class Point): added __repr__
268     (class Brush, __str__()): Added space after ,.
269     (DrawPolygon): Renamed to DrawPath()
270     (DrawPath): Takes list of polygons as input now, adds \n before "M"s.
271     (DrawLines): Using DrawPath now.
272    
273     * Extensions/svgexport/test/test_svgmapwriter.py:
274     Replaced DrawPolygon() calls with DrawPath() and put the first argument
275     inside another list. Adapted test data with a newline before "M".
276    
277     2004-12-18 Bernhard Reiter <[email protected]>
278 bernhard 2479
279     Refactored svgexport tests: 9 double tests runs eliminated;
280     code size reduced by 8 lines.
281    
282     * Extensions/svgexport/test/test_svgmapwriter.py:
283     (class TestWithDC): Renamed to BaseTestWithDC, moved to top.
284     (class BaseWithDCtools): New, subclass from BaseTestWithDC.
285     (class TestDrawSplines): now subclass from BaseTestWithDCtools,
286     this fixed the double running of the nine tests of TestVirtualDC.
287     (class TestVirtualDC): Using self.dc and self.file from setUp().
288    
289 bh 2478 2004-12-17 Bernhard Herzog <[email protected]>
290    
291     Two windows specific fixes ported from thuban-1­0-branch:
292    
293     * Thuban/UI/about.py (unicodeToLocale): Use getdefaultlocale
294     instead of getlocale because getlocale doesn't return a usable
295     encoding name on a german windows 2000
296    
297     * setup.py: windows build: Removed the absolute path names and
298     made all prfixes relative to the directory containing setup.py.
299     Makes it a little easier to adapt to a different system.
300    
301 bh 2470 2004-12-16 Bernhard Herzog <[email protected]>
302    
303 bernhard 2479 Add support for PostGIS tables with LINESTRING geometries.
304 bh 2472 Fixes RT#2299
305    
306     * Thuban/Model/postgisdb.py (shapetype_map): Add LINESTRING
307    
308     * test/postgissupport.py
309     (PostgreSQLServer.get_default_static_data_db): Rename the "roads"
310     table to "roads-multi" because it now uses MULTILINESTRING
311     geometries and introduce a new "roads" table that uses LINESTRING
312     (coords_to_multilinestring): Make the doc string more precise
313     (coords_to_linestring): New. Create a LINESTRING WKT
314     representatin
315     (wkt_converter): Add coords_to_linestring
316     (upload_shapefile): Rephrase the doc-string a bit.
317    
318     * test/test_postgis_db.py (TestPostGISShapestoreArc)
319     (LineStringTests)
320     (TestPostGISShapestoreLineString)
321     (TestPostGISShapestoreMultiLineString): Split
322     TestPostGISShapestoreArc into a base class LineStringTests and two
323     derived classes TestPostGISShapestoreLineString for LINESTRING
324     geometries and TestPostGISShapestoreMultiLineString for
325     MULTILINESTRING geometries. Most test methods are in the base
326     class with the exception of tests that explicitly check the raw
327     format.
328    
329     2004-12-16 Bernhard Herzog <[email protected]>
330    
331 bh 2471 Make the test suite work with PostGIS 0.8.2 and PostgreSQL 7.4
332    
333     * test/postgissupport.py (find_postgis_sql): Different postgis
334     versions put the postgis.sql file into slightly different places
335     so we have to look in both. The updated doc string describes this
336     is more detail.
337    
338     * test/test_postgis_db.py
339     (TestPostGISSpecialCases.test_column_name_quoting): The return
340     value of UniqueValues is unsorted, so it has to be sorted for
341     comparison.
342    
343     2004-12-16 Bernhard Herzog <[email protected]>
344    
345 bh 2470 Fix for RT#2237
346    
347     * Thuban/UI/projdialog.py (ProjFrame._show_proj_panel): If the
348     panel to be shown is the UnknownProjPanel disable the OK and Try
349     buttons. Otherwise enable them.
350     (ProjFrame.__GetProjection): The UnknownProjPanel returns None for
351     the parameters. In that case __GetProjection also returns None
352     now.
353    
354 bh 2459 2004-12-15 Bernhard Herzog <[email protected]>
355    
356 bh 2462 * Thuban/UI/classgen.py (GenQuantilesPanel.__init__): Set the
357     minimum number of classes to 2. The calculate_quantiles needs at
358     least two and raises an exception otherwise.
359     Fixes RT#2549
360    
361     2004-12-15 Bernhard Herzog <[email protected]>
362    
363 bh 2460 * test/postgissupport.py (PostgreSQLServer.execute_sql): Extend to
364     so that it returns a result for select statements.
365     (PostgreSQLServer.server_version): New. Return the version of the
366     server software.
367     (PostgreSQLServer.require_authentication): The format of
368     pg_hba.conf has changed between PostgrSQL 7.2 and 7.3. Check the
369     server version and generate the file in the correct format
370    
371     2004-12-15 Bernhard Herzog <[email protected]>
372    
373 bh 2459 * test/postgissupport.py (PostgreSQLServer.is_running): Fix typo
374     in the doc string and rephrase it a little.
375    
376 frank 2457 2004-12-15 Frank Koormann <[email protected]>
377    
378     * test/test_load.py (TestAltPath.checkSession): New, extended checks if
379     session has been loaded successfully. The check is called by the relevant
380     tests after executing load_session().
381    
382 bh 2450 2004-12-13 Bernhard Herzog <[email protected]>
383    
384 bh 2454 Make sure the region used to determine which shapes are visible
385     actually matches the region on the printed page. If this isn't
386     done properly some shapes might not be printed.
387     Fixes RT #2692
388    
389     * Thuban/UI/view.py (MapPrintout.draw_on_dc): The region for the
390     renderer has to be at the same position as the mapregion
391    
392     * Thuban/UI/renderer.py (ExportRenderer.RenderMap): self.region
393     has to be moved by (self.shiftx, self.shifty) too.
394    
395     2004-12-13 Bernhard Herzog <[email protected]>
396    
397 bh 2452 * libraries/pyprojection/Projection.i: Work around a bug in the
398     generated python code which leads to exception in the __del__
399     method when the constructor fails. See the comments in the code
400     for more details.
401    
402     * libraries/pyprojection/Projection.py: Updated from Projection.i
403     with SWIG.
404    
405     2004-12-13 Bernhard Herzog <[email protected]>
406    
407 bh 2451 * test/test_load.py (TestAltPath.test_01_single_path_error_fix)
408     (TestAltPath.test_02_path_error_fix_from_list)
409     (TestAltPath.test_05_path_error_fix_from_list_changed)
410     (TestAltPath.test_06_path_error_fix_from_list_fails): self.session
411     is destroyed in tearDown, so there's no need to do it in a test
412     case.
413    
414     * Thuban/Model/load.py (SessionLoader.open_shapefile): Remove a
415     debug print
416    
417     2004-12-13 Bernhard Herzog <[email protected]>
418    
419 bh 2450 * Extensions/svgexport/test/test_svgmapwriter.py
420     (TestDrawSplines.setUp): Do not use super with the unittest
421     classes because in Python 2.2 they're still old-style classes.
422    
423 frank 2448 2004-12-13 Frank Koormann <[email protected]>
424    
425     Alternative Path feature: When loading a (moved) session where
426     shapefiles cannot be found, ask the user. Use the specified path
427     if further shapefiles are missing. However, ask the usr for confirmation
428     in such cases.
429    
430     * test/test_load.py (TestAltPath): New, tests for alternative path feature
431     in load_session()
432     (Shapefile_CallBack): Helper, implements controllable callback.
433    
434     * Thuban/UI/application.py (ThubanApplication.OnInit):
435     Added "alt_path" to self.path
436     (ThubanApplication.OpenSession): Added shapefile_callback as second
437     callback similar to db_connection_callback.
438     (ThubanApplication.run_alt_path_dialog): New, implementaion of
439     shapefile_callback. In addition to raising the dialog the control of
440     self.path('alt_path') is implemented here.
441    
442     * Thuban/Model/load.py (SessionLoader.__init__): Added shapefile_callback.
443     (SessionLoader.open_shapefile): Open shapefile, eventually with
444     alternative path. This wrapps the "theSession.OpenShapefile(filename)"
445     formerly used in start_fileshapesource()/start_layer().
446     (SessionLoader.start_fileshapesource): Call open_shapefile().
447     (SessionLoader.start_layer): Call open_shapefile().
448     (load_session): Added shapefile_callback.
449    
450     * Thuban/UI/altpathdialog.py: New, implements dialogs for alternative path
451     feature (search / check).
452    
453     * Doc/manual/thuban-manual.xml: Added documentation of new feature.
454    
455 bernhard 2443 2004-12-11 Bernhard Reiter <[email protected]>
456    
457 bernhard 2445 svgexport 0.9.2: Point size supports for maps.
458    
459     * Extensions/svgexport/svgmapwriter.py: Added import of SHAPETYPE_POINT
460     (def draw_point_shape): new parameter size defaults to 2 as before.
461     (draw_shape_layer_incrementally): Moved draw_func log line higher.
462     Added draw_func call with size when dealing with a point layer.
463    
464     * Extensions/svgexport/__init__.py: bumped version to 0.9.2.
465    
466     2004-12-11 Bernhard Reiter <[email protected]>
467    
468 bernhard 2444 Made sure that newlines are inserted in the svg path d attributes
469     to raise the chance that the line length will be below 255 characters,
470     as recommended by REC SVG 1.1 in section 8.3.1.
471    
472     * Extensions/svgexport/svgmapwriter.py(DrawPolygon):
473     Adding \n before L's and changed whitespace handling.
474    
475     * Extensions/svgexport/test/test_svgmapwriter.py:
476     Adapted tests to new whitespace handling of DrawPolygon.
477    
478     2004-12-11 Bernhard Reiter <[email protected]>
479    
480 bernhard 2443 * Doc/technotes/coding_guidelines.txt: easy typo fixed.
481    
482     * Extensions/svgexport/test/test_svgmapwriter.py:
483     Removed test_drawbezier in favour of new test_drawspline3 and
484     test_drawspline4 within new class TestDrawSplines(TestVirtualDC).
485     All only to test DrawSpline.
486    
487     * Extensions/svgexport/svgmapwriter.py(DrawSpline):
488     New implementation now really using the strange algorithm of
489     xfig 3.1's approximated splines and its conversion to postscript
490     with one twist: SVG can do quadratic beziers, so skipped translation
491     to cubic beziers.
492     (TestWithDC): Typo in comment fixed.
493    
494 joey 2442 2004-12-09 Martin Schulze <[email protected]>
495    
496     * Thuban/Model/classgen.py: Added missing character encoding
497    
498     * Extensions/wms/properties.py (OpenWMSProperties): removed
499    
500     * Extensions/wms/parser.py (WMSCapabilitiesParser.error): Dropped
501     support for get_srs_discrepancies() since there are no
502     discrepancies anymore (was a thinko)
503    
504     * Extensions/wms/layer.py (WMSLayer.GetMapImg): Improved graphic
505     format priority now that more formats are supported globally by
506     the render engine.
507    
508 silke 2437 2004-12-08 Silke Reimer <[email protected]>
509     * Extensions/ogr/ogrshapes.py: Substituted ogr-method CloseRings
510     because it is not available in all versions of ogr
511    
512 bernhard 2436 2004-12-08 Bernhard Reiter <[email protected]>
513     * Extensions/ogr/__init__.py: Added empty __init__.py to heal
514     global tests until a real one is commited.
515    
516 nhueffme 2435 2004-12-07 Nina Hüffmeyer <[email protected]>
517    
518     * /Extensions/ogr/: Adding a new extension to read shapefiles with
519     ogr. It is planned to add other vector formats.
520    
521     * /test/runtests.py: Adding tests from /Extensions/ogr/test/.
522    
523 jan 2434 2004-12-07 Jan-Oliver Wagner <[email protected]>
524    
525     * /Extensions/svgexport/test/test_svgmapwriter.py: Reverting
526     part of a (non-)fix to renable that the tests are always
527     executed.
528    
529 bernhard 2432 2004-12-07 Bernhard Reiter <[email protected]>
530    
531     * Extensions/svgexport/test/test_svgmapwriter.py:
532     Added test_drawbezier() to test DrawSpline().
533    
534     * Extensions/svgexport/svgmapwriter.py(DrawSpline):
535     Really implemented bezier drawing.
536    
537     * Extensions/svgexport/__init__.py: Bumped version of svgexport
538     to 0.9.1 because now the legend examples lines styles
539     will be drawing with beziers.
540    
541 joey 2431 2004-12-05 Martin Schulze <[email protected]>
542    
543     * Thuban/UI/renderer.py (raster_format_map): Added PNG, TIFF and
544     GIF as supported bitmap image formats (helpful for the WMS extension)
545    
546 joey 2430 2004-11-30 Martin Schulze <[email protected]>
547    
548     * Extensions/wms/test/test_ogclib.py (TestOGCLib.test_compareURLs):
549     Improved the test for the internal compare method
550    
551 jan 2429 2004-11-27 Jan-Oliver Wagner <[email protected]>
552    
553     * Thuban/UI/about.py (About.__init__): Added
554     Norbert Solymosi for hungarian translation and Ole Rahn
555     as contrbutor. Moved Bernhard Reiter from Contributor
556     to Developer.
557    
558 bernhard 2425 2004-11-27 Bernhard Reiter <[email protected]>
559    
560     * Extensions/svgexport/test/test_svgmapwriter.py:
561     Removed Jan from author list as he did not change enough significant
562     lines yet.
563    
564     * Extensions/svgexport/__init__.py: Added Bernhard as author
565     of the Extension.
566    
567 jan 2422 2004-11-27 Jan-Oliver Wagner <[email protected]>
568    
569     * po/hu.po: New. Hungarian translation. Contributed
570     by Norbert Solymosi.
571    
572 bh 2419 2004-11-26 Bernhard Herzog <[email protected]>
573    
574     * Extensions/svgexport/test/test_svgmapwriter.py
575     (Testobjectexport.test_transparent_polygon): Commented out some
576     debug prints
577    
578 jan 2418 2004-11-24 Jan-Oliver Wagner <[email protected]>
579    
580     Fix broken tests for svg extension and added svg legend
581     to Experimental menu.
582    
583     * Extensions/svgexport/test/test_svgmapwriter.py: Fix to have
584     the test run correctly even if the extension is a package.
585     Also removed the "import Thuban" which makes no sense.
586    
587     * Extensions/svgexport/__init__.py: Fix to have the extensions'
588     test module also be executed from the global test routine.
589     This is done by looking for the absense of the DISPLAY variable.
590    
591     * Extensions/svgexport/maplegend.py: Moved the menu entry from Extensions
592     to Experimental menu since this module has yet not reached a stable
593     status (ie. 1.0).
594    
595 bernhard 2414 2004-11-22 Bernhard Reiter <[email protected]>
596    
597     * Extensions/svgexport/svgmapwriter.py:
598     Added verbose variable and some logging depending on it.
599     (class VirtualDC(XMLWriter)): Minor improvement in the polygon loop,
600     because counting i is not necessary.
601     (class Pen, class Brush): Added simple __str__ methods.
602     (SVGRenderer.draw_polygone_shape): Fix #2698 (transparent polygons are
603     not exported to svg file) Note: holes still unhandled.
604    
605     * Extensions/svgexport/test/test_svgmapwriter.py:
606     Made a baseclass TestWithDC for test needed a DC.
607     Added tests for bug #2698 (transparent polygons are not
608     exported to svg file):
609     Testobjectexport.test_transparent_polygon()
610    
611     * Thuban/Model/base.py (UnsetModified):
612     Fixed some typos in docstring.
613    
614     * Thuban/UI/baserenderer.py (BaseRenderer.draw_polygon_shape()):
615     Added hints on the used algorithm for handling holes.
616    
617 jan 2403 2004-11-20 Jan-Oliver Wagner <[email protected]>
618    
619 jan 2412 Some face lifting for the examples.
620    
621     * Examples/__init__.py: Make this directory a package.
622    
623     * Examples/simple_extensions/__init__.py: Make this directory a package.
624    
625     * Examples/simple_extensions/hello_world.py: Moved entry from Extensions
626     menu to Examples menu.
627    
628     * Examples/simple_extensions/simple_command.py: Some more comments,
629     minor changes.
630    
631     * Examples/simple_extensions/simple_tool.py: Minor changes.
632    
633     2004-11-20 Jan-Oliver Wagner <[email protected]>
634    
635 jan 2407 Changed way of extension registry for wms and added extension
636     registry for umn_mapserver extension.
637    
638     * Extensions/wms/__init__.py: Added registry entry and the importing
639     of the actual wms module. Included a test for the required PyOGCLib.
640    
641     * Extensions/wms/wms.py: Removed registry entry (moved to __init__.py).
642    
643     * Extensions/umn_mapserver/__init__.py: Added registry entry and the
644     importing of the actual umn mapserver management modules.
645     Included a test for the required Python MapScript.
646    
647     2004-11-20 Jan-Oliver Wagner <[email protected]>
648    
649 jan 2403 Changed way of extension registry for importAPR, bboxdump
650     and added extension registry for svgexport.extension registry for
651     svgexport.
652    
653     * Extensions/importAPR/__init__.py: Added registry entry and the importing
654     of the actual importAPR module.
655    
656     * Extensions/importAPR/importAPR.py: Removed registry entry (moved to
657     __init__.py).
658    
659     * Extensions/bboxdump/__init__.py: Added registry entry and the importing
660     »···of the actual bboxdump module.
661    
662     * Extensions/bboxdump/bboxdump.py: Removed registry entry (moved to
663     »···__init__.py).
664    
665     * Extensions/svgexport/__init__.py: Added registry entry and the importing
666     of the svgsaver module.
667    
668     * Extensions/svgexport/svgsaver.py: Moved the menu entry from Extensions
669     to Experimental menu since this module has yet not reached a stable
670     status (ie. 1.0).
671    
672 jan 2397 2004-11-18 Jan-Oliver Wagner <[email protected]>
673    
674     Now the hit test considers the size of point symbols.
675    
676     * Thuban/UI/viewport.py (ViewPort._hit_point): Added optional parameter
677     'size' defaulting to the previously fixed value 5.
678     Extended doc-string.
679     (Viewport._find_shape_in_layer): Resolved FIXME regarding flexibility
680     for symbols.
681     Now the size of the largest point symbol is determined to find out
682     about whether the point has been hit.
683     This fixes the problem that only clicks inside a fixed distance of
684     5 where found.
685    
686 jan 2395 2004-11-17 Jan-Oliver Wagner <[email protected]>
687    
688 jan 2397 Another open issue fixed regarding sizeable symbols: correct rendering of
689 jan 2395 selected symbols.
690    
691     * Thuban/UI/renderer.py (ScreenRenderer.draw_selection_incrementally):
692     Added consideration of the specific size of point symbols.
693     The property for each point symbol is retrieved and the size applied
694     for the rendering method.
695     Added doc-string.
696    
697 jan 2393 2004-11-16 Jan-Oliver Wagner <[email protected]>
698    
699     Changed way of Extension Registry for gns2shp and profiling.
700    
701     * Extensions/gns2shp/gns2shp.py: Removed registry entry (moved to
702     __init__.py).
703    
704     * Extensions/gns2shp/__init__.py: Added registry entry and the importing
705     of the actual gns2shp module.
706    
707     * Extensions/profiling/profiling.py: Removed registry entry (moved to
708     __init__.py).
709    
710     * Extensions/profiling/__init__.py: Added registry entry and the importing
711     of the actual profiling module.
712    
713 bernhard 2388 2004-10-28 Bernhard Reiter <[email protected]>
714    
715     * Extensions/svgexport/: Minor improvements to doc strings.
716    
717 jan 2387 2004-10-07 Jan-Oliver Wagner <[email protected]>
718    
719     Further elements for sizable point objects now
720     making this feature usable though not yet complete.
721    
722     * Thuban/Model/save.py (SessionSaver.write_classification): Write
723     attribute 'size' for cldata when the shape layer is of point type.
724     This also now make the test_load.py tests happy.
725    
726     * Thuban/Model/classgen.py (CustomRamp.GetProperties): Added size
727     gradient.
728    
729     * Thuban/UI/classifier.py (ID_SELPROP_SPINCTRL): Renamed to
730     ID_SELPROP_SPINCTRL_LINEWIDTH.
731     (ID_SELPROP_SPINCTRL_LINEWIDTH): New Id replaces ID_SELPROP_SPINCTRL.
732     (ID_SELPROP_SPINCTRL_SIZE): New Id.
733     (SelectPropertiesDialog.__init__): Added a second spin control
734     for the size in case the corresponding layer is of point type.
735     (SelectPropertiesDialog._OnSpin): Renamed to _OnSpinLineWidth.
736     (SelectPropertiesDialog._OnSpinLineWidth): New. Former _OnSpin.
737     (SelectPropertiesDialog._OnSpinSize): New. Set size of property
738     and refresh preview.
739    
740    
741    
742 joey 2381 2004-10-04 Martin Schulze <[email protected]>
743    
744     * Extensions/wms/test/test_parser.py
745     (TestWMSCapabilitiesParser.test_compareLists): Added missing
746     self-test for compareLists()
747     (TestWMSCapabilitiesParser.test_compareDicts): Added missing
748     self-test for compareDicts()
749 joey 2382 (TestWMSCapabilitiesParser.test_compareLists): Adding more tests
750     to verify the test routine fails with non-equal arguments
751     (TestWMSCapabilitiesParser.test_compareDicts): Adding more tests
752     to verify the test routine fails with non-equal arguments
753 joey 2381
754 jan 2370 2004-10-03 Jan-Oliver Wagner <[email protected]>
755    
756 jan 2380 First elements for sizeable point objects.
757    
758     * Resources/XML/thuban-1.1.dtd: Added size attribute to cldata.
759    
760     * Data/iceland_sample_size.thuban: New. Sample for sized point objects.
761    
762     * test/test_load.py (ClassificationTest.TestLayers): Added SetSize in case
763     of a corresponding argument is given.
764     (TestSymbolSize): New. Test the size attribute of cldata.
765    
766     * Thuban/Model/classification.py: Removed some trailing whitespaces.
767     (ClassGroupProperties.__init__): Set default size.
768     (ClassGroupProperties.SetProperties): Set the size.
769     (ClassGroupProperties.GetSize): New. Return the size.
770     (ClassGroupProperties.SetSize): New. Set the size.
771     (ClassGroupProperties__eq__): Compare also size.
772     (ClassGroupProperties__repr__): Print also size.
773    
774     * Thuban/Model/load.py (SessionLoader.start_cldata): Also parse
775     the size attribute.
776    
777     * Thuban/UI/classifier.py (ClassDataPreviewer.Draw): Added doc-string.
778     Also, now there is a return value that indicates whether the drawing
779     size exceeded the given rect extent and if so the new extent.
780     Finally, point objects are drawn depending on the size. If either
781     the width or height is exceeded, the new extent is returned.
782     (ClassRenderer.Draw): Now when calling the previewer drawing function,
783     evaluate the return value and, if not None, adapt the grid widget size
784     accordingly and redraw again.
785    
786     * Thuban/UI/baserenderer.py (BaseRenderer.draw_shape_layer_incrementally):
787     If the draw function is for points, call it with the size as additional
788     parameter.
789     (BaseRenderer.draw_point_shape): Added additional, optional parameter for
790     the size. Compute the radius using the size.
791    
792     * Extensions/importAPR/apr.py (APR_BMkSym.GetThubanProp): Now
793     that Thuban supports size, apply this correctly.
794    
795     * Extensions/importAPR/importAPR.py: Bumped version to 0.1.1.
796    
797     2004-10-03 Jan-Oliver Wagner <[email protected]>
798    
799 jan 2370 * Doc/manual/thuban-manual-de.xml: Started translation of
800     Map chapter.
801    
802 joey 2368 2004-10-01 Martin Schulze <[email protected]>
803    
804     * Extensions/wms/properties.py (wmsProperties.__init__): Extended
805     argument for general use through properties-dialog selector
806    
807     * Thuban/UI/classifier.py: Register properties dialog classes for
808     both provided layer classes/types.
809    
810     * Thuban/UI/mainwindow.py (MainWindow.OpenLayerProperties): The
811     map can be retrieved through the parent which is passed to the
812     constructor anyway and doesn't require an argument of its own,
813     required for the unification of arguments for general use through
814     properties-dialog selector.
815     (MainWindow.OpenOrRaiseDialog): Move the logic for checking
816     whether a dialog is already opened (and raising it to the users
817     attention) and creating a new dialog into a function of its own
818     (MainWindow.OpenLayerProperties): Use the new OpenOrRaiseDialog()
819     method
820     (MainWindow.OpenLayerProperties): Utilise the new ClassMapper for
821     global registration of properties dialog classes (which are indeed
822     layer-specific).
823    
824     * Thuban/UI/classifier.py (Classifier.__init__): Unify arguments
825     for general use through properties-dialog selector, the map can be
826     retrieved through the parent and doesn't require an argument of
827     its own.
828    
829     * Extensions/wms/wms.py: Register the properties dialog class for
830     the provided WMS layer
831    
832 jan 2358 2004-09-28 Jan-Oliver Wagner <[email protected]>
833    
834     New feature: Registry for Extensions.
835    
836     * Thuban/UI/extensionregistry.py: This module defines a registry for
837     Extensions.
838    
839     * Thuban/UI/about.py (About.__init__): Added description
840     of the registered extensions with all of the information.
841    
842     * Thuban/Model/extension.py (Extension): Improved doc-string.
843    
844     * Extensions/gns2shp/gns2shp.py, Extensions/importAPR/importAPR.py,
845     Extensions/bboxdump/bboxdump.py, Extensions/profiling/profiling.py,
846     Extensions/wms/wms.py: Added registration of the extension.
847    
848 bernhard 2352 2004-09-27 Bernhard Reiter <[email protected]>
849    
850     More fixes to svgexport to make used ids unique and
851     conforming to XML's Name production.
852    
853     * Extensions/svgexport/test/test_svgmapwriter.py: Added new tests
854     test_xml_id_constraints(), test_make_ide_nosetbaseid() and
855     test_make_id_nonintegersetid(). Switched SetID and SetBaseID.
856     Added Bernhard R. as author.
857     * Extensions/svgexport/svgmapwriter.py (make_id): Using "_" as
858     concatenation char now (makes test_make_ide_nosetbaseid() valid).
859     Also transform second id part with "%d" and catch the TypeError
860     to raise SVGMapWriterError (making test_make_id_nonintegersetid() ok).
861     Corrected typo inBernhard's author line.
862     (SetBaseID): Return the transformed base id. Transform characters
863     which are not alnum() or in ".-_" to binascii.b2a_hex(). Added
864     import binascii. If to be set string starts with "xml" or so, add "t".
865     (draw_shape_layer_incrementally): use the returned value of SetBaseID
866     for used_baseids checks.
867    
868 bh 2351 2004-09-25 Bernhard Herzog <[email protected]>
869    
870     * test/test_layer.py (TestLayer.test_arc_layer_with_projection):
871     Remove a debug print and some tab characters.
872    
873 bernhard 2350 2004-09-25 Bernhard Reiter <[email protected]>
874    
875     * Extensions/svgexport/svgmapwriter.py: Added Bernhard R. as Author.
876     (SetBaseID, SetID, make_id): Improved docstring comments to explain
877     the interaction of the three functions and the XML id contrains.
878    
879 bernhard 2352
880 jan 2346 2004-09-23 Jan-Oliver Wagner <[email protected]>
881    
882 jan 2349 * Doc/ThubanModel.xmi: New. UML file for Thuban Model
883     Module.
884    
885     * Doc/README: Added info on ThubanModel.xmi.
886    
887     2004-09-23 Jan-Oliver Wagner <[email protected]>
888    
889 jan 2346 * Doc/README: New. Some info about how to generate technical
890     documentation from the source code.
891     This text was send to the Thuban developer mailing list on
892     September 21st 2004 by Bernhard Reiter.
893    
894 bernhard 2344 2004-09-21 Bernhard Reiter <[email protected]>
895    
896     Improved the svgexport to only use unique ids. Will issues
897     an error message dialoge when two layer names are the same.
898     ShapeIDs are now added with a dash within the svg ids.
899    
900     * Extensions/svgexport/svgmapwriter.py (SVGMapWriterError): New.
901     * Extensions/svgexport/test/test_svgmapwriter.py: Added imports
902     (TestSVGRenderer): New test class with test_make_in() and
903     test_check_for_layer_name_clash()
904     * Extensions/svgexport/svgmapwriter.py (SVGRenderer): Fixed __init__()
905     and draw_shape_layer_incrementally() to not use a baseid twice,
906     satisfying test_check_for_layer_name_clash()
907     (VirtualDC.make_id): Use a dash between baseit and id, satisfies
908     test_make_in().
909     * Extensions/svexport/svgsaver.py: Import SVGMapWriterError, wxOK
910     and wxICON_HAND.
911     (write_to_svg): Put dc and rendering in a try statement and on
912     catching SVGmapWriterError notify the user and delete the target file.
913    
914 bernhard 2343 2004-09-20 Bernhard Reiter <[email protected]>
915    
916     * Model/base.by, Model/layer.py: Fixed typos in docstrings.
917    
918 jschuengel 2342 2004-09-03 Jan Schüngel <[email protected]>
919    
920     * Extensions/umn_mapserver/mapfile(MF_Class.add_thubanstyle): Fix a
921     small bug with the line color. Now the line color will now only set
922     if it is set in Thuban an not Transparent.
923    
924     * Extensions/umn_mapserver/mf_export(tblayer_to_map): Fixed a bug with
925     deleting the layers from mapfile. Now all layers will delete backwards
926     from the last.
927    
928 silke 2339 2004-08-20 Silke Reimer <[email protected]>
929 silke 2338
930 silke 2339 * Thuban/Model/layer.py:
931     Fixes bug in projection handling: Otherwise very large region might not
932     have valid values in the layer's projection.
933    
934     2004-08-20 Silke Reimer <[email protected]>
935    
936 silke 2338 * Thuban/UI/about.py:
937     small changes to be consistent with coding style.
938    
939 joey 2337 2004-08-13 Martin Schulze <[email protected]>
940    
941     * Extensions/wms/test/test_ogclib.py (TestOGCLib.compare_URLs):
942     Adjusted a comment
943    
944 silke 2335 2004-08-11 Silke Reimer <[email protected]>
945 silke 2334
946 silke 2335 * Thuban/UI/about.py: Small changes to encoding related stuff to avoid
947     too many and too enhanced imports of locale
948    
949 silke 2334 2004-08-10 Silke Reimer <[email protected]>
950    
951     * Thuban/UI/about.py: Fixed encoding problem of about dialog: Added
952 silke 2339 function unicodeToLocale() to convert special characters to users
953     locale encoding
954 silke 2334
955 jan 2333 2004-08-10 Jan-Oliver Wagner <[email protected]>
956    
957     * Doc/technotes/coding_guidelines.txt: Added rule 'Method names start with
958     lower case letter'
959    
960 jschuengel 2331 2004-08-09 Jan Schüngel <[email protected]>
961    
962     * ChangeLog: Rewrite the last ChangeLog entry to follow
963     the standard way.
964    
965     * Extensions/umn_mapserver/mapfile: Moved the import AnnotationLayer to
966     the function where it is needed, because it don't works if it stands
967     at the beginning.
968     (MF_Layer.__init__): Removed the extra numclassed variable. Now
969     numclasses from the mapscript will be used.
970     (MF_Layer.get_index): New. Return the index of the layer in mapfile.
971     (MF_Layer.set_classes): New. A Classlist will be set to the layer.
972     (MF_Layer.set_metadata): New. A Metadata mapscript object will set.
973     (MF_Layer.remove_allclasses): New. All class of the layer will remove.
974     (MF_Map.create_new_layer): New. A new Layer is created and associated
975     with the mapscript object.
976     (MF_Map.set_layerorder): New. The Layer order like in thuban is set in
977     the mapscript.
978     (MF_Map.add_thubanlayer): Now a new layerobj is created if no one is
979     linked to the layer in thuban, else the layerobject linked to the
980     thubanlayer will be used.
981     AnnotationLayer will now store the filename of the shapefile.
982     (MF_Map.remove_layer): If a layer is removed the associated object
983     must be set new.
984    
985     * Extensions/umn_mapserver/mf_export.py(tb_layer_to_map): Add all
986     layers which are exists in thuban to the mapobj. All removed Layers
987     will be removed from the mapobj.
988     Added comments to all functions.
989     (thuban_to_map): No layer will be removed here.
990    
991     * Extensions/umn_mapserver/mf_handle.py
992     (_has_umn_mapobj_and_selectedlayer): Activating the layer menu. Now
993     Layersettings for the mapserver kann be edited.
994    
995     * Extensions/umn_mapserver/mf_import.py: Now all layers which are
996     imported, will be linked with the associated MF_Layer.
997     (import_mapfile): All layers, which are not selected, will be removed.
998     Disable the "import layer from mapfile" menu option.
999    
1000     * Extensions/umn_mapserver/sample/iceland.map: Set the status of the
1001     Annotation Layer from DEFAULT to OFF. The DEFAULT setting turns the
1002     layer on permanently.
1003    
1004 jschuengel 2323 2004-08-03 Jan Schüngel <[email protected]>
1005    
1006 jschuengel 2331 * Extensions/umn_mapserver/mapfile.py(MF_Metadata.remove_allmetadata):
1007     New. This function removes all metadata
1008     (MF_Layer.set_group): New. Set the group setting.
1009     (MF_Layer.get_group): New. Get the group setting.
1010     (MF_Map): Removed the extra numlayers variable, used the mapscript
1011     parameter instead.
1012     (MF_Map.get_numlayers): New. This get numlayers.
1013     (MF_Map.remove_all_layers): New. Removes all layers from the mapobj.
1014 jschuengel 2323 (MF_Map.add_thubanlayer): Replaced the exception handling by a check
1015     if the object is an instance. Also added the annotation layer here to
1016     export, but only the layer is created in the mapfile.
1017    
1018 jschuengel 2331 * Extensions/umn_mapserver/mf_export.py(export_mapfile): Removed
1019     the check if a mapobj exist, because its not needed anymore. The
1020     export function is only available if a mapobj exist.
1021     Use the new function to remove all layers.
1022 jschuengel 2323
1023 jschuengel 2331 * Extensions/umn_mapserver/mf_handle.py(Layer_Dialog): Added a group
1024     option and the metadata button. The layer dialog is temporary disabled.
1025     (Metadata_CustomDataTable): Added some functions to show the grid
1026 jschuengel 2323 correct.
1027    
1028 jschuengel 2331 * Extensions/umn_mapserver/mf_import.py: Moved the code for showing
1029     the number of layer from import_mapfile to this function.
1030     (AnnotationLayer): New. This Class shows the Annotation layer in
1031     thuban. The layer don't do anything. It's only to show the layer
1032     and to save the layer order.
1033     (add_annotationlayer): New. Import an annotation layer to thuban.
1034     (select_layer2import): New. Import only layers to thuban and not
1035     the other settings like projection or scalebar.
1036     (create_new_mapfile): Moved the _has_umn_mapobj function and the
1037     create_new_mapfile functions from mf_handle.py to mf_import.py.
1038 jschuengel 2323
1039     * Extensions/umn_mapserver/sample/iceland.map: Added the group
1040     parameter to the roads and cultural layers. Also added a new
1041     Annotation Layer for the cultural points.
1042    
1043     * Extensions/umn_mapserver/sample/iceland.html: Added the select
1044     option for the annotation layer.
1045    
1046     * Extensions/umn_mapserver/sample/index.html: Added the start
1047     parameter for the annotation layer.
1048    
1049 jan 2315 2004-08-01 Jan-Oliver Wagner <[email protected]>
1050    
1051     * Doc/manual/thuban-manual-de.xml (Chapter Session Management):
1052     translation completed.
1053    
1054     * Doc/manual/thuban-manual.xml (Chapter Session Management):
1055     Fixed unprecise description for Save Session.
1056    
1057 jan 2312 2004-07-31 Jan-Oliver Wagner <[email protected]>
1058    
1059     Started translation of Users Manual into german.
1060    
1061     * Doc/manual/thuban-manual-de.xml: New. German Users Manual.
1062    
1063     * Doc/manual/Makefile: Added build instructions for german
1064     users manual.
1065    
1066     * Doc/manual/thuban-manual.xml: Minor corrections in Introduction.
1067    
1068 jschuengel 2308 2004-07-28 Jan Schüngel <[email protected]>
1069    
1070     * Extensions/umn_mapserver/mapfile.py(MF_Metadata): Changed all class
1071     functions. Now all metadata will handle by the function and its not
1072     needed to initialize it from outside. Therefor the associated mapobj
1073     will be stored in the Metadata Object. So we can use the special
1074     functions from the associated mapobj to get the Metadata.
1075     Therefor all initialization code for the metadata is removed from the
1076     other classes.
1077     (MF_Layer): Added a function to get the metadata object.
1078     (MF_Map): Added a function to set the mappath, the path where
1079     the mapfile ist stored.
1080    
1081     * Extensions/umn_mapserver/mf_export.py(thuban_to_map): Changed the code
1082     to set the extent in the mapfile. Now the code is set by the displayed
1083     data in the Thuban-view.
1084     (export_mapfile): The shapepath is now set empty, until relative
1085     pathnames are supported.
1086    
1087     * Extension/umn_mapserver/mf_handle.py: Added a dialog to handle
1088     metadata. Yet only mapfile metadata are supported. Layer and class
1089     supported are not implemented.
1090     Added a dialog to handle layer informations. The dialog only shows the
1091     selected layer at the moment.
1092    
1093     * Extensions/umn_mapserver/mf_import.py(import_mapfile): Changed the
1094     code for setting the extent in thuban. Now the extent is set to the
1095     given extent from the mapfile.
1096     Fixed a logical mistake. Now the extent is set when realy a layer is
1097     loaded, and not if one is selected to load.
1098    
1099     * Extensions/umn_mapserver/sample/iceland.html: Added code to zoom and
1100     move the shown map in the browser.
1101    
1102     * Extensions/umn_mapserver/sample/iceland.map: Added a new metadata
1103     line to the mapobj and added metadata to the political layer.
1104    
1105     * Extensions/umn_mapserver/test/test_mapserver.py: Changed the test
1106     for Metadata.
1107    
1108 joey 2300 2004-07-26 Martin Schulze <[email protected]>
1109    
1110     * Thuban/Lib/classmapper.py (ClassMapper.has): Added the new
1111     ClassMapper
1112    
1113     * test/test_classmapper.py (TestMapping.test_mapper): Added a Test
1114     case for the new ClassMapper
1115    
1116    
1117 bh 2296 2004-07-22 Bernhard Herzog <[email protected]>
1118    
1119 bh 2297 * Thuban/UI/viewport.py (ViewPort.VisibleExtent): New. Return the
1120     visible extent of the map in projected coordinates
1121    
1122     * test/test_viewport.py (SimpleViewPortTest.test_default_size)
1123     (SimpleViewPortTest.test_init_with_size): Add some VisibleExtent()
1124     tests.
1125     (SimpleViewPortTest.test_visible_extent): New. The real test for
1126     VisibleExtent()
1127    
1128     2004-07-22 Bernhard Herzog <[email protected]>
1129    
1130 bh 2296 * test/test_viewport.py: Use support.run_tests as the main
1131     function when running asa script.
1132    
1133 jschuengel 2295 2004-07-22 Jan Schüngel <[email protected]>
1134    
1135     * Extensions/umn_mapserver/mf_export.py: Added "import os"
1136     Removed the old "import Thuban.UI.mainwindow" code.
1137     (tbextent_to_map): Removed the extra function and at the code direct
1138     to "thuban_to_map" function.
1139     (write_creatorcomment): Added. Now a short comment is added to the
1140     beginning of an generated mapfile.
1141     (export_mapfile): Now the Path and filename are saved in to variables,
1142     and not together in one variable. This is needed for the new
1143     write_creatorcomment function.
1144    
1145     * Extensions/umn_mapserver/mf_import.py (import_mapfile): Added the
1146     import module "re". Also added Range and the ClassGroupRange import
1147     from Thuban. Both are needed for the new range expression import.
1148     (create_rangeexpression): Added. Creates a Range Expression in Thuban
1149     style from a given mapfile expression.
1150     (added_rasterlayer): Make some small code changes. The shapepath is
1151     now stored in an extra variable and the clazz_name is set empty if no
1152     class name set in the mapfile.
1153     Changed the Error message for Range Expressions, becaus the new
1154     function create a error string which will be shown in the dialog.
1155    
1156     * Extensions/umn_mapserver/test/test_mapserver.py: Added a test for the
1157     range expression import.
1158 jan 2312
1159 jan 2291 2004-07-21 Jan-Oliver Wagner <[email protected]>
1160    
1161     * Extensions/umn_mapserver/README: Added hint that
1162     installation as root can be avoided. Removed all tabs.
1163    
1164 bh 2289 2004-07-16 Bernhard Herzog <[email protected]>
1165    
1166     * test/test_viewport.py
1167     (ViewPortTest.test_changing_map_projection): Check that changing
1168     the projection of an empty map shown in a viewport doesn't lead to
1169     exceptions in the viewport's handler for the
1170     MAP_PROJECTION_CHANGED messages
1171    
1172     * Thuban/UI/viewport.py (ViewPort.map_projection_changed): Only
1173     try to keep the same region visible when the map actually contains
1174     something
1175    
1176 jschuengel 2288 2004-07-15 Jan Schüngel <[email protected]>
1177    
1178     * Extensions/umn_mapserver/mapfile.py: Added a function to get the
1179     mappath directly from the mapobj. Is needed because of the changes
1180     in mf_import.py.
1181     (MF_Layer.add_thubanclass): Added a new comment.
1182     (MF_Map.set_extent): Fixed a bug with exporting empty mapobj. If the
1183     mapobj is empty there is no extent get from thuban an so no one can
1184     set to th mapobj.
1185    
1186     * Extensions/umn_mapserver/mf_import.py (import_mapfile): Updated
1187     the discription.
1188     Split the funktion in to three smaller ones. The new functions are
1189     add_rasterlayer, add_polygonlayer and select_layer2import.
1190     Removed the mapfilepath and filepath initialisation, because its know
1191     include in the new functions.
1192     Now nothing will be imported if cancel is pressed in the
1193     layer choice dialog.
1194    
1195 jschuengel 2285 2004-07-14 Jan Schüngel <[email protected]>
1196    
1197     * Extensions/umn_mapserver/mapfile.py: Added ClassGroupDefault to
1198     import.
1199     (MF_Symbolset): Removed the extra variable for numsymbols.
1200     (MF_Class.__init__): Added a comment to the exception clause.
1201     Removed the extent init, because it was not needed anymore.
1202     (MF_Layer.add_thubanclass): Added the code to set the class name to
1203     the expression value from thuban if no label is defined.
1204     Added the code to export Range expressions from thuban to the mapfile.
1205     (MF_Map.set_extent): Removed the exception and replace it by some if
1206     code. If the size of a map is not defined the size will be set to 1,1.
1207     This is necessary because if the extent is set, mapscript checks if
1208     the size is greater than zero.
1209     (MF_Web): Added the get and set function for the template.
1210    
1211     * Extensions/umn_mapserver/mf_export.py: Added the function to check
1212     if a mapobject exists and used it to set the status of the menu items.
1213     If no mapfile exists the settings could not be edditied.
1214     Define after which menuitem the exportitem will include.
1215    
1216     * Extensions/umn_mapserver/mf_handle.py: Removed the import
1217     Thuban.UI.mainwindow clause, because it is not needed.
1218     Added the command Refresh() to all "OnChangeColor()" functions,
1219     because the color preview window was not updated on a color change.
1220     Added the function to check if a mapobject exists and used it to set the
1221     status of the menu items. If no mapobject exists the settings could not
1222     be edditied.
1223     (Map_Dialog): Moved the imagetype selector from the
1224     Outputformat_Dialog to Map_Dialog and removed Outputformat_Dialog.
1225     (Web_Dialog): Removed the name label and added the template textbox.
1226    
1227     * Extensions/umn_mapserver/mf_import.py (import_mapfile): Replace
1228     the exception handling on loading the layers by an if statement. It
1229     is not necessary to us the exception there.
1230     The Filepath creation now use os.path.join to build the path.
1231    
1232     * Extensions/umn_mapserver/test/test_mapserver.py: Moved the testMap
1233     definition from global to the setUp function. Now the testMap will
1234     initialize new on each test.
1235    
1236     * Extensions/umn_mapserver/sample/iceland.map: Include three new
1237     classes in the Line Layer, to test logical Expressions.
1238     Set the status of the class "Point9" in the Point Layer to off
1239    
1240 bh 2278 2004-07-13 Bernhard Herzog <[email protected]>
1241    
1242     * Thuban/UI/baserenderer.py
1243     (BaseRenderer.render_map_incrementally): Fix a logic bug in the
1244     optimization that tries not to draw layers under a raster layer.
1245     The bug was harmless. All it effectively did was to produce The a
1246     strange messages about not being able to draw Layer instances for
1247     all vector layers below a raster layer which would be invisible
1248     anyway because the raster layer currently always covers the entire
1249     window
1250    
1251 jschuengel 2277 2004-07-08 Jan Schüngel <[email protected]>
1252    
1253     * Extensions/umn_mapserver/mapfile.py: Added code to generade and get
1254     a list of supported outputformats. This formats are not alle supported
1255     because there is no possibility to get the outputformat without the
1256     name known. Make some formal changes to the code.
1257     (MF_Map.set_name()): Fixed a bug if the name is None.
1258    
1259     * Extensions/umn_mapserver/mf_handle.py: Removed the image_type import
1260     statement, because its not needed anymore. The Outputformat is now
1261     given as string from the object. Make some formal changes to the code.
1262    
1263     * Extensions/umn_mapserver/test/test_mapserver.py: Added new test for
1264     most of the new setting which were added during the last changes.
1265     Removed the MF_Size Test.
1266    
1267     * Extensions/umn_mapserver/test/test.map: Added a new class to the
1268     cultural Layer to test expressions and the the status of that layer
1269     from on to default.
1270     Changed the data path the the correct Thuban Data
1271     Added the Outputformat Object and Symbol Object
1272    
1273 jschuengel 2272 2004-07-07 Jan Schüngel <[email protected]>
1274    
1275     * Extensions/umn_mapserver/mapfile.py: Added some new
1276     settings to edit (outputformat, label, imagetype)
1277    
1278     * Extensions/umn_mapserver/mf_handle.py: Added some setting to
1279     the Label Dialog and add the OutputDialog.
1280     Make some changes to the code order.
1281    
1282 jschuengel 2269 2004-07-06 Jan Schüngel <[email protected]>
1283    
1284     * Extensions/umn_mapserver/mapfile.py: Added the symbolObj, pointObj
1285     and line Obj and add the scalebar_status_type, scalebar_style_type and
1286     scalebar_position_type.
1287     Added the symbol- and symbolsetObject (MF_Symbol,MF_Symbolset). The
1288     are only used to create a Symbol like the circle in Thuban.
1289     Added the scalebarObject (MF_Scalebar)
1290     (MF_Class): Added set_status and get_status.
1291     (MF_Layer.add_thubanclass): Added code to set the class status
1292     (MF_Map): Added code to handle the symbols and scalebar
1293     (MF_Label): Added the set_partials and get_partials functions
1294    
1295     * Extensions/umn_mapserver/mf_export.py: Added MF_Symbol to import
1296     from mapfile. Added a function to create a circle object like the one
1297     from thuban if no one exists.
1298    
1299     * Extensions/umn_mapserver/mf_handle.py: All colors are now set when
1300     press ok in the assosiated dialog and not at the end of the
1301     colordialog.
1302     Added the Dialog for the Scalebar.
1303     (Label_Dialog): Added the offset option
1304    
1305     * Extensions/umn_mapserver/mf_import.py: Added code to import the
1306     status of the Classes.
1307     Fixed a bug with the projection. Now the to_meter parameter will be
1308     added to the Projection only if it doesn't exists.
1309    
1310 jschuengel 2264 2004-07-01 Jan Schüngel <[email protected]>
1311    
1312     Added the functionality to handle the content thuban is not
1313     able to handle directly.
1314    
1315     * Extensions/umn_mapserver/mf_handle.py: New. This module extents
1316     Thuban with the possibility to edit the mapfile content.
1317    
1318     * Extensions/umn_mapserver/mf_import.py: Added the possibility
1319     to import mapfiles without any layer selected. So it is possible
1320     to edit the other settings in a mapfile.
1321     (import_mapfile): Added code to use the editing functions.
1322     Added the possibility to import the projection to a layer if one
1323     is defined.
1324     Status settings (On,Off) will now set in thuban (visible, invisible).
1325     fixed a bug with with classnames. If no classname is set in mapfile
1326     the value in Thuban will set to the expression.
1327    
1328     * Extensions/umn_mapserver/mf_export.py(export_mapfile): Added the
1329     possibility to save a new mapfile or use the old one which is
1330     imported or new created.
1331     Added code to use the editing functions.
1332     Remove some not needed import statements
1333    
1334     * Extensions/umn_mapserver/mapfile.py: Added new types which are
1335     need for the editing functions.
1336     Added needed set-functions for the editing functions.
1337     Added the possibility to export rasterimages.
1338     Added new classes (MF_Web, MF_Label, MF_Legend, MF_Symbol,
1339     MF_SymbolSet). MF_Symbol and MF_SymbolSet are not needed at the
1340     moment.
1341     (MF_Class.set_thubanstyle): Now point layers will set to a default
1342     symbol to show a circle in mapserver and not only a 1px dot.
1343     (MF_Style.__init__): Fixed a bug with the color. Color was not set
1344     correct before.
1345     (MF_Size): Removed, because it is not needed.
1346    
1347     * Extensions/umn_mapserver/README: Added the hints to use the
1348     export and editing functions, too.
1349    
1350     * Extensions/umn_mapserver/sample/iceland.map: Added the
1351     new parameter "UNITS METERS".
1352     Change the political layer to status OFF.
1353    
1354     * Extensions/umn_mapserver/sample/README: Added some
1355     more details to setup the sample in the MapServer.
1356    
1357 bernhard 2256 2004-06-26 Bernhard Reiter <[email protected]>
1358    
1359     * Extensions/svgexport/test/test_svgmapwriter.py:
1360     Removed class VFile and used standard StringIO instead.
1361    
1362 jschuengel 2255 2004-06-23 Jan Schüngel <[email protected]>
1363    
1364     Add the export function to the umn_mapserver extension.
1365    
1366     * Extension/umn_mapserver/mf_export.py: New. This module extents
1367     Thuban with the possibility to export the Thuban content.
1368    
1369     * Extensions/umn_mapserver/mapfile.py: Expand the classes to use
1370     with the export module. Especially added the possibility to
1371     add thuban objects directly to the map objects.
1372    
1373     * Extensions/umn_mapserver/mf_import.py: Removed the wxCHANGE_DIR,
1374     because of the hint from Bernhard Herzog.
1375     Corrected the handling of absolute pathnames.
1376     Changed the Text of the Menu-Item, now the beginning is upper case.
1377    
1378     * Extensions/umn_mapserver/README: Added the --with-tiff statement.
1379    
1380 jschuengel 2250 2004-06-16 Jan Schüngel <[email protected]>
1381 jschuengel 2242
1382 jschuengel 2250 Add a sample and make some changes.
1383    
1384     * Extension/umn_mapserver/mf_import.py: Changed the wxPython.wx
1385     import from * to explicit used statements. Changed the
1386     Thuban.UI.mainwindow import phrase, too.
1387     (import_mapfile):Corrected a clerical mistake.
1388     Added wxCHANGE_DIR in OpenFile Dialog.
1389     Added a MultipleChoiceDialog, to select the layers to load from
1390     mapfile into thuban. Thereby the projection is only set if one layer
1391     is selected.
1392     Added the possibility to handle relative pathnames which uses
1393     up-level references.
1394     Removed some doubled code.
1395     Corrected an error with integer values used as label in thuban
1396     ClassGroup.
1397    
1398     * Extensions/umn_mapserver/sample: New.
1399    
1400     * Extensions/umn_mapserver/sample/README: New. Describes the
1401     usage of the sample files.
1402    
1403     * Extensions/umn_mapserver/sample/iceland.map: New. This is
1404     a suitable .map-file for the iceland data.
1405    
1406     * Extensions/umn_mapserver/sample/index.html: New. The template
1407     for the mapfile.
1408    
1409     * Extensions/umn_mapserver/sample/iceland.html: New. Initialisation
1410     file for the Iceland Application on web.
1411    
1412     * Extensions/umn_mapserver/README: Corrected a inaccuracy and added
1413     some details.
1414    
1415     * Extensions/umn_mapserver/test/test_mapserver
1416     (mapserver_import_Test_generalClasses.test_MF_Color):
1417     Corrected the thubancolor test.
1418    
1419     2004-06-15 Jan Schüngel <[email protected]>
1420    
1421 jschuengel 2242 * Extensions/umn_mapserver/README: New. Install instruction.
1422    
1423 bernhard 2240 2004-06-14 Bernhard Reiter <[email protected]>
1424    
1425     * libraries/thuban/cpl_mfile.h: Added copyright header.
1426    
1427     * libraries/thuban/ cpl_mfile.cpp, cpl_mfile.h: Added non-protecting
1428     Free Software License so that it is most useful with gdalwarp
1429     and bmpdataset.
1430    
1431 bh 2239 2004-06-14 Bernhard Herzog <[email protected]>
1432    
1433     * Thuban/UI/multiplechoicedialog.py (__version__): Add missing
1434     import of wxPython.wx itself (as opposed to the contents of
1435     wxPython.wx). For some reason wxPython.wx is available as
1436     wxPython.wx.wx in at least some 2.4 releases. Fixes RT#2482
1437     wrt. wxPython 2.4.
1438    
1439 jschuengel 2238 2004-06-10 Jan Schüngel <[email protected]>
1440    
1441     Initial version of new extension "umn_mapserver". This extension aims
1442     to manage configuration for the UMN MapServer application. This
1443     inital version just imports the .map-files and displays all, Thuban is
1444     capable of.
1445    
1446     * Extensions/umn_mapserver, Extensions/umn_mapserver/test: New.
1447    
1448     * Extensions/umn_mapserver/test/README: New. Describes how to run the
1449     tests.
1450    
1451     * Extensions/umn_mapserver/test/test.map: New. This is a test
1452     .map-file for automated tests of the umn_mapserver extension of
1453     Thuban.
1454    
1455     * Extensions/umn_mapserver/test/test_mapserver.py: New. Tests for
1456     UMN Mapserver classes.
1457    
1458     * Extensions/umn_mapserver/__init__.py: New. Init to make this
1459     directory a package.
1460    
1461     * Extensions/umn_mapserver/mapfile.py: New. Classes to represent
1462     '.map'-file objects.
1463    
1464     * Extensions/umn_mapserver/mf_import.py: New. This module extends
1465     Thuban with the possibility to handle UMN MapServer mapfiles.
1466    
1467 bh 2230 2004-06-03 Bernhard Herzog <[email protected]>
1468    
1469     * Thuban/Model/layer.py (Layer.TreeInfo): Convert the bounding box
1470     to a tuple before using it as arguments to the % operator. This
1471     fixes the formatting issue filed in RT#2239 on 2004-01-13 and
1472     reported today on thuban-list by Jan Schüngel
1473    
1474     * test/test_layer.py (TestLayerModification.setUp): Save the
1475     filename as an instance variable so we can refer to it in tests
1476     (TestLayerModification.test_tree_info): Uncomment this method
1477     again and make it work. This tests for the formatting issue
1478     filed in RT#2239 on 2004-01-13
1479    
1480 bh 2224 2004-05-28 Bernhard Herzog <[email protected]>
1481    
1482     * Thuban/UI/baserenderer.py: Fix some typos.
1483    
1484 jan 2217 2004-05-18 Jan-Oliver Wagner <[email protected]>
1485    
1486     * Extensions/gns2shp/gns2shp.py (gns2shp): Fixed a bug
1487     by increasing a field size.
1488    
1489 bh 2213 2004-05-17 Bernhard Herzog <[email protected]>
1490    
1491     Update to newest shapelib and get rid of Thuban specific
1492     extensions, i.e. use the new DBFUpdateHeader instead of our
1493     DBFCommit kludge
1494    
1495     * libraries/shapelib/shpopen.c: Update to version from current
1496     shapelib CVS.
1497    
1498     * libraries/shapelib/shapefil.h: Update to version from current
1499     shapelib CVS.
1500    
1501     * libraries/shapelib/dbfopen.c: Update to version from current
1502     shapelib CVS.
1503     (DBFCommit): Effectively removed since shapelib itself has
1504     DBFUpdateHeader now which is better for what DBFCommit wanted to
1505     achieve.
1506     We're now using an unmodified version of dbfopen.
1507    
1508     * setup.py (extensions): Add the HAVE_UPDATE_HEADER macro with
1509     value '1' to the Lib.dbflibc extension. This simply reflects the
1510     shapelib and pyshapelib updates
1511    
1512 jan 2211 2004-05-16 Jan-Oliver Wagner <[email protected]>
1513    
1514     Finished introduction of Menu.FindOrInsertMenu.
1515    
1516     * Extensions/drawshape/drawshape.py: Add the command
1517     to the experimental menu additionally to the toolbar.
1518    
1519     * Extensions/svgexport/svgsaver.py: Use FindOrInsertMenu() instead of
1520     finding menu on its own.
1521    
1522     * Doc/manual/thuban-manual.xml: updated sample file
1523     to use FindOrInsertMenu().
1524    
1525     * Examples/simple_extensions/hello_world.py: Use FindOrInsertMenu()
1526     instead of finding menu on its own.
1527    
1528 jan 2206 2004-05-11 Jan-Oliver Wagner <[email protected]>
1529    
1530     * test/test_menu.py (MenuTest.test): Added testing
1531     of method Menu.FindOrInsertMenu.
1532    
1533 jan 2204 2004-05-10 Jan-Oliver Wagner <[email protected]>
1534    
1535     Introduce and use Menu.FindOrInsertMenu.
1536    
1537     * Thuban/UI/menu.py (Menu.FindOrInsertMenu): New. Find a
1538     given menu or, if not found, insert it.
1539    
1540     * Extensions/bboxdump/bboxdump.py, /Extensions/gns2shp/gns2shp.py,
1541     /Extensions/importAPR/importAPR.py, Extensions/profiling/profiling.py,
1542     /Extensions/wms/wms.py: Use FindOrInsertMenu() instead of finding
1543     menu on its own.
1544    
1545 jan 2201 2004-05-06 Jan-Oliver Wagner <[email protected]>
1546    
1547     Introduce a abstract ColorDialog class and remove
1548     and outdated file.
1549    
1550     * Thuban/UI/proj4dialog.py: Removed. It is has been
1551     replaced by projdialog for quite a while and is not used
1552     anymore.
1553    
1554     * Thuban/UI/colordialog.py: New. Abstraction for color selection
1555     dialog(s).
1556    
1557     * Thuban/UI/classifier.py (SelectPropertiesDialog.__GetColor):
1558     Now calls the abstract ColorDialog instead of wxColourDialog.
1559     This also removed the dependency to Color class conversion
1560     from this function.
1561    
1562 frank 2197 2004-05-04 Frank Koormann <[email protected]>
1563    
1564     * Extensions/bboxdump/__init__.py: Fixed string left over from
1565     copying.
1566    
1567     * Extensions/bboxdump/bboxdump.py (bboxdump):
1568     Use layer.ShapeStore().AllShapes() to loop over shapes instead of
1569     xrange(layer.NumShapes()). Compile the bboxmessage from a list
1570     of formatted outputs (string.join) instead of appending to the
1571     message. Two progress bar dialogs to report progress on the sometimes
1572     lenghty processing.
1573    
1574 frank 2196 2004-04-22 Frank Koormann <[email protected]>
1575    
1576     New Extension to dump bounding boxes of all shapes of the selected
1577     layer. An optional column can be specified to group the objects,
1578     in this case the bounding box is a union of the separate boxes.
1579     Dump can be displayed in a ScrolledMessageDialog or written to file.
1580     The Extension is simply a combination of available and well tested
1581     Thuban functionality.
1582    
1583     * Extensions/bboxdump/__init__.py: New: Init to make this
1584     directory a package.
1585    
1586     * Extensions/bboxdump/bboxdump.py: New: Dump bounding boxes of
1587     all shapes of the selected layer.
1588    
1589 jan 2192 2004-04-22 Jan-Oliver Wagner <[email protected]>
1590    
1591     * Thuban/UI/classgen.py (GenUniquePanel.__init__): Fixed two
1592     strings to be i18n now.
1593    
1594 jan 2188 2004-04-18 Jan-Oliver Wagner <[email protected]>
1595    
1596     Changing popup menu of legend from direct building
1597     to using the Menu construction as used for the mainwindow.
1598    
1599     * Thuban/UI/mainwindow.py: New method commands: layer_to_top,
1600     layer_to_bottom, layer_visibility
1601     (MainWindow.LayerToTop): New. Put current layer to the top.
1602     (MainWindow.LayerToBottom): New. Put current layer to bottom.
1603     (MainWindow.HideLayer, MainWindow.ShowLayer, _has_visible_map):
1604     Replace 1,0 by True, False.
1605     (MainWindow.ToggleLayerVisibility): New. Toggle visibility of
1606     current layer.
1607     (MainWindow.LayerShowTable): Removed raising of dialog.
1608     (_has_selected_layer_visible): New. Support function.
1609    
1610     * Thuban/UI/legend.py: ID_POP_xxx: removed.
1611     (LegendPanel.__init__): Removed EVT_MENU bindings.
1612     (LegendTree._OnRightClick): Replace direct creation of
1613     menu via wx Classes by applying the menu definition
1614     as of Menu class of menu.py.
1615    
1616 jan 2185 2004-04-16 Jan-Oliver Wagner <[email protected]>
1617    
1618     * Thuban/UI/exceptiondialog.py (ExceptionDialog.dialog_layout): Improved
1619     button string to stronger clearify that Thuban will be closed when hitting
1620     the button.
1621    
1622     * Thuban/UI/mainwindow.py (MainWindow.LayerShowTable): Added docstring.
1623     Now for layers without a ShapeStore a corresponding message is given
1624     to the user, that this layer has no table to show.
1625    
1626 joey 2182 2004-04-15 Martin Schulze <[email protected]>
1627    
1628     * Extensions/wms/layer.py (WMSLayer.setWMSFormat): Need to
1629     recalculate the format for the internal render engine as well.
1630    
1631     * Extensions/wms/properties.py (wmsProperties): First start for a
1632     properties dialog. It's functional for a first selection of
1633     layers, but still has some weired wxWidgets/GTK problems but
1634     beautification can be done later.
1635    
1636     * Extensions/wms/layer.py: Added more documentation
1637     (WMSLayer.getFormats): New: Return list of supported image formats
1638     by the WMS server
1639     (WMSLayer.getLayers): New: Return the list of layer names
1640     supported by the WMS server
1641     (WMSLayer.getLayerTitle): New: Return the title of the named layer
1642     (WMSLayer.getWMSFormat): New: Return the image format that is used
1643     for WMS GetMap requests
1644     (WMSLayer.setWMSFormat): New: Set the image format that is used
1645     for WMS GetMap requests
1646     (WMSLayer.__init__): Move away from using only one layer to using
1647     a list of layers (unsorted at the moment, though).
1648     (WMSLayer.getVisibleLayers): New: Return the list of names for all
1649     visible layers
1650     (WMSLayer.setVisibleLayers): New: Set the list of names for all
1651     visible layers
1652    
1653     * Extensions/wms/wms.py: Moved the WMS layer into layer.py in
1654     order to establish a clean structure.
1655    
1656     * Extensions/wms/layer.py: Moved the WMS layer into a file on its
1657     own in order to establish a clean structure.
1658    
1659 joey 2174 2004-04-13 Martin Schulze <[email protected]>
1660    
1661     * Extensions/wms/parser.py (WMSCapabilitiesParser.grok): Added
1662     support for oldstyle (WMS 1.0 apparently) image format
1663     specification.
1664    
1665     * Extensions/wms/wms.py (WMSLayer.calcFormat): Reduce the list of
1666     supported graphic formats back to JPEG and BMP, PNG and others are
1667     too *cough* experimental... Sorry, I meant to filter this out
1668     before I committed this part. This should make the WMS extension
1669     run from CVS again.
1670     (wms_dialog): Reset an empty URL to None so that the subsequent
1671     program can depend on this, since the dialog will indeed return an
1672     empty URL, causing another declaration of love by Python.
1673    
1674     * Extensions/wms/parser.py (WMSCapabilitiesParser.getLayerBBox):
1675     Whenever a native BoundingBox request cannot be fulfilled, check
1676     whether the requested SRS is EPSG:3426, in which case return the
1677     LatLonBoundingBox values.
1678    
1679     * Extensions/wms/test/test_parser.py
1680     (TestWMSCapabilitiesParser.test_LayerSRS): Added a test for
1681     ignoring AUTO:* SRS.
1682     (TestWMSCapabilitiesParser.test_LatLonBoundingBoxes_as_bboxes):
1683     Added another test method to test whether the LatLonBoundingBox
1684     values will be returned if BoundingBox values are requested with
1685     SRS set to EPSG:3426.
1686    
1687     * Extensions/wms/parser.py (WMSCapabilitiesParser.peekLayers):
1688     Added rudimentary support for non-EPSG SRS, i.e. ignore them for
1689     the moment by placing them into a variable which is currently
1690     unused. Also test whether the EPSG SRS is numerical as it should
1691     be and add an error message if it is not.
1692    
1693     * Extensions/wms/test/sample.xml: Added AUTO:* SRS since they
1694     appear in the real world as well. Since we cannot handle them yet
1695     (OGCLib can't either), we will ignore them for the moment.
1696    
1697     * Extensions/wms/parser.py: Use a variable for denoting the sample
1698     filename
1699     (WMSCapabilitiesParser.peekLayers): Added support for error
1700     messages during grok(). They will be aggregated in an array and
1701     may be displayed later. We may have to add a classification
1702     "Warning" and "Error" to this. That requires more experience,
1703     though, since not every error may be lethal.
1704    
1705     * Thuban/UI/mainwindow.py (MainWindow.LayerShowTable): Raise the
1706     ShowTable() dialog/frame when the user attempts to display it
1707     while it has been opened before already and not closed again.
1708    
1709 joey 2161 2004-04-11 Martin Schulze <[email protected]>
1710    
1711     * Extensions/wms/infodialog.py: Adjusted the class documentation
1712    
1713     * Extensions/wms/wms.py (WMSLayer.__init__, WMSLayer.GetMapImg):
1714     Switch to using Thuban{Begin,End}BusyCursor instead of the pure
1715     wxWidgets variants.
1716     (WMSLayer.__init__): The epsg_id variable is named top_srs now.
1717    
1718     * Extensions/wms/infodialog.py: Added an information dialog that
1719     will display various information about the WMS current resource,
1720     so that additional information such as the title, the abstract,
1721     fees and access constraints can be displayed for the user if they
1722     are documented in the WMS XML.
1723    
1724 joey 2156 2004-04-10 Martin Schulze <[email protected]>
1725    
1726     * Extensions/wms/parser.py (WMSCapabilitiesParser.grok): Adjusted
1727     string handling. It's "foo".lower() and not lower(foo) without
1728     lower imported from strings or something.
1729    
1730     * Extensions/wms/wms.py (WMSLayer): Incorporated WMSCapabilities
1731     from capabilities.py and parser.py. Implement priority list for
1732     supported graphics formats, take care of wbmp != bmp. PNG, TIFF
1733     and GIF are supported here, but not yet by main Thuban. Hence,
1734     support for them may be removed later. Special contribution to
1735     usability: get wxWidgets to change the cursor when we're waiting
1736     for data from the network so the user won't start to worry. This
1737     causes a redrawing error/warning, though.
1738    
1739     * Extensions/wms/parser.py (WMSCapabilitiesParser.grok): Unlink
1740     the DOM object.
1741    
1742     2004-04-01 Martin Schulze <[email protected]>
1743    
1744     * Extensions/wms/capabilities.py: Adjusted documentation
1745     (WMSCapabilities.__init__): Improved documentation, fixed syntax
1746     (WMSCapabilities.saveCapabilities): Only catch IOError when
1747     handling files
1748     (WMSCapabilities.loadCapabilities): Only catch IOError when
1749     handling files
1750     __main__: corrected variable naming
1751     (WMSCapabilities.fetchCapabilities,loadCapabilities): Make this
1752     class a specialisation of WMSCapabilitiesParser as well. Also
1753     execute grok() after loading or fetching capabilities, if that
1754     went well, so that subsequent calls can already access the data.
1755     (WMSCapabilities.getVersion): Export the used version of the
1756     GetCapabilities request, so we can use it for subsequent calls,
1757     i.e. for GetMap requests.
1758     (WMSCapabilities.fetchCapabilities): Added proper error handling
1759     when the GetCapabilities request failed, so that the surrounding
1760     program can act accordingly.
1761    
1762 joey 2146 2004-03-30 Martin Schulze <[email protected]>
1763    
1764     * Extensions/wms/parser.py (WMSCapabilitiesParser.getLayerSRS):
1765     Adjusted the getLayerSRS method to return the list of SRSes
1766     extracted from <SRS> elements instead of <BoundingBox> elements.
1767     Added a bit of documentation as well.
1768     (WMSCapabilitiesParser.checkLayerSRS): Removed integrity test
1769     since it was only implemented due to a misunderstanding.
1770    
1771     * Extensions/wms/test/test_parser.py
1772     (TestWMSCapabilitiesParser.test_LayerSRS): Adjust the tests to
1773     reflect the corrected interpretation of the standard: i.e. a layer
1774     does not have to define a BoundingBox for all SRSes it supports.
1775     Hence the <SRS></SRS> specification is authoritative, not the list
1776     of BoundingBoxes.
1777     (TestWMSCapabilitiesParser.test_BoundingBoxes): Added a new test
1778     to ensure None is returned for a non-existing SRS.
1779     (TestWMSCapabilitiesParser.test_grok): Removed test_grok method
1780     since it is not applicable anymore. Listing more SRSes in <SRS>
1781     elements is valid according to the specs.
1782    
1783 bernhard 2140 2004-03-26 Bernhard Reiter <[email protected]>
1784 joey 2146
1785 bernhard 2140 * README: Nicer formatting of text. Improved descriptions.
1786     Reflected wxWidgets name change.
1787    
1788     * Thuban/UI/about.py: Extended copyright to 2004 and added
1789     information about the thuban-devel mailinglist.
1790    
1791 joey 2138 2004-03-24 Martin Schulze <[email protected]>
1792 joey 2120
1793 joey 2138 * Extensions/wms/capabilities.py: Renamed the class to contain
1794     'WMS', also added a linebreak where required
1795    
1796     * Extensions/wms/parser.py: Finally added the XML parser for the
1797     GetCapabilities response.
1798    
1799     * Extensions/wms/test/sample.xml: Adjusted the sample file so that
1800     <SRS> elements match the <BoundingBox> elements, except for the
1801     layer 'beschriftung'.
1802    
1803     * Extensions/wms/test/test_parser.py: Encode non-ascii strings
1804     since Python uses unicode strings internally, otherwise
1805     comparisons will fail. Removed tests for getLayerBBoxSRS() since
1806     the SRS will be calculated anyway and this method is obsoleted by
1807     getLayerSRS(). Denote SRS as strings and not as cardinal numbers.
1808     Move loading the sample file into the setUp method. Added a test
1809     for finding the integrity problem in the sample response.
1810     Improved formatting.
1811    
1812     * Extensions/wms/domutils.py: Added convenience routines for
1813     handling of Document Object Model (DOM) nodes.
1814    
1815     * Extensions/wms/test/test_domutils.py: Added a test for the
1816     domutils module
1817    
1818     2004-03-19 Martin Schulze <[email protected]>
1819    
1820 joey 2120 * Extensions/wms/test/test_parser.py (TestWMSCapabilitiesParser):
1821     Moved path detection and adding into a module of its own,
1822     adjustpath, which exports thubandir as main Thuban directory.
1823    
1824     * Extensions/wms/test/test_ogclib.py (TestWMSLib): Moved path
1825     detection and adding into a module of its own, adjustpath, which
1826     exports thubandir as main Thuban directory. Reorganised the
1827     module in order to support the SkipTest feature for Thuban test
1828     cases.
1829    
1830     * Extensions/wms/test/adjustpath.py: Moved path detection and
1831     adding into a module of its own.
1832    
1833 joey 2115 2004-03-18 Martin Schulze <[email protected]>
1834    
1835     * Extensions/wms/test/test_parser.py: Added another test for
1836     checking whether the WMS XML parser (to be implemented) returns
1837     the information we expect. This requires a sample WMS WML file
1838     (sample.xml) which has been extracted from the frida server and
1839     "improved" manually.
1840    
1841     * Extensions/wms/test/test_ogclib.py: Added legacy code to add the
1842     main Thuban directory to the path in order to be able to import
1843     random modules. Adjusted the PyOGCLib detection to reuse the
1844     information gathered. Also added a note about the PYTHONPATH
1845     environment variable.
1846    
1847     * Extensions/wms/test/test_ogclib.py: The format specification is
1848     a mime-type, not a graphic format, hence image/jpeg wou ld be the
1849     proper format and not JPEG. We'll also have to take care of the
1850     encoding of / as %2F.
1851    
1852 joey 2111 2004-03-16 Martin Schulze <[email protected]>
1853    
1854     * Extensions/wms/test/test_ogclib.py: Added a (hopefully)
1855     comprehensive test for the getMapURL method, built compare URLs
1856     according to the documentation in OGC 01-068r3
1857    
1858     * Extensions/wms/capabilities.py (WMSCapabilities): Added the
1859     class WMSCapabilities to manage capabilites, will incorporate
1860     parsing the capabilities response and provide details for other
1861     classes.
1862    
1863 bh 2105 2004-03-12 Bernhard Herzog <[email protected]>
1864    
1865 bh 2107 Support views in addition to normal tables in the postgis
1866     shapestore
1867    
1868     * Thuban/Model/postgisdb.py
1869     (PostGISShapeStore._fetch_table_information): Add a fallback for
1870     the case where the table name is not in the geometry_columns
1871     table. This is usually the case for views. Also, set
1872     self.shapestore here.
1873     (PostGISShapeStore.ShapeType): No need to query the database all
1874     the time. The shape type is now determined in
1875     _fetch_table_information
1876    
1877     * test/postgissupport.py (PostgreSQLServer.new_postgis_db)
1878     (PostgreSQLServer.get_static_data_db, PostGISDatabase.__init__):
1879     New parameter to specify views.
1880     (PostGISDatabase.has_data): Also compare the views. New views
1881     parameter
1882     (PostGISDatabase.initdb): Create the views.
1883     (PostgreSQLServer.get_default_static_data_db): Add the v_landmarks
1884     view
1885    
1886     * test/test_postgis_db.py
1887     (TestPostGISShapestorePointFromViews): New. Test a
1888     PostGISShapeStore with a view
1889     (TestPostGISShapestorePointOIDAsGIDColumn.setUp): Pass the name of
1890     the geometry_column explicitly to test whether that works
1891    
1892     2004-03-12 Bernhard Herzog <[email protected]>
1893    
1894 bh 2105 Final step for explicit id/geometry columns: Loading and saving
1895    
1896     * Resources/XML/thuban-1.1.dtd: New. Derived from thuban-1.0.dtd
1897     with the following changes:
1898     (dbshapesource): Two new attributes id_column and geometry_column
1899    
1900     * Thuban/Model/save.py (SessionSaver.write): Use the new dtd
1901     (SessionSaver.write_session): Use the new namespace
1902     (SessionSaver.write_data_containers): Write the new dbshapesource
1903     parameters
1904    
1905     * Thuban/Model/load.py (SessionLoader.__init__): New namespace for
1906     the new file format version
1907     (SessionLoader.start_dbshapesource): Handle the new db parameters
1908    
1909     * test/test_save.py: Update to the new dtd and namespace
1910     (SaveSessionTest.test_save_postgis): Update the NonConnectionStore
1911     mock object to provide a working IDColumn method.
1912    
1913     * test/test_load_1_0.py: New. Copy of the test_load.py before
1914     today's changes but with the round-trip tests removed.
1915    
1916     * test/test_load_0_9.py: Update doc-string.
1917    
1918     * test/test_load.py: Update all .thuban files to the new dtd and
1919     namespace.
1920     (TestPostGISLayer.file_contents): Add the new dbshapesource
1921     paramters
1922    
1923 bh 2100 2004-03-11 Bernhard Herzog <[email protected]>
1924    
1925 bh 2103 Next step for explicit id/geometry columns: User interaction
1926    
1927     * Thuban/UI/dbdialog.py (ChooseDBTableDialog.__init__): Rework how
1928     the dialog is constructed. Add combo boxes to select id and
1929     geometry column. Rename some instance variables.
1930     (ChooseDBTableDialog.GetTable): Return id and geometry column
1931     names
1932     (ChooseDBTableDialog.OnTableSelect): New. Event handler for
1933     selections in the table list
1934    
1935     * Thuban/UI/mainwindow.py (MainWindow.AddDBLayer): Use id_column
1936     and geometry_column
1937    
1938     * Thuban/Model/session.py (Session.OpenDBShapeStore): Add the new
1939     parameters for id_column and geometry column of PostGISShapeStore
1940     here as well.
1941    
1942     * Thuban/Model/postgisdb.py (type_map): Add ROWID psycog type.
1943     (_raw_type_map): New. Map raw PostgreSQL type ints to thuban types
1944     (PostGISConnection.GeometryTables): Use a better query to
1945     determine which relations in the database might be usable for
1946     shapestores. Now supports views as well but is more PostgreSQL
1947     specific
1948     (PostGISConnection.table_columns): New. Somewhat experimental
1949     method to let the db dialogs provide lists of columns to users so
1950     that they can select id and geometry columns.
1951     (PostGISTable.__init__): The default value of the id_column
1952     parameter is now None it still means "gid" effectively, though.
1953     (PostGISTable.IDColumn): New introspection method to return a
1954     column object for the id column
1955     (PostGISShapeStore.GeometryColumn): New introspection method to
1956     return a column object for the geometry column
1957    
1958     * test/test_postgis_db.py
1959     (TestPostGISConnection.test_gis_tables_non_empty):
1960     Removed. Subsumed by the new:
1961     (TestPostGISConnection.test_gis_tables_with_views_and_tables):
1962     New. Tes the GeometryTables and table_columns methods with actual
1963     tables and views.
1964     (PointTests.test_id_column, PointTests.test_geometry_column):
1965     New. tests for the new methods.
1966     (TestPostGISShapestorePoint.setUp)
1967     (TestPostGISShapestorePointSRID.setUp)
1968     (TestPostGISShapestorePointExplicitGIDColumn.setUp): Fill the
1969     instance variables needed by the new tests
1970    
1971     2004-03-11 Bernhard Herzog <[email protected]>
1972    
1973 bh 2100 * Thuban/UI/classgen.py (GenQuantilesPanel.GetList): The row
1974     numbers given to ReadValue are ordinals.
1975    
1976     2004-03-11 Bernhard Herzog <[email protected]>
1977    
1978     Elimiate the requirement for PostGIS tables to have a column
1979     called "gid".
1980    
1981     * Thuban/Model/postgisdb.py (PostGISTable.__init__): New parameter
1982     id_column to specify which column to use to identify rows. Also
1983     new instance variables id_column and quoted_id_column
1984     (PostGISTable.RowIdToOrdinal, PostGISTable.RowOrdinalToId)
1985     (PostGISTable.ReadRowAsDict, PostGISTable.ReadValue)
1986     (PostGISTable.SimpleQuery): Use the id column name provided to the
1987     constructor instead of "gid"
1988     (PostGISShapeStore.__init__): New parameter id_column analogously
1989     to PostGISTable.__init__. This parameter is simply passed through
1990     to the base class constructor
1991     (PostGISShapeStore._create_col_from_description): Fix typo in
1992     doc-string
1993     (PostGISShapeStore.Shape, PostGISShapeStore.AllShapes)
1994     (PostGISShapeStore.ShapesInRegion): Use the id column name
1995     provided to the constructor instead of "gid"
1996    
1997     * test/postgissupport.py
1998     (PostgreSQLServer.get_default_static_data_db): New static table
1999     landmarks_point_id with an id column != "gid. Update the comments
2000     a bit.
2001     (skip_if_addgeometrycolumn_does_not_use_quote_ident): Fix typo in
2002     doc-
2003     (upload_shapefile): New parameter gid_column to use a name other
2004     than "gid" for the column to store the shape ids
2005    
2006     * test/test_postgis_db.py (TableTests): New. Mixin-class
2007     containing all tests previously in TestPostGISTable. The actual
2008     tests are the same but the code is a bit more configurable to
2009     allow for different id columns etc.
2010     (TestPostGISTable): Derive from TableTests now for the actual
2011     tests.
2012     (TestPostGISTableExplicitGIDColumn): New. Like TestPostGISTable
2013     except that it the landmarks_point_id table to test the id_column
2014     parameter
2015     (PointTests): Extend the doc-string
2016     (TestPostGISShapestorePointExplicitGIDColumn)
2017     (TestPostGISShapestorePointOIDAsGIDColumn): New classes derived
2018     from PointTests to test the explicit id_column parameter. One
2019     tests with the name of the column holding the shape ids, the other
2020     uses PostgreSQL's OID column. For the latter a number of methods
2021     have to be overwritten to make them independent of the actual id
2022     values.
2023    
2024 silke 2095 2004-03-08 Silke Reimer <[email protected]>
2025    
2026     Update debian directory:
2027    
2028     * debian/changelog: Added new version.
2029     * deiban/rules: Updated management of patches (with cbds)
2030     * debian/control: Added cbds to dependencies
2031     * debian/patches/*: New. Adds better support for patches of thuban in
2032     debian
2033     * debian/menu: Syntax of menu changed slightly
2034     * debian/setup.py.patch: removed because it has been moved to
2035     debian/patechs/setup.py.patch
2036    
2037    
2038 bh 2094 2004-02-26 Bernhard Herzog <[email protected]>
2039    
2040     Create the Doc/technotes directory for text files with information
2041     for developers
2042    
2043     * Doc/technotes/README: New. README for the technotes
2044    
2045     * Doc/technotes/coding_guidelines.txt: New. Coding guidelines for
2046     Thuban
2047    
2048     * Doc/technotes/release_process.txt: New. Used to be
2049     HOWTO-Release. Now slightly adapted to technote formatting style.
2050    
2051     * HOWTO-Release: Removed. It's contents are now in
2052     Doc/technotes/release_process.txt
2053    
2054 bh 2089 2004-02-25 Bernhard Herzog <[email protected]>
2055    
2056     * libraries/thuban/wxproj.cpp (get_wx_version): New. Return the
2057     version of wxWindows the module was compiled with so we can check
2058     that against the wxPython version.
2059    
2060     * Thuban/version.py (thuban_branch, thuban_release): New variables
2061     controlling which and how Thuban versions are shown. See the
2062     comments for details.
2063     (verify_versions): Also check that the wx version that wxproj is
2064     compiled against matches that of the wxPython we use at runtime
2065    
2066 bh 2080 2004-02-20 Bernhard Herzog <[email protected]>
2067    
2068 bh 2087 * Extensions/wms/wms.py (epsg_code_to_projection): Use
2069     get_system_proj_file to read the epsg projections. The old way
2070     depended on the current directory being the top Thuban directory.
2071    
2072     2004-02-20 Bernhard Herzog <[email protected]>
2073    
2074 bh 2085 * Extensions/svgexport/test/test_svgmapwriter.py
2075     (TestVirtualDC.test_clippath): Remove a debug print
2076    
2077     2004-02-20 Bernhard Herzog <[email protected]>
2078    
2079 bh 2083 * Extensions/svgexport/__init__.py: New. Turn
2080     Extensions/svgexport into a package.
2081    
2082     * Extensions/svgexport/svgmapwriter.py: Reorder the imports and
2083     doc-string a bit. The doc-string must come first, otherwise it's
2084     not a doc-string. The __future__ import must be the first thing
2085     after the doc-string. Use only double quotes in doc-strings.
2086     Single quotes trip up emacs syntax highlighting if the text
2087     contains apostrophes.
2088    
2089     2004-02-20 Bernhard Herzog <[email protected]>
2090    
2091 bh 2080 * Extensions/svgexport/test/__init__.py,
2092     Extensions/svgexport/test/test_svgmapwriter.py: New. Initial test
2093     suite for svgexport
2094    
2095     * test/runtests.py (find_test_modules): New. Function with the
2096     module finding code from main.
2097     (main): Use find_test_modules to figure out the default test
2098     modules and take modules from Extensions.svgexport.test too.
2099    
2100 bh 2075 2004-02-19 Bernhard Herzog <[email protected]>
2101    
2102 bh 2077 * Thuban/UI/application.py (ThubanApplication.OnInit): Make sure
2103     the mainwindow has a reference to the map of the initial session.
2104     This fixes a bug introduced with the fix for RT#2245
2105    
2106     2004-02-19 Bernhard Herzog <[email protected]>
2107    
2108 bh 2075 * Extensions/svgexport/svgsaver.py,
2109     Extensions/svgexport/svgmapwriter.py,
2110     Extensions/svgexport/maplegend.py: Added again. This time in the
2111     correct place.
2112    
2113 bh 2070 2004-02-17 Bernhard Herzog <[email protected]>
2114    
2115 bh 2073 Fix for RT#2245
2116    
2117     * Thuban/UI/application.py (ThubanApplication.OnInit): Initialize
2118     instance variables before trying to create any windows. Creating
2119     windows can start an event loop if e.g. message boxes are popped
2120     up for some reason, and event handlers, especially EVT_UPDATE_UI
2121     may want to access things from the application.
2122     (ThubanApplication.maps_changed): The mainwindow may not have been
2123     created yet, so check whether it has been created before calling
2124     its methods
2125    
2126     * Thuban/UI/view.py (MapCanvas.OnIdle): Only try to redraw if we
2127     have a map
2128    
2129     2004-02-17 Bernhard Herzog <[email protected]>
2130    
2131 bh 2070 * test/test_svgmapwriter.py, Extensions/svgsaver.py,
2132     Extensions/svgmapwriter.py, Extensions/maplegend.py,
2133     extensions/svgexport/svgsaver.py,
2134     extensions/svgexport/svgmapwriter.py,
2135     extensions/svgexport/maplegend.py: Removed. These files were in
2136     the wrong places or didn't work at all.
2137    
2138 bh 2067 2004-02-16 Bernhard Herzog <[email protected]>
2139    
2140 bh 2069 * Thuban/UI/view.py (MapCanvas.Export): Remove accidentally added
2141     line
2142    
2143     2004-02-16 Bernhard Herzog <[email protected]>
2144    
2145 bh 2067 * Thuban/UI/view.py (MapCanvas.Export): Avoid UnboundLocalError.
2146    
2147 mrechtie 2064 2004-02-15 Markus Rechtien <[email protected]>
2148    
2149     * Extensions/svgexport/svgmapwriter.py: New. Adds the capability
2150     to write a session to a file in SVG format.
2151     * Extensions/svgexport/svgsaver.py: New. Uses svgmapwriter.py
2152     to write a SVG map of a session.
2153     * Extensions/svgexport/maplegend: New. Writes a basic maplegend
2154     in SVG format for the current session.
2155    
2156 bh 2062 2004-02-13 Bernhard Herzog <[email protected]>
2157    
2158     * Thuban/UI/mainwindow.py (MainWindow.AddDBLayer): When the layer
2159     can't be created, return immediately after displaying the error
2160     message.
2161    
2162 bh 2060 2004-02-11 Bernhard Herzog <[email protected]>
2163    
2164     Handle postgis tables with more than one geometry column.
2165    
2166     * Thuban/Model/postgisdb.py
2167     (PostGISTable._fetch_table_information): Delegate the creation of
2168     column objects to a different method so that we can extend that in
2169     derived classes
2170     (PostGISTable._create_col_from_description): New. Column object
2171     creation part of _fetch_table_information
2172     (PostGISShapeStore._create_col_from_description): New. Extend
2173     inherited method to handle geometry columns
2174     (PostGISShapeStore.__init__): New parameter geometry_column to
2175     specify which geometry column to use. Optional but mandatory for
2176     tables with more than one geometry column
2177     (PostGISShapeStore._fetch_table_information): Also use the name of
2178     the geometry column when looking for the srid
2179     (PostGISShapeStore.ShapeType): Also use the name of the geometry
2180     column when looking for the shape type
2181    
2182     * test/test_save.py (SaveSessionTest.test_save_postgis): Adapt
2183     NonConnectionStore to changes in the PostGISShapeStore
2184    
2185     * test/test_postgis_db.py
2186     (TestPostGISSpecialCases.test_shapestore_two_geom_cols): Test
2187     PostGISShapeStore with tables having two geometry columns.
2188    
2189 bh 2058 2004-02-10 Bernhard Herzog <[email protected]>
2190    
2191     Fix some postgis problems. What remains to be done is real
2192     handling of SRIDs as they affect how reprojection is done
2193    
2194     * Thuban/Model/postgisdb.py (quote_identifier): Fix typo in
2195     doc-string
2196     (PostGISShapeStore._fetch_table_information): New. Extend
2197     inherited method to retrieve srid
2198     (PostGISShapeStore.BoundingBox): Handle tables without data.
2199     extent yields NULL for those
2200     (PostGISShapeStore.ShapesInRegion): Use the srid of the table.
2201    
2202     * test/test_postgis_db.py
2203     (TestPostGISSpecialCases.test_shapestore_empty_table): New test
2204     for the special case of a table without any data
2205     (TestPostGISShapestorePointSRID): New class with tests for a table
2206     that uses srids
2207     (PolygonTests): Fix a doc-string typo
2208    
2209     * test/postgissupport.py (PostGISDatabase.__init__): New parameter
2210     reference_systems with a specification of spacial reference
2211     systems to create in the new db.
2212     (PostgreSQLServer.new_postgis_db)
2213     (PostgreSQLServer.get_static_data_db): New parameter
2214     reference_systems to be passed through ultimately to
2215     PostGISDatabase. In new_postgis_db also check whether an existing
2216     db already has the right srids
2217     (PostgreSQLServer.get_default_static_data_db): Add srids and a
2218     table that uses srids
2219     (PostGISDatabase.initdb): Create the entries for the reference
2220     systems
2221     (PostGISDatabase.has_data): Add reference_systems parameter to
2222     check for those too
2223     (upload_shapefile): New parameter srid to create tables with a
2224     specific srid
2225    
2226 frank 2055 2004-02-06 Frank Koormann <[email protected]>
2227    
2228     * po/pt_BR.po: Fixed charset
2229    
2230 frank 2054 2004-02-05 Frank Koormann <[email protected]>
2231    
2232     * po/pt_BR.po: Fixed format string for error message, missing %s
2233     added (Thuban/UI/application.py:273)
2234    
2235 frank 2053 2004-02-03 Frank Koormann <[email protected]>
2236    
2237     First version of Portuguese (Brazilian) translation
2238    
2239     * po/pt_BR.po: New, translation of pot (2004-01-15 16:07+0300) for
2240     Brazilian Portuguese by Eduardo Patto Kanegae.
2241    
2242     * Thuban/UI/about.py (About.__init.py__): Added Eduardo to the list of
2243     translators.
2244    
2245    
2246 frank 2052 2004-01-22 Frank Koormann <[email protected]>
2247    
2248     * Doc/manual/thuban-manual.xml: Added section on installation of
2249     Thuban under Win32 systems. Fixed image path references in the postgis
2250     section. Some minor source formattings.
2251    
2252 frank 2051 2004-01-21 Frank Koormann <[email protected]>
2253    
2254     Make Thuban remember path selections (at least for one application run).
2255    
2256     * Thuban/UI/application.py (Application.OnInit): Initialize path as a
2257     attribute of application object. Path is a dictionary of
2258     strings, currently with the items "data" and "projection".
2259     (Application.SetPath): New, stores path for the specified item.
2260     (Application.Path): New, return path for the specified item.
2261    
2262     * Thuban/UI/mainwindow.py
2263     (MainWindow.OpenSession, MainWindow.SaveSessionAs,
2264     MainWindow.AddLayer, MainWindow.AddRasterLayer,
2265     MainWindow.TableOpen): Access "data" path information of the
2266     application.
2267    
2268     * Thuban/UI/projdialog.py (ProjFrame._OnImport, ProjFrame._OnExport):
2269     Access "projection" path information of the application.
2270    
2271 bh 2048 2004-01-05 Bernhard Herzog <[email protected]>
2272    
2273 bh 2050 * po/ru.po: Updated translations from Alex Shevlakov
2274    
2275     2004-01-05 Bernhard Herzog <[email protected]>
2276    
2277 bh 2048 * po/Makefile, po/README: Move the description of how to generate
2278     the translation statistics to the README.
2279    
2280 bh 2042 2003-12-23 Bernhard Herzog <[email protected]>
2281    
2282 bh 2045 * NEWS: Update for 1.0.0
2283    
2284     * po/it.po: Another update from Maurizio Napolitano
2285    
2286     2003-12-23 Bernhard Herzog <[email protected]>
2287    
2288 bh 2042 * po/it.po: Updated translation from Maurizio Napolitano
2289    
2290     2003-12-23 Bernhard Herzog <[email protected]>
2291    
2292     * Thuban/UI/join.py (JoinDialog.__init__): Mark one more string
2293     for translation
2294    
2295     * Thuban/UI/mainwindow.py (MainWindow.TableRename)
2296     (MainWindow.RenameMap, MainWindow.RenameLayer): Mark some more
2297     strings for translation
2298    
2299     * po/de.po: Update with the newly marked strings.
2300    
2301 bh 2033 2003-12-22 Bernhard Herzog <[email protected]>
2302    
2303 bh 2039 * HOWTO-Release: Fix the places where version numbers have to be
2304     updated
2305    
2306     2003-12-22 Bernhard Herzog <[email protected]>
2307    
2308 bh 2037 * setup.py (setup call): 1.0.0, yeah!
2309    
2310     * Thuban/version.py (longversion): 1.0.0, yeah!
2311    
2312     * Thuban/Model/load.py (SessionLoader.__init__): Accept the
2313     1.0.0 namespace too
2314    
2315     * Thuban/Model/save.py (SessionSaver.write_session): Save with
2316     1.0.0 namespace
2317    
2318     * test/test_load.py (LoadSessionTest.dtd)
2319     (TestSingleLayer.file_contents)
2320     (TestNonAsciiColumnName.file_contents)
2321     (TestLayerVisibility.file_contents)
2322     (TestClassification.file_contents, TestLabels.file_contents)
2323     (TestLayerProjection.file_contents)
2324     (TestRasterLayer.file_contents, TestJoinedTable.file_contents)
2325     (TestLabelLayer.file_contents, TestPostGISLayer.file_contents)
2326     (TestPostGISLayerPassword.file_contents)
2327     (TestLoadError.file_contents, TestLoadError.test): Update for
2328     1.0.0 namespace
2329    
2330     * test/test_save.py (SaveSessionTest.dtd)
2331     (SaveSessionTest.testEmptySession)
2332     (SaveSessionTest.testSingleLayer)
2333     (SaveSessionTest.testLayerProjection)
2334     (SaveSessionTest.testRasterLayer)
2335     (SaveSessionTest.testClassifiedLayer)
2336     (SaveSessionTest.test_dbf_table)
2337     (SaveSessionTest.test_joined_table)
2338     (SaveSessionTest.test_save_postgis): Update for 1.0.0 namespace
2339    
2340     2003-12-22 Bernhard Herzog <[email protected]>
2341    
2342 bh 2035 * Thuban/Model/load.py (SessionLoader.start_label): Make sure the
2343     alignment flags are byte strings not unicode and that they have
2344     valid values
2345    
2346     * test/test_load.py (TestLabelLayer): New. Test loading (and
2347     indirectly saving) of maps with labels.
2348    
2349     2003-12-22 Bernhard Herzog <[email protected]>
2350    
2351 bh 2033 * Thuban/UI/tableview.py (TableGrid.OnDestroy)
2352     (TableGrid.__init__): Handle EVT_WINDOW_DESTROY in the grid to
2353     unsubscribe all subscribers.
2354     (LayerTableFrame.OnDestroy): Do not unsubscribe any messages from
2355     self.grid since it may already have been destroyed.
2356     Fixes RT #2256
2357    
2358 bh 2031 2003-12-19 Bernhard Herzog <[email protected]>
2359    
2360     * po/fr.po, po/es.po: Updated translations from Daniel Calvelo
2361    
2362 bh 2028 2003-12-16 Bernhard Herzog <[email protected]>
2363 silke 2029
2364     * debian/bitmappath.patch, debian/setup.py.patch:
2365     added to ensure compliance with FHS for debian
2366     * debian/rules, debian/changelog:
2367     added patches in rules to ensure compliance with FHS for debian
2368 bh 2028
2369 silke 2029 2003-12-16 Bernhard Herzog <[email protected]>
2370    
2371 bh 2028 * po/Makefile (mo): Make the output a bit nicer so that it prints
2372     statistics about the translations. Add a comment how produce even
2373     nicer statistics with sed.
2374    
2375 frank 2026 2003-12-09 Frank Koormann <[email protected]>
2376    
2377     * Resources/Projections/defaults.proj:
2378     French projection sample with correct accents (UNICODE).
2379    
2380 bh 2025 2003-12-05 Bernhard Herzog <[email protected]>
2381    
2382     * MANIFEST.in: Add the devtools directory
2383    
2384     * setup.py (setup call): Use license instead of licence. This
2385     silences a deprecation warning on Python 2.3
2386    
2387 frank 2022 2003-12-05 Frank Koormann <[email protected]>
2388    
2389 frank 2023 Documentation synced with 1.0rc1
2390    
2391     * Doc/manual/thuban-manual.xml:
2392     Minor formatting changes and references to database layers .
2393     Introduction.Internationalization: New section on i18n.
2394     MapManagement.AddingandRemovingLayers: Added item on database layers.
2395     MapManagement.TheLegend: Added section and screenshot on popup menu.
2396     ProjectionManagement: Updated screenshot and sentence on EPSG.
2397     Appendix.SupportedDataSources: Added PostGIS.
2398     Appendix.WorkingwithPostGIS: New section.
2399    
2400     * Doc/manual/images/6_projection.png: Updated screenshot including
2401     EPSG checkboxes.
2402    
2403     * Doc/manual/images/3_5_popup_menu.png: New, popup menu screenshot.
2404    
2405     * Doc/manual/images/app_postgis_add_layer.png,
2406     Doc/manual/images/app_postgis_db_add.png,
2407     Doc/manual/images/app_postgis_db_management.png:
2408     New screenshots focussing on database layers
2409    
2410     2003-12-05 Frank Koormann <[email protected]>
2411    
2412 frank 2022 * Thuban/UI/projdialog.py (load_user_proj): If user.proj is missing
2413     write warning to stderr instead of rising a warning dialog
2414    
2415 bh 2016 2003-12-03 Bernhard Herzog <[email protected]>
2416    
2417 bh 2021 Fix for RT #2243
2418    
2419 bh 2020 * Thuban/UI/mainwindow.py (MainWindow.has_selected_shape_layer):
2420     New. Like has_selected_layer but for shape layers only
2421     (_has_selected_shape_layer): New. Like _has_selected_layer but for
2422     shape layers only
2423     (layer_show_table command, layer_jointable command): Use these
2424     commands should only be available for shape layers
2425    
2426     2003-12-03 Bernhard Herzog <[email protected]>
2427    
2428 bh 2018 * Thuban/UI/mainwindow.py (MainWindow.Unsubscribe): Deal with
2429     publishers that are wx objects and may have been destroyed by wx
2430     already. Fixes RT #2242.
2431    
2432     2003-12-03 Bernhard Herzog <[email protected]>
2433    
2434 bh 2016 * po/ru.po: Updates from Alex Shevlakov
2435    
2436 silke 2013 2003-12-03 Silke Reimer <silkeintevation.de>
2437    
2438     * debian/control, debian/changelog: Added gdal-support to
2439     debian package, updated to new thuban version
2440    
2441    
2442 bh 2012 2003-12-03 Bernhard Herzog <[email protected]>
2443    
2444     * Thuban/Lib/version.py: New. Module for version number
2445     manipulations. The version of make_tuple here also deals better
2446     with more unusual version number strings, such as e.g.
2447     "1.2+cvs20031111"
2448    
2449     * Thuban/version.py (make_tuple): Removed. It's now in
2450     Thuban.Lib.version. Use that implementation instead.
2451    
2452     * test/test_lib_version.py: New. Tests for Thuban/Lib/version.py
2453    
2454 bh 2005 2003-12-02 Bernhard Herzog <[email protected]>
2455    
2456 bh 2010 * MANIFEST.in: Add debian files
2457    
2458 bh 2008 * setup.py (setup call): Add packages for the Extensions so that
2459     they're installed too
2460     (data_files): Add READMEs and sample data from some Extensions
2461    
2462     * NEWS: Add note about the extensions in binary packages
2463    
2464     2003-12-02 Bernhard Herzog <[email protected]>
2465    
2466 bh 2005 * Thuban/Model/save.py (SessionSaver.write_session): Save files
2467     with the thuban-1.0rc1
2468    
2469     * Thuban/Model/load.py (SessionLoader.__init__): Recognize the
2470     thuban-1.0rc1 namespace too
2471    
2472     * test/test_save.py (SaveSessionTest.dtd)
2473     (SaveSessionTest.testEmptySession)
2474     (SaveSessionTest.testSingleLayer)
2475     (SaveSessionTest.testLayerProjection)
2476     (SaveSessionTest.testRasterLayer)
2477     (SaveSessionTest.testClassifiedLayer)
2478     (SaveSessionTest.test_dbf_table)
2479     (SaveSessionTest.test_joined_table)
2480     (SaveSessionTest.test_save_postgis): Update to thuban-1.0rc1
2481     namespace
2482    
2483     * test/test_load.py (LoadSessionTest.dtd): Update to thuban-1.0rc1
2484     namespace
2485     (TestSingleLayer.file_contents)
2486     (TestNonAsciiColumnName.file_contents)
2487     (TestLayerVisibility.file_contents)
2488     (TestClassification.file_contents, TestLabels.file_contents)
2489     (TestLayerProjection.file_contents)
2490     (TestRasterLayer.file_contents, TestJoinedTable.file_contents)
2491     (TestPostGISLayer.file_contents)
2492     (TestPostGISLayerPassword.file_contents)
2493     (TestLoadError.file_contents, TestLoadError.test): Update to
2494     thuban-1.0rc1 namespace
2495    
2496 bh 1996 2003-12-01 Bernhard Herzog <[email protected]>
2497    
2498 bh 2003 * setup.py (proj4_prefix, wx_prefix, gdal_prefix): Fix these for
2499     nt to better match Intevation's current w32 setup
2500    
2501 bh 2001 * HOWTO-Release: Add note about updating MANIFEST.in
2502    
2503     * MANIFEST.in: Add the Extensions
2504    
2505 bh 1998 * NEWS: Update for 1.0rc1
2506    
2507     2003-12-01 Bernhard Herzog <[email protected]>
2508    
2509 bh 1996 * Thuban/UI/mainwindow.py (MainWindow.AddLayer): Change the wild
2510     cards for the dialog so that shapefiles ending in all uppercase
2511     SHP are listed too
2512    
2513 bh 1988 2003-11-28 Bernhard Herzog <[email protected]>
2514    
2515 bh 1996 * Thuban/version.py (longversion): Update to 1.0rc1
2516    
2517     * setup.py (setup call): Update version to 1.0rc1. Use the
2518     [email protected] email address as author email instead of my
2519     personal one.
2520    
2521     2003-11-28 Bernhard Herzog <[email protected]>
2522    
2523 bh 1992 * po/de.po: Update german translation.
2524    
2525     2003-11-28 Bernhard Herzog <[email protected]>
2526    
2527 bh 1990 Unify the filenames stored in .thuban files so that the .thuban
2528     files are more platform independend
2529    
2530     * Thuban/Model/save.py (unify_filename): New. Unify filenames so
2531     that they can be used on both windows and unix
2532     (SessionSaver.prepare_filename): New. Handle all filename
2533     transformations for filenames stored in the thuban file
2534     (SessionSaver.write_data_containers, SessionSaver.write_layer):
2535     Use prepare_filename
2536    
2537     * test/test_save.py (SaveSessionTest.testSingleLayer)
2538     (SaveSessionTest.testLayerProjection)
2539     (SaveSessionTest.testRasterLayer)
2540     (SaveSessionTest.testClassifiedLayer)
2541     (SaveSessionTest.test_dbf_table)
2542     (SaveSessionTest.test_joined_table): Filenames are always stored
2543     with slashes on all currently supported platforms so adapt all
2544     tests to this
2545    
2546     * test/test_load.py (LoadSessionTest.filenames): With the new
2547     filename scheme the filenames in the tests should be
2548     understandable on all currently supported platforms so we turn
2549     this into an empty list because we don't have to normalize them
2550     anymore
2551    
2552     2003-11-28 Bernhard Herzog <[email protected]>
2553    
2554 bh 1988 * test/test_layer.py (TestLayer.test_arc_layer_with_projection):
2555     Add the ellipsoid to the projection since some Proj versions
2556     complain if it's missing.
2557    
2558 bh 1984 2003-11-27 Bernhard Herzog <[email protected]>
2559    
2560     Corect some bounding box projection problems
2561    
2562     * Thuban/Model/proj.py (Projection.InverseBBox): New. Inverse
2563     version of ForwardBBox
2564     (Projection._transform_bbox): New. common implementation of
2565     ForwardBBox and InverseBBox
2566     (Projection.ForwardBBox): Use _transform_bbox.
2567    
2568     * test/test_proj.py (TestProjection.test): Add test for
2569     InverseBBox
2570    
2571     * Thuban/Model/layer.py (Layer.LatLongBoundingBox)
2572     (Layer.ShapesBoundingBox, RasterLayer.LatLongBoundingBox): Use the
2573     new InverseBBox method to determine the unprojected bounding box
2574     (Layer.ShapesInRegion): Use the ForwardBBox method to project the
2575     bbox.
2576    
2577     * test/test_layer.py (TestLayer.test_point_layer_with_projection):
2578     Removed.
2579     (TestLayer.test_arc_layer_with_projection): New. This test is
2580     better able to test whether bounding boxes are projected correctly
2581     than test_point_layer_with_projection
2582    
2583 bh 1986 * Thuban/UI/viewport.py (ViewPort.map_projection_changed): Use
2584     InverseBBox to unproject bboxes
2585    
2586 bh 1975 2003-11-25 Bernhard Herzog <[email protected]>
2587    
2588 bh 1981 * Thuban/UI/about.py (About.__init__): Make sure we have ASCII
2589     source code.
2590    
2591     2003-11-25 Bernhard Herzog <[email protected]>
2592    
2593 bh 1979 * Thuban/Model/layer.py (Layer.__getattr__): Removed. It was only
2594     there for backwards compatibility and all code relying on that
2595     should have been updated by now.
2596    
2597     2003-11-25 Bernhard Herzog <[email protected]>
2598    
2599 bh 1977 * test/test_load.py (TestClassification.test): Add the missing
2600     round trip test.
2601     (TestClassification.file_contents): Update to the newest file
2602     format
2603    
2604     2003-11-25 Bernhard Herzog <[email protected]>
2605    
2606 bh 1975 Add very experimental (and possibly dangerous) extension to draw
2607     polygons:
2608    
2609     * Extensions/drawshape/README: New. Brief installation
2610     instructions
2611    
2612     * Extensions/drawshape/drawshape.py: New. Implementation of the
2613     drawshape extensions
2614    
2615     * Extensions/drawshape/patch.diff: Patch to apply before the
2616     extension can be used.
2617    
2618 bh 1971 2003-11-24 Bernhard Herzog <[email protected]>
2619    
2620 bh 1973 * Thuban/Model/data.py (ShapefileStore._open_shapefile)
2621     (ShapefileStore.__init__): Factor opening the shapefile into a
2622     separate method (the new _open_shapefile). This makes the code a
2623     bit more readable but the real reason is that it makes some evil
2624     hacks easier. :-)
2625    
2626     2003-11-24 Bernhard Herzog <[email protected]>
2627    
2628 bh 1971 * Thuban/Model/load.py (SessionLoader.check_attrs): If no
2629     converter is specified for an attribute assume it's a string
2630     containing only Latin1 characters. Update doc-string accordingly.
2631     This change should fix many places where unicode objects might
2632     accidentally enter Thuban.
2633    
2634     * test/test_load.py (TestNonAsciiColumnName): New test to check
2635     what happens with column names in DBF files that contain non-ascii
2636     characters
2637    
2638 bh 1969 2003-11-21 Bernhard Herzog <[email protected]>
2639    
2640     Enable the experimental attribute editing again and introduce a
2641     command line switch to actually activate it
2642    
2643     * Thuban/UI/main.py (options): New. Container for options set on
2644     the commmand line
2645     (main): Add the --enable-attribute-editing flag.
2646    
2647     * Thuban/UI/identifyview.py (IdentifyView.__init__): If attribute
2648     editing is enabled use the grid ctrl which allows editing of the
2649     values
2650    
2651     * Thuban/Model/transientdb.py (AutoTransientTable.write_record):
2652     New. Just delegate this to the underlying table.
2653    
2654 bh 1967 2003-11-20 Bernhard Herzog <[email protected]>
2655    
2656     * test/test_proj.py (ProjFileReadTests.test_read_unreadable_file):
2657     Skip this test if run under non-posix systems since it only works
2658     there
2659    
2660 bh 1960 2003-11-19 Bernhard Herzog <[email protected]>
2661    
2662 bh 1965 * Thuban/Model/resource.py: Rework the way gdal support is
2663     determined so that we can give a reason in the about why gdal is
2664     not supported.
2665     (gdal_support_status): New. Variable holding a string with the
2666     reason for no gdal support
2667    
2668     * Thuban/UI/about.py (About.__init__): Add the reason why gdal is
2669     not supported to the message
2670    
2671     2003-11-19 Bernhard Herzog <[email protected]>
2672    
2673 bh 1963 Remove the old table interface and its test cases
2674    
2675     * Thuban/Model/table.py (OldTableInterfaceMixin): Removed.
2676     (DBFTable, MemoryTable): Do not derive from OldTableInterfaceMixin
2677     anymore
2678    
2679     * Thuban/Model/transientdb.py (TransientTableBase)
2680     (AutoTransientTable): Do not derive from OldTableInterfaceMixin
2681     anymore
2682    
2683     * test/test_table.py: Removed since the old interface it tests is
2684     gone.
2685    
2686     * test/runtests.py (main): The old table interface is gone and
2687     with it the deprecation warnings so remove the code that turns
2688     these warnings into errors
2689    
2690     2003-11-19 Bernhard Herzog <[email protected]>
2691    
2692 bh 1960 * test/test_table.py: Revert to revision 1.5 again. Changing the
2693     tests to use the new table interface is completely wrong since the
2694     whole purpose of the tests in this module is to test the old
2695     interface.
2696    
2697 bh 1954 2003-11-18 Bernhard Herzog <[email protected]>
2698    
2699 bh 1958 * Thuban/Model/postgisdb.py (PostGISConnection.MatchesParameters):
2700     New. Test whether the connection matches a set of connection
2701     parameters
2702    
2703     * Thuban/UI/dbdialog.py (DBFrame.conns_changed): Fix doc-string
2704     (DBFrame.OnAdd): Use the new MatchesParameters method when looking
2705     for existing connections with the same parameters and break out of
2706     the loop correctly.
2707    
2708     * test/test_postgis_db.py (TestBriefDescription)
2709     (TestPostGISSimple.test_brief_description): Rename
2710     TestBriefDescription to TestPostGISSimple and the test method to
2711     test_brief_description so that we can add more test methods.
2712     (TestPostGISSimple.test_matches_parameters): New. Test the new
2713     MatchesParameters method
2714    
2715     2003-11-18 Bernhard Herzog <[email protected]>
2716    
2717 bh 1960 * Thuban/Lib/connector.py (Publisher): Introduce a new flag,
2718 bh 1954 _was_destroyed, to indicate whether an publisher instance has
2719     already been destroyed.
2720     (Publisher.Unsubscribe): Only disconnect if the publisher has not
2721     been destroyed yet.
2722     (Publisher.Destroy): Set the _was_destroyed flag to true.
2723    
2724     * test/test_connector.py
2725     (TestPublisher.test_unsubscribe_after_destroy): New. Test that
2726     calling Unsubscribe after Destroy doesn't raise an exception
2727    
2728 bh 1951 2003-11-14 Bernhard Herzog <[email protected]>
2729    
2730     * Thuban/UI/identifyview.py (IdentifyView.selected_shape): Fix
2731     typo in doc-string
2732    
2733 bh 1949 2003-11-13 Bernhard Herzog <[email protected]>
2734    
2735     Quote table and column names properly for postgis.
2736    
2737     * Thuban/Model/postgisdb.py (quote_identifier): New. Function to
2738     quote an identifier for use in an sql statement
2739     (PostGISColumn.__init__): Add the quoted_name attribute
2740     (PostGISTable.__init__): New instance variable quoted_tablename
2741     (PostGISTable._fetch_table_information): Use the quoted table
2742     name. New isntance variable quoted_geo_col with a quoted version
2743     of geometry_column
2744     (PostGISTable.NumRows, PostGISTable.RowIdToOrdinal)
2745     (PostGISTable.RowOrdinalToId): Use the quoted table name
2746     (PostGISTable.ReadValue, PostGISTable.ValueRange)
2747     (PostGISTable.UniqueValues, PostGISTable.SimpleQuery)
2748     (PostGISShapeStore.BoundingBox, PostGISShapeStore.Shape)
2749     (PostGISShapeStore.AllShapes, PostGISShapeStore.ShapesInRegion):
2750     Use quoted table and column names
2751    
2752     * test/test_postgis_db.py (TestPostGISSpecialCases)
2753     (TestPostGISIgnoredColumns): Rename the class to
2754     TestPostGISSpecialCases because that better describes the new
2755     cases
2756     (TestPostGISSpecialCases.test_unsupported_types)
2757     (TestPostGISSpecialCases.test): Rename the method to
2758     test_unsupported_types because we need a more descriptive name now
2759     that there are more methods
2760     (TestPostGISSpecialCases.test_table_name_quoting)
2761     (TestPostGISSpecialCases.test_column_name_quoting)
2762     (TestPostGISSpecialCases.test_shapestore_name_quoting): New test
2763     cases to test quoting of table and column names in PostGISTable
2764     and PostGISShapeStore
2765    
2766     * test/postgissupport.py
2767     (skip_if_addgeometrycolumn_does_not_use_quote_ident): New. Skip if
2768     AddGeometryColumn desn't support table or column names with sapces
2769     or double quotes
2770    
2771 jan 1945 2003-11-12 Jan-Oliver Wagner <[email protected]>
2772    
2773     * Extensions/wms/__init__.py: New: Init to make this
2774     directory a package.
2775    
2776     * Extensions/wms/wms.py: New: Provide layers via OGC WMS.
2777    
2778 bh 1932 2003-11-11 Bernhard Herzog <[email protected]>
2779    
2780 bh 1942 * Thuban/Model/resource.py (EPSG_DEPRECATED_PROJ_FILE): New.
2781     Constant for the file woth deprecated epsg projections
2782     (get_system_proj_file): Update doc-string
2783    
2784     * Thuban/UI/projdialog.py (ProjFrame.build_dialog): Add a space
2785     above the EPS widgets, introduce a check box for the deprecated
2786     eps projections and a label for the epsg widgets
2787     (ProjFrame._OnShowEPSG): Handle the deprecated EPSG projections
2788     too
2789    
2790     2003-11-11 Bernhard Herzog <[email protected]>
2791    
2792 bh 1939 Avoid warnings when run under Python 2.3
2793    
2794     * Thuban/UI/baserenderer.py (BaseRenderer.draw_point_shape)
2795     (BaseRenderer.draw_label_layer): Coordinates must be ints.
2796    
2797     * Thuban/UI/renderer.py (MapRenderer.make_point): Turn this into a
2798     real method so that we can convert to int.
2799     (MapRenderer.label_font): The font size mist be an int.
2800    
2801     * Thuban/UI/common.py (Color2wxColour): The color values must be
2802     ints. Also, remove the unnecessary asserts.
2803    
2804     * test/test_load_0_8.py (TestUnicodeStrings.file_contents)
2805     (TestUnicodeStrings.test): Python source code should not contain
2806     non-ascii characters unless an encoding is specified in the file.
2807     Therefore use \x escapes in the string literals for non-ascii
2808     characters.
2809    
2810     2003-11-11 Bernhard Herzog <[email protected]>
2811    
2812 bh 1934 * Thuban/Model/resource.py (get_system_proj_file): Add a filename
2813     parameter so that this function can be used for all proj files in
2814     Resource/Projections
2815     (DEFAULT_PROJ_FILE, EPSG_PROJ_FILE): New. Predefined filenames for
2816     get_system_proj_file
2817    
2818     * Thuban/UI/projdialog.py (ProjFrame.__init__): Instead of one
2819     ProjFile self.__sysProjFile use a dictionary of system ProjFile
2820     objects self._sys_proj_files
2821     (ProjFrame.build_dialog): Adapt to the new changes in the
2822     ProjectionList constructor. Add a check button to toggle whether
2823     EPSG projections are shown
2824     (ProjFrame._OnShowEPSG): New. Handler for the epsg check button
2825     events.
2826     (ProjFrame.load_user_proj, ProjFrame.load_system_proj): Only show
2827     the busy cursor if the files have not yet been loaded by the
2828     dialog.
2829     (ProjFrame.load_system_proj): Add a parameter for the name of the
2830     proj file. Maintain the dictionary of system projections
2831     self._sys_proj_files
2832    
2833     * Thuban/UI/projlist.py (ProjectionList): Merge the system_projs,
2834     user_projs parameters into one parameter proj_files which is a
2835     list of proj files.
2836     (ProjectionList._subscribe_proj_files)
2837     (ProjectionList._unsubscribe_proj_files): New. Move
2838     subscription/unsubscription of projfile messages to separate
2839     methods
2840     (ProjectionList.Destroy): The unsubscribe is now done in
2841     _unsubscribe_proj_files
2842     (ProjectionList.update_projections): We now have a list of proj
2843     file objects
2844     (ProjectionList.SetProjFiles): New method to set a new list of
2845     proj file objects
2846    
2847     * test/test_proj.py (ProjFileReadTests.test_get_system_proj_file):
2848     Specify explicitly which system proj file to load.
2849    
2850     2003-11-11 Bernhard Herzog <[email protected]>
2851    
2852 bh 1932 * Thuban/Model/load.py (SessionLoader.Destroy): New. Clear all
2853     instance variables to cut cyclic references. The GC would have
2854     collected the loader eventually but it can happen that it doesn't
2855     run at all until thuban is closed (2.3 but not 2.2 tries a bit
2856     harder and forces a collection when the interpreter terminates)
2857     (load_session): Call the handler's Destroy method to make sure
2858     that it gets garbage collected early. Otherwise it will be
2859     collected very late if at all and it holds some references to e.g.
2860     shapestores and the session which can lead to leaks (of e.g. the
2861     temporary files)
2862    
2863     * test/test_load.py (TestSingleLayer.test_leak): New. test for the
2864     resource leak in load_session
2865    
2866 bh 1929 2003-11-10 Bernhard Herzog <[email protected]>
2867    
2868     * Thuban/UI/baserenderer.py: Add a way to specify how layers in
2869     extensions are to be rendered.
2870     (_renderer_extensions): New. List with renderer for layers in
2871     extensions
2872     (add_renderer_extension): New. Add a renderer extension
2873     (init_renderer_extensions): New. Init the renderer extensions
2874     (BaseRenderer.render_map_incrementally): Search
2875     _renderer_extensions for how to draw unknown layer types
2876     (BaseRenderer.draw_raster_data): Add format parameter so that
2877     formats other than BMP can be drawn
2878     (BaseRenderer.draw_raster_layer): Pass an explicit format to
2879     draw_raster_data
2880    
2881     * Thuban/UI/renderer.py (raster_format_map): New. Mapping form the
2882     strings of the format parameter of draw_raster_data method to wx
2883     constants
2884     (MapRenderer.draw_raster_data): Add the format parameter and use
2885     raster_format_map to map it to the right wxwindows constant for
2886     wxImageFromStream
2887    
2888     * test/test_baserenderer.py (SimpleRenderer.draw_raster_data): Add
2889     the format parameter and record it
2890     (TestBaseRenderer.test_raster_no_projection): check the format
2891     paramter of the draw_raster_data method
2892     (TestBaseRenderer.test_renderer_extension): New. Test the renderer
2893     extension facility
2894    
2895 bh 1925 2003-11-07 Bernhard Herzog <[email protected]>
2896    
2897     Tweak the usage of the sqlite database to make common use cases
2898     more responsive. In most cases copying the data to the sqlite
2899     database takes so long that using sqlite doesn't have enough
2900     advantages.
2901    
2902     * Thuban/Model/transientdb.py (TransientTableBase.ValueRange): Add
2903     comments about performance and query the min and max in separate
2904     statements because only that way will indexes be used.
2905     (TransientTableBase.UniqueValues): Add some comments about
2906     performance.
2907     (AutoTransientTable.ValueRange, AutoTransientTable.UniqueValues):
2908     Do not copy the data to the transient DB but use the transient
2909     copy if it exists. See the new comments for the performance trade
2910     offs
2911    
2912     * test/test_transientdb.py
2913     (TestTransientTable.test_auto_transient_table): Make sure that the
2914     data is copied to the transient database at some point.
2915    
2916 bh 1913 2003-11-03 Bernhard Herzog <[email protected]>
2917    
2918 bh 1922 * Thuban/Model/data.py (ShapefileStore.ShapesInRegion): Bind some
2919     globals to locals so that it's a bit faster
2920    
2921     2003-11-03 Bernhard Herzog <[email protected]>
2922    
2923 bh 1920 * Thuban/UI/baserenderer.py
2924     (BaseRenderer.draw_shape_layer_incrementally): Use the ReadValue
2925     method. ReadValue is faster than ReadRowAsDict since it only reads
2926     one cell especially now that the dbf file objects actually
2927     implement it.
2928    
2929     * Thuban/Model/table.py (DBFTable.ReadValue): Use the new
2930     read_attribute method of the dbf objects
2931    
2932     2003-11-03 Bernhard Herzog <[email protected]>
2933    
2934 bh 1916 * Extensions/profiling/profiling.py (popup_dialog_box): New config
2935     variable to indicate whether the result should be shown in a
2936     dialog box
2937     (profile_screen_renderer, time_screen_renderer): Only show a
2938     dialog box if popup_dialog_box is true.
2939     (profile_screen_renderer): Flush stdout after the printing the
2940     first part of the "profiling..." message
2941    
2942     * Thuban/UI/baserenderer.py
2943     (BaseRenderer.draw_shape_layer_incrementally): Cache the pens and
2944     brushes for the groups so that they're not created over and over
2945     again
2946    
2947 bh 1913 * Thuban/Model/classification.py (Classification.__getattr__)
2948     (Classification._compile_classification)
2949     (Classification._clear_compiled_classification): New. Methods to
2950     manage a 'compiled' representation of the classification groups
2951     which is created on demand
2952     (Classification.InsertGroup, Classification.RemoveGroup)
2953     (Classification.ReplaceGroup): reset the compiled representation
2954     (Classification.FindGroup): Use the compiled representation to
2955     find the matching group
2956     (ClassGroupRange.GetRangeTuple): New. Return the range as a tuple
2957    
2958 bh 1904 2003-10-31 Bernhard Herzog <[email protected]>
2959    
2960 bh 1911 * Thuban/Model/classification.py (Classification.SetDefaultGroup):
2961     Send a CLASS_CHANGED message
2962     (Classification.RemoveGroup): Send a CLASS_CHANGED message and do
2963     not return the removed group since it wasn't used.
2964    
2965     * test/test_classification.py
2966     (TestClassification.test_set_default_group): New. Test the
2967     SetDefaultGroup method
2968     (TestClassification.test_insert_group): New. Test the InsertGroup
2969     method
2970     (TestClassification.test_remove_group): New. Test the RemoveGroup
2971     method
2972     (TestClassification.test_replace_group): New. Test the
2973     ReplaceGroup method
2974    
2975     2003-10-31 Bernhard Herzog <[email protected]>
2976    
2977 bh 1908 * test/test_classification.py (TestClassification.setUp):
2978     Subscribe to the CLASS_CHANGED messages
2979     (TestClassification.tearDown): New. Destroy the classification
2980     properly
2981     (TestClassification.test_defaults): Add tests for the default line
2982     width and whether no messages were sent yet
2983     (TestClassification.test_set_default_properties): Add tests for
2984     messages and setting the default line width
2985     (TestClassification.test_add_singleton)
2986     (TestClassification.test_add_range)
2987     (TestClassification.test_multiple_groups): Add tests for messages
2988    
2989     2003-10-31 Bernhard Herzog <[email protected]>
2990    
2991 bh 1906 Some more refactoring in preparation for new tests:
2992    
2993     * test/test_classification.py (TestClassification.setUp): New.
2994     Instantiate the classification here. Update the test methods
2995     accordingly.
2996     (TestClassification.test_multiple_groups): Make sure that the two
2997     singletons matching 1 are considered different.
2998    
2999     2003-10-31 Bernhard Herzog <[email protected]>
3000    
3001 bh 1904 * test/test_classification.py (red, green, blue): New. These
3002     constants were used in several cases. Update the relevant methods.
3003     (TestClassification.test_defaults)
3004     (TestClassification.test_set_default_properties)
3005     (TestClassification.test_add_singleton)
3006     (TestClassification.test_add_range)
3007     (TestClassification.test_multiple_groups)
3008     (TestClassification.test_deepcopy): New. These were formerly all
3009     part of the single method test.
3010     (TestClassification.test_deepcopy): Removed.
3011     (TestClassIterator): Removed. The test case is now a method of
3012     TestClassification since it tests part of the public interface of
3013     Classification
3014     (TestClassification.test_iterator): New. Used to be
3015     TestClassIterator effectively
3016    
3017 jan 1902 2003-10-31 Jan-Oliver Wagner <[email protected]>
3018    
3019     GUIfied the functions of the profiling extension.
3020    
3021     * /Extensions/profiling/__init__.py: New: Init to make this
3022     directory a package.
3023    
3024     * Extensions/profiling/profiling.py: Moved menu entries to
3025     the Extensions menu. Applied _() for strings.
3026     (profile_screen_renderer): Catch the detailed printout and present
3027     it in a dialog.
3028 bh 1904 (time_screen_renderer): Raise a dialog to present the result instead
3029 jan 1902 of printing it to stdout.
3030    
3031 bh 1897 2003-10-31 Bernhard Herzog <[email protected]>
3032    
3033 bh 1899 * test/test_classification.py (TestClassGroupProperties)
3034     (TestClassGroup, TestClassGroupDefault, TestClassGroupRange)
3035     (TestClassGroupSingleton, TestClassIterator, TestClassification):
3036     Split TestClassification into several classes, one for each class
3037     being tested. TestClassification itself now only tests
3038     Classification. This split makes changes to the tests a bit easier
3039    
3040     2003-10-31 Bernhard Herzog <[email protected]>
3041    
3042 bh 1897 * Extensions/profiling/profiling.py: New. Extension to measure
3043     Thuban performance
3044    
3045 frank 1895 2003-10-31 Frank Koormann <[email protected]>
3046    
3047     Added two items to legend popup menu: Remove Layer and Show Layer Table
3048    
3049     * Thuban/UI/legend.py (LegendPanel._OnRemoveLayer,
3050     LegendPanel._OnShowTable): New event handlers, call the corresponding
3051     mainwindow methods.
3052     (LegendTree._OnRightClick): Added items to popup menu.
3053    
3054 bh 1894 2003-10-30 Bernhard Herzog <[email protected]>
3055    
3056     * Thuban/UI/dialogs.py (ThubanFrame.__init__): Handle
3057     EVT_WINDOW_DESTROY
3058     (ThubanFrame.OnDestroy): New. Handler for EVT_WINDOW_DESTROY. Does
3059     nothing but is convenient for the derived classes.
3060    
3061     * Thuban/UI/tableview.py
3062     (TableFrame.OnDestroy, LayerTableFrame.OnDestroy): New.
3063     Unsubscribe the messages here not in OnClose because that might
3064     get called multiple times. Fixes RT #2196
3065     (TableFrame.OnClose, LayerTableFrame.OnClose): Removed. Not needed
3066     anymore.
3067    
3068     * README: Update the minimum requirement for wxPython. Since we
3069     now use the EVT_WINDOW_DESTROY event, we need at least 2.4.0.4,
3070     the version in which that was introduced for all platforms
3071    
3072 frank 1890 2003-10-30 Frank Koormann <[email protected]>
3073    
3074     * Thuban/UI/join.py (JoinDialog.OnJoin): Wrapped the major parts of
3075     the join process in a ThubanBeginBusyCursor, ThubanEndBusyCursor
3076     frame.
3077    
3078 jan 1889 2003-10-30 Jan-Oliver Wagner <[email protected]>
3079    
3080     Improved APR import extension, added further EPSG definitions
3081     and some cleanup regarding string class.
3082    
3083     * test/test_proj.py (TestProjection.test_get_projection_units_geo):
3084     Added test for alias 'longlat'.
3085    
3086     * Resources/Projections/epsg-deprecated.proj: New. Contains
3087     deprecated EPSG definitions.
3088    
3089     * Extensions/importAPR/odb.py (ODBBaseObject.TreeInfo): Added
3090     the variable names for objects.
3091    
3092     * Extensions/importAPR/apr.py (APR_BLnSym, APR_BMkSym, APR_BShSym): New.
3093     Copied from importAPR and provided with documentation.
3094    
3095     * Extensions/importAPR/importAPR.py (APR_BLnSym, APR_BMkSym, APR_BShSym):
3096     Moved to apr.py.
3097     (APR_View): Added object ref 'ITheme'.
3098    
3099     * Thuban/Lib/fileutil.py, Thuban/UI/proj4dialog.py: Replaced string
3100     split function by corresponding use of the string class method.
3101    
3102     * Thuban/Model/xmlwriter.py: Replaced string replace function by
3103     corresponding string method.
3104    
3105 bh 1880 2003-10-29 Bernhard Herzog <[email protected]>
3106    
3107     * Thuban/UI/baserenderer.py
3108     (BaseRenderer.draw_shape_layer_incrementally): Speed up the
3109     special case of a classification that only has the default group
3110    
3111 bh 1868 2003-10-27 Bernhard Herzog <[email protected]>
3112    
3113 bh 1878 * po/fr.po, po/es.po: Updated translations from Daniel Calvelo
3114    
3115 bh 1876 * po/de.po: Update.
3116    
3117     * Thuban/UI/application.py
3118     (ThubanApplication.ShowExceptionDialog): Handle translation of the
3119     dialog message properly
3120    
3121     2003-10-27 Bernhard Herzog <[email protected]>
3122    
3123 bh 1873 Rework how localization works so that we use wx's translation
3124     functions when running Thuban as a normal application but not when
3125     we don't need any UI, such as in the test suite. See the comment
3126     in Thuban/__init__.py for details
3127    
3128     * Thuban/__init__.py (_): Add one level of indirection to make the
3129     translation handling more flexible and to make it possible to use
3130     either wx's translation services or not.
3131     (gettext_identity, translation_function_installed)
3132     (install_translation_function): New function to help with this
3133    
3134     * Thuban/UI/__init__.py: Install the wx specific translation
3135     function if it's OK to do that
3136    
3137     * test/support.py (initthuban): Install a dummy translation
3138     function so that importing Thuban.UI doesn't install a wx specific
3139     one for which would need to import wxPython
3140    
3141     2003-10-27 Bernhard Herzog <[email protected]>
3142    
3143 bh 1870 * HOWTO-Release: Source archives should be created first and the
3144     binary packages should be created from the source archives.
3145     There's an official debian package now so there's no need to test
3146     the rpm on debian anymore
3147    
3148     2003-10-27 Bernhard Herzog <[email protected]>
3149    
3150 bh 1868 Several rendering changes:
3151    
3152     - Render the selection into a separate bitmap so that only that
3153     bitmap needs to be redrawn when the selection changes
3154    
3155     - Render incrementally showing previews and allowing interaction
3156     before rendering is complete
3157    
3158     - Update the renderer interface a bit. Most parameters of
3159     RenderMap are now parameters of the constructor
3160    
3161     * Thuban/UI/baserenderer.py (BaseRenderer.__init__): Add the map
3162     and the update region as parameters. Update the doc-string
3163     (BaseRenderer.render_map_incrementally): New. Generator function
3164     to renders the map incrementally
3165     (BaseRenderer.render_map): Remove the map argument (it's now in
3166     the constructor) and simply iterate over the
3167     render_map_incrementally generator to draw the map.
3168     (BaseRenderer.draw_shape_layer_incrementally)
3169     (BaseRenderer.draw_shape_layer): Renamed to
3170     draw_shape_layer_incrementally and changed into a generator that
3171     yields True every 500 shapes. Used by render_map_incrementally to
3172     render shape layers incrementally
3173    
3174     * Thuban/UI/renderer.py (ScreenRenderer.RenderMap): Removed the
3175     map and region parameters which are now in the constructor
3176     (ScreenRenderer.RenderMapIncrementally): New. Public frontend for
3177     the inherited render_map_incrementally.
3178     (BaseRenderer.draw_shape_layer): Removed.
3179     (ScreenRenderer.draw_selection_incrementally): New. The selection
3180     drawing part of the removed draw_shape_layer as a generator
3181     (ScreenRenderer.layer_shapes): Update because of the region
3182     parameter change
3183     (ExportRenderer.__init__): New. Extend the inherited constructor
3184     with the destination region for the drawing
3185     (ExportRenderer.RenderMap): Removed the map and region parameters
3186     which are now in the constructor
3187    
3188     * Thuban/UI/view.py (MapCanvas.PreviewBitmap): New. Return a
3189     bitmap suitable for a preview in a tool
3190     (CanvasPanTool.MouseMove): Use the PreviewBitmap method to get the
3191     bitmap
3192     (MapPrintout.draw_on_dc): Adapt to new renderer interface
3193     (MapCanvas.OnPaint): Handle drawing the selection bitmap if it
3194     exists
3195     (MapCanvas.OnIdle): Update the logic to deal with incremental
3196     rendering and the selection bitmap
3197     (MapCanvas._do_redraw): Handle the instantiation of the render
3198     iterator and the redraws during rendering
3199     (MapCanvas._render_iterator): New. Generator to incrementally
3200     redraw both bitmaps
3201     (MapCanvas.Export): Adapt to new renderer interface.
3202     (MapCanvas.full_redraw): Reset the selection bitmap and the
3203     renderer iterator too
3204     (MapCanvas.redraw_selection): New. Force a redraw of the selection
3205     bitmap
3206     (MapCanvas.shape_selected): Only redraw the selection bitmap
3207    
3208     * test/test_baserenderer.py
3209     (TestBaseRenderer.test_polygon_no_projection)
3210     (TestBaseRenderer.test_raster_no_projection)
3211     (TestBaseRenderer.test_point_map_projection)
3212     (TestBaseRenderer.test_point_layer_and_map_projection)
3213     (TestBaseRenderer.test_point_layer_projection)
3214     (TestBaseRenderer.test_point_with_classification): Adapt to new
3215     renderer interface
3216    
3217 bh 1865 2003-10-24 Bernhard Herzog <[email protected]>
3218    
3219     * libraries/thuban/wxproj.cpp (draw_polygon_shape)
3220     (point_in_polygon_shape, shape_centroid): Raise an exception if
3221     the shape can't be read. Previously invalid shape ids would lead
3222     to a segfault.
3223    
3224     * test/test_wxproj.py (TestShapeCentroid.test_invalid_shape_id):
3225     New. test whether an exception is raised for invalid shape ids
3226    
3227 jan 1857 2003-10-24 Jan-Oliver Wagner <[email protected]>
3228    
3229 jan 1862 * Thuban/Model/proj.py (Projection.GetProjectedUnits): Added 'longlat'
3230     as alias for 'latlong'.
3231    
3232     * Thuban/UI/projdialog.py (ProjFrame.__init__): Added 'longlat'
3233     as alias for 'latlong'.
3234    
3235     2003-10-24 Jan-Oliver Wagner <[email protected]>
3236    
3237 jan 1859 * Thuban/UI/projdialog.py (ProjFrame.proj_selection_changed): Set
3238     the projection even for the UnknownPanel.
3239     (UnknownProjPanel.__init__): Define the text and create the textctrl
3240     widget.
3241     (UnknownProjPanel._DoLayout): Replaced static text widget by the
3242     textctrl created in __init__.
3243     (UnknownProjPanel.SetProjection): Set the text for the text ctrl
3244     including the parameters of the projection.
3245    
3246     2003-10-24 Jan-Oliver Wagner <[email protected]>
3247    
3248 jan 1857 * Resources/Projections/epsg.proj: New. This is a list of
3249     EPSG codes with parameters for proj. The list has been
3250     generated using devtools/create_epsg.py based on the
3251     file nad/epsg of the proj 4.4.7 package. Four projection
3252     definitions have been deleted as they are not accepted by proj:
3253     "CH1903+ / LV95", "Bern 1898 (Bern) / LV03C", "CH1903 / LV03"
3254     and "HD72 / EOV".
3255    
3256 bh 1855 2003-10-22 Bernhard Herzog <[email protected]>
3257    
3258     Some more tweaks to the projection dialog which should fix RT
3259     #1886.
3260    
3261     * Thuban/UI/projlist.py (ProjectionList.Destroy): Unsubscribe from
3262     the ProjFile's messages and call the base class methods correctly
3263     (ProjectionList.SelectProjection): Set the wxLIST_STATE_FOCUSED
3264     flag on the newly selected item too. Otherwise some other item is
3265     focused and the first time the focus is moved with the keyboard
3266     the selection moves in unexpected ways.
3267    
3268     * Thuban/UI/projdialog.py (ProjFrame.__init__): Do not set the
3269     focus on the OK button, only on the projection list. That way the
3270     list really has the focus initially
3271     (ProjFrame.OnClose): Call the projection list's Destroy method to
3272     make it unsubscribe all messages
3273    
3274 bh 1840 2003-10-21 Bernhard Herzog <[email protected]>
3275    
3276 bh 1852 Rework the projection dialog to fix a few bugs, including RT 2166
3277     and most of 2168
3278    
3279     * Thuban/UI/projlist.py: New. The class ProjectionList is a
3280     special wxListCtrl to show a list of projections in a more MVC
3281     fashion
3282    
3283     * Thuban/UI/projdialog.py (ProjFrame): Substantial changes
3284     throughout the class. The main change is to use the ProjectionList
3285     class instead of a normal wxListBox. Also, add an explicit
3286     "Unknown" projection to the projection choice control.
3287     (ProjPanel.__init__): Add an "unknown" ellipsoid
3288     (TMPanel.__init__, LCCPanel.__init__): Tweak the order of
3289     instantiation of the panel's controls to make the tab-order more
3290     natural
3291    
3292     2003-10-21 Bernhard Herzog <[email protected]>
3293    
3294 bh 1849 * test/test_load.py (TestSingleLayer.file_contents)
3295     (TestSingleLayer.test): Add non-ascii characters to the titles of
3296     session, map and layer. This is effectively a port of the
3297     TestUnicodeStrings test in test_load_0_8.py which for some reason
3298     was only added there.
3299    
3300     * test/test_load_0_9.py (TestSingleLayer.file_contents)
3301     (TestSingleLayer.test): Same as in test_load.py: add non-ascii
3302     characters to the titles of session, map and layer,.
3303    
3304     2003-10-21 Bernhard Herzog <[email protected]>
3305    
3306 bh 1847 Add EPSG projection handling to .thuban files
3307    
3308     * test/test_save.py (SaveSessionTest.dtd)
3309     (SaveSessionTest.testEmptySession)
3310     (SaveSessionTest.testLayerProjection)
3311     (SaveSessionTest.testRasterLayer)
3312     (SaveSessionTest.testClassifiedLayer)
3313     (SaveSessionTest.test_dbf_table)
3314     (SaveSessionTest.test_joined_table)
3315     (SaveSessionTest.test_save_postgis): Update to 1.0-dev namespace
3316     (SaveSessionTest.testSingleLayer): Update to 1.0-dev namespace and
3317     use a and epsg projection to test saving them
3318    
3319     * test/test_load.py (LoadSessionTest.dtd): Update to 1.0-dev
3320     namespace
3321     (TestLayerVisibility.file_contents, TestLabels.file_contents)
3322     (TestLayerProjection.file_contents)
3323     (TestRasterLayer.file_contents, TestJoinedTable.file_contents)
3324     (TestPostGISLayer.file_contents)
3325     (TestPostGISLayerPassword.file_contents)
3326     (TestLoadError.file_contents, TestLoadError.test): Update to use
3327     1.0-dev namespace
3328     (TestSingleLayer.file_contents, TestSingleLayer.test): Update to
3329     use 1.0-dev namespace and use an EPSG projection to test whether
3330     loading it works
3331    
3332     * test/test_load_0_9.py: New. Effectively a copy of test_load.py
3333     as of Thuban 0.9. These are now tests to determine whether Thuban
3334     can still read files generated by Thuban 0.9
3335    
3336     * Thuban/Model/save.py (SessionSaver.write)
3337     (SessionSaver.write_session): Use the 1.0 dtd and 1.0-dev
3338     namespace
3339     (SessionSaver.write_projection): Write the projection's epsg
3340     attribute
3341    
3342     * Thuban/Model/load.py (SessionLoader.__init__): Also accept the
3343     thuban-1.0-dev.dtd namespace
3344     (SessionLoader.check_attrs): Allow a callable object as conversion
3345     too
3346     (SessionLoader.start_projection, SessionLoader.end_projection)
3347     (SessionLoader.start_parameter): Handle the epsg attribute and
3348     rename a few instance variables to lower case
3349    
3350     * Resources/XML/thuban-1.0.dtd: New. Only difference to
3351     thuban-0.9.dtd is the epsg attribute for projections.
3352    
3353     2003-10-21 Bernhard Herzog <[email protected]>
3354    
3355 bh 1840 * test/runtests.py (main): Let the user specify which tests to run
3356     on the command line
3357    
3358     * test/support.py (ThubanTestResult.getDescription): Override to
3359     give a better short description. The description can be used as a
3360     parameter to run_tests to run that particular test in isolation.
3361    
3362 frank 1837 2003-10-21 Frank Koormann <[email protected]>
3363    
3364     Popup menu for legend. Scheduled for the 1.2 release this was too
3365     simple to implement: The popup menu is bound to the legend tree, while
3366     the events are hanlded by its anchestor, the legend panel. This
3367     allows reuse of all the event handlers already implemented for the
3368     legend toolbar buttons.
3369    
3370     * Thuban/UI/legend.py (LegendPanel.__init__): EVT_MENU macros
3371     to add handlers for the events issued by the popup menu.
3372     (LegendPanel._OnToggleVisibility): Handler for toggling layer
3373     visibility event
3374     (LegendPanel._OnProjection): Handler for layer projection event.
3375     (LegendTree.__init__): Added EVT_TREE_ITEM_RIGHT_CLICK
3376     (LegendTree._OnRightClick): Event handler for right click, select item
3377     and pop up menu.
3378     (LegendTree.ToggleVisibility): Toggle layer visibility
3379     (LegendTree.LayerProjection): Raise layer projection dialog for
3380     current layer.
3381    
3382 bh 1836 2003-10-21 Bernhard Herzog <[email protected]>
3383    
3384     * Resources/Projections/defaults.proj: Use correct DOCTYPE
3385     declaration. The top-level element is projectionlist not projfile
3386    
3387 bh 1834 2003-10-20 Bernhard Herzog <[email protected]>
3388    
3389     * Thuban/UI/projdialog.py (ProjFrame.write_proj_file): New. helper
3390     method to write a projfile and display a busy cursor and error
3391     dialogs.
3392     (ProjFrame._OnSave, ProjFrame._OnAddToList, ProjFrame._OnImport)
3393     (ProjFrame._OnExport, ProjFrame._OnRemove): Use write_proj_file
3394     (ProjFrame.__FillAvailList): Translate "<None>" too and display a
3395     busy cursor while loading the user and system prj files.
3396    
3397 bh 1832 2003-10-16 Bernhard Herzog <[email protected]>
3398    
3399     * Thuban/Model/resource.py (projfile_cache): Introduce a cache for
3400     ProjFile objects
3401     (clear_proj_file_cache): New function to clear the cache. Mainly
3402     useful for use by the test suite
3403     (read_proj_file): Use the cache.
3404    
3405     * test/test_proj.py (TestProjFile): Clarify the doc-string
3406     (ProjFileReadTests): Update doc-string
3407     (ProjFileReadTests.test_get_system_proj_file): Check whether the
3408     system proj files is cached.
3409     (ProjFileLoadTestCase): New base class for the proj file tests
3410     derived from support.FileLoadTestCase to provide some common
3411     behavior.
3412     (TestLoadingProjFile)
3413     (TestLoadingProjFileWithEmptyProjectionlist.file_contents)
3414     (TestProjFileWithInvalidParameters.file_contents): Derive from
3415     ProjFileLoadTestCase
3416     (TestLoadingProjFile.test_caching): New. Test whether the cache
3417     works
3418    
3419 silke 1829 2003-10-16 Silke Reimer <[email protected]>
3420    
3421     * debian/*: New directory with configuration files for building a thuban
3422     deb-package.
3423    
3424 bh 1822 2003-10-14 Bernhard Herzog <[email protected]>
3425    
3426 bh 1828 * test/test_proj.py: Execute support.run_tests when run as
3427     __main__ so that missing unsubscribes are detected
3428     (TestProjFile.tearDown): Destroy the proj_file properly
3429    
3430     2003-10-14 Bernhard Herzog <[email protected]>
3431    
3432 bh 1826 * Thuban/Model/messages.py (PROJECTION_ADDED)
3433     (PROJECTION_REPLACED, PROJECTION_REMOVED): New message types for
3434     the ProjFile objects
3435    
3436     * Thuban/Model/proj.py (ProjFile): Derive from Publisher so we can
3437     easily send messages when the projections change
3438     (ProjFile.Add, ProjFile.Remove, ProjFile.Replace): Issue messages
3439     when the change was successful
3440    
3441     * test/test_proj.py (TestProjFile.setUp): Subscribe to some of the
3442     proj file messages
3443     (TestProjFile.test_add_remove)
3444     (TestProjFile.test_remove_non_existing)
3445     (TestProjFile.test_replace)
3446     (TestProjFile.test_replace_non_existing): Test whether the right
3447     messages are sent
3448    
3449     2003-10-14 Bernhard Herzog <[email protected]>
3450    
3451 bh 1822 * test/test_proj.py (TestProjFile.test): Refactor into several
3452     tests
3453     (TestProjFile.test_add_remove)
3454     (TestProjFile.test_remove_non_existing)
3455     (TestProjFile.test_replace)
3456     (TestProjFile.test_replace_non_existing): Some of the new
3457     individual test cases
3458     (TestProjFileSimple): New class for the rest of the test cases
3459     that came out of the refactoring
3460     (ProjFileTest): Derive from xmlsupport.ValidationTest so that the
3461     derived classes don't have to
3462    
3463 bh 1812 2003-10-13 Bernhard Herzog <[email protected]>
3464    
3465 bh 1820 Add an optional EPSG code to the projection objects and extend the
3466     .proj file format accordingly.
3467    
3468     * Resources/XML/projfile.dtd (element projection): Add epsg
3469     attribute
3470    
3471     * Thuban/Model/proj.py (Projection.__init__): New parameter and
3472     instance variable epsg. Update doc-string
3473     (Projection.EPSGCode, Projection.Label): New methods to provide
3474     access to EPSG code and a label for use in dialogs
3475    
3476     * Thuban/Model/resource.py (ProjFileReader.start_projection)
3477     (ProjFileReader.end_projection, ProjFileSaver.write_projfile):
3478     Handle the epsg code attribute when reading or writing proj files
3479    
3480     * Thuban/UI/projdialog.py (ProjFrame._OnSave)
3481     (ProjFrame._OnAddToList, ProjFrame.__DoOnProjAvail)
3482     (ProjFrame.__FillAvailList): Use the projection's Label method to
3483     get the string for the list box
3484    
3485     * test/test_proj.py (TestProjection.test_label)
3486     (TestProjection.test_label_epsg)
3487     (TestProjection.test_epsgcode_for_non_epsg_projection)
3488     (TestProjection.test_epsgcode_for_real_epsg_projection): New tests
3489     for the label and EPSGCode methods
3490     (WriteProjFileTests.doTestWrite, WriteProjFileTests.test_write)
3491     (WriteProjFileTests.test_write_empty_file): Create the ProjFile
3492     objects in the test cases and put the expected contents into the
3493     test case methods too. Update doTestWrite accordingly
3494     (TestLoadingProjFile)
3495     (TestLoadingProjFileWithEmptyProjectionlist): New classes with the
3496     read tests from TestProjFile.
3497     (TestProjFile.doTestRead, TestProjFile.testRead): Removed. These
3498     tests are now in the new classes.
3499     (sample_projfile, sample_projfile_data)
3500     (sample_projfile2, sample_projfile_data2): Removed. Not used
3501     anymore.
3502     (TestProjFile.test_read_unreadable_file): No need to reset the
3503     permissions at the end anymore since we use a unique filename
3504    
3505     2003-10-13 Bernhard Herzog <[email protected]>
3506    
3507 bh 1814 * test/test_proj.py: Some more refactoring of the test cases
3508     (ProjFileTest): New base class for the proj file tests.
3509     (TestProjFile): Derive from ProjFileTest
3510     (TestProjFile.test_read_unreadable_file)
3511     (TestProjFile.test_read_empty_file, TestProjFile.doTestRead): Use
3512     the new filename method to get a unique filename
3513     (TestProjFile.doTestWrite, TestProjFile.testWrite): Removed.
3514     (WriteProjFileTests): New class for proj file write tests.
3515     Contains the write test that were in TestProjFile originally.
3516    
3517     2003-10-13 Bernhard Herzog <[email protected]>
3518    
3519 bh 1812 * test/test_proj.py (TestProjFile.testRead)
3520     (TestProjFile.test_read_non_existing_file)
3521     (TestProjFile.test_read_unreadable_file)
3522     (TestProjFile.test_read_empty_file): Split into several methods.
3523    
3524 bh 1805 2003-10-10 Bernhard Herzog <[email protected]>
3525    
3526 bh 1810 * Thuban/UI/sizers.py: New file with custom sizers.
3527    
3528     * Thuban/UI/projdialog.py (ProjFrame.build_dialog): Instantiate
3529     all projection type specific panels and put them into a
3530     NotebookLikeSizer. This way the dialog doesn't change its size
3531     when a different projection is selected
3532     (ProjFrame.__init__): Rename projection_panels
3533     projection_panel_defs and reuse projection_panels for a list of
3534     the instantiated panels.
3535     (ProjFrame._show_proj_panel, ProjFrame.__DoOnProjAvail)
3536     (ProjFrame.__DoOnProjChoice): Changes due to the new handling of
3537     the panels
3538     (UnknownProjPanel._DoLayout): Place the newlines in the message
3539     differently to make the panel narrower.
3540     (TMPanel._DoLayout): Layout the parameters in one column.
3541    
3542     2003-10-10 Bernhard Herzog <[email protected]>
3543    
3544 bh 1807 * Thuban/UI/projdialog.py (ProjFrame.build_dialog): New method
3545     that contains all the setup for the dialog's widgets, layout and
3546     event handling.
3547     (__): Call build_dialog to build the dialog.
3548     (ProjFrame.__set_properties, ProjFrame.__do_layout): Removed.
3549     Their functionality is now in build_dialog
3550     (ProjFrame.__VerifyButtons, ProjFrame.__VerifyButtons)
3551     (ProjFrame.__DoOnProjAvail, ProjFrame.__DoOnProjAvail)
3552     (ProjFrame.__DoOnProjChoice): Small updates due to slightly
3553     different widget names and hierarchy introduced with build_dialog.
3554    
3555     2003-10-10 Bernhard Herzog <[email protected]>
3556    
3557 bh 1805 * README: Fix typo.
3558    
3559 bh 1803 2003-10-09 Bernhard Herzog <[email protected]>
3560    
3561     * Thuban/Model/proj.py (ProjFile.Add): Do not check whether the
3562     projection is already in the list. This is *a lot* faster when
3563     loading files with hundreds of projections since it saves a linear
3564     search. OTOH this will allow adding the same projection to the
3565     user.proj file multiple times in the projection dialog but we'll
3566     deal with that later
3567    
3568 jan 1801 2003-10-09 Jan-Oliver Wagner <[email protected]>
3569    
3570     * devtools: New. Directory for developer tools that are not intended
3571     for the regular user.
3572    
3573     * devtools/create_epsg.py: New. Convert the epsg file of proj into
3574     a python .proj file.
3575    
3576 bh 1799 2003-10-09 Bernhard Herzog <[email protected]>
3577    
3578     * test/test_proj.py
3579     (TestProjection.test_get_parameter_without_equals_sign): New. Test
3580     whether GetParameter handles parameters without "=" sign correctly
3581    
3582     * Thuban/Model/proj.py (Projection.GetParameter): Handle
3583     parameters that do not contain a "=". Update the doc-string
3584    
3585 bh 1794 2003-10-08 Bernhard Herzog <[email protected]>
3586    
3587 bh 1796 * Thuban/UI/projdialog.py (ProjFrame.__set_properties): Remove the
3588     length limit on the projname text control
3589    
3590     2003-10-08 Bernhard Herzog <[email protected]>
3591    
3592 bh 1794 * test/test_proj.py (TestProjection.test_get_projection_units_geo)
3593     (TestProjection.test_get_projection_units_normal): New. Tests for
3594     the Projection.GetProjectedUnits method
3595    
3596 jan 1792 2003-10-08 Jan-Oliver Wagner <[email protected]>
3597    
3598     * Thuban/Model/resource.py (get_user_proj_file): small bug-fix:
3599     Added missing 'val' parameter.
3600    
3601 bh 1788 2003-10-08 Bernhard Herzog <[email protected]>
3602    
3603 bh 1790 * Thuban/UI/projdialog.py (ProjFrame.__DoOnProjAvail): When the
3604     projection type of the currently selected projection is not known,
3605     i.e. there's no panel for it, use the UnknownProjPanel
3606     (ProjFrame.__DoOnProjChoice, ProjFrame._show_proj_panel): Split
3607     the actual replacing of the proj panel into the new method
3608     _show_proj_panel.
3609     (UnknownProjPanel): Add doc-string.
3610     (UnknownProjPanel._DoLayout): Insert a newline into the text so
3611     that the panel is not so wide.
3612    
3613     2003-10-08 Bernhard Herzog <[email protected]>
3614    
3615 bh 1788 * Thuban/Model/resource.py (read_proj_file): Return the warnings
3616     too. Update the doc-string
3617     (get_proj_files): Removed. It wasn't used anywhere
3618     (get_system_proj_files, get_system_proj_file): Rename to
3619     get_system_proj_file and return the ProjFile object and not a list
3620     of ProjFile objects. Update the callers.
3621     (get_user_proj_files, get_user_proj_file): Rename to
3622     get_user_proj_file return the ProjFile object and not a list of
3623     ProjFile objects. Update the callers.
3624     (ProjFileReader.__init__): New instance variable for the warnings.
3625     Rename the __pf ivar to projfile. Update the methods referring to
3626     __pf
3627     (ProjFileReader.end_projection): Catch any errors raised when
3628     instantiating the projection and record that as an error. The
3629     projection will not be in the final ProjFile object.
3630     (ProjFileReader.GetWarnings): New method to return the warnings.
3631    
3632     * Thuban/UI/projdialog.py (ProjFrame.show_warnings): New method to
3633     show the warnings from the projfile reader
3634     (ProjFrame._OnImport): Deal with any warnings returned by
3635     read_proj_file
3636     (ProjFrame.__FillAvailList): Deal with any warnings returned by
3637     get_system_proj_file or get_user_proj_file.
3638    
3639     * test/test_proj.py (TestProjFile.doTestRead): Check the warnings.
3640     (TestProjFileWithInvalidParameters.file_contents): New test cases
3641     to test whether read_proj_file handles invalid projection
3642     parameters correctly
3643     (TestProjFile.test_get_system_proj_file): New. Simple test for
3644     resource.get_system_proj_file
3645    
3646 bh 1785 2003-10-07 Bernhard Herzog <[email protected]>
3647    
3648     * test/test_derivedshapestore.py
3649     (TestDerivedShapeStoreExceptions.tearDown): Clear the session
3650     properly so that the temporary directories get deleted correctly
3651    
3652 bh 1773 2003-10-06 Bernhard Herzog <[email protected]>
3653    
3654 bh 1783 Handle the title changes in a proper MVC way.
3655    
3656     * Thuban/UI/mainwindow.py (MainWindow.__init__): Subscribe to the
3657     canvas' TITLE_CHANGED messages
3658     (MainWindow.update_title): New. Update the main window's title
3659     (MainWindow.__SetTitle): Removed. Use update_title instead.
3660     (MainWindow.SetMap): Use update_title instead of __SetTitle
3661     (MainWindow.RenameMap): Do change the window title explicitly
3662     here. That's handled in a proper MVC way now.
3663     (MainWindow.title_changed): New. Subscriber for the TITLE_CHANGED
3664     messages
3665    
3666     * Thuban/Lib/connector.py (Conduit): New class to help classes
3667     that forward messages
3668    
3669     * Thuban/UI/viewport.py: Forward the map's TITLE_CHANGED messages
3670     (ViewPort): Derive from Conduit instead of Publisher
3671     (ViewPort.Subscribe, ViewPort.Unsubscribe): Use the new base class
3672     when calling the inherited versions
3673     (ViewPort._subscribe_map, ViewPort._unsubscribe_map): New helper
3674     methods to subscribe and unsubscribe map messages
3675     (ViewPort.SetMap, ViewPort.Destroy): Use the new helper methods to
3676     handle the map subscriptions
3677     (ViewPort.Map, ViewPort.map_projection_changed)
3678     (ViewPort.layer_projection_changed): Add or update doc-strings
3679    
3680     * test/test_connector.py (TestPublisher.test_issue_simple): Fix
3681     typo
3682     (MyConduit): Helper class for the Conduit test.
3683     (TestConduit): Test cases for Conduit
3684    
3685     * test/test_connector.py: Use support.run_tests as main.
3686    
3687     * test/test_viewport.py (ViewPortTest.setUp): Also subscribe to
3688     the TITLE_CHANGED messages
3689     (ViewPortTest.test_forwarding_title_changed): New test to check
3690     whether the viewport forwards the map's TITLE_CHANGED messages
3691     (TestViewportWithPostGIS.tearDown): Call the map's Destroy method
3692     after the port's because the latter may require a still functional
3693     map.
3694    
3695     2003-10-06 Bernhard Herzog <[email protected]>
3696    
3697 bh 1777 * Thuban/UI/application.py (ThubanApplication.maps_changed): Add
3698     doc-string
3699    
3700     2003-10-06 Bernhard Herzog <[email protected]>
3701    
3702 bh 1775 * test/test_viewport.py (ViewPortTest.setUp)
3703     (SimpleViewPortTest.test_init_with_size): Move the test for the
3704     initial size as a constructor parameter from ViewPortTest.setUp
3705     method to a new separate test in SimpleViewPortTest.
3706    
3707     2003-10-06 Bernhard Herzog <[email protected]>
3708    
3709 bh 1773 * test/test_viewport.py (MockView): New class derived from
3710     ViewPort with a mock implementation of GetTextExtent to be used in
3711     the test cases
3712     (ViewPortTest.setUp): Use MockView instead of ViewPort
3713    
3714     * Thuban/UI/viewport.py (ViewPort.GetTextExtent): Turn this method
3715     into what would be a "pure virtual function" in C++: always raise
3716     NotImplementedError. Mock implementations for test cases don't
3717     belong into the real code
3718    
3719 bh 1770 2003-10-02 Bernhard Herzog <[email protected]>
3720    
3721     * test/test_layer.py (TestLayer.test_empty_layer): Explicitly
3722     close the dbf file we create so that it's contents have been
3723     written properly.
3724    
3725     * libraries/shapelib/shptree.c, libraries/shapelib/shpopen.c,
3726     libraries/shapelib/shapefil.h, libraries/shapelib/dbfopen.c:
3727     Update to shapelib 1.2.10
3728    
3729 jan 1767 2003-10-01 Jan-Oliver Wagner <[email protected]>
3730    
3731     * Thuban/UI/tree.py, Thuban/UI/main.py: Remove the #! line as
3732     it annoys lintian which warns about these files not being
3733     executable. The #! isn't necessary here since if you absolutely
3734     must execute them you can always say "python <filename>".
3735    
3736 bh 1757 2003-09-26 Bernhard Herzog <[email protected]>
3737    
3738 bh 1760 * Thuban/Model/classgen.py (GenQuantiles0): Removed since it's
3739     only used in GREAT-ER but not used in Thuban itself. When GREAT-ER
3740     is ported to a newer the import will fail, so it should be noticed
3741     immediately that this function is gone.
3742     Fixes RT#1919
3743    
3744     2003-09-26 Bernhard Herzog <[email protected]>
3745    
3746 bh 1757 Add a DTD for the projection files and make thuban write valid
3747     projection files
3748    
3749     * Resources/XML/projfile.dtd: New. DTD for thuban's projection
3750     files
3751    
3752     * Thuban/Model/resource.py (ProjFileSaver.write): Use
3753     'projectionlist' as the name in the document type declaration so
3754     that it matches the element type of the root element.
3755    
3756     * test/test_proj.py (sample_projfile, sample_projfile2): Use
3757     'projectionlist' as the name in the document type declaration just
3758     as it is done now in the files thuban would write
3759     (sample_projfile, sample_projfile_data): Fix spelling of
3760     "Mercator"
3761     (TestProjFile.doTestWrite): Validate the written and the expected
3762     XML data
3763     (TestProjFile): Derive from ValidationTest so that we can run xml
3764     validation tests
3765    
3766 bh 1751 2003-09-24 Bernhard Herzog <[email protected]>
3767    
3768     * Thuban/UI/renderer.py (ExportRenderer.render_legend): Do not
3769     modify the list returned by map.Layers() in place since it is the
3770     actual list of layers used by the map.
3771    
3772 jan 1745 2003-09-23 Jan-Oliver Wagner <[email protected]>
3773    
3774     * Doc/manual/thuban-manual.xml: Added subsection to chapter
3775     Extensions to describe the extensions coming with the Thuban
3776     standard package (gns2shp and importAPR).
3777    
3778 bh 1743 2003-09-23 Bernhard Herzog <[email protected]>
3779    
3780     * libraries/thuban/wxproj.cpp (project_point): if there's an
3781     inverse but no forward projection, convert to degrees after
3782     applying the inverse projection. Fixes RT#2096
3783    
3784     * test/test_wxproj.py: New. Test cases for wxproj.so. One test
3785     implicitly tests for the fix to RT#2096
3786    
3787     * test/support.py (FloatComparisonMixin.assertFloatSeqEqual):
3788     Check that the sequences have the same lengths
3789    
3790     * Resources/Projections/defaults.proj (Geographic projection): Use
3791     a much more precise value for the to_meter attribute.
3792    
3793 bh 1737 2003-09-22 Bernhard Herzog <[email protected]>
3794    
3795     * test/support.py (initthuban): Make sure to unset the LANG env.
3796     var. so that tests that compare translated strings work. Solves RT
3797     #2094
3798    
3799 jan 1730 2003-09-22 Jan-Oliver Wagner <[email protected]>
3800    
3801 jan 1735 Small improvement of APR import.
3802    
3803     * Extensions/importAPR/test/test_apr.py (aprTest.test_LClass):
3804     Added tests for text-ranges.
3805    
3806     * Extensions/importAPR/apr.py (APR_LClass.GetThubanRange): Now
3807     returns a string object if the range is based on text.
3808    
3809     * Extensions/importAPR/importAPR.py (import_apr_dialog): Unified
3810     range retrieval.
3811    
3812     2003-09-22 Jan-Oliver Wagner <[email protected]>
3813    
3814 jan 1730 Initial version of the importAPR extension which is in
3815     experimental state.
3816    
3817     * /Extensions/importAPR/, /Extensions/importAPR/samples/,
3818     /Extensions/importAPR/test/: New directories.
3819    
3820     * /Extensions/importAPR/samples/README: New: Howto load the samples.
3821    
3822     * /Extensions/importAPR/samples/iceland.apr: New: A sample APR
3823     file which refers to the Thuban Iceland demo data.
3824    
3825     * /Extensions/importAPR/test/README: New: Howto execute the tests.
3826    
3827     * /Extensions/importAPR/test/test_apr.py: New: Tests for APR classes.
3828    
3829     * /Extensions/importAPR/apr.py: New: Classes for ArcView Objects
3830     as in '.apr'-files.
3831    
3832     * /Extensions/importAPR/odb.py: New: Classes for generic ArcView
3833     ODB Objects as in '.apr', '.avl' and other files.
3834    
3835     * /Extensions/importAPR/__init__.py: New: Init to make this
3836     directory a package.
3837    
3838     * /Extensions/importAPR/importAPR.py: New: Import a ArcView
3839     project file (.apr) and convert it to Thuban.
3840    
3841     2003-09-22 Jan-Oliver Wagner <[email protected]>
3842    
3843     * Extensions/gns2shp.gns2shp.py: The main module of gns2shp.
3844    
3845 jan 1720 2003-09-19 Jan-Oliver Wagner <[email protected]>
3846    
3847     * Doc/manual/thuban-manual.xml: Extended section 'Installation'
3848     with description on RPM installation and RPM binary package
3849     creation.
3850    
3851 bh 1718 2003-09-18 Bernhard Herzog <[email protected]>
3852    
3853     * setup.py (data_files): Only add the mo files if the Locales
3854     directory actually exists, so that setup.py works with a fresh CVS
3855     checkout
3856    
3857 jan 1716 2003-09-12 Jan-Oliver Wagner <[email protected]>
3858    
3859     * Examples/simple_extensions/simple_tool.py: bugfix: Tool is now
3860     in viewport, not anymore in view
3861    
3862 jan 1714 2003-09-04 Jan-Oliver Wagner <[email protected]>
3863    
3864     Introducing first Extension (gns2shp).
3865    
3866     * Extensions, Extensions/gns2shp, Extensions/gns2shp/test: New.
3867    
3868     * Extensions/__init__.py: New. init to make this dir a package.
3869    
3870     * Extensions/gns2shp/__init__.py: New. init to make this dir a package.
3871    
3872     * Extensions/gns2shp/test/README: New. some info on this test directory.
3873    
3874     * Extensions/gns2shp/test/ls.txt: New. test data set (Liechtenstein).
3875    
3876     * Extensions/gns2shp/test/test_gns2shp.py: New. Test for correct creation
3877     of Shapefile from GNS text file format
3878    
3879 jan 1705 2003-09-03 Jan-Oliver Wagner <[email protected]>
3880    
3881 jan 1707 Fix/workaround for bug #2019:
3882     https://intevation.de/rt/webrt?serial_num=2019
3883    
3884     * Thuban/UI/identifyview.py (IdentifyView.ID_STOP): New.
3885     (IdentifyView.__init__): Added another button that allows to
3886     stop the identify mode.
3887     (IdentifyView.OnStop): New. Stops the identify mode.
3888    
3889     2003-09-03 Jan-Oliver Wagner <[email protected]>
3890    
3891 jan 1705 Introducing a new exception dialog that allows to exit the
3892     application immediately.
3893     This fixes bug #2060: https://intevation.de/rt/webrt?serial_num=2060
3894    
3895     * Thuban/UI/exceptiondialog.py: New. A special exception dialog.
3896    
3897     * Thuban/UI/application.py (ThubanApplication.ShowExceptionDialog):
3898     Made strings available to translations. Exchanged the simple
3899     ScrolledMessageDialog by the new ExceptionDialog.
3900    
3901 bh 1694 2003-09-01 Bernhard Herzog <[email protected]>
3902    
3903 bh 1701 * NEWS: New. Summary of changes and release notes.
3904    
3905     * MANIFEST.in: Add NEWS
3906    
3907     2003-09-01 Bernhard Herzog <[email protected]>
3908    
3909 bh 1699 * MANIFEST.in: Correct the include statement for the mo-files and
3910     include the documentation too.
3911    
3912     * setup.py (data_files): Add the .mo files
3913     (setup call): Up to version 0.9.0
3914    
3915     2003-09-01 Bernhard Herzog <[email protected]>
3916    
3917 bh 1696 * Thuban/UI/dbdialog.py (ChooseDBTableDialog.__init__): Change the
3918     parameter list to just parent and session
3919     (ChooseDBTableDialog.__set_properties): Removed. Setting the
3920     selection of empty list boxes is not allowed (and produces C++
3921     assertion errors) and the rest of the setup is better done in
3922     __init__ anyway.
3923     (ChooseDBTableDialog.OnCancel, ChooseDBTableDialog.OnOK)
3924     (ChooseDBTableDialog.OnLBDClick, DBDialog.OnOK): Use the Python
3925     builtins True/False for booleans to avoid warnings from wxPython
3926    
3927     * Thuban/UI/mainwindow.py (MainWindow.AddDBLayer): Adapt to new
3928     ChooseDBTableDialog constructor parameters.
3929    
3930     2003-09-01 Bernhard Herzog <[email protected]>
3931    
3932 bh 1694 * Thuban/Model/postgisdb.py
3933     (PostGISTable): Extend doc-string
3934     (PostGISTable._fetch_table_information): Set the column index
3935     correctly, pretending ignored columns don't exist.
3936    
3937     * test/test_postgis_db.py (TestPostGISIgnoredColumns): New tests
3938     for postgis tables with data types not yet supported by thuban.
3939    
3940 bh 1692 2003-08-29 Bernhard Herzog <[email protected]>
3941    
3942     * HOWTO-Release: Tweak item about running the tests.
3943    
3944 jan 1690 2003-08-29 Jan-Oliver Wagner <[email protected]>
3945    
3946     * /Doc/manual/thuban-manual.xml: updated to version 1.0pre2.
3947    
3948 bh 1688 2003-08-29 Bernhard Herzog <[email protected]>
3949    
3950     Add some missing parameters to projections. Proj complains about
3951     them on windows but for some reason not on Linux.
3952    
3953     * test/test_save.py (SaveSessionTest.testLayerProjection): Add
3954     missing required projection parameters
3955    
3956     * test/test_proj.py (TestProjFile.test): Add missing required
3957     projection parameters
3958    
3959     * test/test_load_0_8.py (TestLayerProjection.file_contents)
3960     (TestLayerProjection.test): Add missing required projection
3961     parameters and tests for them
3962    
3963     * test/test_load.py (TestLayerProjection.file_contents)
3964     (TestLayerProjection.test): Add missing required projection
3965     parameters and tests for them
3966    
3967     * test/test_layer.py (TestLayer.test_base_layer): Add missing
3968     required projection parameters
3969    
3970     2003-08-29 Bernhard Herzog <[email protected]>
3971    
3972     * libraries/pyprojection/Projection.i: Use pj_get_errno_ref to
3973     access the pj_errno because directly accessing pj_errno doesn't
3974     work on windows if the proj library is in a DLL
3975    
3976     * libraries/pyprojection/Projection_wrap.c: Update from Projection.i
3977    
3978 bh 1672 2003-08-28 Bernhard Herzog <[email protected]>
3979    
3980 bh 1685 * test/test_proj.py: Import things from Thuban after calling
3981     initthuban
3982    
3983     * test/test_load.py (LoadSessionTest.filenames): New class
3984     variable with the filename attributes to normalize
3985     (LoadSessionTest.check_format): Pass self.filenames to
3986     sax_eventlist to normalize the filename attributes
3987    
3988     * test/xmlsupport.py: Add cvs keywords
3989     (SaxEventLister.__init__): New parameter filenames which indicates
3990     attributes that contain filenames
3991     (SaxEventLister.startElementNS): Normalize the filename attributes
3992     with os.path.normpath
3993     (sax_eventlist): New parameter filenames to pass through to
3994     SaxEventLister
3995    
3996     * test/test_derivedshapestore.py: Make this file callable as a
3997     program to execute the tests
3998     (TestDerivedShapeStoreExceptions.test_table_with_wrong_size): Bind
3999     the session to self.session so that it gets destroyed properly
4000    
4001     * test/test_layer.py (TestLayer.tearDown): Call the session's
4002     Destroy method
4003    
4004     * test/test_map.py (TestMapBase.tearDown): Destroy self.session
4005     too if it exists
4006     (TestMapAddLayer.test_add_layer): Bind the session to self.session
4007     so that it gets destroyed properly
4008    
4009     * test/postgissupport.py (reason_for_not_running_tests): Add a
4010     test for the existence of popen2.Popen4.
4011    
4012     * test/test_save.py (SaveSessionTest.tearDown): New. Provide a
4013     reliable way to destroy the sessions created in the test cases
4014     (SaveSessionTest.test_dbf_table): Bind the session to self.session
4015     so that it gets destroyed properly
4016     (SaveSessionTest.testLayerProjection): Bind the session to
4017     self.session so that it gets destroyed properly
4018    
4019     * test/test_session.py (UnreferencedTablesTests.tearDown): Make
4020     sure that the session is destroyed properly
4021    
4022     * test/test_shapefilestore.py: Make this callable as a program to
4023     execute the tests
4024    
4025     * test/test_scalebar.py: Remove unnecessary import of _ from
4026     Thuban
4027    
4028     * test/support.py (print_garbage_information): Call initthuban
4029     here because it may be called indirectly from test cases that test
4030     test support modules which do not use anything from thuban itself
4031     (ThubanTestProgram.runTests): Remove unnecessary debug print
4032    
4033     2003-08-28 Bernhard Herzog <[email protected]>
4034    
4035 bh 1672 * Thuban/version.py (longversion): Update to 0.9
4036    
4037     * Thuban/UI/mainwindow.py: Remove some unused imports
4038    
4039     * README: Add section about required additional software. Add date
4040     and revision CVS keywords
4041    
4042     * HOWTO-Release: Add item about the translations. Add date and
4043     revision CVs keywords and change formatting to match README a bit
4044     better
4045    
4046     * po/de.po: Update for 0.9
4047    
4048     * test/README: Tweak the wording a little because many tests are
4049     not really unittest.
4050    
4051 bh 1663 2003-08-27 Bernhard Herzog <[email protected]>
4052    
4053 bh 1665 As preparation for the 0.9 release, switch thuban files to a
4054     non-dev namespace
4055    
4056     * Thuban/Model/save.py (SessionSaver.write_session): Write files
4057     with the http://thuban.intevation.org/dtds/thuban-0.9.dtd
4058     namespace
4059    
4060     * Thuban/Model/load.py (SessionLoader.__init__): Accept the
4061     http://thuban.intevation.org/dtds/thuban-0.9.dtd namespace too
4062    
4063     * test/test_save.py (SaveSessionTest.dtd)
4064     (SaveSessionTest.testEmptySession)
4065     (SaveSessionTest.testSingleLayer)
4066     (SaveSessionTest.testLayerProjection)
4067     (SaveSessionTest.testRasterLayer)
4068     (SaveSessionTest.testClassifiedLayer)
4069     (SaveSessionTest.test_dbf_table)
4070     (SaveSessionTest.test_joined_table)
4071     (SaveSessionTest.test_save_postgis): Update for new namespace
4072    
4073     * test/test_load.py (LoadSessionTest.dtd, TestSingleLayer)
4074     (TestLayerVisibility.file_contents, TestLabels.file_contents)
4075     (TestLayerProjection.file_contents)
4076     (TestRasterLayer.file_contents, TestJoinedTable.file_contents)
4077     (TestPostGISLayer.file_contents)
4078     (TestPostGISLayerPassword.file_contents)
4079     (TestLoadError.file_contents, TestLoadError.test): Update for new
4080     namespace
4081    
4082     2003-08-27 Bernhard Herzog <[email protected]>
4083    
4084 bh 1663 Make the table interface distinguish between row ids (an integer
4085     that uniquely identifies a row) and row ordinals (a simple row
4086     count from 0 to NumRows() - 1)
4087    
4088     * Thuban/Model/postgisdb.py (PostGISTable.RowIdToOrdinal)
4089     (PostGISTable.RowOrdinalToId): New methods to conver between row
4090     ids and row ordinals
4091     (PostGISTable.ReadRowAsDict, PostGISTable.ReadValue): New keyword
4092     parameter row_is_ordinal to indicate whether the row parameter is
4093     the row id or the ordinal
4094    
4095     * Thuban/Model/transientdb.py (TransientTableBase.RowIdToOrdinal)
4096     (TransientTableBase.RowOrdinalToId)
4097     (AutoTransientTable.RowIdToOrdinal)
4098     (AutoTransientTable.RowOrdinalToId): Same new methods as in
4099     PostGISTable.
4100     (TransientTableBase.ReadRowAsDict, TransientTableBase.ReadValue)
4101     (AutoTransientTable.ReadRowAsDict, AutoTransientTable.ReadValue):
4102     Same new parameter as in PostGISTable.
4103    
4104     * Thuban/Model/table.py (DBFTable.RowIdToOrdinal)
4105     (DBFTable.RowOrdinalToId, MemoryTable.RowIdToOrdinal)
4106     (MemoryTable.RowOrdinalToId): Same new methods as in PostGISTable.
4107     (DBFTable.ReadValue, DBFTable.ReadRowAsDict)
4108     (MemoryTable.ReadValue, MemoryTable.ReadRowAsDict): Same new
4109     parameter as in PostGISTable.
4110    
4111     * Thuban/UI/tableview.py (DataTable.RowIdToOrdinal)
4112     (DataTable.RowOrdinalToId): New methods to convert between row ids
4113     and row ordinals.
4114     (TableGrid.SelectRowById): New method to select a row based on its
4115     ID as opposed to its ordinal
4116     (DataTable.GetValue, TableGrid.OnRangeSelect)
4117     (TableGrid.OnSelectCell, LayerTableGrid.select_shapes)
4118     (QueryTableFrame.OnQuery, QueryTableFrame.get_selected)
4119     (LayerTableFrame.__init__): Convert between row ids and row
4120     ordinals as appropriate
4121    
4122     * test/postgissupport.py (PostGISDatabase.__init__): Add
4123     doc-string.
4124     (PostGISDatabase.initdb): The optional third item in a tuple in
4125     tables is now a (key, value) list with additional arguments to
4126     pass to upload_shapefile
4127     (upload_shapefile): New parameter gid_offset to allow gids that
4128     are not the same as the shapeids in the shapefile
4129     (PostgreSQLServer.get_default_static_data_db): Use the new
4130     gid_offset to make the gids in landmarks 1000 higher than the
4131     shapeids in the shapefile
4132    
4133     * test/test_viewport.py
4134     (TestViewportWithPostGIS.test_find_shape_at_point): Adapt to the
4135     new shapeids in the landmarks table
4136    
4137     * test/test_transientdb.py
4138     (TestTransientTable.run_iceland_political_tests)
4139     (TestTransientTable.test_transient_joined_table): Add tests for
4140     the new table methods and new keywords arguments.
4141    
4142     * test/test_postgis_db.py
4143     (TestPostGISTable.test_read_row_as_dict_row_count_mode)
4144     (TestPostGISTable.test_read_value_row_count_mode)
4145     (TestPostGISTable.test_row_id_to_ordinal)
4146     (TestPostGISTable.test_row_oridnal_to_id): New test for the new
4147     table methods and the new arguments
4148     (TestPostGISShapestorePoint.test_shapes_in_region)
4149     (TestPostGISShapestorePoint.test_shape_raw_data)
4150     (TestPostGISShapestorePoint.test_shape_points)
4151     (TestPostGISShapestorePoint.test_shape_shapeid)
4152     (TestPostGISShapestorePoint.test_all_shapes)
4153     (TestPostGISTable.test_simple_query)
4154     (TestPostGISTable.test_simple_query)
4155     (TestPostGISTable.test_simple_query)
4156     (TestPostGISTable.test_read_value)
4157     (TestPostGISTable.test_read_row_as_dict): Adapt to the new
4158     shapeids in the landmarks table
4159    
4160     * test/test_memory_table.py
4161     (TestMemoryTable.test_read_row_as_dict_row_count_mode)
4162     (TestMemoryTable.test_read_value_row_count_mode)
4163     (TestMemoryTable.test_row_id_to_ordinal)
4164     (TestMemoryTable.test_row_oridnal_to_id): New test for the new
4165     table methods and the new arguments
4166    
4167     * test/test_dbf_table.py
4168     (TestDBFTable.test_read_row_as_dict_row_count_mode)
4169     (TestDBFTable.test_read_value_row_count_mode)
4170     (TestDBFTable.test_row_id_to_ordinal)
4171     (TestDBFTable.test_row_oridnal_to_id): New test for the new table
4172     methods and the new arguments
4173    
4174 bh 1659 2003-08-26 Bernhard Herzog <[email protected]>
4175    
4176 bh 1661 * Thuban/Model/postgisdb.py (PostGISShapeStore.BoundingBox): Use a
4177     more postgis specific but much faster method to get the bounding
4178     box
4179    
4180     2003-08-26 Bernhard Herzog <[email protected]>
4181    
4182 bh 1659 * Thuban/Model/postgisdb.py (PostGISTable.Title)
4183     (PostGISShapeStore.AllShapes): Add these missing methods.
4184     (PostGISShapeStore.ShapesInRegion): No need to raise
4185     StopIteration. We can simply return
4186    
4187     * test/test_postgis_db.py (TestPostGISTable.test_title)
4188     (TestPostGISShapestorePoint.test_all_shapes): New tests for the
4189     new methods
4190    
4191 bh 1643 2003-08-25 Bernhard Herzog <[email protected]>
4192    
4193 bh 1657 * Thuban/Model/postgisdb.py (shapetype_map): Add MUTLIPOLYGON.
4194    
4195     * test/test_postgis_db.py (PolygonTests): New class containing
4196     those tests from TestPostGISShapestorePolygon that can also be
4197     used to test MUTLIPOLYGON tables
4198     (TestPostGISShapestorePolygon): Most tests are now in PolygonTests
4199     so derive from that
4200     (TestPostGISShapestoreMultiPolygon): New class with tests for
4201     MUTLIPOLYGON tables
4202    
4203     * test/postgissupport.py (PostGISDatabase.initdb): Allow the
4204     tables argument to have tuples with three items to override the
4205     WKT type used.
4206     (PostgreSQLServer.get_default_static_data_db): Use the above to
4207     create a polygon table with MUTLIPOLYGONs
4208     (point_to_wkt, coords_to_point, polygon_to_wkt, coords_to_polygon)
4209     (arc_to_wkt, coords_to_multilinestring): Rename from *_to_wkt to
4210     coords_to*
4211     (coords_to_multipolygon): New. Convert to MUTLIPOLYGON
4212     (wkt_converter): New. Map WKT types to converters
4213     (upload_shapefile): New parameter force_wkt_type to use a
4214     different WKT type than the default
4215    
4216     2003-08-25 Bernhard Herzog <[email protected]>
4217    
4218 bh 1655 * Thuban/UI/application.py
4219     (ThubanApplication.run_db_param_dialog): New. Suitable as a
4220     db_connection_callback. Main difference is that the dialog run
4221     from this method doesn't have a parent so it can be used even when
4222     there is no main window
4223     (ThubanApplication.OpenSession): Use self.run_db_param_dialog if
4224     no db_connection_callback was given. This way the dialog pops up
4225     even when the .thuban file was given as a command line parameter.
4226    
4227     2003-08-25 Bernhard Herzog <[email protected]>
4228    
4229 bh 1653 * Thuban/UI/view.py (MapCanvas.OnLeftUp): Release the the mouse
4230     before calling MouseLeftUp. MouseLeftUp may pop up modal dialogs
4231     which leads to an effectively frozen X session because the user
4232     can only interact with the dialog but the mouse is still grabbed
4233     by the canvas.
4234     Also, call the tool's Hide method before MouseLeftUp because
4235     MouseLeftUp may change the tool's coordinates.
4236    
4237     2003-08-25 Bernhard Herzog <[email protected]>
4238    
4239 bh 1651 * Thuban/UI/application.py (ThubanApplication.OpenSession): Catch
4240     LoadCancelled exceptions and handle them by returning immediately.
4241    
4242     2003-08-25 Bernhard Herzog <[email protected]>
4243    
4244 bh 1649 GUI part of loading sessions with postgis connections which may
4245     require user interaction to get passwords or updated parameters
4246    
4247     * Thuban/UI/dbdialog.py (DBDialog): Reimplement to make it look a
4248     bit nucer and be more generic.
4249     (DBFrame.OnAdd): Adapt to new DBDialog interface
4250    
4251     * Thuban/UI/application.py (ThubanApplication.OpenSession): New
4252     optional parameter db_connection_callback which is passed to
4253     load_session.
4254    
4255     * Thuban/UI/mainwindow.py (MainWindow.run_db_param_dialog): New.
4256     Suitable as a db_connection_callback
4257     (MainWindow.OpenSession): Use self.run_db_param_dialog as the
4258     db_connection_callback of the application's OpenSession method
4259    
4260    
4261     2003-08-25 Bernhard Herzog <[email protected]>
4262    
4263 bh 1647 Basic loading of sessions containing postgis connections:
4264    
4265     * Thuban/Model/load.py (LoadError): Add doc-string
4266     (LoadCancelled): New exception class to indicate a cancelled load
4267     (SessionLoader.__init__): Add the db_connection_callback parameter
4268     which will be used by the loader to get updated parameters and a
4269     password for a database connection
4270     (SessionLoader.__init__): Add the new XML elements to the
4271     dispatchers dictionary
4272     (SessionLoader.check_attrs): Two new conversions, ascii to convert
4273     to a byte-string object and idref as a generic id reference
4274     (SessionLoader.start_dbconnection)
4275     (SessionLoader.start_dbshapesource): New. Handlers for the new XML
4276     elements
4277     (load_session): Add the db_connection_callback to pass through the
4278     SessionLoader
4279    
4280     * test/test_load.py (TestPostGISLayer, TestPostGISLayerPassword):
4281     New classes to test loading of sessions with postgis database
4282     connections.
4283    
4284     2003-08-25 Bernhard Herzog <[email protected]>
4285    
4286 bh 1645 * Thuban/UI/mainwindow.py (__ThubanVersion__): Remove this and
4287     replace it and the comment with __BuildDate__ by the Source: and
4288     Id: cvs keywords as used in the other files.
4289    
4290     2003-08-25 Bernhard Herzog <[email protected]>
4291    
4292 bh 1643 * Thuban/Model/load.py (SessionLoader.check_attrs): Raise a
4293     LoadError when a required attribute is missing. The code used to
4294     be commented out for some reason, but probably should have been
4295     active.
4296    
4297     * test/test_load.py (TestLoadError.test): Test the message in the
4298     LoadError too to make sure it really is about the missing
4299     attribute
4300    
4301 bh 1632 2003-08-22 Bernhard Herzog <[email protected]>
4302 bh 1641
4303     * test/test_save.py (SaveSessionTest.test_dbf_table)
4304     (SaveSessionTest.test_joined_table): Add XML validation tests.
4305    
4306     2003-08-22 Bernhard Herzog <[email protected]>
4307    
4308 bh 1639 Implement saving a session with a postgis connection
4309 bh 1632
4310 bh 1639 * Resources/XML/thuban-0.9.dtd (dbconnection, dbshapesource) New
4311     elements for database connections and shapestores using db
4312     connections
4313     (session): Add the dbconnections to the content model
4314    
4315     * Thuban/Model/save.py (SessionSaver.write_db_connections): New.
4316     Write the db connections
4317     (SessionSaver.write_session): Call write_db_connections to write
4318     the connection before the data sources
4319     (SessionSaver.write_data_containers): Handle postgis shapestores
4320    
4321     * test/test_save.py (SaveSessionTest.thubanids)
4322     (SaveSessionTest.thubanidrefs): Update for new DTD
4323     (SaveSessionTest.test_save_postgis): New. Test saving a session
4324     with postgis connections
4325    
4326     * Thuban/Model/postgisdb.py (PostGISTable.DBConnection)
4327     (PostGISTable.TableName): New accessor methods for the connection
4328     and table name
4329    
4330     * test/test_postgis_db.py (TestPostGISTable.test_dbconn)
4331     (TestPostGISTable.test_dbname): New methods to test the new
4332     PostGISConnection methods
4333    
4334     2003-08-22 Bernhard Herzog <[email protected]>
4335    
4336 bh 1637 * Thuban/Model/postgisdb.py (ConnectionError): New exception class
4337     for exceptions occurring when establishing a Database connection
4338     (PostGISConnection.connect): Catch psycopg.OperationalError during
4339     connects and raise ConnectionError.
4340    
4341     * test/test_postgis_db.py (TestPostgisDBExceptions): New class for
4342     tests for database exceptions
4343    
4344     2003-08-22 Bernhard Herzog <[email protected]>
4345    
4346 bh 1635 Prepare the test suite for tests with required authentication
4347    
4348     * test/postgissupport.py (PostgreSQLServer.__init__): Add instance
4349     variables with two predefined users/passwords, one for the admin
4350     and one for a non-privileged user.
4351     (PostgreSQLServer.createdb): Pass the admin name to initdb and add
4352     the non-privileged user to the database and set the admin password
4353     (PostgreSQLServer.wait_for_postmaster): Use the admin user name.
4354     Better error reporting
4355     (PostgreSQLServer.connection_params)
4356     (PostgreSQLServer.connection_string): New methods to return
4357     information about how to connect to the server
4358     (PostgreSQLServer.execute_sql): New. Convenience method to execute
4359     SQL statements
4360     (PostgreSQLServer.require_authentication): Toggle whether the
4361     server requires authentication
4362     (PostgreSQLServer.create_user, PostgreSQLServer.alter_user): New.
4363     Add or alter users
4364     (PostGISDatabase.initdb): Pass the admin name one the
4365     subprocesses' command lines. Grant select rights on
4366     geometry_columns to everybody.
4367     (upload_shapefile): Use the admin name and password when
4368     connecting. Grant select rights on the new table to everybody.
4369    
4370     * test/test_viewport.py (TestViewportWithPostGIS.setUp): Use the
4371     server's new methods to get the connection parameters.
4372    
4373     * test/test_postgis_session.py (TestSessionWithPostGIS.setUp)
4374     (TestSessionWithPostGIS.test_remove_dbconn_exception): Use the
4375     server's new methods to get the connection parameters.
4376    
4377     * test/test_postgis_db.py
4378     (TestPostGISConnection.test_gis_tables_empty)
4379     (TestPostGISConnection.test_gis_tables_non_empty)
4380     (PostGISStaticTests.setUp): Use the server's new methods to get
4381     the connection parameters.
4382    
4383     2003-08-22 Bernhard Herzog <[email protected]>
4384    
4385 bh 1632 * Thuban/UI/about.py (About.__init__): Add the psycopg version.
4386    
4387     * Thuban/version.py: Add psycopg version
4388    
4389     * Thuban/Model/postgisdb.py (psycopg_version): New. Return the
4390     version of the psycopg module
4391    
4392     2003-08-22 Bernhard Herzog <[email protected]>
4393    
4394     * Thuban/UI/dbdialog.py (DBPwdDlg): Removed because it's not used.
4395     (DBFrame.OnEdit): Removed because it's not used and wouldn't work
4396     at the moment. The functionality should probably be implemented
4397     some time, though.
4398 bh 1633 (DBFrame.OnRemove): Display a message if the connection can't be
4399     removed because it's still in use.
4400 bh 1632
4401 jan 1629 2003-08-22 Jan-Oliver Wagner <[email protected]>
4402    
4403     * Thuban/UI/about.py (About.__init__): split up the huge about
4404     text into elements/lists for easier translation. This fixes bug
4405     https://intevation.de/rt/webrt?serial_num=2058
4406     Also, made some forgotten string available for the i18n.
4407    
4408 bh 1627 2003-08-21 Bernhard Herzog <[email protected]>
4409    
4410     Make postgis support really optional including insensitive menu
4411     items.
4412    
4413     * Thuban/Model/postgisdb.py (has_postgis_support): New. Return
4414     whether the postgis is supported.
4415    
4416     * Thuban/UI/dbdialog.py: Put the psycopg import into try..except
4417     to make postgis support optional
4418    
4419     * Thuban/UI/mainwindow.py (_has_postgis_support): New. Context
4420     version of Thuban.Model.postgisdb.has_postgis_support
4421     (database_management command): Make it only sensitive if postgis
4422     is supported.
4423    
4424 jan 1623 2003-08-21 Jan-Oliver Wagner <[email protected]>
4425    
4426 jan 1626 * Doc/manual/thuban-manual.xml: Added CVS revision for rev-history.
4427     (section Adding and Removing Layers): Added text and described
4428     multi-selection.
4429     (chapter Extensions): New.
4430    
4431     2003-08-21 Jan-Oliver Wagner <[email protected]>
4432    
4433 jan 1623 * Thuban/UI/mainwindow.py (MainWindow.AddLayer): Changed dialog
4434     settings to allow multiple files to load into the map.
4435     Also reduced selection to *.shp as a default.
4436    
4437 bh 1621 2003-08-20 Bernhard Herzog <[email protected]>
4438    
4439     Add dialogs and commands to open database connections and add
4440     database layers.
4441    
4442     * Thuban/UI/mainwindow.py (MainWindow.DatabaseManagement): New
4443     method to open the database connection management dialog
4444     (MainWindow.AddDBLayer): New method to add a layer from a database
4445     (_has_dbconnections): New helper function to use for sensitivity
4446     (database_management command, layer_add_db command): New commands
4447     that call the above new methods.
4448     (main_menu): Add the new commands to the menu.
4449    
4450     * Thuban/Model/postgisdb.py (PostGISConnection.__init__)
4451     (PostGISConnection.connect): Establish the actual connection in a
4452     separate method and call it in __init__. This makes it easier to
4453     override the behavior in test cases
4454     (PostGISConnection.BriefDescription): New method to return a brief
4455     description for use in dialogs.
4456    
4457     * test/test_postgis_db.py (NonConnection): DB connection that
4458     doesn't actually connect
4459     (TestBriefDescription): New class with tests for the new
4460     BriefDescription method
4461    
4462 jan 1619 2003-08-19 Jan-Oliver Wagner <[email protected]>
4463    
4464     Moved anything from extensions to libraries.
4465    
4466     * libraries: New.
4467    
4468     * libraries/ pyprojection, pyshapelib, shapelib, thuban: New.
4469    
4470     * libraries/pyprojection/ LICENSE, MANIFEST.in, Projection.i,
4471     Projection.py, Projection_wrap.c, setup.py, swighelp.txt: These files have
4472     been moved here from thuban/extensions/pyprojection/
4473     See there in the Attic for the older history.
4474    
4475     * libraries/pyshapelib/ COPYING, ChangeLog, NEWS, README, dbflib.i,
4476     dbflib.py, dbflib_wrap.c, pyshapelib_api.h, pytest.py, setup.py,
4477     shapelib.i, shapelib.py, shapelib_wrap.c, shptreemodule.c: These files
4478     have been moved here from thuban/extensions/pyshapelib/
4479     See there in the Attic for the older history.
4480    
4481     * libraries/shapelib/ dbfopen.c, shapefil.h, shpopen.c, shptree.c: These
4482     files have been moved here from thuban/extensions/shapelib/
4483     See there in the Attic for the older history.
4484    
4485     * libraries/thuban/ bmpdataset.cpp, cpl_mfile.cpp, cpl_mfile.h,
4486     gdalwarp.cpp, wxproj.cpp: These files have been moved here from
4487     thuban/extensions/thuban/
4488     See there in the Attic for the older history.
4489    
4490     * MANIFEST.in, setup.cfg, setup.py: renamed extensions to libraries.
4491    
4492     * extensions/thuban/ bmpdataset.cpp, cpl_mfile.cpp, cpl_mfile.h,
4493     gdalwarp.cpp, wxproj.cpp: Moved to libraries/thuban.
4494    
4495     * extensions/shapelib/ dbfopen.c, shapefil.h, shpopen.c, shptree.c:
4496     Moved to libraries/shapelib.
4497    
4498     * extensions/pyshapelib/ COPYING, NEWS, dbflib.py, pytest.py,
4499     shapelib.py, README, dbflib_wrap.c, setup.py, shapelib_wrap.c,
4500     ChangeLog, dbflib.i, pyshapelib_api.h, shapelib.i, shptreemodule.c:
4501     Moved to libraries/pyshapelib.
4502    
4503     * extensions/pyprojection/ MANIFEST.in, Projection.py, setup.py,
4504     LICENSE, Projection.i, Projection_wrap.c, swighelp.txt:
4505     Moved to libraries/pyprojection.
4506    
4507     * extensions/ pyprojection, pyshapelib, shapelib, thuban: Removed.
4508    
4509     * extensions: Removed.
4510    
4511 bh 1606 2003-08-19 Bernhard Herzog <[email protected]>
4512    
4513 bh 1609 * test/test_viewport.py (ViewPortTest): We don't use the
4514     facilities of FileTestMixin so don't derive from it.
4515     (TestViewportWithPostGIS): New class with tests for using a
4516     viewport on a map with postgis layers.
4517    
4518     2003-08-19 Bernhard Herzog <[email protected]>
4519    
4520     Add the db connection management to the session.
4521    
4522     * Thuban/Model/session.py (Session.__init__): New instance
4523     variable db_connections
4524     (Session.AddDBConnection, Session.DBConnections)
4525     (Session.HasDBConnections, Session.CanRemoveDBConnection)
4526     (Session.RemoveDBConnection): New methods to manage and query the
4527     db connections managed by the session
4528     (Session.OpenDBShapeStore): New method to open a shapestore from a
4529     db connection
4530    
4531     * Thuban/Model/messages.py (DBCONN_REMOVED, DBCONN_ADDED): New
4532     messages for the db connection handling in the session
4533    
4534     * test/test_postgis_session.py: New. test cases for the session's
4535     db connection handling with postgis connections
4536    
4537     2003-08-19 Bernhard Herzog <[email protected]>
4538    
4539 bh 1606 Add very basic postgis database support and the corresponding test
4540     cases. The test cases require a PostgreSQL + postgis installation
4541     but no existing database. The database will be created
4542     automatically by the test cases
4543    
4544     * test/README: Add note about skipped tests and the requirements
4545     of the postgis tests.
4546    
4547     * Thuban/Model/postgisdb.py: New. Basic postgis database support.
4548    
4549     * test/test_postgis_db.py: New. Test cases for the postgis
4550     support.
4551    
4552     * Thuban/Model/wellknowntext.py: New. Parser for well-known-text
4553     format
4554    
4555     * test/test_wellknowntext.py: New. Test cases for the
4556     wellknowntext parser
4557    
4558     * test/postgissupport.py: New. Support module for tests involving
4559     a postgis database.
4560    
4561     * test/support.py (execute_as_testsuite): Shut down the postmaster
4562     if it's still running after the tests
4563    
4564     * Thuban/Model/data.py (RAW_WKT): New constant for raw data in
4565     well known text format
4566    
4567 jan 1604 2003-08-19 Jan-Oliver Wagner <[email protected]>
4568    
4569     * Examples/simple_extensions/hello_world.py: New. Raises a Hello World
4570     message dialog.
4571    
4572 bh 1600 2003-08-18 Bernhard Herzog <[email protected]>
4573    
4574 bh 1602 * test/support.py (ThubanTestResult.printErrors): Indent the
4575     reason for the skips in the output to make it a bit more readable.
4576     (execute_as_testsuite): New helper function to run a test suite
4577     and print some more information.
4578     (run_tests): Use execute_as_testsuite to run the tests
4579    
4580     * test/runtests.py (main): Use execute_as_testsuite to run the
4581     tests
4582    
4583     2003-08-18 Bernhard Herzog <[email protected]>
4584    
4585 bh 1600 Fix some bugs in Thuban and the test suite that were uncovered by
4586     changes introduced in Python 2.3:
4587    
4588     * Thuban/Model/table.py (DBFTable.__init__): Make sure the
4589     filename is an absolute name
4590    
4591     * Thuban/Model/layer.py (RasterLayer.__init__): Make sure the
4592     filename is an absolute name
4593    
4594     * test/test_save.py (SaveSessionTest.testRasterLayer): Use a
4595     unique filename to save to and use the correct relative filename
4596     in the expected output.
4597     (SaveSessionTest.test_dbf_table): Use the correct relative
4598     filename in the expected output.
4599    
4600     * test/test_layer.py (TestLayer.test_raster_layer): Update the
4601     test to check whether the filename is absolute.
4602    
4603 jan 1596 2003-08-18 Jan-Oliver Wagner <[email protected]>
4604    
4605     * Thuban/UI/about.py (About.__init__): Added Silke Reimer.
4606    
4607 bh 1586 2003-08-15 Bernhard Herzog <[email protected]>
4608    
4609 bh 1594 Change the way shapes are returned by a shape store. The
4610     ShapesInRegion method returns an iterator over actual shape
4611     objects instead of a list of shape ids.
4612    
4613     * Thuban/Model/data.py (ShapefileShape.ShapeID): New. Return shape
4614     id.
4615     (ShapefileStore.ShapesInRegion): Return an iterator over the
4616     shapes which yields shape objects instead of returning a list of
4617     shape ids
4618     (ShapefileStore.AllShapes): New. Return an iterator over all
4619     shapes in the shape store
4620     (DerivedShapeStore.AllShapes): New. Like in ShapefileStore
4621    
4622     * Thuban/Model/layer.py (Layer.ShapesInRegion): Update
4623     doc-string.
4624    
4625     * Thuban/UI/baserenderer.py
4626     (BaseRenderer.layer_ids, BaseRenderer.layer_shapes): Rename to
4627     layer_shapes and make it return an iterator containg shapes
4628     instead of a list of ids.
4629     (BaseRenderer.draw_shape_layer): Update doc-string; Adapt to
4630     layer_shapes() change
4631    
4632     * Thuban/UI/renderer.py (ScreenRenderer.layer_ids)
4633     (ScreenRenderer.layer_shapes): Rename as in BaseRenderer
4634    
4635     * Thuban/UI/viewport.py (ViewPort._find_shape_in_layer): Adapt to
4636     changes in the ShapesInRegion return value.
4637     (ViewPort._get_hit_tester): Remove commented out code
4638    
4639     * test/mockgeo.py (SimpleShapeStore.ShapesInRegion): Adapt to the
4640     new return value.
4641     (SimpleShapeStore.AllShapes): New. Implement this method too.
4642    
4643     * test/test_layer.py (TestLayer.test_arc_layer)
4644     (TestLayer.test_polygon_layer, TestLayer.test_point_layer)
4645     (TestLayer.test_point_layer_with_projection)
4646     (TestLayer.test_derived_store): Adapt to changes in the
4647     ShapesInRegion return value.
4648    
4649     * test/test_shapefilestore.py
4650     (TestShapefileStoreArc.test_shapes_in_region)
4651     (TestShapefileStorePolygon.test_shapes_in_region)
4652     (TestShapefileStorePoint.test_shapes_in_region): Adapt to changes
4653     in the ShapesInRegion return value.
4654     (TestShapefileStorePoint.test_all_shapes)
4655     (TestShapefileStoreArc.test_shape_shapeid): New tests for the new
4656     methods
4657    
4658     * test/test_derivedshapestore.py
4659     (TestDerivedShapeStore.test_shapes_in_region): Adapt to changes in
4660     the ShapesInRegion return value.
4661     (TestDerivedShapeStore.test_all_shapes)
4662     (TestDerivedShapeStore.test_shape_shapeid): New tests for the new
4663     methods
4664    
4665     2003-08-15 Bernhard Herzog <[email protected]>
4666    
4667 bh 1592 Make the renderers deal correctly with raw vs. python level
4668     representation of shape geometries
4669    
4670     * Thuban/UI/baserenderer.py (BaseRenderer.low_level_renderer):
4671     Return a flag useraw in addition to the callable and the parameter
4672     to indicate whether the callable can deal with the raw shape data
4673     or uses the higher level python lists of coordinates. The callable
4674     now should accept either the raw data or the return value of the
4675     shape's Points() method.
4676     (BaseRenderer.draw_shape_layer): Adapt to the low_level_renderer
4677     change
4678     (BaseRenderer.projected_points): Instead of the shape id use the
4679     points list as parameter.
4680     (BaseRenderer.draw_polygon_shape, BaseRenderer.draw_arc_shape)
4681     (BaseRenderer.draw_point_shape): Adapt to projected_points()
4682     change and accept the points list as parameter instead of the
4683     shape id.
4684    
4685     * Thuban/UI/renderer.py (MapRenderer.low_level_renderer): Return
4686     the useraw flag as required by the BaseRenderer
4687     (ScreenRenderer.draw_shape_layer): Adapt to low-level renderer
4688     changes.
4689    
4690     * test/test_baserenderer.py
4691     (TestBaseRenderer.test_point_with_classification): New test for
4692     rendering a map with classifications.
4693    
4694     2003-08-15 Bernhard Herzog <[email protected]>
4695    
4696 bh 1590 * Thuban/UI/viewport.py (ViewPort.find_shape_at)
4697     (ViewPort._find_shape_in_layer, ViewPort._find_shape_in_layer)
4698     (ViewPort._get_hit_tester, ViewPort.projected_points)
4699     (ViewPort._hit_point, ViewPort._hit_arc, ViewPort._hit_polygon)
4700     (ViewPort._find_label_at): Split the find_shape_at method into
4701     several new methods and use the functions in the hit-test module.
4702    
4703     * Thuban/UI/hittest.py: New module with Python-level hit-testing
4704     functions
4705    
4706     * test/test_hittest.py: New. Test for the new hittest module
4707    
4708     2003-08-15 Bernhard Herzog <[email protected]>
4709    
4710 bh 1588 * Thuban/Model/layer.py (Layer.ShapesInRegion): Apply the layer
4711     projection to all corners of the bounding box to get a better
4712     approximation of the projected bounding box
4713    
4714     * test/test_layer.py (TestLayer.test_point_layer_with_projection):
4715     New. Test coordinate handling of a layer with a projection.
4716     Catches the bug fixed in Layer.ShapesInRegion
4717    
4718     2003-08-15 Bernhard Herzog <[email protected]>
4719    
4720 bh 1586 Move some of the mock objects in test_baserenderer into their own
4721     module so they can easily be used from other tests
4722    
4723     * test/mockgeo.py: New test helper module with some mock objects
4724     for geometry related things like shapes, shapestores and
4725     projections.
4726    
4727     * test/test_mockgeo.py: New. Tests for the new helper module
4728    
4729     * test/test_baserenderer.py: Some of the mock-objects are in
4730     mockgeo now.
4731    
4732 jan 1584 2003-08-12 Jan-Oliver Wagner <[email protected]>
4733    
4734     * Thuban/UI/about.py (About.__init__): Added Björn Broscheit.
4735    
4736 bh 1580 2003-08-12 Bernhard Herzog <[email protected]>
4737    
4738 bh 1582 * po/de.po: New. German translations by Bjoern Broscheit
4739    
4740     2003-08-12 Bernhard Herzog <[email protected]>
4741    
4742 bh 1580 * Thuban/UI/projdialog.py (UnknownProjPanel._DoLayout): Translated
4743     strings have to be one string literal.
4744    
4745 bh 1573 2003-08-11 Bernhard Herzog <[email protected]>
4746    
4747 bh 1578 * test/support.py (FloatComparisonMixin.assertPointListEquals):
4748     New. This method was used in various derived classes, but it's
4749     better to have it here.
4750    
4751     * test/test_shapefilestore.py
4752     (ShapefileStoreTests.assertPointListEquals): Removed. It's now in
4753     FloatComparisonMixin
4754    
4755     * test/test_layer.py (TestLayer.assertPointListEquals): Removed.
4756     It's now in FloatComparisonMixin
4757    
4758     * test/test_derivedshapestore.py
4759     (TestDerivedShapeStore.assertPointListEquals): Removed. It's now
4760     in FloatComparisonMixin
4761    
4762     2003-08-11 Bernhard Herzog <[email protected]>
4763    
4764 bh 1573 * Thuban/UI/join.py (JoinDialog.OnJoin): Add missing space to
4765     error message
4766    
4767 jan 1569 2003-08-08 Jan-Oliver Wagner <[email protected]>
4768    
4769 jan 1571 * Doc/manual/thuban-manual.xml: Now use authorgroup. Added revhistory
4770     with version number.
4771     Changed title to reflect version number of Thuban.
4772    
4773     2003-08-08 Jan-Oliver Wagner <[email protected]>
4774    
4775 jan 1569 * Thuban/UI/about.py (About.__init__): Reworked the hall of fame. Now
4776     the list corresponds to the "About" web page.
4777    
4778 bh 1567 2003-08-08 Bernhard Herzog <[email protected]>
4779    
4780     * Thuban/UI/projdialog.py (UTMProposeZoneDialog.dialogLayout):
4781     Make sure translated strings are recognized as one string literal.
4782    
4783     * Thuban/UI/proj4dialog.py (UTMProposeZoneDialog.dialogLayout):
4784     Make sure translated strings are recognized as one string literal.
4785    
4786     * Thuban/UI/classgen.py (ClassGenDialog.OnOK): Make sure
4787     translated strings are recognized as one string literal.
4788    
4789     * Thuban/UI/application.py (ThubanApplication.OpenSession): Make
4790     sure translated strings are recognized as one string literal.
4791    
4792 bh 1556 2003-08-07 Bernhard Herzog <[email protected]>
4793    
4794 bh 1565 * Thuban/Model/data.py (DerivedShapeStore.RawShapeFormat): New.
4795     Simply delegates to the original shapestore.
4796    
4797     * test/test_derivedshapestore.py
4798     (TestDerivedShapeStore.test_raw_format): New. Test case for
4799     DerivedShapeStore.RawShapeFormat
4800    
4801     2003-08-07 Bernhard Herzog <[email protected]>
4802    
4803 bh 1561 Add raw data interface to shape objects.
4804    
4805     * Thuban/Model/data.py (ShapefileShape, Shape): Rname the shape
4806     class to ShapefileShape which now holds shapefile specific
4807     information.
4808     (ShapefileShape.compute_bbox): Simplified to not cache any
4809     information. The way this method is used that shouldn't matter
4810     performance wise.
4811     (ShapefileShape.RawData): New. Return the shapeid which is the raw
4812     data format for shapes from shapefiles.
4813     (ShapefileStore.RawShapeFormat): New. Return the raw datatype used
4814     in the shape objects returned by a shapestore. For a
4815     ShapefileStore this is always RAW_SHAPEFILE.
4816     (RAW_PYTHON, RAW_SHAPEFILE): Constants for the RawShapeFormat
4817     method.
4818    
4819     * test/test_shapefilestore.py
4820     (TestShapefileStore.test_raw_format): New test to test the raw
4821     format feature of shapes.
4822    
4823 bh 1560 * Thuban/Model/layer.py: Remove the unused import of Shape from
4824     data. It was only there for interface compatibility but it's not
4825 bh 1561 used inside of Thuban and the generic Shape class has gone away.
4826 bh 1560
4827 bh 1563 * Thuban/UI/renderer.py (MapRenderer.low_level_renderer): Check
4828     the raw data format and only use an optimized version of its a
4829     shapefile.
4830    
4831 bh 1561 2003-08-07 Bernhard Herzog <[email protected]>
4832    
4833 bh 1559 * test/test_baserenderer.py (SimpleShape): Shape class for the
4834     tests.
4835     (SimpleShapeStore.Shape): Use SimpleShape instead of
4836     Thuban.Model.data.Shape to make the tests independed of the coming
4837     changes.
4838    
4839     2003-08-07 Bernhard Herzog <[email protected]>
4840    
4841 bh 1556 * test/support.py (SkipTest, ThubanTestResult, ThubanTestRunner)
4842     (ThubanTestProgram): New classes that extend the respective
4843     classes from unittest. These new version support skipping tests
4844     under certain expected conditions. In the Thuban test suite we
4845     uses this for tests that require the optional gdal support.
4846     (run_tests): Use ThubanTestProgram instead of the unittest.main()
4847    
4848     * test/runtests.py (main): Use the new ThubanTestRunner instead of
4849     the normal one from unittest
4850    
4851     * test/test_layer.py (TestLayer.test_raster_layer): If this test
4852     is not run because gdal support isn't available report this to the
4853     runner.
4854    
4855     * test/test_baserenderer.py
4856     (TestBaseRenderer.test_raster_no_projection): Do not run this test
4857     if gdal support isn't available and report this to the runner.
4858    
4859 bh 1553 2003-08-06 Bernhard Herzog <[email protected]>
4860    
4861     Rearrange the renderers a bit, partly in preparation for changes
4862     required for the postgis merge, partly to make it more testable.
4863     Also make the representation of coordinates in Shapes more
4864     consistent.
4865    
4866     * Thuban/UI/renderer.py (MapRenderer): Most of the code/methods in
4867     this class is now in BaseRenderer. This class is now practically
4868     only a specialization of BaseRenderer for rendering to an actual
4869     wx DC.
4870     (ScreenRenderer.draw_shape_layer): Use self.low_level_renderer()
4871     to get the shapetype specific rendering functions.
4872    
4873     * Thuban/UI/baserenderer.py: New file with the basic rendering
4874     logic. The code in this file is completely independend of wx.
4875     (BaseRenderer): Class with the basic rendering logic
4876    
4877     * test/test_baserenderer.py: New. Test cases for BaseRenderer
4878    
4879     * Thuban/UI/view.py (MapCanvas.__init__): New instance variable
4880     error_on_redraw to guard agains endless loops and stack overflows
4881     when there's a bug in the rendering code that raises exceptions.
4882     (MapCanvas.OnIdle, MapCanvas._do_redraw): Split the actual
4883     rendering into a separate method _do_redraw so that error handling
4884     is a bit easier. When an exception occurs, set error_on_redraw to
4885     true. When it's true on entry to OnIdle do nothing and return
4886     immediately.
4887    
4888     * Thuban/Model/data.py (ShapefileStore.Shape): For consistency, a
4889     Shape object will always have the coordinates as a list of list of
4890     coordinate pairs (tuples).
4891     (Shape.compute_bbox): Adapt to new representation.
4892    
4893     * Thuban/UI/viewport.py (ViewPort.find_shape_at)
4894     (ViewPort.LabelShapeAt): Adapt to new coordinate representation in
4895     Shape objects.
4896    
4897     * test/test_shapefilestore.py
4898     (ShapefileStoreTests.assertFloatTuplesEqual)
4899     (ShapefileStoreTests.assertPointListEquals): Rename to
4900     assertPointListEquals and change purpose to checking equality of
4901     the lists returned by Shape.Points().
4902     (TestShapefileStoreArc.test_shape)
4903     (TestShapefileStorePolygon.test_shape)
4904     (TestShapefileStorePoint.test_shape): Use the new
4905     assertPointListEquals instead of assertFloatTuplesEqual
4906    
4907     * test/test_layer.py (TestLayer.assertFloatTuplesEqual)
4908     (TestLayer.assertPointListEquals): Rename to assertPointListEquals
4909     and change purpose to checking equality of the lists returned by
4910     Shape.Points().
4911     (TestLayer.test_arc_layer, TestLayer.test_arc_layer)
4912     (TestLayer.test_polygon_layer, TestLayer.test_point_layer)
4913     (TestLayer.test_derived_store): Use the new assertPointListEquals
4914     instead of assertFloatTuplesEqual
4915    
4916     * test/test_derivedshapestore.py
4917     (TestDerivedShapeStore.assertFloatTuplesEqual)
4918     (TestDerivedShapeStore.assertPointListEquals): Rename to
4919     assertPointListEquals and change purpose to checking equality of
4920     the lists returned by Shape.Points().
4921     (TestDerivedShapeStore.test_shape): Use the new
4922     assertPointListEquals instead of assertFloatTuplesEqual
4923    
4924 jan 1550 2003-08-06 Jan-Oliver Wagner <[email protected]>
4925    
4926     * Thuban/UI/projdialog.py (UTMPanel._OnPropose): Added test for
4927     a bounding box. A dialog is raised in case, no bounding box
4928     is found. This fixes bug #2043:
4929     https://intevation.de/rt/webrt?serial_num=2043
4930    
4931 bh 1548 2003-08-05 Bernhard Herzog <[email protected]>
4932    
4933     * Thuban/Model/color.py (Color.__repr__): Make the repr of a color
4934     object look like a Color instantiation. Formerly it looked like a
4935     tuple.
4936    
4937     * test/test_color.py (TestColor.test_repr)
4938     (TestColor.test_equality, TestColor.test_inequality): New. test
4939     some more apects of the Color class
4940     (TestTransparent.test_repr, TestTransparent.test_hex)
4941     (TestTransparent.test_equality): New. Test cases for the
4942     Transparent object.
4943    
4944 jan 1545 2003-08-04 Jan-Oliver Wagner <[email protected]>
4945    
4946     * Doc/manual/thuban-manual.xml: a number of small improvements.
4947     The resulting file is the version submitted for GREAT-ER II.
4948    
4949 bh 1540 2003-08-01 Bernhard Herzog <[email protected]>
4950    
4951 bh 1543 * Thuban/UI/resource.py, Thuban/UI/projdialog.py,
4952     Thuban/UI/join.py, Thuban/UI/classgen.py, Thuban/UI/about.py,
4953     Thuban/Model/resource.py: Insert cvs keywords and doc-strings.
4954    
4955     * Thuban/UI/common.py: Insert cvs keywords and doc-strings.
4956     (Color2wxColour, wxColour2Color, ThubanBeginBusyCursor)
4957     (ThubanEndBusyCursor): Add doc-strings
4958    
4959     2003-08-01 Bernhard Herzog <[email protected]>
4960    
4961 bh 1540 First step towards PostGIS integration. More abstraction by movin
4962     more code from the layer to the shapestore. More methods of the
4963     layer are now simply delegated to the equivalent method of the
4964     shapestore. The SHAPETYPE_* constants are now in data not in
4965     layer.
4966    
4967     * Thuban/Model/data.py (SHAPETYPE_POLYGON, SHAPETYPE_ARC)
4968     (SHAPETYPE_POINT, Shape): Move these constants and classes from
4969     layer.py to data.py
4970     (ShapefileStore.__init__): More Initialization for the new methods
4971     and functionality.
4972     (ShapefileStore.ShapeType, ShapefileStore.NumShapes)
4973     (ShapefileStore.BoundingBox, ShapefileStore.ShapesInRegion)
4974     (ShapefileStore.Shape): New methods that were formerly implemented
4975     in the layer.
4976     (DerivedShapeStore.Shape, DerivedShapeStore.ShapesInRegion)
4977     (DerivedShapeStore.ShapeType, DerivedShapeStore.NumShapes)
4978     (DerivedShapeStore.BoundingBox): New. DerivedShapeStore
4979     equivalents of the new shape methods. These versions are simply
4980     delegated to the original shapstore.
4981    
4982     * Thuban/Model/layer.py (SHAPETYPE_POLYGON, SHAPETYPE_ARC)
4983     (SHAPETYPE_POINT, Shape): Removed. They're now in data.py
4984     (Layer.SetShapeStore): Removed the initializatin of instance
4985     variables that were needed for the stuff that's now in
4986     ShapefileStore
4987     (Layer.BoundingBox, Layer.NumShapes, Layer.ShapeType)
4988     (Layer.Shape, Layer.ShapesInRegion): Simply delegate to the
4989     shapestore.
4990    
4991     * Thuban/UI/classifier.py, Thuban/UI/renderer.py,
4992     Thuban/UI/viewport.py: Import the SHAPETYPE_* constants from data
4993     instead of layer.
4994    
4995     * test/test_shapefilestore.py: New. Tests for ShapefileStore.
4996    
4997     * test/test_derivedshapestore.py: New. Tests for DerivedShapeStore.
4998    
4999     * test/test_layer.py: Import the SHAPETYPE_* constants from data
5000     instead of layer.
5001     (TestLayer.test_derived_store): Remove the test for the exception
5002     when instantiating the DerivedShapeStore with an incompatible
5003     table which is now in test_derivedshapestore.py. Add some more
5004     tests of the layer methods to determine whether they work for a
5005     DerivedShapeStore as well.
5006    
5007 jonathan 1534 2003-07-31 Jonathan Coles <[email protected]>
5008    
5009     * Doc/manual/thuban-manual.xml: Fix the list of required packages
5010     by just listing the name and where they can be found.
5011    
5012 frank 1532 2003-07-31 Frank Koormann <[email protected]>
5013    
5014     * Doc/manual/thuban-manual.xml:
5015     Changed the screenshot elements to figure.
5016     Changed some variablelist elements to itemizedlist.
5017     Added section on GDAL formats.
5018    
5019 jonathan 1531 2003-07-31 Jonathan Coles <[email protected]>
5020    
5021     * Doc/manual/thuban-manual.xml: Added a few sentences about
5022     the Fix Border Color option when generating classes.
5023    
5024 jonathan 1529 2003-07-30 Jonathan Coles <[email protected]>
5025    
5026     * Thuban/Model/classgen.py: Add docstrings. Rename specific
5027     Ramp instances to use lower_case_style.
5028    
5029     * Thuban/UI/classgen.py: Use renamed Ramp instances.
5030    
5031     * Thuban/UI/classifier.py: Add docstrings.
5032    
5033     * Thuban/UI/dock.py: Add docstrings.
5034    
5035     * test/test_classgen.py: Use renamed Ramp instances.
5036    
5037 bh 1522 2003-07-30 Bernhard Herzog <[email protected]>
5038    
5039 bh 1524 * Thuban/Lib/connector.py (QueueingPublisher): Removed. This class
5040     was never used in Thuban.
5041    
5042     2003-07-30 Bernhard Herzog <[email protected]>
5043    
5044 bh 1522 * Thuban/UI/join.py (JoinDialog.__init__): Use the table's Title()
5045     method directly instead of going through the transient_table
5046     method. This faster because transient_table may force the copy of
5047     a DBF file into the transient database and setting a table's title
5048     doesnm't affect the title of the associated transient table, so
5049     this fixes RT #2042
5050    
5051     * Thuban/UI/main.py (__version__): Don't import the already
5052     removed show_exception_dialog.
5053    
5054 jonathan 1517 2003-07-29 Jonathan Coles <[email protected]>
5055    
5056 jonathan 1519 * Thuban/UI/application.py (ThubanApplication.ShowExceptionDialog):
5057     Put back this method and remove the equivalent function since we
5058     are setting the exception hook from within this class (OnInit).
5059    
5060     2003-07-29 Jonathan Coles <[email protected]>
5061    
5062 jonathan 1517 * Doc/manual/images/5_2_custom_ramp.png,
5063     Doc/manual/images/5_2_quantiles.png,
5064     Doc/manual/images/5_2_uniform_dist.png,
5065     Doc/manual/images/5_2_unique_values.png,
5066     Doc/manual/images/8_int_error.png: New screen shots.
5067    
5068     * Doc/manual/thuban-manual.xml: Fixed typos and wording, clarified
5069     some points, and added more screen shots.
5070    
5071 bh 1512 2003-07-29 Bernhard Herzog <[email protected]>
5072    
5073 bh 1516 * Thuban/Model/data.py: Remove the now unused import of warnings
5074    
5075     2003-07-29 Bernhard Herzog <[email protected]>
5076    
5077 bh 1514 * Thuban/Model/data.py (SimpleStore): Removed. This class has been
5078     deprecated since before the 0.8 release and isn't used in Thuban
5079     itself anymore.
5080    
5081 bh 1512 * Thuban/Model/transientdb.py: Remove some unnecessary imports
5082    
5083 jonathan 1503 2003-07-29 Jonathan Coles <[email protected]>
5084 jonathan 1506
5085     * Thuban/UI/application.py (ThubanApplication.OnInit): set the
5086     python exception hook here so that we are sure to catch any
5087     Thuban exception that happen during initialization.
5088    
5089     * Thuban/UI/main.py (main): Don't set the exception hook here,
5090     it will get set in ThubanApplication.OnInit.
5091    
5092     2003-07-29 Jonathan Coles <[email protected]>
5093 jonathan 1503
5094     * Thuban/UI/application.py (ThubanApplication.ShowExceptionDialog):
5095     Removed and called it show_exception_dialog() so that the exception
5096     handler can be set before the class is created.
5097    
5098     * Thuban/UI/main.py (main): Install the exception handler before
5099     a ThubanApplication is created.
5100    
5101 bh 1500 2003-07-29 Bernhard Herzog <[email protected]>
5102    
5103     * po/it.po: New. Italian translation by Maurizio Napolitano
5104    
5105     * po/ru.po: New. Russian translation by Alex Shevlakov
5106    
5107 frank 1497 2003-07-29 Frank Koormann <[email protected]>
5108    
5109 frank 1508 * Doc/manual/thuban-manual.xml: Extended section on supported
5110     projections.
5111    
5112     2003-07-29 Frank Koormann <[email protected]>
5113    
5114 frank 1497 * Doc/manual/thuban-manual.xml: gaspell-checked.
5115    
5116 jonathan 1493 2003-07-29 Jonathan Coles <[email protected]>
5117    
5118 jonathan 1495 * Doc/manual/images/3_5_legend.png: Added border to improve look
5119     on white background.
5120    
5121     2003-07-29 Jonathan Coles <[email protected]>
5122    
5123 jonathan 1493 * Doc/manual/thuban-manual.xml: Fixed grammar and typos. Added
5124     descriptions for the legend toolbar.
5125    
5126     * Doc/manual/images/4_2_raster_layer_properties.png: Removed
5127     cursor from dialog box.
5128    
5129     2003-07-28 Jonathan Coles <[email protected]>
5130    
5131     * Doc/manual/thuban-manual.xml: More screenshots and more chapters.
5132    
5133     * Doc/manual/images/2_4_session_tree.png,
5134     Doc/manual/images/3_5_legend.png, Doc/manual/images/3_rename_map.png,
5135     Doc/manual/images/4_2_layer_properties.png,
5136     Doc/manual/images/4_2_raster_layer_properties.png,
5137     Doc/manual/images/5_3_genclass.png,
5138     Doc/manual/images/5_classification.png,
5139     Doc/manual/images/6_projection.png,
5140     Doc/manual/images/7_1_table_view.png,
5141     Doc/manual/images/7_2_5_join.png: New screenshots.
5142    
5143     2003-07-24 Jonathan Coles <[email protected]>
5144    
5145     * Doc/manual/thuban-manual.xml: Chapter on Projection Management.
5146    
5147     2003-07-24 Jonathan Coles <[email protected]>
5148    
5149     * Doc/manual/thuban-manual.xml: Added EPS images and wrote
5150     chapter on Layer Management.
5151    
5152     * Doc/manual/Makefile: New. Makefile to generate all formats for the
5153     manual and images.
5154    
5155 bh 1483 2003-07-24 Bernhard Herzog <[email protected]>
5156    
5157     * Thuban/Model/range.py, Thuban/version.py: Remove the #! line as
5158     it annoys lintian which warns about these files not being
5159 jan 1767 executable. The #! isn't necessary here since if you absolutely
5160 bh 1483 must execute them you can always say "python <filename>".
5161    
5162     * Thuban/UI/renderer.py (ScreenRenderer.draw_shape_layer): Remove
5163     superfluous code to set brush and pen for point shapes
5164    
5165     * Thuban/UI/viewport.py: Remove commented out code that wouldn't
5166     belong in viewport anyway
5167    
5168 frank 1479 2003-07-24 Frank Koormann <[email protected]>
5169    
5170     * Doc/manual/thuban-manual.xml: Added section on table management.
5171    
5172 bh 1477 2003-07-24 Bernhard Herzog <[email protected]>
5173    
5174     * test/runtests.py (main): Recognize the long "verbose" option
5175     correctly.
5176    
5177 jonathan 1470 2003-07-22 Jonathan Coles <[email protected]>
5178    
5179     * Doc/manual/thuban-manual.xml: Continue to write first revision
5180     of the manual.
5181    
5182     * Thuban/UI/renderer.py (MapRenderer.render_map): Wrap method
5183     with Begin/EndDrawing() calls to ensure we aren't doing to
5184     many updates to the dc during rendering.
5185     (ScreenRenderer.draw_shape_layer): self.draw_point_shape takes
5186     a pen and brush argument so they need to be passed to the function.
5187    
5188     * Thuban/UI/viewport.py (ViewPort.calc_min_max_scales): New.
5189     Calculates the minimum and maximum scale values. Factored out
5190     of set_view_transform so that it could be used to zoom all the
5191     way into a single point.
5192     (ViewPort.set_view_transform): Call calc_min_max_scales().
5193     (ViewPort.FitSelectedToWindow): Zoom to the maximum scale
5194     if only a single point is selected.
5195    
5196     * Doc/manual/images/1_2_legend_close.png,
5197     Doc/manual/images/1_2_legend_dock.png,
5198     Doc/manual/images/1_2_mainwindow.png,
5199     Doc/manual/images/1_2_mainwindow.ps,
5200     Doc/manual/images/1_2_mainwindow.sk,
5201     Doc/manual/images/3_2_fullextent.png,
5202     Doc/manual/images/3_2_fulllayerextent.png,
5203     Doc/manual/images/3_2_fullshapeextent.png,
5204     Doc/manual/images/3_2_pan.png,
5205     Doc/manual/images/3_2_zoomin.png,
5206     Doc/manual/images/3_2_zoomout.png,
5207     Doc/manual/images/3_3_identify.png,
5208     Doc/manual/images/3_3_label.png,
5209     Doc/manual/images/3_5_invisible.png,
5210     Doc/manual/images/3_5_movedown.png,
5211     Doc/manual/images/3_5_moveup.png,
5212     Doc/manual/images/3_5_props.png,
5213     Doc/manual/images/3_5_tobottom.png,
5214     Doc/manual/images/3_5_totop.png,
5215     Doc/manual/images/3_5_visible.png: New. Images for the documentation.
5216    
5217 bh 1451 2003-07-18 Bernhard Herzog <[email protected]>
5218    
5219 bh 1465 * Thuban/UI/messages.py (MAP_REPLACED): New message.
5220    
5221     * Thuban/UI/viewport.py (ViewPort.SetMap): Issue MAP_REPLACED
5222     after the new map has been assigned
5223    
5224     * Thuban/UI/mainwindow.py (MainWindow.delegated_messages):
5225     Delegate MAP_REPLACED to the canvas too
5226     (MainWindow.prepare_new_session): Removed. Thanks to the new
5227     MAP_REPLACED message it's no longer needed
5228     (MainWindow.OpenSession, MainWindow.NewSession):
5229     prepare_new_session has been removed.
5230    
5231     * Thuban/UI/classifier.py (Classifier.__init__): Subscribe to
5232     MAP_REPLACED so that we can close the dialog if a new map is set.
5233     (Classifier.unsubscribe_messages): Unsubscribe from MAP_REPLACED
5234     (Classifier.map_replaced): Handle MAP_REPLACED by closing the
5235     dialog
5236    
5237     * test/test_viewport.py (SimpleViewPortTest)
5238     (SimpleViewPortTest.test_default_size): Add doc-strings
5239     (ViewPortTest.setUp): Bind map to self.map so we can use it in
5240     tests. Subscribe to MAP_REPLACED messages too.
5241     (ViewPortTest.tearDown): No need to explicitly unsubscribe
5242     (ViewPortTest.test_set_map): New test for the SetMap method.
5243    
5244     2003-07-18 Bernhard Herzog <[email protected]>
5245    
5246 bh 1463 * test/test_viewport.py (SimpleViewPortTest.test_default_size):
5247     Move this test from ViewPortTest.setUp to this new separate test
5248     case. setUp is not the place for the actual tests.
5249     (ViewPortTest.test_inital_settings, ViewPortTest.setUp): Move some
5250     more of the test from setUp to the new test test_inital_settings.
5251     (ViewPortTest.test_win_to_proj, ViewPortTest.test_proj_to_win)
5252     (ViewPortTest.test_proj_conv): Split test_proj_conv into
5253     test_win_to_proj and test_proj_to_win and make the tests easier to
5254     understand
5255     (ViewPortTest.testFitRectToWindow, ViewPortTest.testZoomFactor)
5256     (ViewPortTest.testZoomOutToRect, ViewPortTest.testTranslate)
5257     (ViewPortTest.test_unprojected_rect_around_point)
5258     (ViewPortTest.test_find_shape_at, ViewPortTest.testTools):
5259     Reformat to increase readability.
5260    
5261     2003-07-18 Bernhard Herzog <[email protected]>
5262    
5263 bh 1461 * Thuban/UI/view.py (MapCanvas.OnLeftDown): Capture the mouse.
5264    
5265     2003-07-18 Bernhard Herzog <[email protected]>
5266    
5267 bh 1459 * test/runtests.py: The test suite can now be run without an X
5268     connection. To make sure this remains true, remove the DISPLAY
5269     environment variable so that an error occurs if the wxGTK is
5270     imported accidentally
5271    
5272     2003-07-18 Bernhard Herzog <[email protected]>
5273    
5274 bh 1457 * Thuban/UI/viewport.py: Remove unused imports
5275    
5276     * Thuban/UI/view.py: Remove unused imports
5277    
5278     2003-07-18 Bernhard Herzog <[email protected]>
5279    
5280 bh 1455 * test/test_export.py Remove unused imports. The OutputTransform
5281     function is now in viewport.py and is called output_transform
5282     (TestScalebar.test_output_transform)
5283     (TestScalebar.test_OutputTransform): Renamed to
5284     test_output_transform and updated to use output_transform instead
5285     of OutputTransform
5286    
5287     * Thuban/UI/view.py (OutputTransform): Moved to viewport.py and
5288     renamed.
5289     (MapCanvas.Export, MapPrintout.draw_on_dc): OutputTransform was
5290     renamed to output_transform
5291    
5292     * Thuban/UI/viewport.py (OutputTransform, output_transform):
5293     Rename to output_transform
5294    
5295     2003-07-18 Bernhard Herzog <[email protected]>
5296    
5297 bh 1453 * Thuban/Model/layer.py (Layer.__init__): Rename
5298     classificationField to classificatin_column and init it here so
5299     that it can be used in SetClassificationColumn
5300     (Layer.GetClassificationColumn, Layer.GetClassificationField):
5301     Rename to GetClassificationColumn.
5302     (Layer.SetClassificationColumn, Layer.SetClassificationField):
5303     Rename to SetClassificationColumn and issue a LAYER_CHANGED
5304     message if the column changes.
5305     (Layer._classification_changed, Layer.ClassChanged): Rename to
5306     _classification_changed. Update the callers.
5307     (Layer.SetShapeStore): Further field->column renames.
5308    
5309     * Thuban/Model/load.py (SessionLoader.start_classification)
5310     (SessionLoader.start_clpoint): Updates because of
5311     field->column method name changes in the Layer class
5312    
5313     * Thuban/Model/save.py (SessionSaver.write_classification): Updates
5314     because of field->column method name changes in the Layer class
5315    
5316     * Thuban/UI/classifier.py (Classifier.__init__)
5317     (Classifier._OnTry, Classifier._OnRevert): Updates because of
5318     field->column method name changes in the Layer class
5319    
5320     * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Updates
5321     because of field->column method name changes in the Layer class
5322    
5323     * Thuban/UI/viewport.py (ViewPort.find_shape_at): Updates because
5324     of field->column method name changes in the Layer class
5325    
5326     * test/test_save.py (SaveSessionTest.testClassifiedLayer)
5327     (SaveSessionTest.testClassifiedLayer): Update because of
5328     field->column method name changes in the Layer class
5329    
5330     * test/test_layer.py (SetShapeStoreTests.setUp)
5331     (SetShapeStoreTests.test_sanity): Update because of field->column
5332     method name changes in the Layer class
5333     (TestLayerModification.setUp): Subscribe to LAYER_CHANGED as well
5334     (TestLayerModification.test_sanity)
5335     (TestLayerModification.test_initial_settings): remove unsued code
5336     and rename to test_sanity.
5337     (TestLayerModification.test_set_classification): New test for
5338     SetClassification and SetClassificationField.
5339    
5340     2003-07-18 Bernhard Herzog <[email protected]>
5341    
5342 bh 1451 * test/test_classgen.py (TestFixedRamp.test): Extend test to check
5343     the non-fixed values as well. The old test would have accepted a
5344     fixed ramp that only returnes the fixed properties
5345    
5346 jonathan 1449 2003-07-17 Jonathan Coles <[email protected]>
5347    
5348     * Doc/manual/mainwindow.png, Doc/manual/mainwindow.xcf: Screen
5349     shots for the manual. The XCF file is the source image and
5350     has additional layers to support changes.
5351    
5352     * Doc/manual/thuban-manual.xml: Wrote an initial Introduction.
5353    
5354     * Thuban/UI/classifier.py (Classifier.__BuildClassification):
5355     Return both the new class and the field name.
5356    
5357     * Thuban/UI/mainwindow.py (MainWindow.ToggleLegend): Don't
5358     fit the map to the window as this changes any zoom level that
5359     the user may have set.
5360    
5361 jonathan 1442 2003-07-16 Jonathan Coles <[email protected]>
5362    
5363     * Thuban/Model/classgen.py (generate_singletons,
5364     generate_uniform_distribution, generate_quantiles): Remove
5365     fixes parameter, but maintain the same functionality by having
5366     the calling function pass a FixedRamp object for the ramp.
5367     (FixedRamp): New. Adapts a ramp to have fixed property values.
5368    
5369     * Thuban/Model/classification.py: Use new CLASS_CHANGED message.
5370     (Classification): Inherit from Publisher.
5371     (Classification.__init__): Remove the layer parameter.
5372     Classifications no longer need to have a parent layer.
5373     (Classification.GetField, Classification.GetFieldType,
5374     Classification.SetFieldInfo): Removed. The field name is stored
5375     in the layer, and the type can be retreived by calling
5376     Layer.GetFieldType().
5377     (Classification._set_layer, Classification.GetLayer): Removed.
5378     Classifications no longer have a parent layer.
5379    
5380     * Thuban/Model/layer.py (Layer.Destroy): Unsubscribe from the
5381     classification.
5382     (Layer.SetShapeStore): Reset the classification first while
5383     we still have the old shape store to work with.
5384     (Layer.GetClassificationField, Layer.SetClassificationField):
5385     New. Method for getting/setting the field to classify on.
5386     (Layer.SetClassification): Simplified now that the layer
5387     simply has to hold a reference to the classification and not
5388     tell the classification who owns it.
5389     Fixes RTbug #2023.
5390    
5391     * Thuban/Model/load.py (SessionLoader.start_classification):
5392     Set the field name on the layer, not the classification.
5393    
5394     * Thuban/Model/messages.py: Add CLASS_CHANGED for when a
5395     classification is modified.
5396    
5397     * Thuban/Model/save.py (SessionSaver.write_classification):
5398     Get the field name and type from the layer.
5399    
5400     * Thuban/Model/table.py (table_to_dbf, table_to_csv): Renamed
5401     parameter records to rows and add docstring. Fixes RTbug #1997.
5402    
5403     * Thuban/UI/classgen.py (ClassGenDialog.OnOK): Use a fixed
5404     ramp when we need to fix certain values of a ramp rather than
5405     using the old fixes parameter. Fixes RTbug #2024.
5406    
5407     * Thuban/UI/classifier.py (ClassGrid.CreateTable): Add fieldType
5408     parameter.
5409     (ClassTable.Reset): Add fieldType parameter and use it, rather
5410     than asking the classification.
5411     (Classifier.__init__): Remember the original class's field
5412     and ask the layer for the field type, rather than the classification.
5413     (Classifier.__SetGridTable): Retrieve the field and field type
5414     for the table because they are not in the classification.
5415     (Classifier._OnTry, Classifier._OnRevert): Set the classification
5416     field on the layer in addition to the classification itself.
5417    
5418     * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Get the
5419     classification field from layer.
5420    
5421     * Thuban/UI/viewport.py (ViewPort.find_shape_at): Get the
5422     classification field from layer. Split up tests and remove
5423     *-imports. Fixes RTbug #1992.
5424    
5425     * test/test_classgen.py (TestFixedRamp): Test for the FixedRamp class.
5426    
5427     * test/test_classification.py
5428     (TestClassification.test_classification): Remove tests for methods
5429     that no longer exist.
5430    
5431     * test/test_layer.py (SetShapeStoreTests.setUp): Classification
5432     __init__ no longer has a field parameter, use SetClassificationField.
5433     (SetShapeStoreTests.test_sanity): Use layer object to get class
5434     field info.
5435    
5436     * test/test_save.py (SaveSessionTest.testClassifiedLayer): Use
5437     SetClassificationField on layer to set class field info.
5438    
5439     * test/test_viewport.py: Renamed from test/test_view.py.
5440    
5441 jan 1424 2003-07-16 Jan-Oliver Wagner <[email protected]>
5442    
5443     * Doc/manual/thuban-manual.xml: Added authors and an initial
5444     coarse structure.
5445    
5446 bh 1418 2003-07-15 Bernhard Herzog <[email protected]>
5447    
5448 bh 1422 * test/support.py (FloatComparisonMixin): This is a mix-in class
5449     and therefore should not be derived from any other class.
5450    
5451     * test/test_range.py (RangeTest): FloatComparisonMixin is a
5452     mix-in, so derive from TestCase as well.
5453    
5454     2003-07-15 Bernhard Herzog <[email protected]>
5455    
5456 bh 1420 * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Rework the
5457     draw_func handling a bit to remove one layer of indirection. This
5458     makes the renderer about 10% faster in the non-classifying case
5459     and the code a bit cleaner
5460     (MapRenderer.draw_point_shape): Add the pen and brush parameters
5461     and set them in the dc. Now the draw_point_shape method and
5462     wxproj's draw_polygon_shape function have basically the same
5463     signature so that both can be directly used as draw_func
5464    
5465     2003-07-15 Bernhard Herzog <[email protected]>
5466    
5467 bh 1418 * Thuban/Model/save.py (SessionSaver.write_classification): Encode
5468     string values (in addition to the labels) as UTF 8
5469    
5470     * Thuban/Model/load.py (SessionLoader.start_clpoint): Decode the
5471     values if the field type is string
5472    
5473     * test/test_save.py (SaveSessionTest.testClassifiedLayer): Test
5474     saving a session with non-ascii string classification values.
5475    
5476     * test/test_load.py (TestClassification.file_contents)
5477     (TestClassification.test): Check for non-ascii values in string
5478     classifications
5479    
5480 jonathan 1416 2003-07-14 Jonathan Coles <[email protected]>
5481    
5482     * test/test_view.py: New. Tests for ViewPort.
5483    
5484 frank 1409 2003-07-14 Frank Koormann <[email protected]>
5485    
5486     * Thuban/Model/load.py (SessionLoader.start_map): Encode map
5487     title to latin1. Fixes https://intevation.de/rt/webrt?serial_num=2013
5488    
5489 frank 1411 * test/test_load_0_8.py (TestUnicodeStrings): New, test load of
5490     unicode strings from session file: session title, map title and
5491     projection name.
5492    
5493 jonathan 1403 2003-07-10 Jonathan Coles <[email protected]>
5494    
5495 jonathan 1406 * Thuban/UI/viewport.py (Tool.MouseUp): Should have called
5496     drag_stop, not drag_move when the mouse is released.
5497    
5498     2003-07-10 Jonathan Coles <[email protected]>
5499    
5500 jonathan 1403 The most important part of this is the seperation of view.py into
5501     two pieces. viewport.py now has a class called ViewPort which
5502     contains all the non-wx parts of view.py and can therefore be
5503     tested. view.py contains only the wx-specific parts and is fairly
5504     simple.
5505    
5506     * Thuban/UI/view.py: Stripped out all non-wx functionality. Fixes
5507     RTTbug #1992.
5508     * Thuban/UI/viewport.py: New. Contains non-wx view functionality.
5509     RTTbug #1992.
5510    
5511     * Thuban/Model/classgen.py (generate_singletons,
5512     generate_uniform_distribution, generate_quantiles):
5513     Added 'fixes' parameter so that property attributes can
5514     be held constant over the generated classification groups.
5515     (CustomRamp.GetProperties): Remove unused variables.
5516    
5517     * Thuban/Model/map.py (Map.SetProjection): Send the old
5518     projection as an argument to listeners of the MAP_PROJECTION_CHANGED
5519     event.
5520    
5521     * Thuban/Model/table.py (table_to_dbf, table_to_csv): Added 'records'
5522     parameter which is a list of records that restricts which
5523     records are saved. Fixes RTbug #1997.
5524    
5525     * Thuban/UI/application.py (ThubanApplication.ShowExceptionDialog):
5526     Port exception dialog from GREAT-ER. Fixes RTbug #1993.
5527    
5528     * Thuban/UI/classgen.py (ClassGenDialog.__init__): Add controls
5529     to allow the user to fix line color/width on generated groups.
5530     (ClassGenDialog.OnOK): Use new 'fixes' parameter of the generate_*
5531     functions to optionally fix group properties.
5532    
5533     * Thuban/UI/main.py (main): Set exception hook to the
5534     ShowExceptionDialog. Fixes RTbug #1993.
5535    
5536     * Thuban/UI/mainwindow.py (MainWindow.ShowTableView): Raise
5537     the table window when it is selectd to be shown.
5538    
5539     * Thuban/UI/tableview.py (QueryTableFrame.__init__): Add an
5540     Export Selection button and move the export buttons underneath
5541     the table.
5542     (QueryTableFrame.UpdateStatusText): Added event argument so
5543     that it can respond to grid selection events. The status text
5544     is now updated even when the table is not associated with a
5545     layer as was previously assumed.
5546     (QueryTableFrame.OnGridSelectRange, OnGridSelectCell): Removed.
5547     UpdateStatusText responds to these events.
5548     (QueryTableFrame.OnSaveAs): Renamed to doExport.
5549     (QueryTableFrame.doExport): Helper function that saves the
5550     entire table, or selected rows, to a file.
5551     (QueryTableFrame.OnExport, QueryTableFrame.OnExportSel): New.
5552     Respond to export button events and call doExport.
5553    
5554     * extensions/thuban/gdalwarp.cpp (ProjectRasterFile): Make sure
5555     the function doesn't return NULL without first setting a Python
5556     Error.
5557    
5558     * test/runtests.py (main): Only print "Unknown option" for
5559     unsupported options.
5560    
5561     * test/support.py (FloatComparisonMixin.assertFloatEqual): Take
5562     optional epsilon argument to specify floating point accuracy.
5563     (FloatComparisonMixin.assertFloatSeqEqual): Call assertFloatEqual
5564     for each item test.
5565    
5566     * test/test_csv_table.py (TestCSVTable.test_table_to_cvs): Add
5567     tests for saving selected records.
5568    
5569     * test/test_dbf_table.py (TestTableToDBF.test_table_to_dbf): Add
5570     tests for saving selected records.
5571    
5572     * test/test_map.py (TestMapWithContents.test_set_projection):
5573     MAP_PROJECTION_CHANGED events send the old projection.
5574    
5575     * test/test_session.py
5576     (TestSessionWithContent.test_forward_map_projection):
5577     MAP_PROJECTION_CHANGED events send the old projection.
5578    
5579     * test/test_table.py (TableTest): Update tests to use non-deprecated
5580     functions.
5581    
5582 bh 1376 2003-07-08 Bernhard Herzog <[email protected]>
5583    
5584 bh 1382 * Thuban/Model/transientdb.py (TransientTableBase.Width): The type
5585     constants in the column objects are the standard ones defined in
5586     the table module.
5587    
5588     * test/test_transientdb.py
5589     (TestTransientTable.test_transienttable_to_dbf): New. Test whether
5590     exporting transient tables as DBF works. This should catch the bug
5591     just fixed in TransientTableBase.Width.
5592    
5593     2003-07-08 Bernhard Herzog <[email protected]>
5594    
5595 bh 1380 * Thuban/Model/classgen.py (CustomRamp.GetProperties): Compute the
5596     interpolated colors correctly.
5597    
5598     * test/test_classgen.py (TestCustomRamp.test_color_interpolation):
5599     New. Test case for the fix in classgen.py
5600    
5601     2003-07-08 Bernhard Herzog <[email protected]>
5602    
5603 bh 1378 * test/runtests.py (main): Make the default output less verbose
5604     and add a verbosity option (-v) to get the old output
5605    
5606     2003-07-08 Bernhard Herzog <[email protected]>
5607    
5608 bh 1376 * Resources/XML/thuban-0.9.dtd: New. This will become the DTD for
5609     0.9.
5610    
5611     * Thuban/Model/transientdb.py (TransientJoinedTable.JoinType):
5612     New. Return the join type
5613    
5614     * Thuban/Model/save.py (SessionSaver.write_session): Use new 0.9
5615     DTD
5616     (SessionSaver.write_data_containers): Save the join type for
5617     joined tables
5618    
5619     * Thuban/Model/load.py (SessionLoader.__init__): Add the new 0.9
5620     namespace
5621     (SessionLoader.start_jointable): Handle the jointype attribute
5622    
5623     * test/test_load_0_8.py: New. Effectively a copy of test_load.py
5624     as of Thuban 0.8. These are now tests to determine whether Thuban
5625     can still read files generated by Thuban 0.8
5626    
5627     * test/test_load.py (LoadSessionTest.dtd)
5628     (TestSingleLayer.file_contents)
5629     (TestLayerVisibility.file_contents, TestLabels.file_contents)
5630     (TestLayerProjection.file_contents)
5631     (TestRasterLayer.file_contents, TestJoinedTable.file_contents)
5632     (TestJoinedTable.file_contents)
5633     (TestLoadError.file_contents): Update for new DTD
5634     (TestJoinedTable.file_contents, TestJoinedTable.setUp): Add test
5635     for new join type attribute
5636    
5637     * test/test_save.py (SaveSessionTest.dtd)
5638     (SaveSessionTest.testEmptySession)
5639     (SaveSessionTest.testSingleLayer)
5640     (SaveSessionTest.testLayerProjection)
5641     (SaveSessionTest.testRasterLayer)
5642     (SaveSessionTest.testClassifiedLayer)
5643     (SaveSessionTest.test_dbf_table)
5644     (SaveSessionTest.test_joined_table): Update for new DTD
5645     (SaveSessionTest.test_joined_table): Add test for new join type
5646     attribute
5647    
5648 bh 1372 2003-07-04 Bernhard Herzog <[email protected]>
5649    
5650     * Thuban/Model/table.py (_find_dbf_column_names): New. Helper
5651     function for table_to_dbf
5652     (table_to_dbf): Deal with names longer than the 10 character limit
5653    
5654     * test/test_dbf_table.py (TestTableToDBF.test_table_to_dbf): Add
5655     doc-string
5656     (TestTableToDBF.test_table_to_dbf_long_col_names): New test for
5657     long column names
5658    
5659 bh 1365 2003-07-03 Bernhard Herzog <[email protected]>
5660    
5661 bh 1370 * Doc/manual/thuban-manual.xml: Fix the CVS Revision Tag syntax
5662    
5663     2003-07-03 Bernhard Herzog <[email protected]>
5664    
5665 bh 1368 * Doc/manual/thuban-manual.xml, Doc/manual/README: New. Skeleton
5666     for the Thuban manual and README with some basic information about
5667     the manual
5668    
5669     2003-07-03 Bernhard Herzog <[email protected]>
5670    
5671 bh 1365 * Thuban/Model/transientdb.py (TransientJoinedTable.__init__):
5672     Update doc-string
5673     (TransientJoinedTable.create): Do not modify the column objects of
5674     the input tables in place and copy all columns of the input tables
5675     into the joined table after all.
5676    
5677     * test/test_transientdb.py
5678     (TestTransientTable.test_transient_joined_table_same_column_name):
5679     Update to reflect the new behavior
5680     (TestTransientTable.test_transient_joined_table_with_equal_column_names):
5681     Update to reflect the new behavior
5682     (TestTransientTable.test_transient_joined_table_name_collisions_dont_modify_in_place):
5683     New test case for a bug which modified the column objects in place
5684    
5685 jonathan 1360 2003-07-02 Jonathan Coles <[email protected]>
5686 jonathan 1349
5687 jonathan 1360 * Thuban/Model/classgen.py (generate_singletons,
5688     generate_uniform_distribution, generate_quantiles,
5689 jonathan 1363 GenQuantiles0): Make sure maxValue isn't less than
5690     one, otherwise we could divide by zero.
5691    
5692     * test/test_classgen.py (ClassGenTest.doClassRangeTest,
5693     ClassGenTest.doClassSingleTest): Call doBoundsTest to
5694     check the end classification groups against the
5695     proper property values.
5696     (ClassGenTest.doBoundsTest): New. Checks the first and
5697     last classification groups to make sure their properties
5698     are the correct upper and lower bounds for a color ramp.
5699    
5700     2003-07-02 Jonathan Coles <[email protected]>
5701    
5702     * Thuban/Model/classgen.py (generate_singletons,
5703     generate_uniform_distribution, generate_quantiles,
5704 jonathan 1360 GenQuantiles0): The denominator was one to high when
5705     calculating the index for the ramp causing the index
5706     to never to reach one.
5707    
5708     2003-07-02 Jonathan Coles <[email protected]>
5709    
5710 jonathan 1358 Changed the singature of ClassGroupRange.__init__ and
5711     ClassGroupRange.SetRange() so that the min/max values are
5712     passed as a tuple. This makes a better calling scheme for
5713     when a Range object is passed instead.
5714    
5715     * Thuban/Model/classgen.py: Fixed parameters to
5716     ClassGroupRange constructor.
5717    
5718     * Thuban/Model/classification.py (ClassGroupRange.__init__):
5719     Consolidate the min/max parameters into a single _range which
5720     can either be a tuple or a Range object.
5721     (ClassGroupRange.SetRange): Consolidate the min/max parameters
5722     into a single _range which can either be a tuple or a Range object.
5723    
5724     * Thuban/Model/load.py (SessionLoader.start_clrange): Fix
5725     call to ClassGroupRange constructor to use a tuple.
5726    
5727     * Thuban/Model/layer.py (Layer.SetClassification): Switch
5728     the classification instance variable to the new class
5729     before calling _set_layer otherwise subscribers to a
5730     LAYER_CHANGED event will not see any difference.
5731    
5732     * test/test_classification.py: Fix tests of ClassGroupRange
5733     so that they use the new signature.
5734    
5735     * test/test_load.py: Fix use of ClassGroupRange so that it
5736     uses the new signature.
5737    
5738     * test/test_load_0_2.py: Fix use of ClassGroupRange so that it
5739     uses the new signature.
5740    
5741     * test/test_save.py: Fix use of ClassGroupRange so that it
5742     uses the new signature.
5743    
5744    
5745     2003-07-01 Jonathan Coles <[email protected]>
5746    
5747 jonathan 1349 * Thuban/Model/classgen.py: Fixes RTbug #1972, 1971.
5748     Import used objects/class from color.
5749     (generate_singletons): We don't
5750     need the numGroups parameter anymore because we are using
5751     the new ramps with GetProperties().
5752     (generate_uniform_distribution): Use new ramp method
5753     GetProperties().
5754     (generate_quantiles, GenQuantiles0): Use new ramp method
5755     GetProperties().
5756     (CustomRamp.SetNumGroups): Removed. The ramps now map
5757     a value from 0 to 1 to class properties so the number
5758     of groups is not needed ahead of time.
5759     (CustomRamp.next): Removed. CustomRamp does not support
5760     interation anymore.
5761     (CustomRamp.GetProperties): Returns a ClassGroupProperties
5762     object based on the index value from 0 to 1 that is
5763     passed to it.
5764     (GreyRamp, RedRamp, GreenRamp, BlueRamp, GreenToRedRamp):
5765     Made into instances of Monochromatic class instread of
5766     deriving from it.
5767     (HotToCold.SetNumGroups): Removed. See CustomRamp.
5768     (HotToCold.next): Removed. See CustomRamp.
5769    
5770     * Thuban/Model/classification.py: Fixes RTbug #1973, 1971.
5771     (Classification.SetField, Classification.SetFieldType):
5772     Replaced with SetFieldInfo.
5773     (Classification.SetFieldInfo): New. Does a better job of
5774     what SetField and SetFieldType used to do by combining
5775     their function since they should really always be done
5776     at the same time.
5777     (Classification.SetLayer): Renamed to _set_layer.
5778     (Classification._set_layer): Should only be called from
5779     Layer's SetClassification. This does not cause a recursive
5780     call as SetLayer did because we know that Layer knows about
5781     the classification.
5782    
5783     * Thuban/Model/color.py: Fixes RTbug #1971.
5784     (_Transparent): Renamed from Transparent so it doesn't
5785     conflict with the module variable.
5786     (Transparent, Black): Renamed from Color.Transparent,
5787     Color.Black so they are not class variables.
5788    
5789     * Thuban/Model/layer.py: Fixes RTbug #1971, 1973.
5790     (Layer.Destroy): We don't need to call SetClassification
5791     anymore to clear out the back reference in the classifcation
5792     to the layer. It's better to set it to None using _set_layer,
5793     and we won't be creating another clas object too.
5794     (Layer.SetClassification): Classification._set_layer is not
5795     recursive so remove all the locking variables. Also clean
5796     up the code so that it remains unchanged if something fails.
5797    
5798     * Thuban/Model/load.py: Fixes RTbug #1971.
5799     (SessionLoader.start_classification): Call
5800     Classification.SetFieldInfo().
5801    
5802     * Thuban/Model/save.py: Removed import of Color which wasn't
5803     being used.
5804    
5805     * Thuban/UI/classgen.py: Fixes RTbug #1972.
5806     (ClassGenDialog.__init__): Color ramps are now instances
5807     already so we don't need to create any new objects.
5808     (ClassGenDialog.OnOK): Check for numGroups is no longer
5809     necessary because we never use it.
5810    
5811     * Thuban/UI/classifier.py: Fixes RTbug #1971.
5812     (Classifier.__BuildClassification, Classifier.__SetGridTable):
5813     Call Classification.SetFieldInfo() instead of SetFieldType.
5814    
5815     * Thuban/UI/renderer.py: Fixes RTbug #1971.
5816    
5817     * Thuban/UI/view.py: Fixes RTbug #1974, 1971.
5818     (MapCanvas.__init__): Subscribe to the idle time event. Set
5819     background color to white.
5820     (MapCanvas.OnPaint): Set a flag indicating that we should
5821     render the map during idle time. If we already have a bitmap
5822     just draw it now.
5823     (MapCanvas.OnIdle): New. Render the map only during idle time.
5824     This also fixes a problem with the busy cursor under gtk.
5825    
5826     * test/test_classgen.py (ClassGenTest.test_generate_singletons):
5827     Fix calls to generate_singletons because the signature changed.
5828    
5829     * test/test_classification.py: Fix color references and
5830     change calls to Classification.[SetField|SetFieldType] to
5831     SetFieldInfo.
5832    
5833     * test/test_load.py: Fix color references.
5834    
5835     * test/test_load_0_2.py: Fix color references.
5836    
5837     * test/test_save.py (SaveSessionTest.testClassifiedLayer):
5838     Change calls to Classification.[SetField|SetFieldType] to
5839     SetFieldInfo.
5840    
5841 frank 1334 2003-07-01 Frank Koormann <[email protected]>
5842    
5843     MERGE from the greater-ms3 branch.
5844    
5845     * test/test_transientdb.py
5846     (TestTransientTable.test_transient_joined_table_with_equal_column_names):
5847     New. Test join of two tables with partly equal column names.
5848    
5849     * Thuban/Model/transientdb.py (TransientJoinedTable.create):
5850     If duplicates in left and right tables column names are found,
5851     append '_' (underscores) to the name until it is unique.
5852     Create always new internal names for the resulting table and reference
5853     columns in the join statement with <table>.<column>
5854    
5855 bh 1329 2003-07-01 Bernhard Herzog <[email protected]>
5856    
5857     * test/test_transientdb.py
5858     (TestTransientTable.test_transient_joined_table_same_column_name):
5859     New. Test whether joining on columns with the same names in both
5860     tables works.
5861 frank 1334
5862 bh 1329 * Thuban/Model/transientdb.py (TransientJoinedTable.create): Make
5863     sure to use the right internal names even when joining on field
5864     with the same names in both tables. Also, detect duplicate names
5865     in the joined table correctly.
5866    
5867 frank 1325 2003-07-01 Frank Koormann <[email protected]>
5868    
5869     * Thuban/UI/renderer.py (ExportRenderer.render_legend):
5870     Reverse List of layers to render in same order as in desktop legend.
5871    
5872 jonathan 1318 2003-06-30 Jonathan Coles <[email protected]>
5873    
5874 jonathan 1349 * Thuban/version.py (make_tuple): Takes a version string
5875     and splits it into a tuple of at most three integers.
5876     Used make_tuple() to make tuple versions of the version
5877     numbers.
5878    
5879     * Thuban/UI/about.py: Add Thuban email addresses.
5880    
5881     2003-06-30 Jonathan Coles <[email protected]>
5882    
5883 jonathan 1320 * Thuban/version.py: SQLite/PySQLite version dependencies
5884     were too high.
5885    
5886     2003-06-30 Jonathan Coles <[email protected]>
5887    
5888 jonathan 1318 * Thuban/version.py: Update version to 0.8.1
5889    
5890     * MANIFEST.in: Added Projections so that default.proj is
5891     included.
5892    
5893 jonathan 1312 2003-06-26 Jonathan Coles <[email protected]>
5894    
5895     New About box with lots more information including library
5896     versions and credits. More/better version checking before
5897     Thuban starts.
5898    
5899     * Thuban/UI/about.py: New. New About box that displays
5900     library version information and credits.
5901    
5902     * Thuban/version.py: Added new 'versions' dictionary which
5903     contains the verions of various libraries which are checked
5904     when the module loads.
5905     (verify_versions): Check all version numbers and returns
5906     a list of errors.
5907    
5908     * Thuban/UI/classifier.py (Classifier.__EnableButtons):
5909     Reset the status of the buttons as the situation warrants,
5910     but in a better more reliable way by not relying on the
5911     current status to determine what needs to change.
5912    
5913     * Thuban/UI/main.py (wxCHECK_VERSION): Removed. Not needed.
5914     (verify_versions): Remove most of the code since it is
5915     now in Thuban.version.verify_versions.o
5916    
5917     * Thuban/UI/mainwindow.py (MainWindow.About): Call new
5918     About box in Thuban.UI.about.
5919    
5920     * extensions/thuban/gdalwarp.cpp (get_gdal_version): New.
5921     Returns the version of gdal library being used as a string.
5922    
5923     * extensions/thuban/wxproj.cpp (check_version, check_version_gtk):
5924     Removed.
5925     (get_proj_version): Return the version of PROJ that the file
5926     was compiled with.
5927     (get_gtk_version): Return th version of GTK that the file
5928     was compiled with.
5929    
5930 jonathan 1304 2003-06-25 Jonathan Coles <[email protected]>
5931    
5932     * Thuban/UI/classifier.py (Classifier.EditSymbol): The parent
5933     of the SelectPropertiesDialog should be self so the window
5934     appears on top.
5935     (ClassGroupPropertiesCtrl.DoEdit): The parent
5936     of the SelectPropertiesDialog should be self so the window
5937     appears on top.
5938    
5939     * Thuban/UI/resource.py: Cleaned up how we determine file
5940     extensions.
5941     (GetImageResource): Return an wxImage from our Resources.
5942    
5943 jonathan 1299 2003-06-24 Jonathan Coles <[email protected]>
5944    
5945     * Thuban/UI/renderer.py (ExportRenderer.render_legend):
5946     Check that a layer has a classification before trying
5947     to get it. Raster layers don't have classifications.
5948    
5949 jonathan 1286 2003-06-23 Jonathan Coles <[email protected]>
5950 jonathan 1297
5951     * setup.py: Add Resources/XML to resource list.
5952    
5953     2003-06-23 Jonathan Coles <[email protected]>
5954 jonathan 1286
5955 jonathan 1297 * setup.cfg: Fix copyright dates
5956    
5957     2003-06-23 Jonathan Coles <[email protected]>
5958    
5959 jonathan 1294 * MANIFEST.in: Update with Resources/XML
5960    
5961     * setup.py: Don't include Locale resources yet as we don't
5962     have any and it causes problems building the distribution
5963     for Windows. Update version to 0.8.0.
5964    
5965     * Doc/thuban.dtd: Removed since it is now in Resources/XML.
5966    
5967     * Thuban/UI/mainwindow.py: Add blank line at the end because
5968     file was not being read correctly building the Windows
5969     distribution.
5970    
5971     2003-06-23 Jonathan Coles <[email protected]>
5972    
5973 jonathan 1289 * Thuban/UI/mainwindow.py (MainWindow.About): Fix text.
5974    
5975     * Thuban/version.py: Temporarily update longversion for
5976     the 0.8 release so that it doesn't have the cvs revision.
5977    
5978     2003-06-23 Jonathan Coles <[email protected]>
5979    
5980 jonathan 1286 * Thuban/UI/common.py (ThubanBeginBusyCursor): Call wxSafeYield
5981     to make sure that we don't create reentrant possibilities with
5982     wxYield.
5983    
5984     * Thuban/UI/view.py (MapCanvas.OnPaint): Call wxBeginBusyCursor()
5985     directly to avoid the wxSafeYield() call which generates an
5986     OnPaint event causing infinite recursion. Don't try to catch
5987     exception anymore. This was for before there were limits on map
5988     scaling.
5989    
5990 bh 1283 2003-06-23 Bernhard Herzog <[email protected]>
5991    
5992     Bug fix for RT #1961:
5993    
5994     * Thuban/Model/load.py (SessionLoader.start_derivedshapesource):
5995     Register DerivedShapestores with the session
5996    
5997     * Thuban/Model/session.py (Session.Tables): Make sure each table
5998     is only listed once.
5999    
6000     * test/test_load.py (TestJoinedTable.test): Add check_format call.
6001     Update file contents to match the one written out.
6002    
6003 bh 1281 2003-06-20 Bernhard Herzog <[email protected]>
6004    
6005     * test/xmlsupport.py (SaxEventLister.startElementNS)
6006     (SaxEventLister.endElementNS): Do not include the qname. Python
6007     2.2.1 and 2.2.2 and 2.2.3 differ in this regard. In 2.2.1 qname it
6008     is (presumably incorrectly) None, whereas it's a string with the
6009     element name in the later versions.
6010    
6011     * test/test_xmlsupport.py (TestEventList.test_even_list_simple)
6012     (TestEventList.test_even_list_namespace): Update tests to reflect
6013     the new behaviour
6014     (TestEventList.test_even_list_id_normalization): Fix doc-string
6015    
6016 jonathan 1272 2003-06-20 Jonathan Coles <[email protected]>
6017    
6018 jonathan 1279 * Thuban/Model/layer.py (BaseLayer.HasShapes): New. Overridden
6019     by deriving classes to determine if that layer supports shapes.
6020     (Layer): Override HasShapes and return true.
6021    
6022     * Thuban/UI/classgen.py: Use Thuban[Begin|End]BusyCursor()
6023     instead of a direct call to wx[Begin|End]CusyCursor().
6024     (GenUniquePanel._OnRetrieve): Set busy cursor while retrieving
6025     table data.
6026    
6027     * Thuban/UI/common.py (ThubanBeginBusyCursor, ThubanEndBusyCursor):
6028     New. Wrappers around the wxWindows functions that allow us to
6029     make additional calls such as wxYield which gives the native
6030     system a chance to update the cursor correctly.
6031    
6032     * Thuban/UI/tableview.py: Use Thuban[Begin|End]BusyCursor()
6033     instead of a direct call to wx[Begin|End]CusyCursor().
6034    
6035     * Thuban/UI/view.py: Use Thuban[Begin|End]BusyCursor()
6036     instead of a direct call to wx[Begin|End]CusyCursor().
6037     (MapCanvas.find_shape_at): Check if the current search layer
6038     support shapes, otherwise go on to the next layer.
6039    
6040     * test/test_layer.py: Add tests in each type of layer for
6041     HasClassification() and HasShapes()
6042    
6043     2003-06-20 Jonathan Coles <[email protected]>
6044    
6045 jonathan 1272 * Thuban/UI/view.py (MapCanvas.OnPaint): Call wxYield after
6046     turning on the busy cursor to allow the system to change the
6047     cursor before we begin painting. This fixes a problem that
6048     was occuring only under GTK. Fixes RTbug #1840.
6049    
6050 bh 1270 2003-06-20 Bernhard Herzog <[email protected]>
6051    
6052     * Resources/XML/thuban-0.8.dtd: New DTD for the new file format
6053     version.
6054    
6055     * Thuban/Model/save.py (sort_data_stores): New. Make topological
6056     sort of the data sources so they can be written with sources that
6057     data sources that depend on other data sources come after the
6058     sources they depend on.
6059     (SessionSaver.__init__): Add idmap instance variable to map from
6060     objects to the ids used in the file.
6061     (SessionSaver.get_id, SessionSaver.define_id)
6062     (SessionSaver.has_id): New. Methods to manage the idmap
6063     (SessionSaver.write): Use thuban-0.8.dtd
6064     (SessionSaver.write_session): Add a namespace on the session and
6065     write out the data sources before the maps.
6066     (SessionSaver.write_data_containers): New. Write the data
6067     containers.
6068     (SessionSaver.write_layer): Layer elements now refer to a
6069     shapestore and don't contain filenames anymore.
6070    
6071     * Thuban/Model/load.py (LoadError): Exception class to raise when
6072     errors in the files are discovered
6073     (SessionLoader.__init__): Define dispatchers for elements with a
6074     thuban-0.8 namespace too.
6075     (SessionLoader.check_attrs): New helper method to check and
6076     convert attributes
6077     (AttrDesc): New. Helper class for SessionLoader.check_attrs
6078     (SessionLoader.start_fileshapesource)
6079     (SessionLoader.start_derivedshapesource)
6080     (SessionLoader.start_filetable, SessionLoader.start_jointable):
6081     Handlers for the new elements in the new fileformat
6082     (SessionLoader.start_layer): Handle the shapestore attribute in
6083     addition to filename.
6084     (SessionLoader.start_table, SessionLoader.end_table): Removed.
6085     They were never used in the old formats and aren't needed for the
6086     new.
6087    
6088     * Thuban/Model/session.py (Session.DataContainers): New method to
6089     return all "data containers", i.e. shapestores and tables
6090    
6091     * test/xmlsupport.py (SaxEventLister.__init__)
6092     (SaxEventLister.startElementNS, sax_eventlist): Add support to
6093     normalize IDs.
6094    
6095     * test/test_xmlsupport.py
6096     (TestEventList.test_even_list_id_normalization): New test case for
6097     id normalization
6098    
6099     * test/test_load.py (LoadSessionTest.check_format): Use ID
6100     normalization
6101     (LoadSessionTest.thubanids, LoadSessionTest.thubanidrefs): New
6102     class atrributes used for ID normalization
6103     (TestSingleLayer, TestLayerVisibility, TestLabels.test)
6104     (TestLayerProjection.test, TestRasterLayer.test): Adapt to new
6105     file format
6106     (TestJoinedTable): New test for loading sessions with joined
6107     tables.
6108     (TestLoadError): New. Test whether missing required attributes
6109     cause a LoadError.
6110    
6111     * test/test_save.py (SaveSessionTest.thubanids)
6112     (SaveSessionTest.thubanidrefs): New class attributes for ID
6113     normalization in .thuban files.
6114     (SaveSessionTest.compare_xml): Use id-normalization.
6115     (SaveSessionTest.testEmptySession)
6116     (SaveSessionTest.testLayerProjection)
6117     (SaveSessionTest.testRasterLayer)
6118     (SaveSessionTest.testClassifiedLayer): Adapt to new file format.
6119     (SaveSessionTest.testLayerProjection): The filename used was the
6120     same as for testSingleLayer. Use a different one.
6121     (SaveSessionTest.test_dbf_table)
6122     (SaveSessionTest.test_joined_table): New test cases for saving the
6123     new data sources structures.
6124     (TestStoreSort, MockDataStore): Classes to test the sorting of the
6125     data stores for writing.
6126    
6127     * test/runtests.py: Add CVS keywords
6128    
6129 jonathan 1265 2003-06-20 Jonathan Coles <[email protected]>
6130    
6131 jonathan 1267 * test/test_session.py
6132     (UnreferencedTablesTests.test_unreferenced_tables_with_joins):
6133     Use the cultural_landmark-point.dbf file for the store so that
6134     the table rows and shape count match.
6135    
6136     2003-06-20 Jonathan Coles <[email protected]>
6137    
6138 jonathan 1265 * Thuban/Model/data.py (DerivedShapeStore.__init__): Raise
6139     an exception if the number of shapes is different from the
6140     number of rows in the table. Address RTbug #1933.
6141    
6142     * test/test_layer.py (TestLayer.test_derived_store): Add
6143     a test for the new exception in DerivedShapeStore.__init__.
6144    
6145     * test/support.py (FloatTestCase): Removed since there is
6146     already FloatComparisonMixin. Fixes RTbug #1954.
6147     (FloatComparisonMixin.assertFloatEqual): Include test for
6148     infinity that was part of FloatTestCase.
6149    
6150     * test/test_range.py (RangeTest): Inherit from
6151     support.FloatComparisonMixin now that we don't have
6152     support.FloatTestCase.
6153    
6154 bh 1256 2003-06-20 Bernhard Herzog <[email protected]>
6155    
6156 bh 1260 * test/test_save.py (SaxEventLister, sax_eventlist): Removed. Use
6157     the implementation in xmlsupport instead.
6158     (SaveSessionTest.compare_xml): sax_eventlist is now in xmlsupport
6159    
6160     * test/test_proj.py: Import sax_eventlist from xmlsupport instead
6161     of test_save
6162    
6163     2003-06-20 Bernhard Herzog <[email protected]>
6164    
6165 bh 1258 * test/test_load.py (LoadSessionTest.check_format): New helper
6166     method to make sure the test files we load might have been written
6167     by the current thuban version.
6168     (ClassificationTest.TestLayers, TestSingleLayer.test)
6169     (TestLayerVisibility.test, TestClassification.test)
6170     (TestLabels.test, TestLayerProjection.test, TestRasterLayer.test):
6171     Add check_format() calls and fix the thuban data to match the data
6172     that would be written by saving the session loaded from it.
6173    
6174     * test/xmlsupport.py (SaxEventLister, sax_eventlist): Copies of
6175     the same class and function in test_save.
6176    
6177     * test/test_xmlsupport.py (TestEventList): New. test cases for
6178     sax_eventlist
6179    
6180     2003-06-20 Bernhard Herzog <[email protected]>
6181    
6182 bh 1256 * Resources/XML/thuban.dtd: Add comment about which versions of
6183     Thuban are covered by this DTD
6184     (map): Fix content model for layers and raster layers. There can
6185     be any number or layers and raster layers in any order.
6186    
6187 jonathan 1254 2003-06-20 Jonathan Coles <[email protected]>
6188    
6189 jonathan 1265 This is mainly about fixing RTbug #1949.
6190    
6191 jonathan 1254 * Thuban/Model/classification.py: Remove "from __future__"
6192     import statement since python 2.2 is the earliest supported
6193     version.
6194    
6195     * Thuban/Model/proj.py (Projection.GetProjectedUnits): New.
6196     Currently returns PROJ_UNITS_METERS or PROJ_UNITS_DEGREES
6197     depending on the units this projection *forwards* into.
6198    
6199     * Thuban/Model/save.py (SessionSaver.write_classification):
6200     Remove unnecessary use of lambdas and nested functions.
6201    
6202     * Thuban/UI/legend.py (ScaleBarBitmap.__SetScale): Do scale
6203     adjustment here if the map projection uses degrees.
6204    
6205     * Thuban/UI/scalebar.py (ScaleBar.DrawScaleBar): Remove
6206     scale adjust code since it is now done before calling
6207     this method. Don't do anything if the map projection
6208     is None.
6209    
6210 bh 1244 2003-06-19 Bernhard Herzog <[email protected]>
6211    
6212 bh 1248 Move version specific load tests to their own file.
6213    
6214     * test/test_load.py: Expand the doc-string to explain a bit how to
6215     handle file format changes.
6216     (TestClassification.test): Update the docstring as this test is
6217     not about Thuban 0.2 anymore.
6218    
6219     * test/test_load_0_2.py: New file with the load tests for thuban
6220     files created with Thuban 0.2 and earlier.
6221    
6222     2003-06-19 Bernhard Herzog <[email protected]>
6223    
6224 bh 1246 Add XML validation to some of the tests. Validation will only be
6225     done if pyRXP is installed (http://reportlab.com/xml/pyrxp.html).
6226     To make the DTD available to the test cases it's moved into
6227     Resources/XML
6228    
6229     * Resources/XML/thuban.dtd: New. This is now the real Thuban DTD
6230     for versions up to and including 0.2. Two slight changes: added an
6231     encoding specification and fixed the comment which refered to
6232     GRASS, not Thuban
6233    
6234     * test/xmlsupport.py: New support module for tests involving XML.
6235     Currently there's a mix-in class for XML validation.
6236    
6237     * test/test_xmlsupport.py: New. Tests for the xmlsupport module
6238    
6239     * test/test_save.py (SaveSessionTest): Derive from ValidationTest
6240     so that we can validate the
6241     (SaveSessionTest.testEmptySession)
6242     (SaveSessionTest.testSingleLayer)
6243     (SaveSessionTest.testSingleLayer)
6244     (SaveSessionTest.testLayerProjection)
6245     (SaveSessionTest.testRasterLayer)
6246     (SaveSessionTest.testClassifiedLayer): Validate the generated XML
6247    
6248     * test/runtests.py (main): Call print_additional_summary instead
6249     of print_garbage_information
6250    
6251     * test/support.py (resource_dir): New function to return the
6252     "Resource" subdirectory
6253     (print_additional_summary): New function to combine several
6254     summary functions
6255     (run_tests): Use print_additional_summary instead of calling
6256     print_garbage_information directly
6257    
6258     2003-06-19 Bernhard Herzog <[email protected]>
6259    
6260 bh 1244 * Doc/thuban.dtd (classification): Correct the content model of
6261     the classification element.
6262     (projection): Add the "name" attribute
6263    
6264 frank 1242 2003-06-19 Frank Koormann <[email protected]>
6265    
6266     MERGE from the greater-ms3 branch.
6267    
6268     * Thuban/UI/scalebar.py (ScaleBar.DrawScaleBar): Apply conversion to
6269     scale if projection is latlong to get better estimate.
6270    
6271     Fix problem of hidden properties dialog under windows after double
6272     click on layer tree:
6273     The tree control always gets an Expanded / Collapsed event after
6274 joey 2162 the ItemActivated on double click, which raises the main window again.
6275     We add a second ItemActivated event to the queue, which simply
6276 frank 1242 raises the already displayed window.
6277    
6278     * Thuban/UI/legend.py (LegendTree.__init__): Instance variable
6279     raiseProperties initialized to prevent endless loops
6280     (LegendTree._OnItemActivated): Depending on self.raiseProperties
6281     simply raise the properties or open the dialog and issue a second
6282     event.
6283    
6284 jonathan 1235 2003-06-18 Jonathan Coles <[email protected]>
6285    
6286 jonathan 1239 * setup.py: Fix a few problems that occured under Windows.
6287    
6288     2003-06-18 Jonathan Coles <[email protected]>
6289    
6290 jonathan 1235 When Thuban loaded the map was redrawn twice because the
6291     legend was being opened after the mainwindow was created
6292     and not during its creation. This meant the map was drawn
6293     initially and then had to be redrawn when the legend
6294     caused the display to change. Now the legend is opened
6295     in the mainwindow constructor which resolves this issue.
6296    
6297     Also, although we were checking for the existence of
6298     gdal and gdalwarp modules, the gdalwarp extension was
6299     still being compiled (which may fail if the system doesn't
6300     have gdal installed). the build_ext command to setup.py
6301     now accepts the flags --with-gdal and --without-gdal.
6302     If --without-gdal is specified setup.py will try to
6303     use the gdal parameters specified by gdal-config. Under
6304     windows, those parameters have to be set in setup.py
6305     as with proj4 an wxWindows.
6306    
6307     * setup.py: Use a list instead of seperate variables for
6308     extension parameters so we can create a generic function
6309     that runs an appropriate *-config script.
6310     (run_cs_script): Renamed from run_wx_script and modified
6311     to accept a second argument which is a list of lists to
6312     be filled in by the values returned from running the command.
6313     (thuban_build_ext): New. Extends the build_ext command and
6314     provides the options --with-gdal/--without-gdal which then
6315     optionally includes the gdalwarp extension.
6316    
6317     * Thuban/Model/resource.py: First check if we can import
6318     the gdalwarp Thuban extension before checking for gdal.
6319     Also added some comments.
6320    
6321     * Thuban/UI/legend.py (ScaleBarBitmap.__SetScale): Check if
6322     the map is None which may be the case if none has been loaded
6323     yet.
6324    
6325     * Thuban/UI/main.py (main): Remove call to ShowLegend.
6326    
6327     * Thuban/UI/mainwindow.py (MainWindow.__init__): Call ShowLegend().
6328    
6329     * Thuban/UI/renderer.py: Check for gdal support before importing
6330     gdalwarp.
6331     (MapRenderer.render_map): Only try to optimize if we have gdal
6332     support otherwise nothing will get drawn.
6333    
6334 jonathan 1237 * Thuban/UI/view.py (MapCanvas.FitMapToWindow): This may be called
6335     during startup before a map has been created. Check if map is None
6336     before using it and do nothing if it is.
6337    
6338 jonathan 1224 2003-06-17 Jonathan Coles <[email protected]>
6339    
6340     Fix the problem with raster layers under Windows that caused
6341     Thuban to crash. The view should respond to layer projection
6342     changed events to update the display. Changes to a projection
6343     should not cause the map to be set to full extent.
6344    
6345     * Thuban/UI/view.py (MapCanvas.__init__): New instance variable
6346     current_map_proj to remember the current map projection so that
6347     when the projection changes we know what the previous projection
6348     was.
6349     (MapCanvas.SetMap): Unsubscribe and subscribe to
6350     LAYER_PROJECTION_CHANGED events.
6351     (MapCanvas.projection_changed): Split into two methods that respond
6352     to map and layer projection changes.
6353     (MapCanvas.map_projection_changed): New. Takes the current view and
6354     projects it using the new projection. This does not cause the
6355     map to be redrawn at full extent.
6356     (MapCanvas.layer_projection_changed): New. Cause a redraw which
6357     will draw each layer in its new projection.
6358    
6359     * extensions/thuban/bmpdataset.cpp (BMPDataset::Open): Call
6360     VSIFClose() not VSIFCloseL() to close the file. Fixes a crash
6361     under Windows.
6362    
6363     * extensions/thuban/gdalwarp.cpp (MFILENAME): Padding should be
6364     to twice sizeof(void*) because there are two digits for each
6365     hex byte.
6366    
6367 bh 1220 2003-06-16 Bernhard Herzog <[email protected]>
6368    
6369     Update to the layer interface: Direct access to the table,
6370     shapetable, shapefile and filename attributes is now actively
6371     deprecated by issuing deprecation warnings for all places where
6372     this happens.
6373    
6374     * Thuban/Model/layer.py (Layer.__getattr__): New. Implement access
6375     to the instance variables table, shapetable, shapefile and
6376     filename via __getattr__ so that we can issue a deprecation
6377     warning.
6378     (Layer.SetShapeStore): Don't set the deprecated instance variables
6379     any more
6380     (Layer.SetShapeStore): Don't use deprecated layer instance
6381     variables
6382     (Layer.Destroy): No need to explicitly remove the instance
6383     variables any more
6384     (Layer.GetFieldType, Layer.Shape): Don't use deprecated layer
6385     instance variables
6386    
6387     * Thuban/UI/classgen.py (ClassGenDialog.__init__)
6388     (GenUniformPanel._OnRetrieve, GenUniquePanel._OnRetrieve)
6389     (GenQuantilesPanel.GetList, GenQuantilesPanel.OnRetrieve): Don't
6390     use deprecated layer instance variables
6391    
6392     * Thuban/UI/classifier.py (Classifier.__init__): Don't use
6393     deprecated layer instance variables
6394    
6395     * Thuban/UI/identifyview.py (IdentifyListCtrl.selected_shape)
6396     (IdentifyGridCtrl.selected_shape): Don't set the deprecated layer
6397     instance variables
6398    
6399     * Thuban/UI/tableview.py (LayerTableGrid.select_shapes): Don't use
6400     deprecated layer instance variables
6401    
6402     * Thuban/UI/mainwindow.py (MainWindow.LayerShowTable): Don't use
6403     deprecated layer instance variables
6404    
6405     * Thuban/Model/save.py (SessionSaver.write_layer): Don't use
6406     deprecated layer instance variables
6407    
6408     * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer)
6409     (MapRenderer.polygon_render_param): Don't use deprecated layer instance
6410     variables
6411    
6412     * test/runtests.py (main): Turn Thuban's deprecation warnings into
6413     errors so that they're cought by the tests
6414    
6415     * test/test_load.py (TestSingleLayer.test): Don't use deprecated
6416     layer instance variables
6417    
6418 jonathan 1212 2003-06-16 Jonathan Coles <[email protected]>
6419    
6420     Fix a problem under Windows whereby if the user double-clicks on a
6421     layer in the legend that tree item will expand or collapse as well
6422     as open the layer properties dialog. The state of the tree item
6423     should not be affected.
6424    
6425     * Thuban/UI/legend.py (LegendTree.__init__): Add instance variable
6426     preventExpandCollapse and subscribe to expanding and collapsing
6427     events.
6428     (LegendTree.OnItemExpandCollapse): New. Responds to expanding and
6429     collapsing events and will veto the event if it has been triggered
6430     by the user double clicking on a layer.
6431     (LegendTree._OnItemActivated): Set preventExpandCollapse to indicate
6432     that an expanding/collapsing event should be vetoed.
6433    
6434 bh 1208 2003-06-13 Bernhard Herzog <[email protected]>
6435    
6436     * Thuban/UI/classifier.py (Classifier.OnClose)
6437     (Classifier.map_layers_removed)
6438     (Classifier.layer_shapestore_replaced): Unsubscribe the messages
6439     in OnClose and not in map_layers_removed or
6440     layer_shapestore_replaced to make sure it always happens when the
6441     dialog is closed
6442    
6443 jonathan 1201 2003-06-13 Jonathan Coles <[email protected]>
6444    
6445 jonathan 1203 This puts back a fix for Windows where a panel is needed so that
6446     the background of the table view appears correctly.
6447    
6448     * Thuban/UI/tableview.py (TableFrame.__init__): Add a panel
6449     object that can be used by derived classes to place any
6450     controls (including the grid) onto.
6451     (QueryTableFrame.__init__): Use the panel as the parent window
6452     for all the controls. Reparent the grid so that the panel is
6453     the parent. Call UpdateStatusText() to correctly initialize
6454     the status bar.
6455    
6456     2003-06-13 Jonathan Coles <[email protected]>
6457    
6458 jonathan 1201 * Thuban/UI/dialogs.py (ThubanFrame): New: a class that inherits
6459     from wxFrame (as opposed to wxDialog like the other classes)
6460     but otherwise behaves like the other classes. This is needed
6461     for the TableView which isn't really a dialog and needs to
6462     have a status bar and control buttons.
6463    
6464     * Thuban/UI/tableview.py (TableGrid.__init__): Create an
6465     instance variable to keep track of how many rows are selected.
6466     Subscribe once to the the events we are interested in.
6467     (ThubanGrid.OnRangeSelect): Only handle event if event handling
6468     hasn't been turned off.
6469     (ThubanGrid.OnSelectCell): Only handle event if event handling
6470     hasn't been turned off.
6471     (ThubanGrid.ToggleEventListeners): Rather than subscribe None
6472     as an event listener (which changes the event handler stack)
6473     simply set an instance variable to False. This is checked in
6474     the event handlers.
6475     (ThubanGrid.GetNumberSelected): Return the number of currently
6476     selected rows.
6477     (TableFrame): Inherit from ThubanFrame so we can have a
6478     status bar and control buttons.
6479     (QueryTableFrame.__init__): Create a status bar. Fixes RTbug #1942.
6480     Explicitly set which items are selected in the operator choice and
6481     action choice so there is always a valid selection. Fixes RTbug #1941.
6482     Subscribe to grid cell selection events so we can update the
6483     status bar.
6484     (QueryTableFrame.UpdateStatusText): Update the status bar with
6485     how many rows are in the grid, how many columns, and how many
6486     rows are selected.
6487     (QueryTableFrame.OnGridSelectRange, QueryTableFrame.OnGridSelectCell):
6488     Call UpdateStatusText when cells are (de)selected.
6489     (QueryTableFrame.OnQuery): Use the string value in the value
6490     combo if either the selected item index is 0 or if the string
6491     cannot be found in the predefined list (this happens if the
6492     user changes the text). Fixes RTbug #1940.
6493     Only turn off the grid event listeners if there a query comes
6494     back with a none empty list of ids. in the case that the list
6495     is empty this causes a grid.ClearSelection() call to actually
6496     clear the grid selection which causes the selected items in
6497     the map to be deselected. Fixes RTbug #1939.
6498    
6499     * test/test_save.py (XMLWriterTest.Encode): Check return values.
6500     Fixes RTbug #1851.
6501    
6502 bh 1195 2003-06-13 Bernhard Herzog <[email protected]>
6503    
6504     * Thuban/UI/identifyview.py (IdentifyView.__init__): Call
6505     self.selected_shape with the current selection to make sure the
6506     contents of the dialog are up to date when it's shown for the
6507     first time.
6508     The dialog used to work without this by luck. The recent fix to
6509     the connector module 'broke' a 'feature' the identify view was
6510     relying on, i.e that subscribing to a message in response to
6511     receiving a message of that type would mean that the new
6512     subscriber would also be called for the same message.
6513    
6514 jonathan 1169 2003-06-12 Jonathan Coles <[email protected]>
6515 jonathan 1175
6516 jonathan 1193 * extensions/thuban/gdalwarp.cpp: Removed debug printing as
6517     the image is rendered. Fixes RTbug #1937.
6518    
6519     2003-06-12 Jonathan Coles <[email protected]>
6520    
6521 jonathan 1191 * Thuban/Lib/fileutil.py: As is done under Windows, create the
6522 jonathan 1193 user directory if it doesn't exist on a posix system.
6523     Fixes RTbug #1815.
6524 jonathan 1191
6525     * Thuban/Model/resource.py (get_user_proj_files): Moved the
6526     called to get_application_dir here, so that the directory
6527     will only be called if this method is invoked.
6528    
6529     * Thuban/UI/projdialog.py (ProjFrame.__DoOnProjAvail): Clear
6530     the projfilepath if no projection is selected.
6531    
6532     2003-06-12 Jonathan Coles <[email protected]>
6533    
6534 jonathan 1182 * Thuban/UI/legend.py (ScaleBarBitmap.__SetScale): Don't draw
6535     the scalebar if the current map has no projection set.
6536    
6537     * Thuban/UI/projdialog.py (ProjFrame.__DoOnProjAvail): Set the
6538     projfilepath label to just the basename of the projection file
6539     rather than include the entire path.
6540    
6541     * Thuban/Model/resource.py: Fix missed proj functions that
6542     needed to be renamed.
6543    
6544     2003-06-12 Jonathan Coles <[email protected]>
6545    
6546 jonathan 1178 * Thuban/Model/classification.py: Removed assert statements that
6547     tested if the variable was an instance of Color.
6548    
6549     * Thuban/Model/color.py (Color): Remove commented code that isn't
6550     used.
6551     (Transparent): Renamed from NoColor. Doesn't inherit from Color.
6552     Fixes RTbug #1835.
6553     (Transparent.__eq__, Transparent.__ne, Transparent.__repr): New.
6554     Needed now that the class doesn't inherit from Color.
6555    
6556     2003-06-12 Jonathan Coles <[email protected]>
6557    
6558 jonathan 1175 * test/test_save.py (XMLWriterTest.testEncode): Explicitly
6559     check unicode strings.
6560    
6561     * test/test_layer.py: Check for existence of gdal.
6562    
6563     2003-06-12 Jonathan Coles <[email protected]>
6564 jonathan 1172
6565     * Thuban/Model/xmlreader.py: New. Contains the XMLReader class
6566     that was in load.py
6567 jonathan 1169
6568 jonathan 1172 * Thuban/Model/xmlwriter.py: New. Contains the XMLWriter class
6569     that was in save.py
6570    
6571     2003-06-12 Jonathan Coles <[email protected]>
6572    
6573 jonathan 1169 This is largely a collection of bug fixes. We also handle the
6574     case where gdal is not on the system. The XMLReader and XMLWriter
6575     classes were moved into there own files to resolve some circular
6576     import references and because they shouldn't really be in the
6577     file that is dediciated to reading/writing session files since
6578     they are also used elsewhere.
6579    
6580     * Thuban/Model/classgen.py: Renamed functions to follow the
6581     function_names_with_underscores style. Fixes RTbug #1903.
6582     (calculate_quantiles): Raise ValueError if 'percents' is invalid.
6583    
6584     * Thuban/Model/layer.py: Import gdal only if it available.
6585     (RasterLayer): Handle the case where the gdal library is unavailable.
6586     Addresses RTbug #1877.
6587    
6588     * Thuban/Model/load.py (XMLReader): Moved into seperate file
6589     xmlreader.py.
6590    
6591 jonathan 1172 2003-06-12 Jonathan Coles <[email protected]>
6592    
6593     This is largely a collection of bug fixes. We also handle the
6594     case where gdal is not on the system. The XMLReader and XMLWriter
6595     classes were moved into there own files to resolve some circular
6596     import references and because they shouldn't really be in the
6597     file that is dediciated to reading/writing session files since
6598     they are also used elsewhere.
6599    
6600     * Thuban/Model/classgen.py: Renamed functions to follow the
6601     function_names_with_underscores style. Fixes RTbug #1903.
6602     (calculate_quantiles): Raise ValueError if 'percents' is invalid.
6603    
6604     * Thuban/Model/layer.py: Import gdal only if it available.
6605     (RasterLayer): Handle the case where the gdal library is unavailable.
6606     Addresses RTbug #1877.
6607    
6608     * Thuban/Model/load.py (XMLReader): Moved into seperate file
6609     xmlreader.py.
6610    
6611 jonathan 1169 * Thuban/Model/save.py (escape, XMLWriter): Moved into seperate
6612     file xmlwriter.py.
6613    
6614     * Thuban/Model/resource.py: Renamed functions to following the
6615     function_names_with_underscores style.
6616     (has_gdal_support): New function that returns true if the gdal
6617     library is available. Addresses RTbug #1877.
6618    
6619     * Thuban/UI/application.py (ThubanApplication.OpenSession):
6620     Display a message box if the gdal library is not available, but
6621     only if there are any layers that would use it. Addresses RTbug #1877.
6622    
6623     * Thuban/UI/classgen.py: Use renamed projection resource functions.
6624     (GenUniformPanel.__CalcStepping): Fix a slight discrepency
6625     when using integers versus floats.
6626    
6627     * Thuban/UI/mainwindow.py (_has_gdal_support): New. Used to
6628     determine if the "Add Image Layer" menu option should be
6629     greyed out or not. Addresses RTbug #1877.
6630    
6631     * Thuban/UI/projdialog.py: Use renamed projection resource functions.
6632    
6633     * Thuban/UI/renderer.py (MapRenderer.render_map): Only try to
6634     optimize if a raster layer is visible. Fixes RTbug #1931.
6635     Only draw the raster layer if the gdal library is available.
6636     Addresses RTbug #1877.
6637    
6638     * test/test_classgen.py: Add tests for generate_singletons,
6639     generate_uniform_distribution, generate_quantiles. Fixes RTbug #1903.
6640     (test_calculate_quantiles): Fix some tests to catch the new
6641     ValueError that is raised.
6642    
6643     * test/test_proj.py: Use renamed projection resource functions.
6644    
6645     * test/test_save.py (SaveSessionTest.testClassifiedLayer): New
6646     test for saving classified layers. Fixes RTbug #1902.
6647     (XMLWriterTest): New. Tests the XMLWriter class. Fixes RTbug #1851.
6648    
6649 jan 1156 2003-06-12 Jan-Oliver Wagner <[email protected]>
6650    
6651     Fix for http://intevation.de/rt/webrt?serial_num=1900.
6652    
6653     * Thuban/UI/multiplechoicedialog.py: New. A multiple choice dialog.
6654    
6655     * Thuban/UI/mainwindow.py: import wxMultipleChoiceDialog from
6656     multiplechoicedialog.py rather than from the wxPython library.
6657    
6658 frank 1151 2003-06-11 Frank Koormann <[email protected]>
6659    
6660 frank 1152 * Thuban/Lib/fileutil.py (get_application_dir): Minor stability
6661     update.
6662    
6663     2003-06-11 Frank Koormann <[email protected]>
6664    
6665 frank 1151 * Thuban/Lib/fileutil.py (get_application_dir): New function to
6666     determine the absolute .thuban/thuban directory under
6667     "posix" (os.expanduser) and "nt" (read AppData registry key).
6668    
6669     * Thuban/Model/resource.py: Use get_application_dir
6670    
6671     * Thuban/UI/application.py (ThubanApplication.read_startup_files):
6672     Use get_application_dir.
6673    
6674 bh 1143 2003-06-10 Bernhard Herzog <[email protected]>
6675    
6676 bh 1147 * Thuban/UI/tableview.py (LayerTableFrame.__init__): Subscribe to
6677     the messages MAP_LAYERS_REMOVED messages
6678     (LayerTableFrame.OnClose): Unsubscribe from it.
6679     (LayerTableFrame.map_layers_removed): New. Receiver for
6680     MAP_LAYERS_REMOVED. Close the dialog when the layer whose the
6681     dialog is showing is removed.
6682    
6683     2003-06-10 Bernhard Herzog <[email protected]>
6684    
6685 bh 1145 * Thuban/Lib/connector.py (Connector.Issue): Iterate over a copy
6686     of the receivers list so that unsubscribing in a receiver doesn't
6687     modify it while iterating over it.
6688    
6689     * test/test_connector.py
6690     (ConnectorTest.test_disconnect_in_receiver): New. Test whether
6691     unsubscribing in a receiver works correctly. See docstring for
6692     details
6693    
6694     2003-06-10 Bernhard Herzog <[email protected]>
6695    
6696 bh 1143 * Thuban/Model/messages.py (LAYER_SHAPESTORE_REPLACED): New
6697     message.
6698    
6699     * Thuban/Model/layer.py (Layer.SetShapeStore): Send
6700     LAYER_SHAPESTORE_REPLACED when the shapestore changes. A
6701     LAYER_CHANGED will still be sent if the classification changes.
6702    
6703     * Thuban/UI/classifier.py (Classifier.__init__): Add the map as
6704     parameter so we can subscribe to some of its messages
6705     (Classifier.__init__): Subscribe to the map's MAP_LAYERS_REMOVED
6706     and the layer's LAYER_SHAPESTORE_REPLACED
6707     (Classifier.unsubscribe_messages): New. Unsubscribe from message
6708     subscribed to in __init__
6709     (Classifier.map_layers_removed)
6710     (Classifier.layer_shapestore_replaced): receivers for the messages
6711     subscribed to in __init__. Unsubscribe and close the dialog
6712    
6713     * Thuban/UI/mainwindow.py (MainWindow.OpenLayerProperties): Pass
6714     the map to the Classifier dialog
6715    
6716     * test/test_layer.py (SetShapeStoreTests): Derive from
6717     SubscriberMixin as well so we can test messages
6718     (SetShapeStoreTests.setUp): Subscribe to some of the layer's
6719     messages
6720     (SetShapeStoreTests.tearDown): Clear the messages again
6721     (SetShapeStoreTests.test_sanity): Expand the doc-string and check
6722     for the modified flag too
6723     (SetShapeStoreTests.test_set_shape_store_modified_flag): New test
6724     to check whether SetShapeStore sets the modified flag
6725     (SetShapeStoreTests.test_set_shape_store_different_field_name)
6726     (SetShapeStoreTests.test_set_shape_store_same_field)
6727     (SetShapeStoreTests.test_set_shape_store_same_field_different_type):
6728     Add tests for the messages. This checks both the new
6729     LAYER_SHAPESTORE_REPLACED and the older LAYER_CHANGED
6730    
6731 jan 1141 2003-06-06 Jan-Oliver Wagner <[email protected]>
6732    
6733     * Thuban/UI/mainwindow.py: Improved and partly added help texts for
6734     the menu items.
6735    
6736 frank 1134 2003-06-05 Frank Koormann <[email protected]>
6737    
6738 frank 1139 * Thuban/UI/identifyview.py (IdentifyView.__init__):
6739     Layout reimplemented without panel. Make life easier to fit the list
6740     in the dialog.
6741    
6742     2003-06-05 Frank Koormann <[email protected]>
6743    
6744 frank 1137 * Thuban/UI/projdialog.py (ProjFrame.__init__): Fill the projchoice
6745     once on initialisation (Former implementation resulted in multiple
6746     entries for each projection).
6747     (ProjFrame.__FillAvailList): selectProj as second optional parameter,
6748     if set, select the projection found under the specified name. This
6749     overwrites any other selection estimate.
6750     Removed projchoice filling from this method.
6751     (ProjFrame._OnSave, ProjFrame._OnAddToList):
6752     Updated call of ProjFrame.__FillAvailList
6753     (LCCPanel._DoLayout): Moved parameter controls in more common order.
6754    
6755     * Resources/Projections/defaults.proj: Extended defaults representing
6756     various common European projections.
6757    
6758     2003-06-05 Frank Koormann <[email protected]>
6759    
6760 frank 1134 * Thuban/UI/identifyview.py (IdentifyView.__init__):
6761     Use ListCtrl instead of GridCtrl
6762    
6763     * Thuban/Model/resource.py:
6764     Guess location of .thuban directory from tempdir parent directory.
6765    
6766     * Thuban/UI/application.py (ThubanApplication.read_startup_files):
6767     Guess location of .thuban directory from tempdir parent directory.
6768    
6769 bh 1130 2003-06-04 Bernhard Herzog <[email protected]>
6770    
6771     Do not cache the values returned by the tree widget's
6772     GetFirstChild and GetNextChild methods because it led to lots of
6773     segfaults. The new way requires more brute force but is more
6774     reliable.
6775    
6776     * Thuban/UI/legend.py (LegendTree.__init__): Remove instance
6777     variable layer2id
6778     (LegendTree.find_layer): New method to do with brute force what
6779     layer2id tried to accomplish
6780     (LegendTree._OnMsgLayerChanged)
6781     (LegendTree._OnMsgLayerTitleChanged, LegendTree.__ShowHideLayer):
6782     Use find_layer instead of layer2id
6783     (LegendTree.__RemoveLayer, LegendTree.__AddLayer): No need to
6784     update layer2id anymore
6785     (LegendTree._OnMsgMapLayersRemoved)
6786     (LegendTree._OnMsgMapLayersAdded): Get by without layer2id.
6787    
6788 tkoester 1128 2003-06-03 Thomas Koester <[email protected]>
6789    
6790     * Thuban/Model/classgen.py (GenQuantiles0): New function.
6791    
6792 bh 1120 2003-06-02 Bernhard Herzog <[email protected]>
6793    
6794 bh 1127 * Thuban/UI/mainwindow.py (layer_rename command, table_rename command):
6795     New commands.
6796     (main_menu): Add the new commands.
6797     (MainWindow.TableRename): New. Implementation of the table_rename
6798     command.
6799     (MainWindow.RenameLayer): New. Implementation of the layer_rename
6800     command.
6801    
6802     * Thuban/Model/session.py (Session.AddTable): call self.changed to
6803     set the modified flag
6804    
6805     * test/test_session.py (TestSessionSimple.test_add_table): Test
6806     whether the modified flag is set properly
6807    
6808     * Thuban/Model/base.py (TitledObject.SetTitle): Call changed
6809     instead of issue so that the modified flags get updated.
6810    
6811     * test/test_base.py (SomeTitledObject): Derive from Modifiable
6812     instead of Publisher to reflect reality better and to accomodate
6813     the fact that SetTitle now calls changed instead of issue
6814    
6815     2003-06-02 Bernhard Herzog <[email protected]>
6816    
6817     * Thuban/UI/classgen.py (GenQuantilesPanel.GetList): Resource
6818     acquisition has to happen before the try in a try-finally.
6819    
6820     2003-06-02 Bernhard Herzog <[email protected]>
6821    
6822 bh 1120 * Thuban/UI/legend.py (LegendTree._OnMsgMapLayersRemoved): It's
6823     possible that a layer is removed that is not currently selected in
6824     the legend so don't check for this.
6825    
6826 bh 1112 2003-05-30 Bernhard Herzog <[email protected]>
6827    
6828 bh 1118 * Thuban/Model/layer.py (Layer.Destroy): Set all instance
6829     variables to None that have direct or indirect references to
6830     shapefiles or dbf files to make sure that they do go away and the
6831     files are closed.
6832    
6833     2003-05-30 Bernhard Herzog <[email protected]>
6834    
6835 bh 1116 * Thuban/UI/legend.py (LegendTree.GetRootItem): Reset
6836     availImgListIndices when a new image list is created
6837    
6838     2003-05-30 Bernhard Herzog <[email protected]>
6839    
6840 bh 1114 * Thuban/UI/legend.py (LegendTree.__init__): New instance variable
6841     changing_selection to indicate whether the LegendTree code itself
6842     is currently changing the selection
6843     (LegendTree.normalize_selection): New method to normalize the
6844     selection by selecting the layer item even if the user clicked on
6845     the classification.
6846     (LegendTree._OnSelChanged): normalize the selection. This works
6847     around a bug in wx which doesn't keep track of the selection
6848     properly when subtrees are deleted.
6849    
6850     2003-05-30 Bernhard Herzog <[email protected]>
6851    
6852 bh 1112 * Thuban/UI/view.py (MapCanvas.set_view_transform): Limit the
6853     maximum and minimum scale factors.
6854    
6855     * test/test_classgen.py (ClassGenTest.test): Update to reflect the
6856     changes in classgen.py
6857    
6858 jonathan 1109 2003-05-30 Jonathan Coles <[email protected]>
6859    
6860     * Thuban/Model/classgen.py: Remove ClassGenerator class but make
6861     all the methods functions. Fixes RTBug #1903.
6862    
6863     * Thuban/Model/map.py (Map.TopLayer, Map.BottomLayer): Renamed
6864     to MoveLayerToTop and MoveLayerToBottom respectively. Fixes
6865     RTBug #1907.
6866    
6867     * Thuban/UI/classgen.py: Use classgen functions that were part
6868     of the ClassGenerator class. Put try/finally blocks around
6869     code that uses wxBeginBusyCursor()/wxEndBusyCursor(). Fixes
6870     RTBug #1904.
6871    
6872     * Thuban/UI/classifier.py: Remove unused import of ClassGenerator.
6873    
6874     * Thuban/UI/legend.py: The legend was cleared and repopulated any
6875     time something changed which caused some state to be lost such
6876     as which children were expanded or collapsed. Fixes RTBug #1901.
6877     (LegendTree._OnMsgMapLayersAdded): Add only new layers.
6878     (LegendTree.__OnMsgMapLayersRemoved): Remove layers that exist in
6879     the legend but not in the map.
6880     (LegendTree.__FillTree): Move main functionality out into smaller
6881     methods that can be used by other methods.
6882     (LegendTree.__FillTreeLayer): Reuse old slots in the image list
6883     if they are available.
6884     (LegendTree.DeleteAllItems): Renamed from __DeleteAllItems so
6885     that we override the wxTreeCtrl method. Iterate over children
6886     and call __RemoveLayer.
6887     (LegendTree.__AddLayer): New. Add a new layer to the legend.
6888     (LegendTree.__RemoveLayer): Remove a layer from the legend.
6889     (LegendTree.DeleteChildren): New, overrides wxTreeCtrl method.
6890     Should only be called with the id of a layer branch.
6891     (LegendTree.GetRootItem): New, overrides wxTreeCtrl method.
6892     Returns the root item or creates one if necessary.
6893    
6894     * Thuban/UI/renderer.py (MapRenderer.draw_raster_layer): Call
6895     ProjectRasterFile with tuple arguments instead of strings.
6896    
6897     * Thuban/UI/tableview.py (QueryTableFrame.OnQuery): Wrap code
6898     with try/finally. Fixes RTBug #1904.
6899    
6900     * Thuban/UI/view.py (MapCanvas.OnPaint): Wrap code
6901     with try/finally. Fixes RTBug #1904.
6902     (MapCanvas.FitSelectedToWindow): If a single point is selected
6903     simply center it on the display. Fixes RTBug #1849.
6904    
6905     * extensions/thuban/gdalwarp.cpp: Removed code that allowed gdalwarp
6906     to be compiled as a standalone app. Now the code can only be
6907     called from Python which simplifies the parameter passing.
6908     (ProjectRasterFile): Handle Python arguments. Remove code that
6909     checks for a destination dataset. Add more clean up code.
6910    
6911     * test/test_map.py (TestMapWithContents.test_raise_layer_top,
6912     TestMapWithContents.test_lower_layer_bottom):
6913     Test Map.MoveLayerToTop() and Map.MoveLayerToBottom() respectively.
6914     Fixes RTBug #1907.
6915    
6916     * Thuban/UI/mainwindow.py (MainWindow.ToggleLegend): Apply a full
6917     extent to the map when the legend is toggled. Fixes RTBug #1881.
6918    
6919 jan 1097 2003-05-29 Jan-Oliver Wagner <[email protected]>
6920    
6921     * Thuban/UI/tableview.py (LayerTableFrame.OnClose): Bug-fix: Now
6922     unsubscribes all that is subcribed in __init__.
6923    
6924 bh 1089 2003-05-28 Bernhard Herzog <[email protected]>
6925    
6926 bh 1095 * Thuban/UI/mainwindow.py (MainWindow.DuplicateLayer)
6927     (MainWindow.CanDuplicateLayer): New methods to implement the
6928     Layer/Duplicate command.
6929     (layer_duplicate command): New.
6930     (main_menu): Add layer_duplicate to the Layer menu.
6931    
6932     2003-05-28 Bernhard Herzog <[email protected]>
6933    
6934 bh 1093 * Thuban/UI/tableview.py (NullRenderer.Draw): New. Our own
6935     renderer so that NULL/None values get displayed differently (by a
6936     gray rectangle).
6937     (TableGrid.__init__): Override the default renderers
6938    
6939     2003-05-28 Bernhard Herzog <[email protected]>
6940    
6941 bh 1089 * Thuban/Model/layer.py (Layer.SetShapeStore): Set the
6942     classification to "None" if the type of the field has changed.
6943    
6944     * test/test_layer.py (SetShapeStoreTests): New. Class with a few
6945     test for the Layer.SetShapeStore method
6946    
6947 jan 1087 2003-05-28 Jan-Oliver Wagner <[email protected]>
6948 jan 1085
6949 jan 1087 * Thuban/Model/layer.py (Layer.TreeInfo): Fixed a bug (a layer
6950     does not necessarily have a filename).
6951    
6952     2003-05-28 Jan-Oliver Wagner <[email protected]>
6953    
6954 jan 1085 * Thuban/UI/mainwindow.py (MainWindow.TableClose, MainWindow.TableShow):
6955     sort the selection list for the dialog.
6956    
6957 frank 1083 2003-05-28 Frank Koormann <[email protected]>
6958    
6959     * extensions/thuban/wxproj.cpp
6960     (project_point): Removed cast to int for projected point coordinates.
6961     (shape_centroid): Return last point if all polygon vertices fall
6962     to one point.
6963    
6964 bh 1079 2003-05-28 Bernhard Herzog <[email protected]>
6965    
6966 bh 1081 * Thuban/UI/mainwindow.py (_can_unjoin): Add doc-string and cope
6967     with layers that don't have shapestores, i.e. raster layers.
6968    
6969     2003-05-28 Bernhard Herzog <[email protected]>
6970    
6971 bh 1079 * Thuban/Model/table.py (DBFTable.__init__): Omit the extension
6972     when determining the title from the filename.
6973    
6974     * test/test_dbf_table.py (TestDBFTable.test_title): Update to
6975     reflect changes in the way the title is derived from the filename
6976    
6977 frank 1077 2003-05-28 Frank Koormann <[email protected]>
6978    
6979     * Thuban/UI/mainwindow.py (MainWindow.TableShow):
6980     Added wxDEFAULT_DIALOG_STYLE to show table dialog styles.
6981    
6982 bh 1069 2003-05-27 Bernhard Herzog <[email protected]>
6983    
6984 bh 1075 * Thuban/UI/mainwindow.py (MainWindow.delegated_messages): Also
6985     delegate SelectedLayer.
6986     (MainWindow.LayerUnjoinTable): Implement.
6987     (_can_unjoin): New. Helper function for the sensitivity of the
6988     layer/unjoin command.
6989    
6990     * Thuban/Model/data.py (ShapefileStore.OrigShapeStore)
6991     (DerivedShapeStore.OrigShapeStore): New. Return the original
6992     shapestore. Used to figure out how to unjoin.
6993     (DerivedShapeStore.Shapefile): Fix a typo.
6994    
6995     2003-05-27 Bernhard Herzog <[email protected]>
6996    
6997 bh 1073 * Thuban/UI/join.py (JoinDialog): Extend to handle layer joins as
6998     well
6999     (JoinDialog.__init__): Use the layer parameter and only build the
7000     left choice when a layer is given
7001     (JoinDialog.OnJoin): Handle layer joins as well
7002     (JoinDialog.OnLeftTable, JoinDialog.OnRightTable): Handle the case
7003     that the user selects the "Select..." item. The sensitivitly
7004     updating is now in update_sensitivity
7005     (JoinDialog.y): New method to refactor the sensitivity update of
7006     the join button into its own method.
7007    
7008     * Thuban/UI/mainwindow.py (MainWindow.LayerJoinTable): Implement.
7009    
7010     2003-05-27 Bernhard Herzog <[email protected]>
7011    
7012 bh 1071 * Thuban/UI/mainwindow.py (table_close command): Make it sensitive
7013     iff there are unreferenced tables in the session
7014    
7015     2003-05-27 Bernhard Herzog <[email protected]>
7016    
7017 bh 1069 * Thuban/Model/messages.py (TABLE_REMOVED): New message.
7018    
7019     * Thuban/Model/session.py (Session.UnreferencedTables): New method
7020     to return tables that are not referenced by other tables or shape
7021     stores and can be removed.
7022     (Session.RemoveTable): Issue a TABLE_REMOVED message after
7023     removing the table
7024    
7025     * Thuban/UI/mainwindow.py: Remove unused imports
7026     (MainWindow.TableClose): Implement.
7027    
7028     * Thuban/UI/tableview.py (TableFrame.__init__): Subscribe to some
7029     messages so that the frame will be automatically closed when a new
7030     session is opened or the table is removed.
7031     (TableFrame.OnClose): Unsubscribe the Subscriptions made in
7032     __init__
7033     (TableFrame.close_on_session_replaced)
7034     (TableFrame.close_on_table_removed): New. Subscribers that close
7035     the window
7036    
7037     * test/test_session.py (TestSessionMessages.test_remove_table)
7038     (TestSessionSimple.test_remove_table): Move the test to
7039     TestSessionSimple and add test for the TABLE_REMOVED message
7040     (TestSessionBase.setUp): Also subscribe to TABLE_REMOVED
7041     (TestSessionSimple.test_unreferenced_tables) New. Test for the
7042     UnreferencedTables method.
7043     (UnreferencedTablesTests): New. Class with some more sophisticated
7044     tests for UnreferencedTables.
7045    
7046 frank 1065 2003-05-27 Frank Koormann <[email protected]>
7047    
7048 frank 1067 * Thuban/UI/tableview.py (QueryTableFrame.__init__): The "_S_election"
7049     display has some unwanted side effects. Removed again.
7050    
7051     2003-05-27 Frank Koormann <[email protected]>
7052    
7053 frank 1065 * Resources/Bitmaps/legend_icon_layer.xpm: New, icon for legend.
7054    
7055     * Thuban/UI/legend.py (LegendTree.__FillTree): Use "legend_icon_layer"
7056    
7057 jan 1062 2003-05-27 Jan-Oliver Wagner <[email protected]>
7058    
7059 bh 1069 * test/test_menu.py (MenuTest.test): Added test for
7060     Menu.RemoveItem().
7061 jan 1062
7062 bh 1069 * Thuban/UI/menu.py (Menu.RemoveItem): New. Remove an item from
7063     the menu.
7064 jan 1062
7065 frank 1059 2003-05-27 Frank Koormann <[email protected]>
7066    
7067     Nonmodal dialogs without parent (i.e. they can fall behind the main
7068     window)
7069    
7070     * Thuban/UI/mainwindow.py (MainWindow.OnClose): Explicitly destroy
7071     all dialogs in the dialogs dictionary and the canvas.
7072    
7073     * Thuban/UI/dialogs.py (NonModalNonParentDialog): New class, without
7074     parent, i.e. can fall behind other windows.
7075     (NonModalDialog.OnClose): Check is dialog is in mainwindow.dialog
7076     dictionary before removing it.
7077    
7078     * Thuban/UI/classifier.py: Dialog derived from NonModalNonParentDialog
7079    
7080     * Thuban/UI/projdialog.py: Dialog derived from NonModalNonParentDialog
7081     * Thuban/UI/tableview.py: Dialog derived from NonModalNonParentDialog
7082     * Thuban/UI/tree.py: Dialog derived from NonModalNonParentDialog
7083    
7084 bh 1053 2003-05-27 Bernhard Herzog <[email protected]>
7085    
7086 bh 1055 * Thuban/UI/mainwindow.py (MainWindow.ShowTableView): New. Open a
7087     tableview dialog
7088     (MainWindow.TableShow): Use ShowTableView to open the dialogs.
7089     Also, don't use the table's titles as the dialog names. The titles
7090     aren't guaranteed to be unique.
7091     (MainWindow.TableOpen): Open a table view dialog after opening the
7092     table
7093    
7094     2003-05-27 Bernhard Herzog <[email protected]>
7095    
7096 bh 1053 * Thuban/UI/mainwindow.py: Remove the Table/Hide menu item. Its
7097     effect can be achieved by simply closing the window showing the
7098     table.
7099     (MainWindow.TableHide): Removed.
7100     (main_menu): Removed "table_hide"
7101    
7102 frank 1051 2003-05-27 Frank Koormann <[email protected]>
7103    
7104     Fix legend tree display problems under Win32
7105    
7106     * Thuban/UI/legend.py: BMP_SIZE_W = 15
7107     (LegendTree.__FillTree): Display "legend_icon_map.xpm" with layer title.
7108     (LegendTree.__FillTreeLayer): Explicitely set SelectedImage.
7109    
7110     * Resources/Bitmaps/legend_icon_map.xpm: New icon for legend.
7111    
7112 jan 1048 2003-05-27 Jan-Oliver Wagner <[email protected]>
7113    
7114     * Thuban/UI/menu.py (Menu.InsertSeparator): Additional optional parameter
7115     'after' now allows to insert separators almost anywhere in the menu.
7116    
7117 frank 1046 2003-05-27 Frank Koormann <[email protected]>
7118    
7119     * Thuban/UI/tableview.py (QueryTableFrame.__init__): Underline the
7120     "S" of selection box label to hint on hot key (Alt-S). Works under
7121     Win32 but is ignored under GTK.
7122    
7123     2003-05-26 Frank Koormann <[email protected]>
7124    
7125     * Thuban/UI/projdialog.py (ProjFrame.__do_layout, ProjPanel._DoLayout):
7126     Center Choices.
7127    
7128 bh 1038 2003-05-26 Bernhard Herzog <[email protected]>
7129    
7130 bh 1044 Remove the Precision methods again. They're too DBF specific to be
7131     part of the table interface and they're only used in table_to_dbf
7132     anyway.
7133    
7134     * Thuban/Model/transientdb.py (TransientTableBase.Width):Use a
7135     fixed precision of 12 for doubles.
7136     (TransientTableBase.Precision): Removed
7137     (AutoTransientTable.Width): Delegate to self.table.
7138    
7139     * Thuban/Model/table.py (DBFTable.Precision)
7140     (MemoryTable.Precision): Removed.
7141     (MemoryTable.Width): Use a fixed precision of 12 for doubles.
7142     (table_to_dbf): Use a fixed precision of 12 for floats unless the
7143     column object specifies something else.
7144    
7145     * test/test_dbf_table.py (TestTableToDBF.test_table_to_dbf): New.
7146     test for table_to_dbf
7147    
7148     2003-05-26 Bernhard Herzog <[email protected]>
7149    
7150     * test/test_transientdb.py
7151     (TestTransientTable.run_iceland_political_tests): Fix a comment.
7152    
7153     2003-05-26 Bernhard Herzog <[email protected]>
7154    
7155 bh 1038 * Thuban/UI/mainwindow.py (MainWindow.TableOpen): Real
7156     implementation. Mark parts of the file format strings for
7157     localization.
7158    
7159     * Thuban/Model/session.py (Session.OpenTableFile): New. Open a dbf
7160     file and add the table to the tables managed by the session
7161    
7162 bh 1040 * test/test_session.py (TestSessionSimple.test_open_table_file):
7163     New. test case for OpenTableFile
7164    
7165 jan 1033 2003-05-26 Jan-Oliver Wagner <[email protected]>
7166    
7167 jan 1035 * Thuban/UI/controls.py, Thuban/UI/identifyview.py, Thuban/UI/join.py,
7168     Thuban/UI/labeldialog.py, Thuban/UI/mainwindow.py,
7169     Thuban/UI/proj4dialog.py, Thuban/UI/tableview.py, Thuban/UI/view.py:
7170     Replace the true/false of wxWindows by True/False of Python 2.2.1.
7171    
7172     2003-05-26 Jan-Oliver Wagner <[email protected]>
7173    
7174 bh 1038 * Thuban/UI/tableview.py (LayerTableFrame.__init__): If there is
7175     already a selection present, update the grid accordingly.
7176 jan 1033
7177     * Thuban/UI/mainwindow.py (MainWindow.TableShow): Make the dialog
7178     resizeable and increase its initial size.
7179    
7180 frank 1030 2003-05-26 Frank Koormann <[email protected]>
7181    
7182     Table export functionality
7183    
7184     * Thuban/Model/table.py (DBFTable.Width, MemoryTable.Width):
7185     Return width (in characters) for a column.
7186     (DBFTable.Precision, MemoryTable.Precision): Return decimal precision.
7187     (table_to_dbf): Write table to dbf file.
7188     (table_to_csv): Write table to csv file.
7189    
7190     * Thuban/Model/transientdb.py (TransientTableBase.Width,
7191     TransientTableBase.Precision): Return column width and precision.
7192    
7193     * Thuban/UI/tableview.py (QueryTableFrame.OnSaveAs): Call table_to_dbf
7194     or table_to_csv depending on file selection.
7195    
7196     * test/test_dbf_table.py:
7197     Test table_to_dbf (extension of former part of test).
7198    
7199     * test/test_csv_table.py:
7200     Test table_to_csv.
7201    
7202 jan 1021 2003-05-23 Jan-Oliver Wagner <[email protected]>
7203    
7204 jan 1024 * Thuban/UI/join.py (JoinDialog.OnJoin): Use _() for strings.
7205     Use QueryTableFrame instead of TableFrame.
7206 jan 1021
7207 jan 1024 * Thuban/UI/mainwindow.py (MainWindow.LayerShowTable): Prefix the
7208     table window with 'Layer Table:' instead of 'Table:'.
7209    
7210     2003-05-23 Jan-Oliver Wagner <[email protected]>
7211    
7212     Give all tables a title via mix-in TitledObject.LayerShowTable
7213    
7214 jan 1021 * Thuban/Model/base.py (TitledObject.SetTitle): Call method 'issue'
7215     only if it exists.
7216    
7217     * Thuban/Model/table.py (DBFTable, MemoryTable): mix-in TitledObject
7218     and call its init-method with a default title. Remove Title() method.
7219    
7220     * Thuban/Model/transientdb.py (TransientTable, TransientJoinedTable,
7221     AutoTransientTable): mix-in TitledObject and call its init-method with
7222     a default title. Remove Title() method.
7223    
7224 bh 1017 2003-05-23 Bernhard Herzog <[email protected]>
7225    
7226     * Thuban/Model/session.py (Session.AddShapeStore): Define
7227     AddShapeStore analogously to AddTable.
7228    
7229     * test/test_session.py (TestSessionSimple.test_add_shapestore):
7230     New. Test for AddShapeStore
7231    
7232 jan 1015 2003-05-23 Jan-Oliver Wagner <[email protected]>
7233    
7234     Introducing QueryTableFrame and a very coarse ShowTable implementation.
7235    
7236     * Thuban/UI/tableview.py (LayerTableFrame, QueryTableFrame): Split the
7237     class LayerTableFrame into two classes, LayerTableFrame and QueryTableFrame.
7238     The latter implements the selection GUI without dependency on a layer.
7239     LayerTableFrame now is derived from QueryTableFrame and connects
7240     to a layer.
7241    
7242     * Thuban/UI/mainwindow.py (MainWindow.TableShow): A very coarse
7243     implementation that still needs work.
7244    
7245     * Thuban/Model/layer.py (Layer.TreeInfo): Added filename.
7246    
7247 frank 1011 2003-05-22 Frank Koormann <[email protected]>
7248    
7249     * Thuban/Model/transientdb.py (TransientJoinedTable.__init__):
7250     Added "outer_join = False" as optional parameter.
7251     (TransientJoinedTable.create): If outer join is true, perform a
7252     "LEFT OUTER JOIN" instead of "JOIN", which preserves all records of
7253     the left table. Records not matching are filled with 0 / None.
7254    
7255     * Thuban/UI/join.py (JoinDialog.__init__): Checkbox for outer join.
7256     (JoinDialog.OnJoin): Consider outer join check box.
7257    
7258 bh 1006 2003-05-22 Bernhard Herzog <[email protected]>
7259    
7260 bh 1008 * Thuban/UI/join.py (JoinDialog.OnJoin): Use exc_info in a
7261     somewhat safer way. Storing the traceback in a local variable can
7262     lead to memory leaks
7263    
7264     2003-05-22 Bernhard Herzog <[email protected]>
7265    
7266 bh 1006 * Thuban/UI/join.py (JoinDialog.OnJoin): Make sure to really call
7267     the wxMessageDialog's Destroy() method.
7268    
7269 frank 1004 2003-05-22 Frank Koormann <[email protected]>
7270    
7271     * Thuban/UI/join.py (JoinDialog.__init__): Make use of
7272     TransientTable.Title()
7273    
7274     2003-05-22 Frank Koormann <[email protected]>
7275    
7276     Join Dialog, initial version.
7277    
7278     * Thuban/UI/mainwindow.py (MainWindow.TableJoin): Removed print.
7279    
7280     * Thuban/UI/join.py (JoinDialog): Functional implementation of
7281     former framework. Renamed Table1/Table2 to LeftTable/RightTable
7282     in all occurences.
7283    
7284     * Thuban/Model/transientdb.py (TransientJoinedTable.__doc__):
7285     Typo fixed.
7286    
7287 bh 995 2003-05-22 Bernhard Herzog <[email protected]>
7288    
7289 bh 999 Give the tables titles so that the GUI can display more meaningful
7290     names. For now the titles are fixed but depend on e.g. filenames
7291     or the titles of the joined tables.
7292    
7293     * Thuban/Model/transientdb.py (TransientTable.Title)
7294     (TransientJoinedTable.Title, AutoTransientTable.Title): New.
7295    
7296     * Thuban/Model/table.py (DBFTable.Title, MemoryTable.Title): New.
7297    
7298     * test/test_transientdb.py
7299     (TestTransientTable.test_auto_transient_table_title): New. Test
7300     for the Title method
7301     (TestTransientTable.test_transient_joined_table)
7302     (TestTransientTable.test_transient_table): Add test for the Title
7303     methods
7304    
7305     * test/test_memory_table.py (TestMemoryTable.test_title): New.
7306     Test for the Title method
7307    
7308     * test/test_dbf_table.py (TestDBFTable.test_title): New. Test for
7309     the Title method
7310    
7311     2003-05-22 Bernhard Herzog <[email protected]>
7312    
7313 bh 997 * test/test_layer.py (TestLayer.setUp, TestLayer.tearDown):
7314     Provide a better way to destroy the layers
7315     (TestLayer.test_base_layer, TestLayer.test_arc_layer)
7316     (TestLayer.test_point_layer, TestLayer.test_empty_layer)
7317     (TestLayer.test_polygon_layer, TestLayer.test_get_field_type): Use
7318     the new way to destroy the layers.
7319     (TestLayer.test_derived_store): New. Test for using a layer with a
7320     DerivedShapeStore
7321    
7322     * Thuban/Model/layer.py (Layer.SetShapeStore): Only set the
7323     filename if the shape store actually has one.
7324    
7325     2003-05-22 Bernhard Herzog <[email protected]>
7326    
7327 bh 995 * Thuban/Model/table.py (DBFTable.FileName): New. Accessor method
7328     for the filename
7329    
7330     * test/test_dbf_table.py (TestDBFTable.test_filename): New. Test
7331     for the FileName method
7332     (TestDBFTableWriting.test_write): Fix spelling of filename
7333    
7334 tkoester 993 2003-05-22 Thomas Koester <[email protected]>
7335    
7336     * Thuban/Model/range.py, test/test_range.py: Brought over new Range
7337     from SciParam that now really is immutable.
7338    
7339 frank 992 2003-05-22 Frank Koormann <[email protected]>
7340    
7341     Layer Top/Bottom placement added to legend.
7342    
7343     * Thuban/UI/legend.py
7344     (LegendPanel._OnMoveTop(), LayerPanel._OnMoveBottom): New, methods
7345     bound to tool events.
7346     (LegendTree.MoveCurrentItemTop(), LegendTree.MoveCurrentItemBottom):
7347     New, methods binding the event methods with the map methods.
7348    
7349     * Thuban/Model/map.py (Map.TopLayer(), Map.BottomLayer()): New, place
7350     layer at top/bottom of layer stack.
7351    
7352     * Resources/Bitmaps/top_layer.xpm: New button icon.
7353    
7354     * Resources/Bitmaps/bottom_layer.xpm: New button icon.
7355    
7356 bh 988 2003-05-22 Bernhard Herzog <[email protected]>
7357    
7358     * Thuban/Model/session.py (Session.RemoveTable): New method to
7359     remove tables
7360    
7361     * test/test_session.py (TestSessionSimple.test_remove_table): New.
7362     Test for RemoveTable
7363    
7364 tkoester 986 2003-05-22 Thomas Koester <[email protected]>
7365    
7366     * Thuban/Model/classgen.py: Added short module doc string and CVS id.
7367     (ClassGenerator.GenUniformDistribution): Use new Range __init__, too.
7368    
7369 bh 983 2003-05-22 Bernhard Herzog <[email protected]>
7370    
7371 bh 985 Implement a way to discover dependencies between tables and
7372     shapestores.
7373    
7374     * Thuban/Model/transientdb.py (TransientTableBase.Dependencies)
7375     (TransientJoinedTable.Dependencies)
7376     (AutoTransientTable.SimpleQuery): New. Implement the dependencies
7377     interface
7378     (TransientJoinedTable.__init__): Keep tack of the original table
7379     objects in addition to the corresponding transient tables.
7380    
7381     * Thuban/Model/table.py (DBFTable.Dependencies)
7382     (MemoryTable.Dependencies): New. Implement the dependencies
7383     interface
7384    
7385     * Thuban/Model/data.py (ShapeTable): New. Helper class for
7386     ShapefileStore
7387     (ShapefileStore.__init__): Use ShapeTable instead of
7388     AutoTransientTable
7389     (ShapefileStore.Table, ShapefileStore.Shapefile): Add doc-strings
7390     (ShapefileStore.FileName, ShapefileStore.FileType): New. Accessor
7391     methods for filename and type
7392     (ShapefileStore.Dependencies): New. Implement the dependencies
7393     interface
7394     (DerivedShapeStore): New class to replace SimpleStore. The main
7395     difference to SimpleStore is that it depends not on a shapefile
7396     but another shapestore which expresses the dependencies a bit
7397     better
7398     (SimpleStore.__init__): Add deprecation warning.
7399    
7400     * test/test_dbf_table.py (TestDBFTable.test_dependencies): New.
7401     Test for the Dependencies method.
7402    
7403     * test/test_memory_table.py (TestMemoryTable.test_dependencies):
7404     New. Test for the Dependencies method.
7405    
7406     * test/test_transientdb.py
7407     (TestTransientTable.test_auto_transient_table_dependencies): New.
7408     Test for the Dependencies method.
7409     (TestTransientTable.test_transient_joined_table): Add test for the
7410     Dependencies method.
7411    
7412     * test/test_session.py (TestSessionSimple.setUp)
7413     (TestSessionSimple.tearDown): New. Implement a better way to
7414     destroy the sessions.
7415     (TestSessionSimple.test_initial_state)
7416     (TestSessionSimple.test_add_table): Bind session to self.session
7417     so that it's destroyed by tearDown
7418     (TestSessionSimple.test_open_shapefile): New. Test for
7419     OpenShapefile and the object it returns
7420    
7421     2003-05-22 Bernhard Herzog <[email protected]>
7422    
7423 bh 983 * Thuban/Model/session.py (Session.AddTable): New method to
7424     register tables with the session.
7425     (Session.Tables): Return the tables registered with AddTable too.
7426    
7427     * test/test_session.py (TestSessionSimple.test_add_table): New.
7428     Test case for the AddTable method
7429    
7430 frank 981 2003-05-22 Frank Koormann <[email protected]>
7431    
7432     UI polishing updates: Place main buttons (OK, Cancel, etc) in the
7433     lower right corner, center labels for selections, initialize controls
7434     in reasonable order for keyboard navigation.
7435    
7436     * Thuban/UI/projdialog.py (ProjFrame.__init__, ProjFrame.__doLayout)
7437     (ProjFrame.__DoOnProjAvail): Determine position of current projection
7438     using the wxListBox.FindString() method. Still a problem (#1886)
7439    
7440     * Thuban/UI/classifier.py
7441     (Classifier.__init__, SelectPropertiesDialog.__init__)
7442    
7443     * Thuban/UI/classgen.py (ClassGenDialog.__init__,
7444     (ClassGenDialog.__DoOnGenTypeSelect): Moved initialization of the
7445     different classification types from here to __init__.
7446     (GenUniquePanel.__init__): Set the column width of the first field
7447     in the Field ListCtrl to the full width.
7448    
7449     * Thuban/UI/tableview.py (LayerTableFrame.__init__): Rename 'Save As'
7450     Button to 'Export'. Center Buttons in Selection Box, set Focus to
7451     Grid.
7452     (LayerTableFrame.OnKeyDown()): New, bound to the grid with EVT_KEY_DOWN,
7453     changes focus to the Selection when pressing "Alt-S".
7454    
7455     * Thuban/UI/legend.py (LegendTree.__SetVisibilityStyle): Only gray out
7456     the text if not visible. The italic font sometimes exceeds the
7457     rendering area.
7458    
7459 jonathan 972 2003-05-21 Jonathan Coles <[email protected]>
7460 jonathan 971
7461 jonathan 975 * Thuban/UI/dock.py (DockFrame): Rename references to _OnClose
7462     to OnClose so that Thuban closes correctly.
7463    
7464     * Thuban/UI/mainwindow.py (MainWindow.OnClose): Call
7465     DockFrame.OnClose, not DockFrame._OnClose.
7466    
7467     2003-05-21 Jonathan Coles <[email protected]>
7468    
7469 jonathan 971 * Thuban/Model/classgen.py (ClassGenerator.GenQuantiles): Remove
7470     references to 'inf' and use new Range __init__ to pass floats
7471     directly rather than converting them to strings first.
7472     Fixes RTBug #1876.
7473    
7474     * Thuban/Model/classification.py (ClassGroupRange.SetRange):
7475     Use new Range ___init__ to pass floats.
7476    
7477     * Thuban/Model/layer.py (RasterLayer.__init__): Test if the
7478     filename is a valid image file. Throw IOError otherwise.
7479    
7480     * Thuban/Model/range.py: Brought over new Range from SciParam that
7481     is immutable and has an __init__ which can accept floats.
7482    
7483     * Thuban/UI/mainwindow.py (MainWindow.AddLayer): Move OpenShapefile
7484     into try block. AddLayer doesn't throw any exceptions anymore.
7485     (MainWindow.AddRasterLayer): Move constructor of RasterLayer into
7486     try block.
7487    
7488     * Thuban/UI/projdialog.py (GeoPanel.__init__): Put Degrees as
7489     the first item in choices. Fixes RTBug #1882.
7490    
7491     * Thuban/UI/renderer.py (MapRenderer.render_map): Check if scale
7492     has gone to 0 which is a serious problem. abort.
7493     (MapRenderer.draw_raster_layer): Catch IOError seperately and
7494     print the error from GDAL.
7495    
7496     * Thuban/UI/tableview.py (TableGrid.__init__): Call
7497     ToggleEventListeners to turn on listening.
7498     (TableGrid.ToggleEventListeners): New. Turns event listening on
7499     and off so as to prevent excessive messages.
7500     (LayerTableFrame.OnQuery): Use TableGrid.ToggleEventListeners
7501     to suppress excessive messages when selecting many rows.
7502     Fixes RTBug #1880.
7503    
7504     * Thuban/UI/view.py: Added checks against if scale == 0. This
7505     is a serious problem that can occur when an image without
7506     geo data is loading and causes the map projection bounds to
7507     go to infinity. Right now, the solution is to simply try
7508     to recover.
7509    
7510     * extensions/thuban/cpl_mfile.cpp (MFILEClose): Make sure
7511     to set the MFILEReceiver attributes even if the data is NULL.
7512    
7513     * extensions/thuban/gdalwarp.cpp: Improved the error handling
7514     and passed GDAL messages back up to the Python layer. Also
7515     tried to fix some memory leaks that were present in the original
7516     utility but didn't matter because the program aborted.
7517    
7518     * test/test_range.py: Copied over tests from SciParam. Removed
7519     tests against importing. Fixes RTBug #1867.
7520    
7521 bh 958 2003-05-21 Bernhard Herzog <[email protected]>
7522    
7523     * test/test_load.py: Remove unused imports and restructure the
7524     test code
7525     (LoadSessionTest): Split into one class for each test and turn
7526     LoadSessionTest itself into the base class for all such session
7527     tests.
7528     (ClassificationTest): New base class for load tests that test
7529     classifications
7530     (TestSingleLayer, TestLayerVisibility, TestClassification)
7531     (TestLabels, TestLayerProjection, TestRasterLayer): New classes
7532     for the individual tests
7533    
7534     * test/support.py (FileLoadTestCase.filename): New base class for
7535     file loading tests
7536    
7537 jan 955 2003-05-21 Jan-Oliver Wagner <[email protected]>
7538    
7539     * Resources/Projections/defaults.proj: Renamed 'Universal Transverse
7540     Mercator' to 'UTM Zone 32' as a more convenient example.
7541     Added 'Gauss Krueger Zone 6'.
7542    
7543     * Data/iceland_sample_raster.thuban: political polygon now
7544     filled transparent to have the raster image visible at once.
7545    
7546 frank 952 2003-05-21 Frank Koormann <[email protected]>
7547    
7548     * Thuban/UI/mainwindow.py (MainWindow): Renamed _OnClose() back to
7549     OnClose() to keep in sync with extensions. Internally Thuban
7550     still uses "underscored" names.
7551    
7552 jonathan 949 2003-05-20 Jonathan Coles <[email protected]>
7553    
7554     This puts back Raster layer support. These layers support projections
7555     through the GDAL library. Currently, the CVS version is being used.
7556     There are no Debian packages available although this may change soon.
7557     A GDAL driver was extended to support writing to memory rather to
7558     files.
7559    
7560     There is still some work that needs to be done, such as some error
7561     handling when loading invalid images or when there is a problem
7562     projecting the image. This putback simply checks in the majority
7563     of the work.
7564    
7565     * setup.py: Add gdalwarp library extension.
7566    
7567     * Thuban/Model/layer.py (BaseLayer.HasClassification): New.
7568     Defaults to False, but can be overridden by subclasses if they
7569     support classification.
7570     (RasterLayer): New. Defines a new layer that represents an
7571     image.
7572    
7573     * Thuban/Model/load.py (SessionLoader.__init__): Add rasterlayer
7574     tag handler.
7575     (SessionLoader.start_layer): Encode the filename.
7576     (SessionLoader.start_rasterlayer, SessionLoader.end_rasterlayer):
7577     New. Supports reading a rasterlayer tag.
7578    
7579     * Thuban/Model/map.py (Map.BoundingBox): Fix typo in comment.
7580    
7581     * Thuban/Model/save.py (XMLWriter.encode): Don't assume that we
7582     get a string in Latin1. If we get such as string convert it to
7583     unicode first, otherwise leave if alone before encoding.
7584     (SessionSaver.write_layer): Add support for writing both Layers
7585     and RasterLayers.
7586    
7587     * Thuban/Model/transientdb.py (AutoTransientTable.SimpleQuery):
7588     The right argument may not be a string, it could also be a Column.
7589    
7590     * Thuban/UI/application.py (ThubanApplication.CreateMainWindow):
7591     Make initial window size 600x400. Fixes RTBug #1872.
7592    
7593     * Thuban/UI/classifier.py (Classifier.__init__): Rearrange how
7594     the dialog is constructed so that we can support layers that
7595     do not have classifications.
7596     (Classifier._OnTry): Only build a classification if the layer
7597     supports one.
7598    
7599     * Thuban/UI/legend.py: Change all checks that a layer is an
7600     instance of Layer into checks against BaseLayer.
7601     (LegendTree.__FillTreeLayer): Only add children to a branch if
7602     the layer supports classification.
7603    
7604     * Thuban/UI/mainwindow.py (MainWindow.NewSession,
7605     MainWindow.OpenSession): Don't proceed with an action if the
7606     user chooses Cancel when they are asked to save changes.
7607     (MainWindow.AddRasterLayer): New. Open a dialog to allow the
7608     user to select an image file. Create a new RasterLayer and add
7609     it to the map.
7610    
7611     * Thuban/UI/renderer.py (MapRenderer.render_map): Add support
7612     for rendering RasterLayer layers.
7613     (MapRenderer.draw_raster_layer): Actually method that calls
7614     the GDALWarp python wrapper and constructs an image from the
7615     data returned.
7616    
7617     * Thuban/UI/tableview.py (LayerTableFrame.__init__): Change the
7618     Choices symbols to match those used in the table query method.
7619     Replace deprecated method calls on table with new method names.
7620    
7621     * Thuban/UI/view.py (MapCanvas.set_view_transform): Try to limit
7622     how small the scale can get. This still needs more testing.
7623    
7624     * extensions/thuban/bmpdataset.cpp: New, but copied from GDAL.
7625     Provides a driver to output in .bmp format.
7626    
7627     * extensions/thuban/cpl_mfile.cpp, extensions/thuban/cpl_mfile.h:
7628     New. Provides IO routines which write to memory, rather than a file.
7629    
7630     * extensions/thuban/gdalwarp.cpp: New, but basically a direct copy
7631     of the gdalwarp utility provided in GDAL. Added function calls
7632     that can be accessed from python.
7633    
7634     * Data/iceland_sample_raster.thuban: New. Sample file that uses
7635     a raster layer.
7636    
7637     * Data/iceland/island.tfw, Data/iceland/island.tif: New. Raster
7638     layer image data.
7639    
7640     * Doc/thuban.dtd: Added rasterlayer attribute definition.
7641    
7642     * test/test_layer.py, test/test_load.py, test/test_save.py: Added
7643     tests associated with the raster layer code.
7644    
7645     * test/test_transientdb.py
7646     (TestTransientTable.test_auto_transient_table_query): Added a test
7647     for using a Column object as the "right" parameter to a query.
7648    
7649 frank 924 2003-05-19 Frank Koormann <[email protected]>
7650    
7651 frank 927 * Thuban/version.py (get_changelog_date):
7652     Catch exceptions if ChangeLog does not exist.
7653    
7654     * Thuban/UI/view.py (MapCanvas.Export): Bugfix
7655    
7656     2003-05-19 Frank Koormann <[email protected]>
7657    
7658 frank 924 Extended version information for Thuban
7659    
7660     * Thuban/version.py: New, version information for Thuban: Last
7661     modification date and last ChangeLog entry date.
7662    
7663     * Thuban/UI/mainwindow.py (MainWindow.About()): Extended version
7664     information: Display Thuban, wxPython and Python version.
7665    
7666 bh 919 2003-05-16 Bernhard Herzog <[email protected]>
7667    
7668 bh 921 * Thuban/Model/save.py: Remove some unused imports including the
7669     __future__ import for nested_scopes as Thuban relies on Python 2.2
7670     now.
7671     (XMLWriter.encode): Remove the special case for a None argument.
7672     In the saver encode is always called with a string argument.
7673    
7674     2003-05-16 Bernhard Herzog <[email protected]>
7675    
7676 bh 919 * Thuban/UI/__init__.py: Remove the work-around for the locale bug
7677     in wxPython (at least when usinvg wxGTK) prior to 2.4. The symptom
7678     of the bug was that e.g. float("1.2") would fail. Thuban now
7679     requires 2.4.x.
7680    
7681 frank 917 2003-05-16 Frank Koormann <[email protected]>
7682    
7683     Printing enhancement and WMF export (under Win32)
7684    
7685     * Thuban/UI/renderer.py (ExportRenderer): New, derived from
7686     ScreenRenderer. Renders Map, Legend and Scalebar for export.
7687     (PrinterRenderer): New, derived from ExportRenderer. Replaces the old
7688     PrintRender.
7689    
7690     * Thuban/UI/view.py (MapPrintout.__init__): Enhanced parameter set
7691     to fullfil information needed for PrinterRenderer.
7692     (MapCanvas.Export): New. Export Map (currently only to WMF on Win32).
7693     (MapCanvas.Print): Adapted to new MapPrintout.
7694     (OutputTransform): General calculations to transform from canvas
7695     coordinates to export/printing devices.
7696    
7697     * Thuban/UI/mainwindow.py (MainWindow.ExportMap()): New. Added also
7698     new method_command to call ExportMap, with platform dependency (only
7699     __WXMSW__)
7700    
7701     * Thuban/UI/scalebar.py (ScaleBar.DrawScaleBar): Position and Size
7702     of scalebar drawing area as new parameters.
7703    
7704     * Thuban/Model/scalebar.py (roundInterval): round long instead of int
7705    
7706     * Thuban/UI/legend.py (ScalebarBitmap.__SetScale):
7707     Update to extended scalebar.DrawScalebar header.
7708    
7709     * test/test_export.py: New, test Thuban.UI.view.OutputTransform()
7710    
7711     * test/test_scalebar.py: Made test executable as standalone.
7712    
7713 bh 908 2003-05-16 Bernhard Herzog <[email protected]>
7714    
7715     * Thuban/Model/table.py (Table): Remove this compatibility alias
7716     for DBFTable.
7717    
7718     * test/test_table.py: Import DBFTable as Table because that alias
7719     doesn't exist anymore.
7720    
7721     * Thuban/UI/classgen.py: Remove some unused imports
7722    
7723 jonathan 906 2003-05-14 Jonathan Coles <[email protected]>
7724    
7725     * Thuban/Model/classgen.py (ClassGenerator.GenSingletonsFromList):
7726     Fix docstring.
7727     (ClassGenerator.GenUniformDistribution): Fix spelling of method name.
7728     (ClassGenerator.GenQuantiles): Use the left/right brackets and min/max
7729     values of the supplied range to determine the beginning and end
7730     bounds of the generated classes.
7731    
7732     * Thuban/Model/range.py (Range.number_re): Now accepts floats that
7733     do not have a leading 0 (.5 is now accepted as well as 0.5).
7734    
7735     * Thuban/UI/classgen.py (ClassGenDialog.OnOK): Fix name of method
7736     call to ClassGenerator.GenUniformDistribution.
7737    
7738     * Thuban/UI/projdialog.py (ProjFrame.__do_layout): Fix Windows
7739     layout bug with the 'Projection' label.
7740    
7741     * test/support.py (FloatTestCase): New. Needed for the Range tests.
7742    
7743     * test/test_range.py: New. Imported from SciParam.
7744    
7745 jonathan 897 2003-05-12 Jonathan Coles <[email protected]>
7746    
7747 jonathan 899 * Thuban/UI/classgen.py (GenQuantilesPanel.GetList): Replace call
7748     to table.UniqueValues() with calls that retrieve all the values
7749     from the table. This will need to be replaced by a method on table
7750     which can simply return the list (perhaps more efficiently).
7751    
7752     2003-05-12 Jonathan Coles <[email protected]>
7753    
7754 jonathan 897 The return value of ClassGenerator.CalculateQuantiles has changed.
7755     Refer to the documentation for details.
7756    
7757     * test/test_classgen.py: Modified Quantile tests to use the
7758     new return values.
7759    
7760     * Thuban/Model/classgen.py
7761     (ClassGenerator.GenQuantiles): Add comments describing the parameters,
7762     use new return values from CalculateQuantiles to produce the correct
7763     range bounds in the Classification.
7764     (ClassGenerator.CalculateQuantiles): Add more comments describing
7765     the return values and parameters. Make minor adjustments to improve
7766     the legibility of the code. Fix problem with adjusted not being set
7767     in most cases.
7768    
7769 frank 893 2003-05-12 Frank Koormann <[email protected]>
7770    
7771     * Thuban/Model/save.py (XMLWriter.encode()): Explicite call to unicode
7772     and latin1. Fixes #1851 finally.
7773    
7774 jonathan 889 2003-05-09 Jonathan Coles <[email protected]>
7775    
7776 jonathan 897 * test/test_classgen.py: New. Tests the Quantile algorithm.
7777    
7778     * Thuban/Model/classgen.py (ClassGenerator.CalculateQuantiles):
7779     Clean up debugging statement, add comments, fix a small bug in the
7780     returned adjusted percentiles.
7781    
7782     2003-05-09 Jonathan Coles <[email protected]>
7783    
7784 jonathan 889 Introduces Range class from SciParam into the ClassGroupRange class,
7785     and such ranges can now be saved and loaded from disk.
7786    
7787     Quantiles are now available in the Classification Generator.
7788    
7789     Initial support for building Queries on a table. Doesn't do anything
7790     but run some tests.
7791    
7792     * Thuban/Model/classification.py: Explicit imports.
7793     (ClassGroupRange): Use the Range class to store the underlying
7794     range information. The interface remains the same, except for
7795     GetRange(), and you can also supply a Range object as the min
7796     parameter to SetRange or __init__.
7797    
7798     * Thuban/Model/load.py (XMLReader.encode): New. Encodes the given
7799     string appropriately for use in Thuban. Fixes RTbug #1851.
7800     (SessionLoader.end_projection): Handle the context of the
7801     projection tag a bit better by looking at what objects are not
7802     None. There was an assumption that a projection tag for a map
7803     could occur before any layers.
7804     (SessionLoader.start_clrange): Provide backward compatibility for
7805     reading min/max values as well as the new range parameter.
7806    
7807     * Thuban/Model/map.py: Explicit imports.
7808    
7809     * Thuban/Model/resource.py: Import _.
7810     (ProjFileSaver.write): write header using projfile.dtd.
7811    
7812     * Thuban/Model/save.py: Explicit imports.
7813     (XMLWriter.encode): New. Encode the given string from a format
7814     used by Thuban into UTF-8. Fixes RTbug #1851.
7815    
7816     * Thuban/UI/classgen.py: Explicit imports.
7817     (ClassGenDialog.__init__): Clean up the code and add support
7818     for Quantiles.
7819     (ClassGenDialog.OnOK): Add support for Quantiles.
7820     (GenQuantilesPanel): New. Input panel for Quantiles.
7821     (ClassGenerator, CustomRamp, MonochromaticRamp, GreyRamp, RedRamp,
7822     GreenRamp, BlueRamp, HotToColdRamp): Move to Thuban/Model/classgen.py
7823    
7824     * Thuban/Model/classgen.py: New. Contains all the classes named above.
7825    
7826     * Thuban/UI/classifier.py: Explicit imports.
7827     (ClassTable.GetValueAsCust, ClassTable.__ParseInput,
7828     ClassTable.SetValueAsCustom): Reworked to use new Range class.
7829    
7830     * Thuban/UI/legend.py: Explicit imports.
7831    
7832     * Thuban/UI/mainwindow.py: Add support for the Join Dialog. Added
7833     a Table menu and associated method calls.
7834     (MainWindow.choose_color): Removed. No longer needed.
7835    
7836     * Thuban/UI/projdialog.py (ProjFrame.__VerifyButtons): Save button
7837     should be disabled if no projection is selected in the available
7838     list.
7839    
7840     * Thuban/UI/renderer.py: Explicit imports.
7841    
7842     * Thuban/UI/tableview.py (TableGrid.OnRangeSelect): Fix some issues
7843     with correctly selecting the rows and issuing the right events.
7844     Be sure to call Skip() to allow the grid to do some of its own
7845     handling which allows the rows to actually be selected.
7846     (LayerTableGrid.select_shapes): Rename from select_shape. Supports
7847     selecting multiple shapes.
7848     (LayerTableFrame): Support for building Queries.
7849     (LayerTableFrame.select_shapes): Allow multiple shapes to be selected.
7850    
7851     * Thuban/UI/tree.py: Explicit imports.
7852    
7853     * Thuban/UI/view.py (MapCanvas): Delegate "SelectedShapes" so the
7854     table view can call it.
7855    
7856     * test/test_classification.py: Explicit imports.
7857     (TestClassification.test_ClassGroupRange): Fix test for new
7858     Range class.
7859    
7860     * Doc/thuban.dtd: Add range parameter for clrange.
7861    
7862     * Thuban/Model/range.py: Taken from SciParam. Used as the underlying
7863     object in ClassGroupRange, and also uesd for inputting ranges in
7864     the classifer table and elsewhere.
7865    
7866     * Thuban/UI/join.py: New. Initial Join dialog. No real functionality
7867     yet.
7868    
7869 frank 872 2003-05-09 Frank Koormann <[email protected]>
7870    
7871     * Thuban/UI/scalebar.py (DrawScaleBar): Draw only if interval > 0.0.
7872    
7873 frank 860 2003-05-08 Frank Koormann <[email protected]>
7874    
7875 frank 870 Coding style updates
7876    
7877     * test/test_scalebar.py: Replaced tab indentation by spaces.
7878    
7879     * Thuban/UI/scalebar.py: Explicit imports.
7880    
7881     2003-05-08 Frank Koormann <[email protected]>
7882    
7883 frank 867 * Thuban/UI/scalebar.py
7884     (ScaleBar.DrawScalebar): Format string bug fixed.
7885    
7886     2003-05-08 Frank Koormann <[email protected]>
7887    
7888 frank 865 Reorganization of scalebar component (no wx in Thuban/Model)
7889    
7890     * Thuban/Model/scalebar.py: Rendering moved to Thuban/UI/scalebar.py
7891     (deriveInterval):
7892     Calculate scalebar interval and unit which fits in width for scale.
7893     (roundInterval): Round float.
7894    
7895     * Thuban/UI/scalebar.py (ScaleBar): Scalebar rendering
7896    
7897     * test/test_scalebar.py: Test for Thuban/Model/scalebar.py methods.
7898    
7899     * Thuban/UI/legend.py: Import Thuban.UI.scalebar
7900    
7901     2003-05-08 Frank Koormann <[email protected]>
7902    
7903 frank 860 * Thuban/UI/legend.py (ScalebarBitmap.SetCanvas):
7904     Initialize ScaleBar with canvas.map
7905    
7906     * Thuban/Model/scalebar.py (ScaleBar.roundInterval()): New,
7907     round intervals to display smarter lengths
7908     (ScaleBar.DrawScalebar): Draw Scalebar only if the map contains a
7909     layer. If the maps has no projection applied grey the scalebar.
7910    
7911 frank 857 2003-05-07 Frank Koormann <[email protected]>
7912    
7913     Basic Scalebar features added.
7914    
7915     * Thuban/Model/scalebar.py (ScaleBar): New, scalebar rendering.
7916    
7917     * Thuban/UI/legend.py (LegendPanel): Added scalebar bitmap
7918     (ScaleBarBitmap): New, links the scalebar bitmap with view messages
7919     and the renderer.
7920    
7921     * Thuban/UI/view.py (MapCanvas.set_view_transform): Issue SCALE_CHANGED.
7922    
7923     * Thuban/UI/messages.py: SCALE_CHANGED added.
7924    
7925 bh 850 2003-05-07 Bernhard Herzog <[email protected]>
7926    
7927 bh 852 * Thuban/Model/session.py (Session.__init__): New instance
7928     variable shapestores to hold a list of all open shapestore objects
7929     (Session.ShapeStores): New. Accessor method for the shapestores
7930     list.
7931     (Session._add_shapestore, Session._clean_weak_store_refs): New.
7932     Internal methods to maintain the shapestores list.
7933     (Session.Tables): New. Return all tables open in the session.
7934     (Session.OpenShapefile): Insert the new ShapeStore into the
7935     shapestores list.
7936    
7937     * test/test_session.py (TestSessionSimple.test_initial_state): Add
7938     tests for ShapeStores and Tables
7939     (TestSessionWithContent.test_shape_stores)
7940     (TestSessionWithContent.test_tables): New. Test cases for
7941     ShapeStores and Tables
7942    
7943     2003-05-07 Bernhard Herzog <[email protected]>
7944    
7945 bh 850 * Thuban/Model/transientdb.py (TransientTableBase.ReadRowAsDict):
7946     Add comments about the optimizations used.
7947     (AutoTransientTable.ReadValue, TransientTableBase.ReadValue): New.
7948     Implement the ReadValue table interface method.
7949    
7950     * test/test_transientdb.py
7951     (TestTransientTable.run_iceland_political_tests)
7952     (TestTransientTable.test_transient_joined_table): Add tests for
7953     ReadValue
7954    
7955 frank 848 2003-05-07 Frank Koormann <[email protected]>
7956    
7957     * Resources/Bitmaps/fulllayerextent.xpm,
7958     Resources/Bitmaps/fullselextent.xpm: Replaced the place holders with
7959     new icons.
7960    
7961 bh 840 2003-05-06 Bernhard Herzog <[email protected]>
7962    
7963 bh 846 * Thuban/Model/transientdb.py (AutoTransientTable.SimpleQuery):
7964     New. Simply delegate to the transient table's version.
7965    
7966     * test/test_transientdb.py
7967     (TestTransientTable.test_auto_transient_table_query): New. Test
7968     case for AutoTransientTable's SimpleQuery
7969    
7970     2003-05-06 Bernhard Herzog <[email protected]>
7971    
7972 bh 843 * Thuban/Model/transientdb.py (TransientTableBase.SimpleQuery):
7973     Implement a simple query method for the query dialog
7974     (TransientTableBase.create): Add an INTEGER PRIMARY KEY that holds
7975     the row index or shapeid.
7976     (TransientTable.create): Insert the right value of the row index
7977     (TransientJoinedTable.create): Copy the row index of the left
7978     table to the joined result table
7979    
7980     * test/test_transientdb.py
7981     (TestTransientTable.test_transient_table_read_twice): Fix
7982     doc-string
7983     (TestTransientTable.test_transient_table_query): New. Test for the
7984     SimpleQuery method
7985    
7986     2003-05-06 Bernhard Herzog <[email protected]>
7987    
7988 bh 840 Convert all table users to use the new table interface. This only
7989     covers Thuban itself, not GREAT-ER or other applications built on
7990     Thuban yet, so the compatibility interface stays in place for the
7991     time being but it now issues DeprecationWarnings.
7992    
7993     Finally, the new Table interface has a new method, HasColumn.
7994    
7995     * Thuban/Model/table.py (OldTableInterfaceMixin): All methods
7996     issue deprecation warnings when they're. The warnings refer to the
7997     caller of the method.
7998     (OldTableInterfaceMixin.__deprecation_warning): New. Helper method
7999     for the deprecation warnings
8000    
8001     * test/test_table.py: Ignore the deprecation warnings for the old
8002     table in the tests in this module. The purpose of the tests is to
8003     test the old interface, after all.
8004    
8005     * test/test_transientdb.py
8006     (TestTransientTable.run_iceland_political_tests): Use the
8007     constants for the types. Add a test for HasColumn
8008     (TestTransientTable.test_transient_joined_table): Adapt to new
8009     table interface. Add a test for HasColumn
8010     (TestTransientTable.test_transient_table_read_twice): Adapt to new
8011     table interface
8012    
8013     * Thuban/UI/tableview.py (DataTable.SetTable, DataTable.GetValue):
8014     Adapt to new table interface
8015    
8016     * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Adapt to
8017     new table interface
8018    
8019     * Thuban/UI/controls.py (RecordListCtrl.fill_list)
8020     (RecordTable.SetTable): Adapt to new table interface
8021    
8022     * Thuban/UI/classifier.py (Classifier.__init__)
8023     (Classifier.__init__): Adapt to new table interface
8024    
8025     * Thuban/UI/classgen.py (ClassGenDialog.__init__)
8026     (GenUniformPanel._OnRetrieve, GenUniquePanel._OnRetrieve): Adapt
8027     to new table interface
8028    
8029     * Thuban/Model/transientdb.py (TransientTableBase.HasColumn)
8030     (AutoTransientTable.HasColumn): Implement the new table interface
8031     method
8032     (AutoTransientTable.ReadRowAsDict, AutoTransientTable.ValueRange)
8033     (AutoTransientTable.UniqueValues): Adapt to new table interface
8034    
8035     * Thuban/Model/layer.py (Layer.SetShapeStore, Layer.GetFieldType):
8036     Adapt to new table interface
8037    
8038     * test/test_layer.py (TestLayer.open_shapefile): Helper method to
8039     simplify opening shapefiles a bit easier.
8040     (TestLayer.test_arc_layer, TestLayer.test_polygon_layer)
8041     (TestLayer.test_point_layer): Use the new helper method
8042     (TestLayer.test_get_field_type): New. Test for the GetFieldType
8043     method
8044    
8045     * test/test_dbf_table.py (TestDBFTable.test_has_column): Test for
8046     the new table method
8047    
8048     * test/test_memory_table.py (TestMemoryTable.test_has_column):
8049     Test for the new table method HasColumn
8050    
8051 jonathan 833 2003-05-06 Jonathan Coles <[email protected]>
8052    
8053     Addresses the "Selection Extent" wish of RTbug #1787.
8054    
8055     * Resources/Bitmaps/fulllayerextent.xpm,
8056     Resources/Bitmaps/fullselextent.xpm: Bitmaps for layer and selection
8057     extent. These are just place holders for the real bitmaps.
8058    
8059     * Thuban/Model/layer.py (Shape): Since a Shape is immutable only
8060     calculate the bounding box once (the first time compute_bbox() is
8061     called).
8062     (Layer.ShapesBoundingBox): New. Given a list of shape ids, return
8063     the bounding box for the shapes in lat/long coordinates.
8064    
8065     * Thuban/UI/mainwindow.py: Added new "Full selection extent" menu
8066     option.
8067     (MainWindow.has_selected_shapes): New. Returns true if there are
8068     any selected shapes.
8069     (MainWindow.FullSelectionExtent): New. Calls
8070     MapCanvas.FitSelectedToWindow() when the user selects the menu option.
8071     (_has_selected_shapes): New. Returns true if there are any
8072     selected shapes.
8073    
8074     * Thuban/UI/selection.py (Selection.HasSelectedShapes): New. Returns
8075     true if there are any selected shapes.
8076    
8077     * Thuban/UI/view.py (MapCanvas): Added delegated method
8078     HasSelectedShapes.
8079     (MapCanvas.FitSelectedToWindow): New. Centers and scales any selected
8080     shapes on the canvas using the map projection (if any).
8081    
8082     * test/test_layer.py (TestLayer.test_arc_layer): Add some tests
8083     for Layer.ShapesBoundingBox().
8084    
8085 bh 826 2003-05-06 Bernhard Herzog <[email protected]>
8086    
8087     * Resources/Projections/defaults.proj: Fix spelling of Mercator
8088    
8089 jonathan 823 2003-05-05 Jonathan Coles <[email protected]>
8090    
8091     Addresses the "Full Layer Extent" wish of RTbug #1787.
8092    
8093     * Resources/Projections/defaults.proj: Added UK National Grid.
8094    
8095     * Thuban/UI/mainwindow.py: Added new "Full layer extent" menu option.
8096     (MainWindow.FullLayerExtent): New. Calls MapCanvas.FitLayerToWindow()
8097     when the user selects the menu option.
8098    
8099     * Thuban/UI/view.py (MapCanvas.FitLayerToWindow): New. Centers and
8100     scales the given layer on the canvas using the map projection.
8101    
8102 bh 819 2003-05-05 Bernhard Herzog <[email protected]>
8103    
8104     Convert the table implementations to a new table interface. All
8105     tables use a common mixin class to provide backwards compatibility
8106     until all table users have been updated.
8107    
8108     * Thuban/Model/table.py (OldTableInterfaceMixin): Mixin class to
8109     provide backwards compatibility for table classes implementing the
8110     new interface
8111     (DBFTable, MemoryTable): Implement the new table interface. Use
8112     OldTableInterfaceMixin as base for compatibility
8113     (DBFColumn, MemoryColumn): New. Column description for DBFTable
8114     and MemoryTable resp.
8115    
8116     * test/test_dbf_table.py: New. Test cases for the DBFTable with
8117     the new table interface.
8118    
8119     * test/test_memory_table.py: New. Test cases for the MemoryTable
8120     with the new table interface.
8121    
8122     * test/test_table.py: Document the all tests in this file as only
8123     for backwards compatibility. The equivalent tests for the new
8124     interface are in test_memory_table.py and test_dbf_table.py
8125     (MemoryTableTest.test_read): field_info should be returning tuples
8126     with four items
8127     (MemoryTableTest.test_write): Make doc-string a more precise.
8128    
8129     * Thuban/Model/transientdb.py (TransientTableBase): Convert to new
8130     table interface. Derive from from OldTableInterfaceMixin for
8131     compatibility.
8132     (TransientTableBase.create): New intance variable column_map to
8133     map from names and indices to column objects
8134     (TransientTable.create): Use the new table interface of the input
8135     table
8136     (AutoTransientTable): Convert to new table interface. Derive from
8137     from OldTableInterfaceMixin for compatibility.
8138     (AutoTransientTable.write_record): Removed. It's not implemented
8139     yet and we still have to decide how to handle writing with the new
8140     table and data framework.
8141    
8142     * test/test_transientdb.py
8143     (TestTransientTable.run_iceland_political_tests)
8144     (TestTransientTable.test_transient_joined_table): Use the new
8145     table interface
8146    
8147 jonathan 817 2003-05-05 Jonathan Coles <[email protected]>
8148    
8149     This is namely a collection of UI updates to improve user interactivity.
8150     Tabbing between controls now exists and you can use ESC to close dialog
8151     boxes; ENTER will active the default button.
8152    
8153     * Thuban/UI/classgen.py (ClassGenDialog.__init__): Rearrange the
8154     order that the controls are created so that tabbing works correctly.
8155     (ClassGenDialog.OnOK): Renamed from _OnGenerate() so that the
8156     wxDialog can handle the default button correctly.
8157     (ClassGenDialog.OnCancel): Renamed from _OnCloseBtn() for the
8158     same reasons as for OnOK.
8159     (GenUniformPanel._OnRetrieve): Call wxBeginBusyCursor/wxEndBusyCursor
8160     when we ask the table for the maximum/minimum values of a field
8161     which could take a very long time.
8162    
8163     * Thuban/UI/classifier.py (Classifier.__init__): Rearrange the
8164     order that the controls are created so that tabbing works correctly.
8165     (SelectPropertiesDialog.__init__): Rearrange the order that the
8166     controls are created so that tabbing works correctly.
8167    
8168     * Thuban/UI/dialogs.py: Copied NonModalDialog box and changed it
8169     to derive from a wxDialog but behave like the original implementation
8170     which was derived from a wxFrame. wxDialog provides useful key
8171     handling functionality like ESC calling OnCancel and ENTER calling
8172     OnOK which is lost with wxFrame.
8173    
8174     * Thuban/UI/mainwindow.py: Add "..." to menu items that will open
8175     new dialogs.
8176    
8177     * Thuban/UI/projdialog.py (ProjFrame.__init__): Rearrange the
8178     order that the controls are created so that tabbing works correctly.
8179     (ProjFrame.OnApply): Renamed from _OnTry() to use wxDialog behaviour.
8180     (ProjFrame.OnOK): Renamed from _OnOK() to use wxDialog behaviour.
8181     (ProjFrame.OnCancel): Renamed from _OnClose() to use wxDialog behaviour.
8182     (ProjPanel.__init__): Add "Airy" to the list of ellipsoids so we
8183     can provide the "UK National Grid" as a default projection.
8184     (UTMPanel.__init__): Rearrange the order that the controls are
8185     created so that tabbing works correctly.
8186    
8187 bh 809 2003-05-05 Bernhard Herzog <[email protected]>
8188    
8189 bh 811 * extensions/thuban/wxproj.cpp: Fix some of the comments.
8190     (project_point): If a map projection but no layer projection is
8191     given, convert degrees to radians before applying the map
8192     projection.
8193    
8194 bh 809 * Thuban/UI/tableview.py (TableGrid.disallow_messages)
8195     (TableGrid.allow_messages): New methods to make it possible to
8196     inhibit message sending.
8197     (TableGrid.issue): Only send the message if not inhibited.
8198     (LayerTableGrid.select_shape): Use the new methods to make sure
8199     that no ROW_SELECTED message is sent while we're updating the
8200     selected rows to match the selected shapes.
8201    
8202 jan 807 2003-05-02 Jan-Oliver Wagner <[email protected]>
8203    
8204     Implementation of MemoryTable.
8205    
8206     * Thuban/Model/table.py (MemoryTable): New. Quite simple table
8207     implementation that operates on a list of tuples. All of the data
8208     are kept in the memory.
8209    
8210     * test/test_table.py (MemoryTableTest): New.
8211    
8212     * test/test_transientdb.py (SimpleTable): Removed.
8213     (TestTransientTable.test_transient_joined_table,
8214     (TestTransientTable.test_transient_table_read_twice): Replaced
8215     SimpleTable by MemoryTable.
8216    
8217 jonathan 793 2003-04-30 Jonathan Coles <[email protected]>
8218    
8219 jonathan 803 * Data/iceland_sample.thuban: Now contains correct projections
8220     for each of the layers.
8221    
8222     * Resources/Projections/defaults.proj: Geographic projection
8223     contains unit conversion parameter.
8224    
8225     2003-04-30 Jonathan Coles <[email protected]>
8226    
8227 jonathan 793 The most important part of this putback is the projection changes.
8228     It should now be possible to specify the projection that a layer
8229     is in and then specify a different projection for the map. The
8230     projection dialog has an extra parameter for a geographic projection
8231     which lets the user select if the input is in degrees or radians.
8232    
8233     * Thuban/Model/layer.py (Layer.ShapesInRegion): Fix docstring
8234     to say that the parameter is a tuple of unprojected
8235     points (which is what the callers to this method were assuming).
8236     Also, since the points are unprojected we need to projected them.
8237    
8238     * Thuban/UI/legend.py (LegendTree.MoveCurrentItemUp,
8239     LegendTree.MoveCurrentItemDown): If the layer or any of the layer's
8240     groups are selected, move the layer up/down. Fixes RTbug #1833.
8241    
8242     * Thuban/UI/mainwindow.py: Move menu item map_rename up.
8243    
8244     * Thuban/UI/projdialog.py (ProjFrame._OnSave): Add missing
8245     parameter in call to SetClientData.
8246     (GeoPanel): Add support for selecting the units that the
8247     source data is in (Radians or Degrees).
8248    
8249     * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Optimize
8250     the rendering loop by reducing the number of if's, removing the
8251     unnecessary try/except block, and checking if the old group
8252     is the same as the new one (which happens a lot if there is
8253     no classification, or lots of shapes are in the same group).
8254    
8255     * Thuban/UI/view.py (MapCanvas.OnPaint): Add a try/except block
8256     around the redraw routine to try to catch problems that the user
8257     may create by selecting invalid projections for the data set and
8258     map. Clears the display if there are any problems and prints the
8259     error.
8260     (MapCanvas.do_redraw): Use DC.Clear() instead of drawing a filled
8261     rectangle.
8262    
8263     * extensions/thuban/wxproj.cpp (project_point): First invert the
8264     supplied point (which should be in projected coordinates) using
8265     the layer's projection and then project the point using the
8266     map's projection.
8267     (project_points): Use project_point() to project each point.
8268    
8269 jan 792 2003-04-30 Jan-Oliver Wagner <[email protected]>
8270    
8271     * Thuban/Model/layer.py (Layer.SetShapeStore): Fixed a bug:
8272     don't set the Classification to None if the classfication field
8273     is None (ie only a DEFAULT).
8274    
8275 bh 786 2003-04-30 Bernhard Herzog <[email protected]>
8276    
8277 bh 790 * Thuban/UI/view.py: Fix some typos.
8278    
8279 bh 788 * Thuban/UI/mainwindow.py (MainWindow.identify_view_on_demand): Do
8280     not pop up the dialog if the selection becomes empty (this could
8281     happen if e.g. a new selection is opened while the identify tool
8282     is active and dialog had been closed)
8283    
8284     2003-04-30 Bernhard Herzog <[email protected]>
8285    
8286 bh 786 * Thuban/Model/transientdb.py (TransientTableBase.__init__): New
8287     instance variable read_record_last_result
8288     (TransientTableBase.read_record): Make sure reading the same
8289     record twice works. The implementation uses the new instance
8290     variable read_record_last_result
8291    
8292     * test/test_transientdb.py
8293     (TestTransientTable.test_transient_table_read_twice): New test
8294     case for the above bug-fix.
8295    
8296 jonathan 793 2003-04-29 Jonathan Coles <[email protected]>
8297    
8298     * Thuban/common.py: Removed. No longer needed Str2Num. RTbug #1832.
8299    
8300     * Thuban/UI/classgen.py: Remove all uses of Str2Num.
8301    
8302     * Thuban/UI/classifier.py: Remove all uses of Str2Num.
8303     (ClassTable.SetValueAsCustom): Rename keyword argument in
8304     ClassGroup* constructors to match argument name.
8305    
8306 bh 779 2003-04-29 Bernhard Herzog <[email protected]>
8307    
8308     * Thuban/Model/session.py (Session.Destroy): Explicitly close the
8309     transient DB if it exists to make sure it doesn't leave a journal
8310     file in the temp directory.
8311    
8312     * Thuban/Model/transientdb.py (TransientDatabase.close): Set
8313     self.conn to None after closing the connection to make sure it's
8314     not closed twice
8315    
8316 jonathan 767 2003-04-29 Jonathan Coles <[email protected]>
8317    
8318 jonathan 769 Add a visible parameter in the layer XML tag. The default value is
8319     "true". If anything other than "false" is specified we also assume
8320 jonathan 776 "true". Addresses RTbug #1025.
8321 jonathan 769
8322     * Doc/thuban.dtd: Add visible parameter to a layer.
8323    
8324     * Thuban/Model/layer.py (BaseLayer.__init__): Change default value
8325     of visible from 1 to True.
8326     (Layer.__init__): Change default value of visible from 1 to True.
8327    
8328     * Thuban/Model/load.py (SessionLoader.start_layer): Read visible
8329     parameter.
8330    
8331     * Thuban/Model/save.py (SessionSaver.write_layer): Save visible
8332     parameter.
8333    
8334     * test/test_load.py: Add new test data contents_test_visible.
8335     (LoadSessionTest.setUp): save test data.
8336     (LoadSessionTest.testLayerVisibility): Test if the visible flag
8337     is loaded correctly.
8338    
8339     * test/test_save.py (SaveSessionTest.testSingleLayer): Add test
8340     for saving an invisible layer.
8341    
8342     2003-04-29 Jonathan Coles <[email protected]>
8343    
8344 jonathan 767 * Thuban/UI/mainwindow.py (MainWindow.SetMap): Look up the
8345     legend dialog box and tell it to change its map to the one
8346     supplied to SetMap(). Fixes RTbug #1770.
8347    
8348 bh 764 2003-04-29 Bernhard Herzog <[email protected]>
8349    
8350 bh 766 Next step of table implementation. Introduce a transient database
8351     using SQLite that some of the data is copied to on demand. This
8352     allows us to do joins and other operations that require an index
8353     for good performance with reasonable efficiency. Thuban now needs
8354     SQLite 2.8.0 and pysqlite 0.4.1. Older versions may work but I
8355     haven't tested that.
8356    
8357     * Thuban/Model/transientdb.py: New. Transient database
8358     implementation.
8359    
8360     * test/test_transientdb.py: New. Tests for the transient DB
8361     classes.
8362    
8363     * Thuban/Model/session.py (AutoRemoveFile, AutoRemoveDir): New
8364     classes to help automatically remove temporary files and
8365     directories.
8366     (Session.__init__): New instance variables temp_dir for the
8367     temporary directory and transient_db for the SQLite database
8368     (Session.temp_directory): New. Create a temporary directory if not
8369     yet done and return its name. Use AutoRemoveDir to have it
8370     automatically deleted
8371     (Session.TransientDB): Instantiate the transient database if not
8372     done yet and return it.
8373    
8374     * Thuban/Model/data.py (ShapefileStore.__init__): Use an
8375     AutoTransientTable so that data is copied to the transient DB on
8376     demand.
8377     (SimpleStore): New class that simply combines a table and a
8378     shapefile
8379    
8380     * Thuban/Model/table.py (Table, DBFTable): Rename Table into
8381     DBFTable and update its doc-string to reflect the fact that this
8382     is only the table interface to a DBF file. Table is now an alias
8383     for DBFTable for temporary backwards compatibility.
8384    
8385     * Thuban/UI/application.py (ThubanApplication.OnExit): Make sure
8386     the last reference to the session goes away so that the temporary
8387     files are removed properly.
8388    
8389     * test/test_load.py (LoadSessionTest.tearDown): Remove the
8390     reference to the session to make sure the temporary files are
8391     removed.
8392    
8393     2003-04-29 Bernhard Herzog <[email protected]>
8394    
8395 bh 764 * Thuban/Model/load.py (XMLReader.__init__, XMLReader.read): Turn
8396     the __parser instance variable into a normal local variable in
8397     read. It's only used there and read will never be called more than
8398     once. Plus it introduces a reference cycle that keeps can keep the
8399     session object alive for a long time.
8400    
8401 jonathan 767 2003-04-29 Jonathan Coles <[email protected]>
8402 jonathan 735
8403 jonathan 762 * Thuban/Model/proj.py (Projection): Removed Set*() methods to make
8404     Projection an immutable item. Fixes RTbug #1825.
8405     (Projection.__init__): Initialize instance variables here.
8406     (ProjFile.Replace): New. Replace the given projection object with
8407     the new projection object. This solves the problem of needing the
8408     mutator Projection.SetProjection() in the ProjFrame class and
8409     allows a projection to change parameters without changing its
8410     location in the file.
8411    
8412     * Thuban/UI/mainwindow.py (MainWindow.SaveSessionAs): Dialog should
8413     be of type wxSAVE and should verify overwriting a file.
8414    
8415     * Thuban/UI/projdialog.py (ProjFrame._OnSave): Use the new
8416     ProjFile.Replace() method instead of the mutator
8417     Projection.SetProjection(). Also requires that we reassign the
8418     client data to the new projection.
8419    
8420     * test/test_proj.py (TestProjection.test): Test GetName() and
8421     GetAllParameters()
8422     (TestProjFile.test): Remove tests for Set*() methods. Add tests
8423     for Replace().
8424    
8425     2003-04-25 Jonathan Coles <[email protected]>
8426    
8427 jonathan 756 * Thuban/Model/save.py (SessionSaver.write_projection): Make sure
8428     to save the name of the projection.
8429    
8430     * test/test_save.py (SaveSessionTest.testLayerProjection): New
8431     test to verify layer projections are saved correctly.
8432    
8433     2003-04-25 Jonathan Coles <[email protected]>
8434    
8435 jonathan 753 * Thuban/Model/proj.py (Projection.SetName): Set the name
8436     to "Unknown" if name is None.
8437     (Projection.SetAllParameters): New. Set the projection's
8438     parameter list to the one supplied.
8439     (Projection.SetProjection): New. Set the projection's
8440     properties to those of the supplied Projection.
8441    
8442     * Thuban/UI/mainwindow.py (MainWindow.MapProjection): Set
8443     the dialog title to include the map's title.
8444     (MainWindow.LayerProjection): Set the dialog title to include
8445     the layer's title.
8446    
8447     * Thuban/UI/projdialog.py (ProjFrame.__ShowError): Consolidate
8448     error dialogs into a single method call.
8449     (ProjFrame.__VerifyButtons): Add more states to check.
8450     (ProjFrame.__GetProjection): Return the current state of an
8451     edited projection or None.
8452     (ProjFrame.__FillAvailList): Remove checks for states that
8453     shouldn't exist.
8454     (ProjFrame._OnNew): Clear all selected items and supply
8455     a projection panel if necessary.
8456    
8457     * test/test_proj.py (TestProjFile.test): Add tests for
8458     ProjFile.SetAllParameters, ProjFile.SetProjection,
8459     ProjFile.SetName.
8460    
8461     2003-04-25 Jonathan Coles <[email protected]>
8462    
8463 jonathan 748 * Thuban/UI/projdialog.py (ProjFrame.__FillAvailList): Now
8464     takes an optional argument to select the current projection.
8465     This does not guarantee that the item is visible due to
8466     limited wxWindows functionality. Fixes RTBug #1821.
8467    
8468     2003-04-25 Jonathan Coles <[email protected]>
8469    
8470 jonathan 743 * Thuban/Model/load.py (SessionLoader.start_projection): Remember
8471     the projection name and use it when constructing the Projection
8472     object.
8473    
8474     * Thuban/Model/proj.py (Projection.__init__): Change the default
8475     value for 'name' to None and then test if name is equal to None
8476     in the body of the constructor. This way the caller doesn't have to
8477     know what the default value should be. Namely, useful in load.py
8478     where we have to pick a default value if the 'name' parameter
8479     doesn't exist in the XML file.
8480    
8481     * test/test_load.py (LoadSessionTest.testLayerProjection): New.
8482     Tests a file where a layer has a projection.
8483    
8484     2003-04-25 Jonathan Coles <[email protected]>
8485    
8486 jonathan 735 * Thuban/Model/layer.py (Layer.TreeInfo): Add an item to the
8487     tree for projection information.
8488    
8489     * Thuban/Model/load.py (XMLReader.GetFilename): Renamed from
8490     XMLReader.GetFileName.
8491     (SessionLoader): Added support for loading projection tags that
8492     appear inside a layer.
8493    
8494     * Thuban/Model/proj.py (ProjFile): Document the class. Move
8495     back to using a list because the order of the projections in
8496     the file is important to maintain. Fixes RTbug #1817.
8497    
8498     * Thuban/Model/resource.py: Rename calls to ProjFile.GetFileName
8499     to ProjFile.GetFilename.
8500    
8501     * Thuban/Model/save.py (SessionSaver.write_layer): Save projection
8502     information.
8503    
8504     * Thuban/UI/projdialog.py (ProjFrame._OnAddToList): Renamed from
8505     ProjFrame._OnSaveAs. Removed old dead code from previous
8506     implementation.
8507     (ProjFrame._OnExport): Add support for exporting more than one
8508     projection to a single file.
8509     (ProjFrame.__FillAvailList): use string formatting (% operator)
8510     to build strings that are (partly) translated. Fixes RTbug #1818.
8511    
8512     * test/test_proj.py (TestProjFile.test): New. Tests the base ProjFile
8513     class.
8514    
8515 bh 734 2003-04-24 Bernhard Herzog <[email protected]>
8516    
8517     * po/es.po: Updated Spanish translation by Daniel Calvelo Aros
8518    
8519     * po/fr.po: New. French translation by Daniel Calvelo Aros
8520    
8521     * Thuban/UI/projdialog.py (ProjFrame._OnSaveAs): Don't translate
8522     empty strings.
8523    
8524 jonathan 735 2003-04-24 Jonathan Coles <[email protected]>
8525 jonathan 724
8526     * Thuban/Model/layer.py (Layer.GetProjection): New. Needed to
8527     implement the interface that the ProjFrame dialog expects.
8528    
8529     * Thuban/Model/proj.py (Projection.SetName): New. Allows the
8530     name of the projection to be changed.
8531     (ProjFile): Use a dictionary instead of a list so that removing
8532     projections is easier and we are sure about uniqueness.
8533     (ProjFile.Remove): Remove the given projection object.
8534    
8535     * Thuban/Model/resource.py (GetSystemProjFiles, GetUserProjFiles):
8536     Return a list with only one projection file instead of searching for
8537     any projection file. This simplifies many things if the user can
8538     only have one system file and one user file.
8539    
8540     * Thuban/UI/classgen.py: Change all references to
8541     genCombo to genChoice.
8542    
8543     * Thuban/UI/mainwindow.py: Add a Projection option under the
8544     layer menu.
8545     (MainWindow.LayerProjection): New. Open up a projection window
8546     for a layer.
8547    
8548     * Thuban/UI/projdialog.py: Large changes to how the dialog is
8549     laid out. Use three panels instead of one. One for the list of
8550     projections, one for the edit controls, and one for the buttons.
8551     Fixed resizing problems so that the dialog resizes correctly
8552     when the projection panel changes. Added import/export, save, and
8553     new buttons/functionality.
8554    
8555 bh 723 2003-04-24 Bernhard Herzog <[email protected]>
8556    
8557     First step towards table management. Introduce a simple data
8558     abstraction so that we replace the data a layer uses more easily
8559     in the next step.
8560    
8561     * Thuban/Model/data.py: New file with a simple data abstraction
8562     that bundles shapefile and dbffile into one object.
8563    
8564     * Thuban/Model/session.py (Session.OpenShapefile): New method to
8565     open shapefiles and return a shape store object
8566    
8567     * Thuban/Model/layer.py (Layer.__init__): Pass the data as a store
8568     object instead of a shapefile filename. This introduces a new
8569     instance variable store holding the datastore. For intermediate
8570     backwards compatibility keep the old instance variables.
8571     (open_shapefile): Removed. No longer needed with the shape store.
8572     (Layer.SetShapeStore, Layer.ShapeStore): New methods to set and
8573     get the shape store used by a layer.
8574     (Layer.Destroy): No need to explicitly destroy the shapefile or
8575     table anymore.
8576    
8577     * Thuban/UI/mainwindow.py (MainWindow.AddLayer)
8578     (MainWindow.AddLayer): Use the session's OpenShapefile method to
8579     open shapefiles
8580    
8581     * Thuban/Model/load.py (ProcessSession.start_layer): Use the
8582     session's OpenShapefile method to open shapefiles
8583    
8584     * test/test_classification.py
8585     (TestClassification.test_classification): Use the session's
8586     OpenShapefile method to open shapefiles and build the filename in
8587     a more platform independed way
8588    
8589     * test/test_layer.py (TestLayer.setUp, TestLayer.tearDown):
8590     Implement to have a session to use in the tests
8591     (TestLayer.test_arc_layer, TestLayer.test_polygon_layer)
8592     (TestLayer.test_point_layer, TestLayer.test_empty_layer): Use the
8593     session's OpenShapefile method to open shapefiles
8594     (TestLayerLegend.setUp): Instantiate a session so that we can use
8595     it to open shapefiles.
8596     (TestLayerLegend.tearDown): Make sure that all references to
8597     layers and session are removed otherwise we may get a resource
8598     leak
8599    
8600     * test/test_map.py (TestMapAddLayer.test_add_layer)
8601     (TestMapWithContents.setUp): Instantiate a session so that we can
8602     use it to open shapefiles.
8603     (TestMapWithContents.tearDown): Make sure that all references to
8604     layers, maps and sessions are removed otherwise we may get a
8605     resource leak
8606     ("__main__"): use support.run_tests() so that more info about
8607     uncollected garbage is printed
8608    
8609     * test/test_save.py (SaveSessionTest.testSingleLayer): Use the
8610     session's OpenShapefile method to open shapefiles
8611     ("__main__"): use support.run_tests() so that more info about
8612     uncollected garbage is printed
8613    
8614     * test/test_selection.py (TestSelection.tearDown): Make sure that
8615     all references to the session and the selection are removed
8616     otherwise we may get a resource leak
8617     (TestSelection.get_layer): Instantiate a session so that we can
8618     use it to open shapefiles.
8619     ("__main__"): use support.run_tests() so that more info about
8620     uncollected garbage is printed
8621    
8622     * test/test_session.py (TestSessionBase.tearDown)
8623     (TestSessionWithContent.tearDown): Make sure that all references
8624     to the session and layers are removed otherwise we may get a
8625     resource leak
8626     (TestSessionWithContent.setUp): Use the session's OpenShapefile
8627     method to open shapefiles
8628    
8629 jonathan 721 2003-04-24 Jonathan Coles <[email protected]>
8630    
8631     * Thuban/Model/load.py (XMLReader.read): Should have been checking
8632     if the file_or_filename object had the 'read' attribute.
8633    
8634 jonathan 715 2003-04-23 Jonathan Coles <[email protected]>
8635    
8636 jonathan 720 * Thuban/Model/resource.py: Fixes RTbug #1813.
8637     (ReadProjFile): Add documentation about which exceptions are raised.
8638     Always pass the exceptions up to the caller.
8639     (GetProjFiles): If the directory can't be read return an empty list.
8640     If any of the proj files can't be read skip that file and go
8641     on to the next one.
8642    
8643     * test/test_proj.py: Added test cases to handle nonexistent files,
8644     unreadable files, and files that don't parse correctly.
8645    
8646     2003-04-23 Jonathan Coles <[email protected]>
8647    
8648 jonathan 716 Projection dialog. Allows the user to select from a list
8649     of projection templates and optionally edit them and save new ones.
8650    
8651     * Thuban/UI/projdialog.py (ProjFrame): New. Main dialog.
8652     (ProjPanel): Base class for projection specific panels.
8653     (TMPanel): Projection panel for Transverse Mercartor.
8654     (UTMPanel): Projection panel for Universal Transverse Mercartor.
8655     (LCCPanel): Projection panel for Lambert Conic Conformal.
8656     (GeoPanel): Projetion panel for Geographic Projection.
8657    
8658     2003-04-23 Jonathan Coles <[email protected]>
8659    
8660 jonathan 715 * Thuban/Model/load.py (XMLReader): Renamed from XMLProcessor to
8661     promote symmetry. There now exists XMLReader and XMLWriter.
8662     (XMLReader.read): New. Call to read the given file descriptor or
8663     filename.
8664     (XMLReader.close): New. Make sure the file is closed.
8665     (XMLReader.GetFileName): New. Return just the file name that is being
8666     read from.
8667     (XMLReader.GetDirectory): New. Return just the directory of the file
8668     that is being read.
8669     (XMLReader.AddDispatchers): New. Take a dictionary which contains
8670     the names of functions to call as the XML tree is parsed.
8671     (XMLReader.startElementNS): Updated to use new dispatcher dictionary.
8672     (XMLReader.endElementNS): Updated to use new dispatcher dictionary.
8673     (SessionLoader): Removed class variables start_dispatcher and
8674     end_dispatcher since this functionality is now part of a class
8675     instance. Fixes RTbug #1808.
8676     (SessionLoader.__init__): Add dispatcher functions.
8677     (load_xmlfile): Code was moved into the XMLReader.read().
8678     (load_session): Use modified SessionLoader.
8679    
8680     * Thuban/Model/map.py (Map.GetProjection): New. Returns the
8681     map's projection.
8682    
8683     * Thuban/Model/proj.py (Projection.GetParameters): Renamed to
8684     GetAllParameters.
8685     (Projection.GetParameter): Returns the value for the given parameter.
8686    
8687     * Thuban/Model/resource.py: Use XMLReader and XMLWriter.
8688     (GetProjFiles): Renamed from GetProjections. Now returns a list
8689     of ProjFile objects.
8690     (GetSystemProjFiles): Renamed from GetSuppliedProjections. Returns
8691     a list of ProjFile objects whose files are not user defined.
8692     (GetUserProjFiles): Renamed from GetUserProjections. Returns a
8693     list of ProjFile objects whose files are user defined.
8694     (ProjFileReader): Extend new XMLReader.
8695    
8696     * Thuban/Model/save.py (XMLWriter): Renamed from XMLSaver to
8697     promote symmetry.
8698    
8699     * Thuban/UI/classgen.py (ClassGenDialog.__init__): Use a wxChoice
8700     control instead of a wxComboBox. wxChoice controls do not generate
8701     events as the uses highlights possible choices which fixes problems
8702     with resizing the dialog when the use selects an option.
8703    
8704     * Thuban/UI/classifier.py (Classifier.__init__): Use a wxChoice
8705     control instead of a wxComboBox.
8706    
8707     * Thuban/UI/mainwindow.py (MainWindow.Projection): Use new projection
8708     dialog.
8709    
8710     * test/test_proj.py (TestProjection.test): New tests for GetParameter
8711     method.
8712    
8713 bh 703 2003-04-22 Bernhard Herzog <[email protected]>
8714    
8715 bh 705 * Thuban/UI/mainwindow.py: Remove some unused imports and global
8716     constants
8717    
8718 bh 703 * Thuban/UI/identifyview.py (IdentifyListCtrl.selected_shape)
8719     (IdentifyGridCtrl.selected_shape): Use table, not shapetable.
8720    
8721 bh 700 2003-04-17 Bernhard Herzog <[email protected]>
8722    
8723 bh 701 * Thuban/Model/layer.py: Don't import LAYER_LEGEND_CHANGED.
8724     (Layer): Update doc-string since LAYER_LEGEND_CHANGED is not used
8725     anymore.
8726     (Layer.BoundingBox, Layer.GetFieldType, Layer.NumShapes)
8727     (Layer.ShapeType, Layer.Shape): No need to call
8728     self.open_shapefile since it's always called in __init__
8729    
8730 bh 700 * Thuban/UI/application.py (ThubanApplication.MainLoop): Removed.
8731     In wxPython 2.4 there's no need to extend MainLoop anymore since
8732     wxPython itself makes sure OnExit is called.
8733    
8734 jonathan 688 2003-04-16 Jonathan Coles <[email protected]>
8735    
8736 jonathan 693 Initial putback of projection management code. Includes new
8737     classes to read and write projection files. The current load
8738     and save classes were abstracted a bit so they could be reused.
8739     The Projection class was extended to provide new methods and
8740     have a name.
8741    
8742     * Thuban/Model/load.py (XMLProcessor): New. Contains all the
8743     general XML reading methods that were part of ProcessSession.
8744    
8745     * Thuban/Model/proj.py (Projection.__init__): Accepts an optional
8746     name.
8747     (ProjFile): New. Represents a file that contains projection
8748     information.
8749    
8750     * Thuban/Model/resource.py: New. Contains general utilities
8751     for read and writing projection files.
8752    
8753     * Thuban/Model/save.py (XMLSaver): New. Contains all the
8754     general XML writing methods that were part of SessionSaver.
8755     (SessionSaver): Renamed from Saver.
8756    
8757     * test/test_proj.py: New test cases for the projection
8758     file read and write functions.
8759    
8760     2003-04-16 Jonathan Coles <[email protected]>
8761    
8762 jonathan 688 * Thuban/Model/classification.py: Use repr() around values
8763     in the ClassGroup*.__repr__() methods so it is clearer when
8764     a value is a string and when it is a number.
8765    
8766     * test/test_load.py: Rework the classification test to test
8767     that we can load old files.
8768     (testLabels): Test a file where the groups have labels.
8769    
8770 bh 687 2003-04-16 Bernhard Herzog <[email protected]>
8771    
8772     Safer implementation of the performance enhancements of the
8773     low-level renderer:
8774    
8775     * extensions/thuban/wxproj.cpp (extract_projection)
8776     (extract_pointer): Rename extract_projection to extract_pointer
8777     and redefine its purpose to return the pointer stored in a CObject
8778     returned by the object's cobject method. Update all callers.
8779     (s_draw_info, free_draw_info, draw_polygon_init): Implement the
8780     handling of these low-level parameters so that each s_draw_info
8781     instance is handled as a CObject at python level that also
8782     contains real references to the actual python objects which
8783     contain the values in the struct. Add free_draw_info as the
8784     destructor.
8785     (draw_polygon_shape): Add the py_draw_info parameter which must a
8786     cobject containing an s_draw_info pointer.
8787    
8788     * Thuban/UI/renderer.py (MapRenderer.polygon_render_param): New
8789     method to instantiat the low-level render parameter
8790     (MapRenderer.draw_shape_layer): Use the new method. Remove some
8791     commented out code.
8792     (MapRenderer.draw_polygon_shape): Make the first parameter not the
8793     layer but the low-level render parameter
8794     (ScreenRenderer.draw_shape_layer): Use the low-level render
8795     parameter.
8796    
8797 jonathan 673 2003-04-15 Jonathan Coles <[email protected]>
8798    
8799 jonathan 680 * Thuban/Model/classification.py: Implemented __repr__ for
8800     the ClassGroup* classes to make debugging a bit easier.
8801     (ClassGroup.SetLabel): Check that the string is an instance
8802     of StringTypes not StringType. Accounts for Unicode strings.
8803    
8804     * Thuban/Model/color.py: Implemented __repr__ to make
8805     debugging a bit easier.
8806    
8807     * Thuban/Model/save.py (Saver.write_classification): Need to
8808     save the group label.
8809    
8810     * test/test_load.py (testClassification): New. Loads the
8811     iceland_sample_test.thuban file and checks if it was loaded
8812     correctly.
8813    
8814     2003-04-15 Jonathan Coles <[email protected]>
8815    
8816 jonathan 673 * extensions/thuban/wxproj.cpp (draw_polygon_init): New. Used
8817     to improve rendering performance by initializing the variables
8818     that are not change each time draw_polygon_shape() is called.
8819     The values are stored in a global struct draw_info.
8820     (draw_polygon_shape): Removed initialization code that is
8821     now in draw_polygon_init().
8822    
8823     * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Make
8824 jonathan 674 drawing initialization call to draw_polygon_init()
8825     (MapRenderer.draw_polygon_shape): Use new signature of
8826     draw_polygon_shape.
8827 jonathan 673
8828 jonathan 674 * Thuban/UI/classgen.py (GenUniformPanel): Fix spin control
8829     weirdness by setting the range to (1, maxint).
8830 jonathan 673
8831 jonathan 674 * Thuban/Model/classification.py (ClassGroupProperties): Make
8832     instance variables private and optimize comparison operator
8833     by first checking if the color references are the same.
8834     (ClassGroupSingleton): Make instance variables private.
8835     (ClassGroupRange): Make instance variables private.
8836 jonathan 673
8837 jonathan 674 * HOWTO-Release: Filled in missing steps for releasing packages.
8838    
8839 bh 672 2003-04-15 Bernhard Herzog <[email protected]>
8840    
8841     First stab at internationalized messages:
8842    
8843     * Thuban/__init__.py (_): Implement the translation function for
8844     real using the python gettext module.
8845    
8846     * Thuban/UI/classifier.py (ClassTable.GetRowLabelValue): Don't
8847     translate empty strings.
8848    
8849     * Thuban/UI/application.py (ThubanApplication.read_startup_files):
8850     Add a missing space to a warning message
8851    
8852     * po/README: New. Notes about the management of the translation
8853     files.
8854    
8855     * po/Makefile: New. Makefile to help manage the translation files.
8856    
8857     * po/es.po: New. Spanish translation by Daniel Calvelo Aros
8858    
8859     * MANIFEST.in: Include the *.mo files in Resources/Locale and the
8860     translations and support files in po/
8861    
8862     * setup.py (data_files): Add the *.mo files to the data_files too
8863    
8864     * README: Add note about the translations when building from CVS
8865    
8866 jonathan 669 2003-04-14 Jonathan Coles <[email protected]>
8867    
8868     * Thuban/UI/dock.py: Fixes some window resizing problems most
8869     noticable under windows. Always assume the button bitmaps will
8870     be there. Code clean up.
8871     (DockabelWindow.Dock, DockableWindow.UnDock): Force all the
8872     images for the dock/undock button to the same images.
8873     Work around for RTbug #1801.
8874    
8875     * Thuban/UI/legend.py (LegendPanel.__init__): The toolbar should
8876     be allowed to grow within the sizer. Fixes a bug under Windows
8877     where the toolbar wasn't being drawn.
8878    
8879 frank 664 2003-04-14 Frank Koormann <[email protected]>
8880    
8881     * Resources/Bitmaps/dock_12.xpm, Resources/Bitmaps/undock_12.xpm:
8882     Updated design to try to make the button functionality more
8883     transparent.
8884    
8885 jonathan 662 2003-04-14 Jonathan Coles <[email protected]>
8886    
8887     * Thuban/UI/legend.py (LegendPanel.__init__): Call Create() to
8888     finalize the intialization of the panel.
8889    
8890     * Thuban/UI/dock.py (DockPanel.Create): New. Finalizes the
8891     creation of the panel. Should be the last thing called in the
8892     initializer of a subclass.
8893    
8894     * Thuban/UI/classgen.py (ClassGenDialog.__init__): Actively
8895     set the current selections in the combo boxes. This is needed
8896     under Windows.
8897    
8898     * Thuban/UI/classifier.py (Classifier.__init__): Add a top
8899     level panel to the dialog so that the background colors are
8900     consistent under Windows.
8901    
8902 jonathan 646 2003-04-11 Jonathan Coles <[email protected]>
8903    
8904 jonathan 662 * Thuban/UI/classgen.py: Change color ramps to start at white
8905     not black.
8906    
8907     * Thuban/UI/legend.py: Enable/disable the legend buttons when
8908     the legend changes. Fixes RTbug #1793.
8909    
8910     * test/test_classification.py: Added test for copying of
8911     classifications.
8912    
8913     2003-04-11 Jonathan Coles <[email protected]>
8914    
8915 jonathan 647 * Thuban/UI/resource.py: New. Centralize the loading of resources
8916     such as bitmaps.
8917    
8918     * Thuban/UI/classgen.py (GenUniquePanel.__init__): Reordered buttons,
8919     added images to the move buttons, added 'reverse' button.
8920     (CustomRampPanel.__init__): Added images to the move buttons.
8921     (GreyRamp): New. Generates a ramp from white to black.
8922     (HotToColdRamp): New. Generates a ramp from cold to hot colors.
8923    
8924     * Thuban/UI/classifier.py: Refactored ID's from ID_CLASSIFY_* to
8925     ID_PROPERTY_*.
8926     (Classifier.__init__): Minor changes to the layout.
8927     (Classifier._OnTitleChanged): Listen for when the user edits the
8928     title and update the dialog's title and the layer's title.
8929    
8930     * Thuban/UI/dock.py: Use new bitmaps for the control buttons.
8931    
8932     * Thuban/UI/legend.py: Use new bitmaps for the control buttons.
8933     (LegendTree._OnMsgLayerTitleChanged): Change the displayed title
8934     if the layer's title changes.
8935    
8936     * Thuban/UI/mainwindow.py: Added new menu item and associated code
8937     to open a dialog to rename the map.
8938     (MainWindow): Use new resource class to import bitmaps.
8939    
8940     2003-04-11 Jonathan Coles <[email protected]>
8941    
8942 jonathan 646 * Resources/Bitmaps/close_12.xpm, Resources/Bitmaps/dock_12.xpm,
8943 jonathan 647 Resources/Bitmaps/group_use.xpm, Resources/Bitmaps/group_use_all.xpm,
8944     Resources/Bitmaps/group_use_none.xpm,
8945     Resources/Bitmaps/group_use_not.xpm,
8946     Resources/Bitmaps/hide_layer.xpm,
8947     Resources/Bitmaps/layer_properties.xpm,
8948     Resources/Bitmaps/lower_layer.xpm, Resources/Bitmaps/raise_layer.xpm,
8949     Resources/Bitmaps/show_layer.xpm, Resources/Bitmaps/undock_12.xpm:
8950     New.
8951 jonathan 646
8952 jonathan 636 2003-04-10 Jonathan Coles <[email protected]>
8953    
8954 jonathan 644 * Thuban/Model/classification.py: (ClassGroupRange.__init__):
8955     Should pass group to ClassGroup constructor.
8956    
8957     2003-04-10 Jonathan Coles <[email protected]>
8958    
8959 jonathan 636 * Thuban/Model/classification.py: (ClassGroup): Move all the common
8960     methods of the derived classes ([Set|Get]Properties(), __eq__, __ne__)
8961     here. Implement SetVisible(), IsVisible().
8962     (ClassGroup.__init__): Add group parameter which acts as a copy
8963     constructor.
8964    
8965     * Thuban/UI/classifier.py (ClassTable): Add a new column for the
8966     "Visible" check boxes.
8967     (Classifier): Rename the buttons and refactor the code to match
8968     the new labels.
8969    
8970     * Thuban/UI/legend.py: Classify button is now called "Properties".
8971     Refactored the code to change variable names.
8972     (LegendTree.__FillTreeLayer): Only list a group if it is visible.
8973    
8974     * Thuban/UI/mainwindow.py: MainWindow.OpenClassifier renamed to
8975     MainWindow.OpenLayerProperties. MainWindow.LayerEditProperties
8976     renamed to MainWindow.LayerEditProperties.
8977     (MainWindow.ToggleLegend): Don't include map name in legend title.
8978     (MainWindow.SetMap): Added the map name to the window title.
8979     (MainWindow.LayerFillColor, MainWindow.LayerTransparentFill,
8980     MainWindow.LayerOutlineColor, MainWindow.LayerNoOutline): Removed.
8981     Functionality is found in the layer properties dialog.
8982    
8983     * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Only
8984     draw visible groups.
8985    
8986 jonathan 626 2003-04-09 Jonathan Coles <[email protected]>
8987    
8988 jonathan 634 * Thuban/UI/classgen.py: Modifications to allow simple
8989     addition and selection of new color schemes.
8990     (MonochromaticRamp): New. Generates a ramp between two colors.
8991     (RedRamp): New. Generates a ramp of all red.
8992     (GreenRamp): New. Generates a ramp of all green.
8993     (BlueRamp): New. Generates a ramp of all blue.
8994    
8995     2003-04-09 Jonathan Coles <[email protected]>
8996    
8997 jonathan 626 * Thuban/Model/classification.py (Classification.__deepcopy__):
8998     Need to copy over field and fieldType attributes.
8999    
9000     * Thuban/Model/table.py (Table.field_range): New. Retrive the
9001     maximum and minimum values over the entire table for a given
9002     field.
9003     (Table.GetUniqueValues): New. Retrieve all the unique values
9004     in the table for a given field.
9005    
9006     * Thuban/UI/classgen.py: Renamed GenRangePanel to GenUniformPanel.
9007     (GenUniquePanel): New. Controls to allow the user to select
9008     which unique field values they would like in the classification.
9009     (CustomRampPanel): Code that was in ClassGenDialog that allows
9010     the user to select the properties for a custom ramp.
9011     (ClassGenerator.GenUniformDistribution): Was called GenerateRanges.
9012    
9013     * Thuban/UI/classifier.py: Removed a lot of debugging code.
9014     (Classifier._SetClassification): Callback method so that the
9015     class generator can set the classification in the grid.
9016     (ClassGroupPropertiesCtrl): New. Encapsulates the drawing and
9017     editing of a group properties class into a wxWindows control.
9018    
9019     * Thuban/UI/dock.py: It was decided that if the user closes
9020     a dockable window the window should simply hide itself. That
9021     way if the user wants to show the dock again it appears in the
9022     same place as it was when it was closed.
9023     (DockableWindow.Destroy): Call renamed method OnDockDestroy().
9024     (DockableWindow._OnButtonClose): Hide the window instead of
9025     destroying it.
9026     (DockableWindow._OnClose): Hide the window instead of
9027     destroying it.
9028    
9029     * Thuban/UI/legend.py (LegendTree): Use a private method to
9030     consistently set the font and style of the text. Fixes RTbug #1786.
9031    
9032     * Thuban/UI/mainwindow.py: Import just the Classifier class.
9033    
9034 bh 623 2003-04-07 Bernhard Herzog <[email protected]>
9035    
9036 bh 625 * Thuban/UI/mainwindow.py (main_menu): Move the toggle_legend item
9037     to the map module
9038    
9039     2003-04-07 Bernhard Herzog <[email protected]>
9040    
9041 bh 623 * Thuban/UI/mainwindow.py (MainWindow.ShowSessionTree): Removed in
9042     favor of ToggleSessionTree
9043     (MainWindow.ToggleSessionTree): New method to toggle visibility of
9044     the session tree.
9045     (MainWindow.SessionTreeShown): New method to return whether the
9046     session tree is currently shown.
9047     (MainWindow.ToggleLegend): New method to toggle visibility of the
9048     legend
9049     (MainWindow.ShowLegend): Implement in terms of ToggleLegend and
9050     LegendShown
9051     (MainWindow.LegendShown): New method to return whether the legend
9052     is currently shown.
9053     (_method_command): Add checked parameter so we can define check
9054     menu items
9055     (_has_tree_window_shown, _has_legend_shown): Use the appropriate
9056     mainwindow methods.
9057     (show_session_tree, show_legend commands): Removed.
9058     (toggle_session_tree, toggle_legend commands): New commands to
9059     toggle the visibility of the dialogs
9060    
9061 jonathan 612 2003-04-07 Jonathan Coles <[email protected]>
9062    
9063 jonathan 619 * Thuban/UI/classgen.py: Fix Windows problem.
9064    
9065     * Thuban/UI/dock.py: Fix Windows problem.
9066    
9067     * Thuban/UI/mainwindow.py: Use False instead of false.
9068     (MainWindow.ShowLegend): Remove unnecessary switch parameter.
9069    
9070     2003-04-07 Jonathan Coles <[email protected]>
9071    
9072 jonathan 612 Since we now say that the order of the groups in a classification
9073     matters, it makes sense to be able to manipulate that order. Most
9074     of the changes to Thuban/Model/classification.py are to that end.
9075    
9076     * Thuban/Model/classification.py (Classification.AppendGroup,
9077     Classification.InsertGroup, Classification.ReplaceGroup,
9078     Classification.RemoveGroup, Classification.GetGroup): Do as the
9079     names imply.
9080     (Classification.FindGroup): This was called GetGroup, but GetGroup
9081     takes an index, while FindGroup takes a value.
9082     (Classification.__deepcopy__): Copy all the groups, BUT NOT THE LAYER
9083     REFERENCE. Currently there is a cyclic reference between the layer
9084     and its classification. If the classification doesn't need to know
9085     its owning layer we can change this, since it may make sense to be
9086     able to use the same classification with different layers.
9087    
9088     * Thuban/Model/load.py: Use Classification.AppendGroup(), not AddGroup()
9089    
9090     * Thuban/UI/classgen.py: Use Classification.AppendGroup(),
9091     not AddGroup()
9092    
9093     * Thuban/UI/classifier.py: Now that we can depend on the order in
9094     a Classification and have methods to manipulate that order we don't
9095     need to use our own data structures in the grid. We can simply make
9096     the grid/table access the information they need from a copy of
9097     the classification object.
9098     (Classifier._OnCloseBtn): Event handler for when the user clicks
9099     'Close'. This is needed so if the user applies changes and then
9100     continues to change the table the user has the option of discarding
9101     the most recent changes and keeping what they applied.
9102    
9103     * Thuban/UI/mainwindow.py: Put "Show Legend" and "Show Session Tree"
9104     into the same group.
9105    
9106     * extensions/thuban/wxproj.cpp (check_version): If Thuban is compiled
9107     with a really old version of proj, PJ_VERSION won't even be defined.
9108     If it isn't defined then just compile so that the function always
9109     returns Py_False.
9110    
9111     * test/test_classification.py: Fix tests to use the renamed methods.
9112     Still need to write tests for the new methods.
9113    
9114 jonathan 601 2003-04-04 Jonathan Coles <[email protected]>
9115 jonathan 608
9116 jonathan 612 * Thuban/UI/classifier.py (Classifier.__SelectField): Move the
9117     call to SetSelection out of the method and before the call
9118     to __SelectField in __init__. This prevents a recursion of events
9119     when _OnFieldSelect is triggered by the user.
9120    
9121     2003-04-04 Jonathan Coles <[email protected]>
9122    
9123 jonathan 608 * Thuban/Model/classification.py: Rename Color.None to
9124     Color.Transparent.
9125     (ClassGroupProperties.SetLineColori, ClassGroupProperties.SetFill):
9126     Don't bother copying the color, since Colors are immutable.
9127    
9128     * Thuban/Model/color.py, Thuban/Model/layer.py, Thuban/Model/load.py,
9129     Thuban/UI/classifier.py, Thuban/UI/mainwindow.py,
9130     Thuban/UI/renderer.py, Thuban/UI/view.py:
9131     Rename Color.None to Color.Transparent.
9132    
9133     * test/test_classification.py, test/test_load.py: Rename Color.None
9134     to Color.Transparent.
9135    
9136     2003-04-04 Jonathan Coles <[email protected]>
9137 jonathan 603
9138     * Thuban/Model/classification.py: Fix assert calls.
9139     (ClassGroupProperties.SetLineColor, ClassGroupProperties.SetFill):
9140     Copy the color parameter rather than hold onto a reference.
9141 jonathan 601
9142 jonathan 603 * Thuban/Model/color.py (Color.__copy__, Color.__deepcopy): Copy
9143     the color object.
9144     (NoColor.__copy__, NoColor.__deepcopy): Return 'self' so that we
9145     are sure there exists only one refernce to Color.None in the system.
9146     This allows us to use 'is' rather than the comparision functions.
9147    
9148     * Thuban/Model/save.py: Fix assert calls.
9149    
9150     * Thuban/UI/classifier.py: Fix assert calls.
9151     (ClassGrid._OnCellDClick): Call up to the classifier to open the
9152     dialog to edit the groups properties.
9153     (ClassGrid._OnCellResize): Make sure that the scollbars are drawn
9154     correctly if a cell is resized.
9155     (ClassTable.SetClassification): New. Changes the classification
9156     that is in the table.
9157     (ClassTable.__SetRow): Allow groups to be prepended.
9158     (Classifier): New code for opening the EditProperties and
9159     GenerateRanges dialogs.
9160     (SelectPropertiesDialog.__GetColor): Only set the color in the
9161     color dialog if the current color is not None.
9162    
9163     * Thuban/UI/dock.py: Fix assert calls.
9164    
9165     * Thuban/UI/legend.py: Fix assert calls.
9166    
9167     * Thuban/UI/renderer.py: Fix assert calls.
9168    
9169     * Thuban/UI/classgen.py (ClassGenDialog): Dialog for generating
9170     classifications.
9171     (GenRangePanel): Panel specific to range generation.
9172     (GenSingletonPanel): Panel specific to singleton generation.
9173     (ClassGenerator): Class responsible for actually generating
9174     the classification from the data gathered in the dialog box.
9175     (PropertyRamp): Generates properties whose values range from
9176     a starting property to an ending property.
9177 jonathan 601
9178 bh 600 2003-04-03 Bernhard Herzog <[email protected]>
9179    
9180     * test/support.py (print_garbage_information): New function that
9181     prints information about still connected messages and memory
9182     leaks.
9183     (run_suite): Removed.
9184     (run_tests): New function for use as a replacement of
9185     unittest.main in the test_* files. This one calls
9186     print_garbage_information at the end.
9187    
9188     * test/runtests.py (main): Use support.print_garbage_information
9189    
9190     * test/test_layer.py: Use support.run_tests instead of
9191     unittest.main so we get memory leak information
9192     (TestLayer.test_arc_layer, TestLayer.test_polygon_layer)
9193     (TestLayer.test_point_layer, TestLayer.test_empty_layer)
9194     (TestLayerLegend.test_visibility): Call the layer's Destroy method
9195     to fix a memory leak.
9196    
9197     * test/test_classification.py: Use support.run_tests instead of
9198     unittest.main so we get memory leak information
9199     (TestClassification.test_classification): Call the layer's Destroy
9200     method to fix a memory leak.
9201    
9202 bh 591 2003-04-02 Bernhard Herzog <[email protected]>
9203    
9204 bh 595 * extensions/thuban/wxproj.cpp (check_version, check_version_gtk):
9205     Handle the reference counts of the return value and errors in
9206     PyArg_ParseTuple correctly.
9207    
9208 bh 593 * Thuban/UI/application.py (ThubanApplication.OpenSession): Make
9209     sure the filename is absolute to avoid problems when saving the
9210     session again
9211    
9212 bh 591 * Thuban/Model/table.py: Remove unnecessary import. Fix a typo.
9213    
9214 jonathan 587 2003-04-01 Jonathan Coles <[email protected]>
9215    
9216 jonathan 589 * Thuban/UI/renderer.py (MapRenderer.draw_point_shape): Check
9217 jonathan 587 that there actually are points in the returned list of points
9218     before trying to index into the list. The list may be empty if
9219     the shape is a Null Shape.
9220    
9221 bh 586 2003-04-01 Bernhard Herzog <[email protected]>
9222    
9223     * test/test_map.py: Don't use from <module> import *
9224    
9225 jonathan 581 2003-04-01 Jonathan Coles <[email protected]>
9226    
9227     * Thuban/Model/session.py: Use LAYER_CHANGED instead of
9228     LAYER_LEGEND_CHANGED
9229    
9230     * Thuban/UI/dock.py (DockableWindow._OnButtonClose): Call
9231     self.Destroy() to close the window after yesterday's changes.
9232    
9233     * test/test_map.py, test/test_session.py: Fix messages that
9234     are sent from maps and layers.
9235    
9236 jonathan 575 2003-03-31 Jonathan Coles <[email protected]>
9237    
9238     * Thuban/UI/classifier.py: Commented out some debugging statements.
9239     (ClassDataPreviewer.Draw): Draw rectangles for polygon layers per
9240     RTbug #1769.
9241    
9242     * Thuban/UI/dock.py (DockableWindow.UnDock): Restore size and
9243     position (although position doesn't work yet under GTK).
9244     (DockableWindow.Destroy): New. Called when the window must be
9245     closed. Namely needed when the DockFrame closes and must close
9246     its children.
9247     (DockFrame): Listen for EVT_CLOSE and destroy all children.
9248    
9249     * Thuban/UI/legend.py (LegendPanel.Destroy): New. Cleans up
9250     when then window is told to close.
9251     (LegendTree._OnMsgLayerChanged): Fixes a seg fault bug. See
9252     comment in source for more info.
9253    
9254     * Thuban/UI/main.py: Show the legend by default when Thuban starts.
9255    
9256     * Thuban/UI/mainwindow.py: Renamed OnClose to _OnClose for
9257     symmetry with other such methods.
9258     (MainWindow.ShowLegend): Show the legend docked by default.
9259    
9260 jonathan 569 2003-03-28 Jonathan Coles <[email protected]>
9261    
9262     * Thuban/UI/classifier.py: Support for highlighting a specific
9263     group within the grid when the classification dialog is opened.
9264     Also contains a lot of debugging printouts which will later
9265     be removed.
9266    
9267     * Thuban/UI/dock.py: Complete rework on the dock code so that
9268     that it is fairly removed from the rest of the Thuban application.
9269     It is easy to add new docks which the rest of the program having
9270     to be aware of them.
9271    
9272     * Thuban/UI/legend.py: Modifications to support selecting a
9273     specific group in the classification dialog. Changed how layers
9274     are drawn when the layer is visible/invisible.
9275    
9276     * Thuban/UI/mainwindow.py: Removed legend specific code and
9277     replaced it with calls to the new dock code.
9278    
9279     * Thuban/UI/renderer.py (MapRenderer.__init__): Added assert
9280     to check if scale > 0. Trying to track down a divide by zero.
9281    
9282 jonathan 557 2003-03-26 Jonathan Coles <[email protected]>
9283    
9284 jonathan 567 * Thuban/UI/legend.py: Removed unnecessary LegendDialog class.
9285     (LegendPanel): Removed _OnDock()/_OnUnDock() methods which are
9286     now part of DockableWindow.
9287     (LegendPanel.DoOnSelChanged): Select the current layer in the
9288     map.
9289     (LegendTree._OnSelChanged): Call LegendPanel.DoOnSelChanged()
9290     with the selected layer and/or group.
9291    
9292     2003-03-26 Jonathan Coles <[email protected]>
9293    
9294 jonathan 557 This putback contains the code for dockable windows. There is
9295     no support in wxWindows as of this date for windows that can
9296     attach themselves to other windows.
9297    
9298     The current model contains a DockableWindow which has a parent
9299     window for when it is detached and a dock window that it puts
9300     its contents in when it is docked. The contents of a DockableWindow
9301     must be a DockPanel. DockPanel itself derives from wxPanel.
9302    
9303     * Thuban/Model/layer.py (Layer.ClassChanged): Send a LAYER_CHANGED
9304     message, not a LAYER_LEGEND_CHANGED message.
9305    
9306     * Thuban/Model/map.py (Map): Forward LAYER_CHANGED messages.
9307    
9308     * Thuban/UI/classifier.py (Classifier.__init__): Use wxADJUST_MINSIZE
9309     as one of the style properties for the fieldTypeText item to
9310     be sure that its size is correct when the text changes.
9311    
9312     * Thuban/UI/dock.py: New. Classes for the DockPanel and
9313     DockableWindow.
9314    
9315     * Thuban/UI/legend.py: Added some more buttons and made the
9316     LegendPanel a DockPanel.
9317    
9318     * Thuban/UI/mainwindow.py: Added sash windows to the main window
9319     and supporting functions for manipulating the sashes.
9320     (MainWindow.ShowLegend): Create a DockableWindow with the
9321     LegendPanel as the contents.
9322    
9323     * Thuban/UI/messages.py: Added DOCKABLE_* messages
9324    
9325     * Thuban/UI/view.py (MapCanves.SetMap): Listen for LAYER_CHANGED,
9326     not LAYER_LEGEND_CHANGED, messages.
9327    
9328 jonathan 554 2003-03-25 Jonathan Coles <[email protected]>
9329    
9330     * setup.py: Added custom script bdist_rpm_build_script so that
9331     when the rpm is built the path to wx-config is correct.
9332    
9333     * setup.cfg: Added line saying to use the custom build script
9334    
9335 jonathan 552 2003-03-20 Jonathan Coles <[email protected]>
9336    
9337     Initial implementation of the Legend.
9338    
9339     * Thuban/UI/legend.py: New. Creates a window that shows the map's
9340     Legend information and allows the user to add/modify classifications
9341     and how the layers are drawn on the map.
9342    
9343     * setup.py: New command 'build_docs' which currently uses
9344     happydoc to generate html documentation for Thuban.
9345    
9346     * Thuban/Model/classification.py (ClassGroup.GetDisplayText): New.
9347     Returns a string which is appropriately describes the group.
9348    
9349     * Thuban/Model/layer.py (Layer.SetClassification): Generate a
9350     LAYER_CHANGED event instead of a LAYER_LEGEND_CHANGED event.
9351    
9352     * Thuban/Model/map.py (Map): Rename messages and use new, more
9353     specific, messages.
9354    
9355     * Thuban/Model/messages.py: New message to indicate that a layer's
9356     data has changed (LAYER_CHANGED). New map messages to indicate
9357     when layers have been added/removed/changed or if the stacking order
9358     of the layers has changed.
9359    
9360     * Thuban/Model/session.py: Rename and use new messages.
9361    
9362     * Thuban/UI/classifier.py: Remember if any changes have actually
9363     been applied so that if the dialog is cancelled without an application
9364     of changes we don't have to set a new classification.
9365     (ClassDataPreviewer): Pulled out the window specific code and put it
9366     ClassDataPreviewWindow. ClassDataPreviewer can then be used to draw
9367     symbols on any DC.
9368    
9369     * Thuban/UI/mainwindow.py: New code to open the legend.
9370    
9371     * Thuban/UI/view.py: Use new message names.
9372    
9373 jonathan 541 2003-03-19 Jonathan Coles <[email protected]>
9374    
9375     * Thuban/UI/main.py (verify_versions): New. Checks the versions
9376     of Python, wxPython, and some other libraries.
9377    
9378     * extensions/thuban/wxproj.cpp (check_version): Checks the given
9379     version against what wxproj was compiled with.
9380     (check_version_gtk): If wxproj was compiled with gtk then check
9381     the given version against the version of the gtk library
9382     currently being used.
9383    
9384 bh 538 2003-03-14 Bernhard Herzog <[email protected]>
9385    
9386     * test/test_command.py: Run the tests when the module is run as a
9387     script
9388    
9389     2003-03-14 Bernhard Herzog <[email protected]>
9390    
9391     Implement selection of multiple selected shapes in the same layer:
9392    
9393     - Introduce a new class to hold the selection. This basically
9394     replaces the interactor which was nothing more than the
9395     selection anyway. A major difference is of course that the new
9396     selection class supports multiple selected shapes in one layer
9397    
9398     - Move the object that represents the selection from the
9399     application to the canvas. The canvas is a better place than the
9400     application because the selection represents which shapes and
9401     layer of the map displayed by the canvas are selected and
9402     affects how the map is drawn.
9403    
9404     - Make the selection and its messages publicly available through
9405     the mainwindow.
9406    
9407     - The non-modal dialogs do not get a reference to the interactor
9408     anymore as they can simply refer to their parent, the
9409     mainwindow, for the what the interactor had to offer.
9410    
9411     * Thuban/UI/selection.py: New module with a class to represent the
9412     selection.
9413    
9414     * Thuban/UI/messages.py (SELECTED_TABLE, SELECTED_MAP): Remove
9415     these unused messages
9416    
9417     * Thuban/UI/application.py (ThubanApplication.OnInit)
9418     (ThubanApplication.OnExit, ThubanApplication.SetSession): The
9419     interactor is gone now.
9420     (ThubanApplication.CreateMainWindow): There is no interactor
9421     anymore so we pass None as the interactor argument for now for
9422     compatibility.
9423    
9424     * Thuban/UI/view.py (MapCanvas.delegated_messages)
9425     (MapCanvas.Subscribe, MapCanvas.Unsubscribe): In Subscribe and
9426     Unsubscribe, delegate messages according to the delegated_messages
9427     class variable.
9428     (MapCanvas.__getattr__, MapCanvas.delegated_methods): Get some
9429     attributes from instance variables as described with the
9430     delegated_methods class variable.
9431     (MapCanvas.__init__): New instance variable selection holding the
9432     current selection
9433     (MapCanvas.do_redraw): Deal with multiple selected shapes. Simply
9434     pass them on to the renderer
9435     (MapCanvas.SetMap): Clear the selection when a different map is
9436     selected.
9437     (MapCanvas.shape_selected): Simple force a complete redraw. The
9438     selection class now takes care of only issueing SHAPES_SELECTED
9439     messages when the set of selected shapes actually does change.
9440     (MapCanvas.SelectShapeAt): The selection is now managed in
9441     self.selection
9442    
9443     * Thuban/UI/mainwindow.py (MainWindow.delegated_messages)
9444     (MainWindow.Subscribe, MainWindow.Unsubscribe): In Subscribe and
9445     Unsubscribe, delegate messages according to the delegated_messages
9446     class variable.
9447     (MainWindow.delegated_methods, MainWindow.__getattr__): Get some
9448     attributes from instance variables as described with the
9449     delegated_methods class variable.
9450     (MainWindow.__init__): The interactor as ivar is gone. The
9451     parameter is still there for compatibility. The selection messages
9452     now come from the canvas.
9453     (MainWindow.current_layer, MainWindow.has_selected_layer):
9454     Delegate to the the canvas.
9455     (MainWindow.LayerShowTable, MainWindow.Classify)
9456     (MainWindow.identify_view_on_demand): The dialogs don't need the
9457     interactor parameter anymore.
9458    
9459     * Thuban/UI/tableview.py (TableFrame.__init__)
9460     (LayerTableFrame.__init__, LayerTableFrame.OnClose)
9461     (LayerTableFrame.row_selected): The interactor is gone. It's job
9462     from the dialog's point of view is now done by the mainwindow,
9463     i.e. the parent. Subscribe to SHAPES_SELECTED instead
9464     of SELECTED_SHAPE
9465    
9466     * Thuban/UI/dialogs.py (NonModalDialog.__init__): The interactor
9467     is gone. It's job from the dialog's point of view is now done by
9468     the mainwindow, i.e. the parent.
9469    
9470     * Thuban/UI/classifier.py (Classifier.__init__): The interactor is
9471     gone. It's job from the dialog's point of view is now done by the
9472     mainwindow, i.e. the parent.
9473    
9474     * Thuban/UI/tree.py (SessionTreeView.__init__): The interactor is
9475     gone. It's job from the dialog's point of view is now done by the
9476     mainwindow, i.e. the parent.
9477     (SessionTreeCtrl.__init__): New parameter mainwindow which is
9478     stored as self.mainwindow. The mainwindow is need so that the tree
9479     can still subscribe to the selection messages.
9480     (SessionTreeCtrl.__init__, SessionTreeCtrl.unsubscribe_all)
9481     (SessionTreeCtrl.update_tree, SessionTreeCtrl.OnSelChanged): The
9482     selection is now accessible through the mainwindow. Subscribe to
9483     SHAPES_SELECTED instead of SELECTED_SHAPE
9484    
9485     * Thuban/UI/identifyview.py (IdentifyView.__init__): Use the
9486     SHAPES_SELECTED message now.
9487     (IdentifyView.selected_shape): Now subscribed to SHAPES_SELECTED,
9488     so deal with multiple shapes
9489     (IdentifyView.__init__, IdentifyView.OnClose): The interactor is
9490     gone. It's job from the dialog's point of view is now done by the
9491     mainwindow, i.e. the parent.
9492    
9493     * Thuban/UI/controls.py (RecordListCtrl.fill_list): The second
9494     parameter is now a list of shape ids.
9495     (RecordTable.SetTable): The second parameter is now a list of
9496     indices.
9497    
9498     * Thuban/UI/renderer.py (ScreenRenderer.RenderMap): Rename the
9499     selected_shape parameter and ivar to selected_shapes. It's now a
9500     list of shape ids.
9501     (MapRenderer.draw_label_layer): Deal with multiple selected
9502     shapes. Rearrange the code a bit so that the setup and shape type
9503     distinctions are only executed once.
9504    
9505     * test/test_selection.py: Test cases for the selection class
9506    
9507 jonathan 527 2003-03-11 Jonathan Coles <[email protected]>
9508    
9509     * Thuban/Model/load.py: Temporary fix so that the xml reader
9510     doesn't cause Thuban to crash.
9511    
9512     * Thuban/Model/layer.py: Handle the cyclic references between
9513     a layer and its classification better, and be sure to disconnect
9514     the classification from the layer when the layer is destroyed
9515     so that we don't maintain a cyclic reference that may not be
9516     garbage collected.
9517    
9518     * Thuban/Model/classification.py: See comment for layer.py.
9519    
9520 jan 523 2003-03-12 Jan-Oliver Wagner <[email protected]>
9521    
9522     * HOWTO-Release: New. Information on the steps for releasing
9523     a new version of Thuban.
9524    
9525 jonathan 514 2003-03-11 Jonathan Coles <[email protected]>
9526    
9527     * Thuban/UI/classifier.py: Add normal border to SelectPropertiesDialog.
9528     Use True instead of true.
9529     (Classifier): Should have a single panel in which all the controls lie.
9530    
9531     * Thuban/UI/proj4dialog.py: Add normal border.
9532    
9533     * Thuban/UI/tree.py: Fixed problem with bad item images under Windows.
9534    
9535     * Thuban/UI/mainwindow.py: Use True instead of true.
9536    
9537     * setup.py: Update some definitions to use wxWindows2.4 files
9538    
9539     * Data/iceland_sample_class.thuban: Fixed file so that the
9540     field_type information is present.
9541    
9542 jonathan 490 2003-03-10 Jonathan Coles <[email protected]>
9543    
9544 jonathan 505 * Thuban/UI/classifier.py (Classifier.__init__): Make the
9545     field type label grow so that when the text changes the
9546     size is updated correctly. This may be a wxWindows bug.
9547    
9548     2003-03-10 Jonathan Coles <[email protected]>
9549    
9550 jonathan 499 * Thuban/UI/application.py: Changed SESSION_CHANGED to
9551     SESSION_REPLACED.
9552    
9553     * Thuban/UI/classifier.py: Wrap text with _().
9554     (ClassGrid.CreateTable): Set dimensions and size hints here,
9555     instead of in Reset, so we only set the size once.
9556    
9557     * Thuban/UI/dialogs.py: Don't need Shutdown(); just use Close()!
9558    
9559     * Thuban/UI/mainwindow.py (MainWindow.prepare_new_session):
9560     Call Close() instead of Shutdown().
9561    
9562     * Thuban/UI/messages.py: Changed SESSION_CHANGED to SESSION_REPLACED.
9563    
9564     * Thuban/UI/tree.py: Changed SESSION_CHANGED to SESSION_REPLACED.
9565     Go back to using OnClose() instead of Shutdown().
9566    
9567     2003-03-10 Jonathan Coles <[email protected]>
9568    
9569 jonathan 497 * Thuban/UI/classifier.py (Classifier): SelectField() needed
9570     to know the old field index as well as the new one.
9571    
9572     2003-03-10 Jonathan Coles <[email protected]>
9573    
9574 jonathan 495 * Thuban/UI/classifier.py (Classifier): Use __SelectField()
9575     to correctly set the table information and call this from
9576     __init__ and from _OnFieldSelect so that all the information
9577     is up to date when the dialog opens and when a field is changed.
9578    
9579     2003-03-10 Jonathan Coles <[email protected]>
9580    
9581 jonathan 490 * Thuban/Model/classification.py (Classification): Don't use
9582     layer's message function directly, use the ClassChanged() method
9583     when then classification changes. SetField/SetFieldType/SetLayer
9584     must keep the information about field name and field type in
9585     sync when an owning layer is set or removed.
9586    
9587     * Thuban/Model/layer.py: Added ClassChanged() so that the
9588     classification can tell the layer when its data has changed.
9589     (Layer.SetClassification): Accepts None as an arguement to
9590     remove the current classification and correctly handles
9591     adding a new classification.
9592    
9593     * Thuban/Model/load.py: Comment out print statement
9594    
9595     * test/test_classification.py, test/test_save.py: New and
9596     improved tests.
9597    
9598 jonathan 483 2003-03-07 Jonathan Coles <[email protected]>
9599    
9600     * Thuban/Model/classification.py: Implemented __copy__ and
9601     __deepcopy__ for ClassGroup* and ClassGroupProperites so
9602     they can easily be copied by the classifier dialog.
9603     (ClassGroupProperites.__init__): The default line color should
9604     have been Color.Black.
9605    
9606     * Thuban/UI/classifier.py: Setting and Getting table values now
9607     uses a consistent set of functions.
9608     (Classifier): Now non-modal. Has field type label which changes
9609     as the field changes. Keep track of buttons in a list so that
9610     we can enable/disable the buttons when the None field is selected.
9611     (SelectPropertiesDialog): Add buttons to make the colors transparent.
9612    
9613     * Thuban/UI/dialogs.py (NonModalDialog.Shutdown): New method which
9614     does what OnClose did, but can be called by the application to
9615     close a window. Needed when a session changes, and we have to
9616     close the classifier windows.
9617    
9618     * Thuban/UI/mainwindow.py (MainWindow.prepare_new_session):
9619     Shuts down open dialogs. Used when a new session is created
9620     or a session is opened.
9621     (MainWindow.SaveSession): Should only call application.SaveSession()
9622     if we don't call SaveSessionAs first.
9623     (MainWindow.Classify): Allow different classifier dialogs for
9624     different layers.
9625    
9626     * Thuban/UI/tree.py (SessionTreeView): Remove OnClose and let
9627     the parent class handle it. Add Shutdown() to unsubscibe from
9628     event notification and call the parent Shutdown(). This was
9629     necessary so the application can close the tree window.
9630    
9631 jonathan 478 2003-03-06 Jonathan Coles <[email protected]>
9632    
9633     * Thuban/Model/classification.py: Minor documentation changes,
9634     Addition of __eq__ and __ne__ methods.
9635     (Classification.SetLayer): prevent recursion between this method
9636     and Layer.SetClassification().
9637    
9638     * Thuban/Model/color.py: Addition of __eq__ and __ne__ methods.
9639    
9640     * Thuban/Model/layer.py (SetClassification): prevent recursion
9641     between this method and Classification.SetLayer().
9642    
9643     * test/test_classification.py, test/test_load.py,
9644     test/test_session.py: Fixed and added tests for the classification
9645     classes.
9646    
9647 bh 477 2003-03-06 Bernhard Herzog <[email protected]>
9648    
9649     * Thuban/UI/classifier.py (ClassGrid.__init__)
9650     (ClassGrid.CreateTable): Move the SetSelectionMode call to
9651     CreateTable because otherwise it triggers an assertion in
9652     wxPython/wxGTK 2.4.
9653    
9654 jonathan 459 2003-03-05 Jonathan Coles <[email protected]>
9655    
9656 jonathan 475 * Thuban/common.py: Move FIELDTYPE constants back to table.py.
9657 jonathan 471
9658 jonathan 475 * Thuban/Model/load.py: import FIELDTYPE constants from table.
9659 jonathan 471
9660 jonathan 475 * Thuban/UI/classifier.py: import FIELDTYPE constants from table.
9661 jonathan 471
9662 jonathan 475 * Thuban/Model/table.py: Put FIELDTYPE constants back.
9663 jonathan 471
9664     2003-03-05 Jonathan Coles <[email protected]>
9665    
9666 jonathan 459 * Thuban/UI/classifier.py: Added class documentation.
9667     Fixed RTbug #1713, #1714. Added Move[Up|Down] buttons.
9668     Store just the groups in the table and generate the other
9669     column information when it is requested. Add "None" field
9670     to pull-down to select no classification.
9671    
9672     * Thuban/common.py: Moved FIELDTYPE constants from table.py
9673     (Str2Num): Only catch ValueError exceptions.
9674    
9675     * Thuban/Model/classification.py: Class documentation. Renaming
9676     of methods with Stroke to Line. Groups are stored in a single
9677     list with the default as the first element. Groups are searched
9678     in the order they appear in the list.
9679    
9680     * Thuban/Model/color.py: Documentation.
9681    
9682     * Thuban/Model/layer.py (Layer): Add GetFieldType to retreive
9683     the kind of data represented by a field.
9684    
9685     * Thuban/Model/load.py (ProcessSession): Use proper string
9686     conversion function; fixes RTbug #1713.
9687    
9688     * Thuban/Model/save.py (Saver): Store field type information.
9689    
9690     * Thuban/Model/table.py: Put FIELDTYPE constants in common.py.
9691     (Table): Add field_info_by_name() to retrieve field information
9692     by specifying the field name, not the number.
9693    
9694     * Thuban/UI/mainwindow.py: Function name changes.
9695    
9696     * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Only
9697     get the layer classification once. Don't try to classify
9698     values when the field is None: just use the default properties.
9699    
9700     * Thuban/UI/view.py: Function name changes.
9701    
9702     * Doc/thuban.dtd: Add field_type attribute to a classification.
9703    
9704 bh 456 2003-03-04 Bernhard Herzog <[email protected]>
9705    
9706 bh 458 * Doc/thuban.dtd: Use correct syntax for optional attributes. Make
9707     the fill and stroke layer attributes optional with suitable
9708     default values. Add the stroke_width layer attribute. Use correct
9709     syntax for empty elements. Make the attribute list for labels
9710     refer to the label element.
9711    
9712     2003-03-04 Bernhard Herzog <[email protected]>
9713    
9714 bh 456 * setup.py (thuban_build_py.build): Add a comment about distutils in
9715     Python 2.3 containing some of the functionality we implement in
9716     setup.py ourselves.
9717    
9718     * Thuban/UI/classifier.py (ClassGrid.__init__): Set the table
9719     before the selection mode. Doing it the other way round triggers
9720     an assertion in wxWindows.
9721    
9722     * Thuban/Model/save.py (escape): Fix typo in doc-string
9723    
9724     * Thuban/Model/classification.py: Remove unnecessary wxPython
9725     import
9726    
9727 jonathan 448 2003-03-04 Jonathan Coles <[email protected]>
9728    
9729     * Thuban/Model/classification.py (ClassGroupRange.GetProperties):
9730     Parameter 'value' should default to None.
9731    
9732     * Thuban/UI/mainwindow.py: Use Layer.GetClassification() since
9733     the class attribute __classification is now private.
9734    
9735     * Thuban/UI/classifier.py (ClassGrid): Moved OnCellDClick() from
9736     Classifier to ClassGrid. Added support for removing selected rows,
9737     which including code for keeping track of when cells are selected,
9738     and deselected.
9739     (ClassTable): Support for added/removing rows. Fixed a problem
9740     with __ParseInput whereby it would not allow strings (only numbers)
9741     to be entered.
9742     (Classifier): Added button and supporting code for removing
9743     selected rows.
9744    
9745 jonathan 445 2003-02-27 Jonathan Coles <[email protected]>
9746 jonathan 434
9747     * Thuban/common.py: Moved color conversion functions into
9748     Thuban/UI/common.py.
9749     (Str2Num): Now converts the float (not the string) to a long/int
9750     so that an exception isn't thrown.
9751    
9752     * Thuban/UI/common.py: Common functions used in several UI modules
9753    
9754     * Thuban/Model/classification.py: Changed the class hierarchy
9755     so that a Classification consists of Groups which return
9756     Properties when a value matches a Group.
9757    
9758     * Thuban/Model/layer.py: Fixed name resolution problem.
9759    
9760     * Thuban/Model/load.py: Use new Classification and Group functions.
9761    
9762     * Thuban/Model/save.py (Saver.write_attribs): Fixes a test case
9763     failure.
9764     (Saver.write_classification): Use new Classification and Group
9765     functions.
9766    
9767     * Thuban/UI/classifier.py: Changes to use new Classification and Group
9768 jonathan 445 functions. Fix to create a tuple with a single value instead of
9769     simply returning the value.
9770 jonathan 434
9771     * Thuban/UI/renderer.py: Use new Classification and Group functions.
9772     Use common.py functions.
9773    
9774 jonathan 445 * Thuban/UI/tree.py: Use common.py functions.
9775 jonathan 447
9776     * test/test_classification.py: Use new Classification and Group
9777     classes.
9778 jonathan 434
9779 jonathan 426 2003-02-24 Jonathan Coles <[email protected]>
9780    
9781     * Thuban/common.py (Color2wxColour, wxColour2Color): Conversion
9782     functions from Thuban color objects to wxWindow colour objects.
9783    
9784     * Thuban/Model/classification.py (Classification): Renamed
9785     GetProperties() to GetClassData(). Used the new iterator
9786     in TreeInfo().
9787     (ClassIterator): Iterator implementation to iterate over the
9788     ClassData objects in a classification object.
9789    
9790     * Thuban/Model/save.py (Saver.write_classificaton): Uses
9791     the new iterator to save the classification information.
9792    
9793     * Thuban/UI/classifier.py (SelectPropertiesDialog): Support
9794     for changing the stroke and fill colors and previewing the
9795     changes.
9796    
9797     * Thuban/UI/mainwindow.py (MainWindow.OpenSession,
9798     MainWindow.SaveSessionAs): Text string changes so the dialogs
9799     have more meaningful titles.
9800    
9801     * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Change
9802     Classification method name from GetProperties to GetClassData.
9803    
9804     * Thuban/UI/view.py (MapCanvas.find_shape_at): Use method calls
9805     instead of accessing now non-existent class variables.
9806    
9807 bh 425 2003-02-24 Bernhard Herzog <[email protected]>
9808    
9809     * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Remove
9810     unneeded Shape() call. Rendering is substantially faster without
9811     it and it avoids some problems with broken shape files.
9812    
9813 frank 423 2003-02-20 Frank Koormann <[email protected]>
9814    
9815     Force minimal size of identify and label dialogs. The autosizing
9816     looked too ugly.
9817    
9818     * Thuban/UI/controls.py (RecordListCtrl): Set minimal width for columns.
9819     * Thuban/UI/labeldialog.py (LabelDialog.dialog_layout):
9820     Set size of listctrl.
9821     * Thuban/UI/identifyview.py (IdentifyView.__init__):
9822     Set size of dialog.
9823    
9824 jonathan 408 2003-02-19 Jonathan Coles <[email protected]>
9825    
9826     * test/test_classification.py, test/test_layer.py,
9827     test/test_load.py, test/test_map.py, test/test_session.py:
9828     Updated the tests to use the new functions that are in the
9829     respective classes.
9830    
9831     * Thuban/Model/classification.py (Classification):
9832     Uses the new ClassData* classes. Modification messages are
9833     passed up to the parent layer (if it exists).
9834     (ClassData): New class to encapsulate the common data in each
9835     classification property.
9836     (ClassDataDefault): Represents the Default class. data.
9837     (ClassDataPoint): Represents a single class. data point
9838     (ClassDataRange): Represents a class. range
9839     (ClassDataMap): Represents a class. map (unused).
9840    
9841     * Thuban/Model/color.py: Added Color.None to represent something
9842     with no color. Color.Black represents the color black.
9843     (NoColor): Helper class derived from Color to represent something
9844     with no color.
9845    
9846     * Thuban/Model/layer.py (Layer): Removed references to fill, stroke,
9847     stroke_width attributes. Made the 'classification' attribute private.
9848     New methods for setting/getting the classification.
9849    
9850     * Thuban/Model/load.py (ProcessSession): Use new methods on Layer
9851     to get the classifcation and use the new ClassData* classes to
9852     hold the classification data. Use Str2Num to convert numbers
9853     properly.
9854    
9855     * Thuban/Model/save.py (Saver): Use new Color and Classification
9856     methods
9857    
9858     * Thuban/UI/classifier.py (ClassGrid): New class to represent a
9859     custom grid.
9860     (ClassTable): Support for editing Values and Labels and for
9861     changing what type (point or range) of data is stored in each
9862     property based on how the user enters the data.
9863     (Classifier): Support for saving the new classifications and
9864     launching the dialog to edit a property.
9865     (SelectPropertiesDialog): New class for editing the visual
9866     properties of a classification (stroke color, width, and fill color)
9867     (ClassPreviewer): Took the Draw method from ClassRenderer and
9868     made most of it into this new class. Intend to use this class in
9869     the SelectPropertiesDialog for previewing changes.
9870    
9871     * Thuban/UI/renderer.py: Use new Color and Classification methods.
9872    
9873     * Thuban/UI/tree.py: Formatting changes.
9874    
9875     * Doc/thuban.dtd: Add 'label' element
9876    
9877     * Thuban/common.py: New. Contains common routines used throughout
9878     the code.
9879     (Str2Num): Takes a string and converts it to the "best" type of
9880     number.
9881    
9882 bh 405 2003-02-14 Bernhard Herzog <[email protected]>
9883    
9884     * Thuban/UI/view.py (MapCanvas.OnLeftUp): Make sure that the
9885     dragging flag is always set to 0 even when the tool implementation
9886     raises an exception
9887    
9888 bh 402 2003-02-11 Bernhard Herzog <[email protected]>
9889    
9890     * Thuban/UI/application.py (ThubanApplication.splash_screen): New
9891     method to create a splash screen.
9892     (ThubanApplication.ShowMainWindow): New. Show the main window.
9893     Needed so the splash screen can display the mainwindow
9894     (ThubanApplication.OnInit): Call the
9895     new splash_screen method to determine whether the application
9896     should display a splash screen. If it displays a splash screen do
9897     not immediately show the main window.
9898    
9899 jonathan 399 2003-02-11 Jonathan Coles <[email protected]>
9900    
9901     * Thuban/Model/classification.py: Added import line to fix
9902     feature conflicts between running on python2.2 and python2.1.
9903    
9904     * Thuban/UI/classifier.py (ClassTable): Didn't need to hang
9905     onto the clinfo parameter, so removed the deepcopy().
9906    
9907 jonathan 396 2003-02-10 Jonathan Coles <[email protected]>
9908    
9909 tkoester 403 * Thuban/Model/save.py (Saver.open_element, Saver.close_element):
9910 jonathan 396 Added element_open variable to track opening and closing of tags
9911     so that tags that don't span more than one line are closed with
9912     /> instead of </tag_name>. Use the GetDefault*() methods of
9913     the Classification class.
9914    
9915     * Thuban/Model/classification.py (Classificaton): Added set and
9916     get methods for the default data. The class also takes a layer
9917     reference so that modification messages can be sent. Fixed the
9918     methods to use the new ClassData class.
9919     (ClassData): New class to encapsulate the classification data
9920    
9921     * Thuban/Model/layer.py (Layer): Remove the
9922 tkoester 403 Set[Fill|Stroke|StrokeWidth]() methods. Code should call the
9923 jonathan 396 SetDefault*() methods on the layer's classification object.
9924 tkoester 403 (Layer.__init__): Use the new SetDefault*() methods in the
9925 jonathan 396 Classification class.
9926    
9927     * Thuban/Model/load.py (ProcessSession): Use the new ClassData
9928     object instead of a dictionary.
9929    
9930 tkoester 403 * Thuban/UI/classifier.py (ClassRenderer): New class to
9931 jonathan 396 draw the classifications in the dialog box's table.
9932     (Classifier): Modified to use the ClassRenderer class.
9933    
9934 tkoester 403 * Thuban/UI/mainwindow.py (MainWindow): Use the SetDefault*()
9935     methods of the Classification class.
9936 jonathan 396
9937     * Thuban/UI/renderer.py (MapRenderer): Use the Get*() methods
9938     of the ClassData class.
9939    
9940     * test/test_classification.py, test/test_layer.py,
9941     test/test_map.py, test/test_session.py: Fix the tests to work
9942     with the above code changes.
9943    
9944 jonathan 387 2003-02-03 Jonathan Coles <[email protected]>
9945    
9946     * Thuban/Model/classification.py (Classification): Added getNull()
9947     to return the NullData reference
9948    
9949     * Thuban/Model/layer.py (Layer.SetFill, Layer.SetStroke,
9950     Layer.SetStrokeWidth): Modified these functions to change the
9951     null data in the classification rather than keep these values
9952     directly in the Layer class. Menu options to change these values
9953     work again.
9954    
9955 jonathan 380 2003-01-28 Jonathan Coles <[email protected]>
9956    
9957 jonathan 384 * Thuban/UI/classifier.py (Classifier): Resolved merging conflicts.
9958 tkoester 403 Fixed crashing problem on some systems. Dialog box shows
9959 jonathan 380 classification data.
9960    
9961 jonathan 384 * Thuban/UI/tree.py (SessionTreeCtrl.add_items): Handle drawing
9962     Colors in the tree view.
9963    
9964     * Thuban/Model/layer.py (Layer.TreeInfo): Added a call to build
9965     the tree info for classifications. Commented out unnecessary lines.
9966    
9967     * Thuban/Model/classification.py (Classification.TreeInfo): New
9968     function to add information about the classification into the
9969     tree view.
9970    
9971 tkoester 403 2003-01-27 Jan-Oliver Wagner <[email protected]>
9972 jan 375
9973 tkoester 403 * Thuban/__init__.py (_): New.
9974 jan 375
9975     * Thuban/Model/classification.py, Thuban/Model/extension.py,
9976     Thuban/Model/layer.py, Thuban/Model/load.py, Thuban/Model/map.py,
9977 tkoester 403 Thuban/Model/session.py, Thuban/UI/application.py,
9978     Thuban/UI/classifier.py, Thuban/UI/context.py, Thuban/UI/controls.py,
9979     Thuban/UI/identifyview.py, Thuban/UI/labeldialog.py,
9980     Thuban/UI/mainwindow.py, Thuban/UI/menu.py, Thuban/UI/proj4dialog.py,
9981     Thuban/UI/renderer.py, Thuban/UI/tree.py, Thuban/Lib/connector.py,
9982     Thuban/Lib/fileutil.py: Replace user string by _() for i18n.
9983 jan 375
9984 jonathan 370 2003-01-27 Jonathan Coles <[email protected]>
9985    
9986 tkoester 403 * Thuban/Model/layer.py: Classification initialization calls.
9987 jonathan 370
9988 tkoester 403 * Thuban/Model/classification.py: Created class to encapsulate
9989     a layer classification. Supports specific data points and
9990     ranges.
9991 jonathan 370
9992 tkoester 403 * Thuban/Model/load.py: Added support for loading classification
9993     information.
9994 jonathan 370
9995 tkoester 403 * Thuban/Model/save.py: Added support for saving classification
9996     information.
9997 jonathan 370
9998 tkoester 403 * Thuban/UI/classifier.py: Initial class for a dialog box for
9999     specifying classification information.
10000 jonathan 370
10001 tkoester 403 * Thuban/UI/mainwindows.py: Support for opening the classifier
10002     dialog.
10003 jonathan 370
10004 tkoester 403 * Thuban/UI/renderer.py: Support for drawing a layer with the
10005     classification information.
10006 jonathan 370
10007 tkoester 403 * Data/iceland_sample_class.thuban: iceland_sample with
10008     classification data.
10009 jonathan 370
10010 tkoester 403 * test/test_classification: Tests for the Classification class.
10011 jonathan 370
10012 bh 359 2002-12-09 Bernhard Herzog <[email protected]>
10013    
10014 bh 361 * test/test_command.py: New. Tests for the command classes.
10015    
10016 bh 359 * Thuban/UI/command.py (ToolCommand): New class for tool commands.
10017     (Command.IsTool): New method to distinguish between command
10018     switching tools and other commands.
10019    
10020     * Thuban/UI/view.py (MapCanvas.SelectTool): New method to select
10021     the tool to avoid direct assignments to instance variables
10022     (MapCanvas.ZoomInTool, MapCanvas.ZoomOutTool, MapCanvas.PanTool)
10023     (MapCanvas.IdentifyTool, MapCanvas.LabelTool): Use SelectTool to
10024     change the tool
10025    
10026     * Thuban/UI/mainwindow.py (MainWindow.update_command_ui): If an
10027     active tool's command turns insensitive, disable the tool.
10028     (_tool_command): Use the new ToolCommand class
10029    
10030     * Examples/simple_extensions/simple_tool.py (simple_tool): Use the
10031     SelectTool method to change the tool
10032     (iconfile): Use the ToolCommand class
10033    
10034 bh 354 2002-12-03 Bernhard Herzog <[email protected]>
10035    
10036     * Thuban/UI/tree.py (SessionTreeCtrl.normalize_selection): Handle
10037     the case of selected items that are not children of Layers or Maps
10038     properly. Previously this bug would trigger an assertion in
10039     wxWindows.
10040    
10041 frank 352 2002-11-06 Frank Koormann <[email protected]>
10042    
10043 bh 354 * Thuban/UI/mainwindow.py: Altered the order of tools in the
10044     toolbar: First now are all navigation tools (Zoom In/Out, Pan,
10045     Full Extent).
10046 tkoester 403
10047 bh 349 2002-10-23 Bernhard Herzog <[email protected]>
10048    
10049     * setup.py (setup call): version now 0.1.3
10050    
10051     * MANIFEST.in: Add the files in test/
10052    
10053     * test/README: Add note about tests requiring the iceland data
10054    
10055     * Thuban/UI/mainwindow.py (MainWindow.About): Add 2002 to
10056     copyright notice.
10057    
10058 bh 344 2002-10-18 Bernhard Herzog <[email protected]>
10059    
10060     * test/test_map.py
10061     (TestMapWithContents.test_projected_bounding_box): Use an explicit
10062     epsilon.
10063    
10064     * test/support.py (FloatComparisonMixin.assertFloatEqual)
10065     (FloatComparisonMixin.assertFloatSeqEqual): give a more useful
10066     message if the assertion fails and don't return the return value
10067     of self.assert_. In assertFloatSeqEqual the return meant that not
10068     all items of the sequence were compared.
10069    
10070 bh 326 2002-09-20 Bernhard Herzog <[email protected]>
10071    
10072 bh 341 * test/test_fileutil.py: New. Test cases for Thuban.Lib.fileutil
10073    
10074     * Thuban/Lib/fileutil.py: Fixup some whitespace and typos
10075    
10076 bh 338 * test/test_map.py (TestMapWithContents.test_tree_info): Create
10077     the string with the bounding box on the fly because of platform
10078     differences in the way %g is handled.
10079    
10080     * test/test_layer.py (TestLayer.test_empty_layer): Create an empty
10081     DBFfile too because Thuban layers can't yet cope missing DBF
10082     files.
10083    
10084     2002-09-20 Bernhard Herzog <[email protected]>
10085    
10086 bh 326 * test/test_menu.py: Use initthuban instead of
10087     add_thuban_dir_to_path to initialize Thuban.
10088    
10089     * test/support.py (FloatComparisonMixin.assertFloatEqual): New.
10090     Mixin class for float comparisons
10091     (SubscriberMixin): New. Mixin class to test messages sent through
10092     the Connector class
10093    
10094     * test/README: Fix a typo and add the -v flag to the command for
10095     individual tests
10096    
10097 bh 335 * test/test_session.py: New. Test cases for Thuban.Model.session
10098    
10099     * test/test_proj.py: New. Test cases for Thuban.Model.proj
10100    
10101     * test/test_map.py: New. Test cases for Thuban.Model.map
10102    
10103     * test/test_layer.py: New. Test cases for Thuban.Model.layer
10104    
10105     * test/test_label.py: New. Test cases for Thuban.Model.label
10106    
10107     * test/test_connector.py: New. Test cases for Thuban.Lib.connector
10108    
10109     * test/test_color.py: New. Test cases for Thuban.Model.color
10110    
10111     * test/test_base.py: New. Test cases for Thuban.Model.base
10112    
10113 bh 322 2002-09-13 Bernhard Herzog <[email protected]>
10114    
10115     * Thuban/Model/session.py (Session.forwarded_channels): Forward
10116     the CHANGED channel too.
10117    
10118     * Thuban/Model/map.py (Map.forwarded_channels): Forward the
10119     CHANGED channel too.
10120     (Map.__init__): Call the Modifiable constructor as well.
10121    
10122     * Thuban/Model/base.py (Modifiable.UnsetModified): Issue a CHANGED
10123     event if the modified flag changes.
10124     (Modifiable.changed): Tweak the doc-string.
10125    
10126     * Thuban/UI/mainwindow.py (MainWindow.view_position_changed)
10127     (MainWindow.set_position_text): Put the code that puts the text
10128     with the mouse position into the status bar into the new method
10129     set_position_text so that it can overwritten in derived classes.
10130    
10131 bh 317 2002-09-12 Bernhard Herzog <[email protected]>
10132    
10133     * Thuban/UI/mainwindow.py (MainWindow.RunMessageBox): Center the
10134     message box on the main window.
10135    
10136 bh 313 2002-09-11 Bernhard Herzog <[email protected]>
10137    
10138     * Thuban/UI/mainwindow.py: Underline the 'x' in "Exit" instead of
10139     the 'E' because it's less likely to interfere with other menu
10140     entries.
10141 bh 315 (MainWindow.build_menu): remove an incorrect comment.
10142 bh 313
10143 bh 311 2002-09-10 Bernhard Herzog <[email protected]>
10144    
10145     * Thuban/UI/mainwindow.py (MainWindow.Map): New.
10146     (_tool_command): Add sensitive parameter
10147     (_has_visible_map): Sensitivity callback to tools and other
10148     commands that require a visible map. Use it in map_zoom_in_tool,
10149     map_zoom_out_tool, map_pan_tool, map_identify_tool, map_label_tool
10150     and map_full_extent
10151    
10152 bh 308 2002-09-06 Bernhard Herzog <[email protected]>
10153    
10154     * Thuban/UI/mainwindow.py (MainWindow.OnClose): Unsubscribe
10155     VIEW_POSITION
10156    
10157 tkoester 403 2002-09-04 Frank Koormann <[email protected]>
10158 frank 306
10159     * Resources/Bitmaps/fullextent.xpm: Updated Icon (removed "potatoe")
10160    
10161 bh 302 2002-09-02 Bernhard Herzog <[email protected]>
10162    
10163 bh 304 * Thuban/UI/view.py: Get rid of the idle redraw. This is done by
10164     wxWindows already and our implementation doesn't work correctly
10165     with wxGTK 2.3:
10166     (MapCanvas.__init__): Remove the instance variable
10167     (MapCanvas.OnPaint): Always call do_redraw when there's a map to
10168     be drawin
10169     (MapCanvas.OnIdle): Removed.
10170    
10171 bh 302 * Thuban/UI/view.py (MapCanvas.unprojected_rect_around_point): Add
10172     a parameter to determine the size of the rectangle.
10173     (MapCanvas.find_shape_at): Create the box around the point on a
10174     layer by layer basis and make the size depend on the shape type.
10175     This solves a problem with the selection of point shapes at the
10176     border of the layer's bounding box
10177    
10178 bh 292 2002-08-30 Bernhard Herzog <[email protected]>
10179    
10180 bh 300 * Thuban/UI/mainwindow.py (MainWindow.CanRemoveLayer): New method
10181     for the sensitivity of remove layer.
10182     (_can_remove_layer): New. Sensitivity callback for remove layer
10183     (Command layer_remove): Use _can_remove_layer
10184    
10185     * Thuban/Model/map.py (Map.CanRemoveLayer): New method to
10186     determine whether a given layer can be deleted.
10187    
10188 bh 297 * Thuban/UI/view.py (MapCanvas.__init__, MapCanvas.OnPaint)
10189     (MapCanvas.do_redraw): Get rid of the unused update_region
10190     instance variable
10191    
10192 bh 294 * Thuban/UI/view.py: Add/update some doc-strings.
10193    
10194 bh 292 * test/: new subdirectory with a bunch of unit tests.
10195    
10196     * test/README, test/test_table.py, test/test_save.py,
10197     test/test_menu.py, test/test_load.py: Initial set of tests and
10198     brief instructions on how to run them
10199    
10200 bh 287 2002-08-29 Bernhard Herzog <[email protected]>
10201    
10202 bh 291 * Thuban/UI/renderer.py (ScreenRenderer.draw_shape_layer): Handle
10203     arcs with multiple parts.
10204    
10205 bh 289 * Thuban/UI/view.py (ZoomInTool.MouseUp, ZoomOutTool.MouseUp):
10206     Handle degenrate rectangles.
10207    
10208 bh 287 * Thuban/Model/table.py: Make writing records work correctly:
10209     (Table.__init__): Keep track of whether the DBF is open for
10210     writing
10211     (Table.write_record): Open the DBF file for writing when necessary
10212    
10213 bh 285 2002-08-27 Bernhard Herzog <[email protected]>
10214    
10215     * Thuban/Model/table.py (Table.write_record, Table.__init__): Open
10216     dbf files only for reading by default. Use a new writable dbf
10217     object for writing.
10218    
10219 bh 278 2002-08-26 Bernhard Herzog <[email protected]>
10220    
10221 bh 282 * Thuban/UI/mainwindow.py: Refactor the context creation:
10222     (MainWindow.Context): New method to return a context
10223     (MainWindow.invoke_command, MainWindow.update_command_ui): Use the
10224     new method
10225    
10226 bh 278 * Thuban/UI/tableview.py (TableGrid, LayerTableGrid): Split the
10227     layer table specific code from TableGrid into LayerTableGrid
10228     (TableFrame, LayerTableFrame): Split the layer table specific code
10229     from TableFrame into LayerTableFrame
10230 bh 280 (LayerTableGrid.select_shape): Remove a debug print
10231 bh 278
10232     * Thuban/UI/mainwindow.py (MainWindow.LayerShowTable): Use the
10233     LayerTableFrame
10234    
10235 bh 277 2002-08-23 Bernhard Herzog <[email protected]>
10236    
10237     * Thuban/Model/layer.py (Layer.__init__): Make sure we have an
10238     absolute filename.
10239    
10240 bh 269 2002-08-22 Bernhard Herzog <[email protected]>
10241    
10242 bh 275 * Thuban/Model/table.py (Table.write_record): New method to write
10243     records.
10244 tkoester 403 (Table.__init__): Open the DBF file for writing too.
10245 bh 275
10246     * Thuban/UI/controls.py (RecordTable.SetValue): Write the value
10247     into the underlying table.
10248    
10249     * extensions/shapelib/shapefil.h (DBFCommit),
10250     extensions/shapelib/dbfopen.c (DBFCommit): New API function to
10251     commit any changes made to the DBF file.
10252    
10253 bh 271 * Thuban/UI/mainwindow.py (make_check_current_tool)
10254     (_tool_command): Put the code that generates the "checked"
10255     callback into a separate function so that we can reuse it
10256     elsewhere
10257    
10258 bh 269 * Thuban/Model/save.py (Saver): New class to handle serializing a
10259     session into an XML file. The main reason to introduce a class is
10260     that applications built on Thuban can derive from it so that they
10261     can save additional information in a session file.
10262     (save_session): Delegate almost all the work to the Saver class.
10263     Rename the filename argument to file because it may be a file like
10264     object now.
10265    
10266     * Thuban/Model/load.py: Get rid of the Python 1.5.2 compatibility
10267     code. Remove the little test code which would be executed when the
10268     module is run as a script which didn't work anymore since it can't
10269     import the other Thuban modules.
10270     (ProcessSession, load_session): Refactor the ProcessSession to
10271     have one method for each element start and end tag so that derived
10272     classes can easily override the processing of individual tags.
10273     Also, always parse with namespaces enabled because applications
10274     built on top of Thuban will likely use namespaces if they extend
10275     the session file format.
10276    
10277 bh 266 2002-08-21 Bernhard Herzog <[email protected]>
10278    
10279     * setup.py (ThubanInstall.run): Don't repr install_lib_orig
10280     because thubaninit_contents will do it for us.
10281    
10282 tkoester 403 2002-08-16 Jan-Oliver Wagner <[email protected]>
10283 jan 265
10284     * Thuban/UI/mainwindow.py: menu item 'show session tree' now disable if
10285     tree window already open
10286    
10287 bh 259 2002-08-15 Bernhard Herzog <[email protected]>
10288    
10289 bh 263 * Thuban/Model/layer.py (Layer.Destroy): Call the unboundd method
10290     with self.
10291    
10292     * Thuban/UI/view.py (MapCanvas.OnLeftUp): Only release the mouse
10293     when we have actually captured it.
10294    
10295 bh 259 * Thuban/Model/layer.py (Layer.Destroy): New. Explicitly close the
10296     shapefile and destroy the table.
10297    
10298     * Thuban/Model/table.py (Table.Destroy): New. Close the DBF file.
10299    
10300 bh 254 2002-08-14 Bernhard Herzog <[email protected]>
10301    
10302 bh 256 * Thuban/UI/controls.py (RecordTable.__init__): Remove the unused
10303     instance variable columns
10304     (RecordTable.GetTypeName): row and col may be negative in some
10305     cases.
10306    
10307 bh 254 * setup.py (InstallLocal.initialize_options)
10308     (InstallLocal.finalize_options, InstallLocal.user_options): New
10309     option create-init-file to build a thubaninit.py when running
10310     install_local
10311     (InstallLocal.run): Create the thubaninit.py module when requested
10312     (thubaninit_contents): Split the template into several parts and
10313     create a new function thubaninit_contents that creates the
10314     contents of a thubaninit module.
10315     (ThubanInstall.run): Use the new function to create the thubaninit
10316     module.
10317    
10318 bh 252 2002-07-30 Bernhard Herzog <[email protected]>
10319    
10320     * Thuban/UI/application.py (ThubanApplication.OnExit): Do some
10321     cleanup.
10322     (ThubanApplication.MainLoop): Extend to automatically call OnExit.
10323    
10324     * Thuban/Model/session.py (Session.Destroy): Don't bypass the
10325     direct base class' Destroy method.
10326    
10327     * Thuban/Model/map.py (Map.ClearLayers): New method to delete all
10328     layers.
10329     (Map.Destroy): Destroy the label_layer as well and call the
10330     inherited Desatroymethod first so that no more messages are
10331     issued.
10332     (Map.RaiseLayer, Map.LowerLayer): Only issue LAYERS_CHANGED
10333     message if the stacking order actually has changed. Add
10334     doc-strings.
10335     (Map.BoundingBox): Correct the doc-string.
10336     (Map.AddLayer, Map.RemoveLayer, Map.Layers, Map.HasLayers)
10337     (Map.ProjectedBoundingBox, Map.SetProjection): Add doc-strings.
10338    
10339     * Thuban/Model/label.py (LabelLayer.ClearLabels): New to delete
10340     all labels.
10341    
10342 bh 247 2002-07-29 Bernhard Herzog <[email protected]>
10343    
10344     * Thuban/Model/map.py (Map.subscribe_layer_channels)
10345     (Map.unsubscribe_layer_channels): Put the code that (un)subscribes
10346     to a layer's channels into separate methods.
10347     (Map.RemoveLayer, Map.AddLayer): Call the new methods
10348     (Map.Destroy): Unsubscribe from a layer's channels before
10349     destroying it.
10350    
10351     * Thuban/UI/view.py (MapCanvas.find_shape_at): Change the
10352     selected_layer parameter to searched_layer which is the layer to
10353     search in.
10354     (MapCanvas.SelectShapeAt): New parameter layer to restrict the
10355     search to that layer. Return the selected layer and shape.
10356    
10357     * Examples/simple_extensions/simple_tool.py (simple_tool): Fix a
10358     typo
10359    
10360 bh 238 2002-07-24 Bernhard Herzog <[email protected]>
10361    
10362 bh 243 * Thuban/UI/application.py (ThubanApplication.create_session):
10363     Extend the doc string.
10364     (ThubanApplication.subscribe_session)
10365     (ThubanApplication.unsubscribe_session): New methods to
10366     subscribe/unsubscribe to/from session channels.
10367     (ThubanApplication.SetSession): Call the new methods here.
10368     (ThubanApplication.maps_changed, ThubanApplication.set_map):
10369     Renamed set_map to maps_changed. Its now a subscriber for
10370     MAPS_CHANGED.
10371    
10372     * Thuban/UI/view.py (ZoomOutTool.MouseUp): Use the correct
10373     x-coordinate in case of simple clicks
10374    
10375     * Thuban/Model/base.py (Modifiable.changed): Apply the args tuple,
10376     don't pass it as a parameter
10377    
10378     * Thuban/Model/session.py (Session.RemoveMap): New
10379    
10380 bh 238 * Thuban/UI/mainwindow.py (MainWindow.__init__): Turn the initial
10381     window size into a parameter.
10382    
10383 bh 235 2002-07-23 Bernhard Herzog <[email protected]>
10384    
10385 bh 237 * Thuban/UI/menu.py (Menu.item_index): Also search for menus not
10386     just commands.
10387    
10388 bh 235 * Thuban/UI/mainwindow.py (MainWindow.__init__): Change the
10389     parameter list a bit to allow setting the window title and the
10390     initial message in the status bar. Update the callers.
10391    
10392     * Thuban/UI/application.py (ThubanApplication.OnInit)
10393     (ThubanApplication.CreateMainWindow): Put the mainwindow
10394     instantiation into a separate method so that it can be overridden
10395     by a subclass.
10396    
10397 bh 230 2002-07-19 Bernhard Herzog <[email protected]>
10398    
10399 bh 234 * Thuban/Model/session.py: Issue a CHANGED message every time
10400     another changed message is issued to make it easier to get
10401     notified of changes.
10402     (Session): Update the doc string
10403     (Session.forward): Issue changed-events as CHANGED as well.
10404     (Session.changed): Overwrite the inherited version to issue
10405     CHANGED events as well.
10406    
10407     * Thuban/UI/tree.py: We can now simply subscribe to the session's
10408     CHANGED channel to be informed of changes.
10409     (SessionTreeCtrl.session_channels): Not needed any longer.
10410 tkoester 403 (SessionTreeCtrl.unsubscribe_all, SessionTreeCtrl.session_changed):
10411 bh 234 Only have to (un)subscribe CHANGED
10412    
10413     * Thuban/Model/map.py (Map.TreeInfo): Deal better with empty maps.
10414    
10415 bh 230 * Thuban/UI/main.py, Thuban/UI/__init__.py: Move the work-around
10416     for the wxPython locale bug to __init__.py so that it's
10417     automatically executed by anybody using UI code from Thuban.
10418    
10419 bh 225 2002-07-18 Bernhard Herzog <[email protected]>
10420    
10421 bh 228 * Thuban/UI/main.py (main): app no longer needs to be global
10422    
10423     * Thuban/UI/mainwindow.py (MainWindow.__init__): Add application
10424     as parameter and store it in an instance variable
10425     (MainWindow.invoke_command, MainWindow.update_command_ui)
10426     (MainWindow.save_modified_session, MainWindow.NewSession)
10427     (MainWindow.OpenSession, MainWindow.SaveSession)
10428     (MainWindow.SaveSessionAs, MainWindow.ShowSessionTree): Use self's
10429     application object.
10430    
10431     * Thuban/UI/application.py (ThubanApplication.OnInit): Instantiate
10432     the main window with self.
10433    
10434 bh 225 * Thuban/UI/context.py: New module with the context class
10435    
10436     * Thuban/UI/command.py (Command): Update doc string.
10437    
10438     * Thuban/UI/mainwindow.py (MainWindow.invoke_command,
10439     MainWindow.update_command_ui): Pass an instance of the context
10440     class to the command's methods
10441     (check_current_tool, call_method): Handle the new context
10442     implementation
10443    
10444     * Examples/simple_extensions/simple_tool.py (simple_tool,
10445     check_simple_tool): Handle the new context implementation
10446    
10447     * Examples/simple_extensions/simple_command.py (simple_command):
10448     Handle the new context implementation. Update the comments about
10449     the context.
10450    
10451     * Thuban/UI/application.py (ThubanApplication.SetSession): Add
10452     doc-string
10453     (ThubanApplication.Session): New method to return the session
10454     object
10455    
10456     * Thuban/UI/tree.py (SessionTreeCtrl.update_tree): The
10457     interactor's selected_layer may not be a layer of the current
10458     session when the tree is updated while a new session is being set.
10459    
10460 bh 217 2002-07-17 Bernhard Herzog <[email protected]>
10461    
10462     * Thuban/UI/tree.py (color_string): Removed. No longer used.
10463     (SessionTreeCtrl.update_tree, SessionTreeCtrl.add_items): Split
10464     update_tree into update_tree and add_items. The tree now uses a
10465     more generic way to display the contents of the tree.
10466     (SessionTreeCtrl): Add a doc string explaining the TreeInfo method
10467    
10468     * Thuban/Model/layer.py (Layer.TreeInfo),
10469     Thuban/Model/extension.py (Extension.TreeInfo),
10470     Thuban/Model/map.py (Map.TreeInfo),
10471 tkoester 403 Thuban/Model/session.py (Session.TreeInfo):
10472 bh 217 Add TreeInfo methods to implement the new tree view update scheme
10473    
10474 bh 216 2002-07-16 Bernhard Herzog <[email protected]>
10475    
10476     * Thuban/UI/application.py: Don't use "import from" for the
10477     MainWindow. It can't always be resolved.
10478     (ThubanApplication.OnInit): change reference to MainWindow
10479     accordingly.
10480    
10481     * Thuban/UI/menu.py (Menu.SetItems): New method to replace a menu
10482     completely
10483    
10484 bh 213 2002-07-10 Bernhard Herzog <[email protected]>
10485    
10486     * setup.py (create_init_module): New configurable variable whose
10487     default depends on the platform we're running on.
10488     (ThubanInstall.initialize_options): Initialize
10489     self.create_init_module from the global create_init_module
10490     (ThubanInstall.user_options): indictate that the options
10491     create-init-module and init-module-dir have arguments.
10492    
10493     * setup.py: In the setup call change the version number to include
10494     cvs.
10495    
10496     * MANIFEST.in: Add the files in Examples
10497    
10498 bh 205 2002-07-09 Bernhard Herzog <[email protected]>
10499    
10500 bh 210 * setup.py: In the setup call, use the thuban homepage as the
10501     value of the url parameter.
10502    
10503 bh 208 * Examples: New subdirectory for examples.
10504    
10505     * Examples/simple_extensions/simple_tool.xpm,
10506     Examples/simple_extensions/simple_tool.py,
10507     Examples/simple_extensions/simple_command.py,
10508     Examples/simple_extensions/README: Simple examples showing how to
10509     add new commands and tools.
10510    
10511 bh 207 * setup.cfg (bdist_rpm): Add the default value for prefix and tell
10512     bdist_rpm that we also have an install script.
10513     (bdist_inno): Add 2002 to the copyright notice.
10514    
10515 bh 205 * setup.py: Create a file in python's site-packages directory to
10516     make installation of Thuban as a library easier.
10517     (ThubanInstall.user_options): Add two new options,
10518     create-init-module and init-module-dir
10519     (ThubanInstall.expand_with_pure_python_dirs): New method to expand
10520     filenames for installation in the default directories.
10521     (ThubanInstall.select_scheme, ThubanInstall.convert_paths): Extend
10522     the inherited methods to capture some filenames before they're
10523     transformed too much by distutils.
10524     (ThubanInstall.run): Create the init module if requested.
10525     (ThubanInstall.thuban_init_filename): New method to return the
10526     full name of the init module.
10527     (ThubanInstall.get_outputs): Append the filename of the init
10528     module.
10529    
10530 bh 202 2002-07-08 Bernhard Herzog <[email protected]>
10531    
10532 bh 205 * setup.py (thuban_bdist_rpm): Extend this version of bdist_rpm to
10533     handle the prefix properly which means that the default for the
10534     installation prefix should be /usr for RPMs and /usr/local when
10535     doing a normal source install.
10536     (bdist_rpm_install_script): Script to override the default install
10537     commands in the specfile generated by the bdist_rpm command.
10538     (thuban_bdist_rpm.user_options): Add a prefix option
10539     (thuban_bdist_rpm.initialize_options): Init the prefix option.
10540     Create the script files for the spec files as empty files here
10541     (thuban_bdist_rpm._make_spec_file): Override the inherited method
10542     to fill the script files with content.
10543    
10544 bh 202 * Thuban/Model/save.py (relative_filename): Wrapper around
10545     Thuban.Lib.fileutil.relative_filename that accepts an empty dir
10546     argument. save_session now automatically uses this version,
10547     solving a problem when saving to a relative filename.
10548    
10549     * setup.py: In the setup call, make sure that the library
10550     directories are under $prefix/lib not directly under $prefix.
10551    
10552 tkoester 403 2002-06-20 Jan-Oliver Wagner <[email protected]>
10553 jan 199
10554     * Thuban/Model/extension.py: new module to handle extension objects.
10555     * Thuban/Model/messages.py: new messages for extensions.
10556     * Thuban/Model/session.py (Session.Extensions, Session.HasExtensions,
10557     Session.AddExtension): new for handling extensions.
10558     Also some other minor changes to round up extension handling.
10559     * Thuban/UI/tree.py (SessionTreeCrtl:update_tree): Added visualization
10560     of Extension titles and title and names of its objects.
10561    
10562 bh 194 2002-05-29 Bernhard Herzog <[email protected]>
10563    
10564     * Thuban/UI/mainwindow.py (MainWindow.bind_command_events): Bind
10565 bh 202 the events for a command.
10566 bh 194 (MainWindow.add_toolbar_command, MainWindow.add_menu_command):
10567     Call bind_command_events to bind the events. add_toolbar_command
10568     can now bind events too so that it's possible to have commands
10569     that are only available through the toolbar.
10570     (MainWindow.init_ids): New instance variable events_bound to keep
10571     track of for which commands events have been bound.
10572    
10573 bh 190 2002-05-28 Bernhard Herzog <[email protected]>
10574    
10575     * Thuban/UI/menu.py: New module to build and manage menus.
10576    
10577     * Thuban/UI/mainwindow.py: Remove some unused imports.
10578     (MainWindow.__init__, main_menu): move the definition of the main
10579     menu from __init__ to the Menu instance main_menu.
10580     (MainWindow.build_menu_bar, MainWindow.build_menu): New methods to
10581     build the menu bar and sub-menus from a menu description.
10582    
10583     * Thuban/UI/application.py (ThubanApplication.OnInit): Read the
10584     startup file
10585     (ThubanApplication.read_startup_files): New method to run
10586     ~/.thuban/thubanstart.py
10587    
10588 bh 192 * Thuban/UI/mainwindow.py (MainWindow.__init__, main_toolbar):
10589     Move the toolbar definition to the Menu instance main_toolbar.
10590     (MainWindow.build_toolbar): New method to build the toolbar
10591     similar to the build_menu methods
10592    
10593 bh 184 2002-05-23 Bernhard Herzog <[email protected]>
10594    
10595 bh 186 * Thuban/UI/mainwindow.py (MainWindow.__init__): Fix spelling of
10596     layer_outline_color. Fix it in the definition of the command too.
10597    
10598 bh 184 * Thuban/UI/command.py (Command): Fix typo in doc string
10599    
10600 bh 182 2002-05-22 Bernhard Herzog <[email protected]>
10601    
10602     * Thuban/UI/mainwindow.py (MainWindow.RunMessageBox): Fix a typo
10603     in the docstring
10604    
10605 bh 175 2002-05-15 Bernhard Herzog <[email protected]>
10606    
10607 bh 180 * Thuban/Model/layer.py (Layer.open_shapefile): Set bbox to None
10608     when the shapefile is empty.
10609     (Layer.BoundingBox, Layer.LatLongBoundingBox): Both methods may
10610     now return None for empty shapefiles. Update doc-strings.
10611    
10612     * Thuban/Model/map.py (Map.BoundingBox): Add doc-string. Deal with
10613     the layer's bbox being None.
10614    
10615     * Thuban/UI/tree.py (SessionTreeCtrl.update_tree): Deal with the
10616     layer's bbox being None.
10617    
10618 bh 175 * Thuban/UI/view.py (MapCanvas.shape_selected): Only redraw when
10619     necessary.
10620     (MapCanvas.__init__): New instance variables, last_selected_layer
10621     and last_selected_shape to determine how the selection has
10622     changed.
10623    
10624     * Thuban/UI/tableview.py (TableGrid.__init__): Do not call
10625     AutoSizeColumns because it will cause a traversal of the entire
10626     table which for large .dbf files will take a very long time.
10627    
10628 bh 172 2002-05-14 Bernhard Herzog <[email protected]>
10629    
10630     * Thuban/Model/layer.py (Layer.open_shapefile): Choose a better
10631     maximum depth for the tree than shapelib does by default.
10632    
10633 bh 165 2002-05-10 Bernhard Herzog <[email protected]>
10634    
10635     * setup.py (py_modules): The shptree modules doesn't have a
10636     wrapper, so don't include it in the py_modules
10637    
10638 bh 163 2002-05-08 Bernhard Herzog <[email protected]>
10639    
10640     * extensions/shapelib/shptree.c (compare_ints): Make arguments
10641     const void * as in the qsort prototype
10642     (SHPTreeFindLikelyShapes): Remove some unused variables.
10643    
10644     * Thuban/UI/view.py (PanTool.MouseMove): Use the bitmap the view
10645     maintains to redraw the window during a drag.
10646     (MapCanvas.unprojected_rect_around_point): New method to determine
10647     a small region around a point for hit-testing.
10648     (MapCanvas.find_shape_at): Only test the shapes in a small region
10649     around the point.
10650    
10651     * setup.py: Increment the version to 0.1.2
10652    
10653     * Thuban/UI/tree.py (SessionTreeCtrl.unsubscribe_all): Remove a
10654     debug print and set session to None after unsubscribing
10655    
10656 bh 146 2002-05-07 Bernhard Herzog <[email protected]>
10657    
10658 bh 154 * Data/iceland_sample.session, Data/iceland_sample.thuban: Rename
10659     the file to have a .thuban extension.
10660    
10661 bh 152 * Thuban/UI/tree.py (session_channels): New class constant with
10662     all the session channels to subscribe to to update the tree
10663     (SessionTreeCtrl.session_changed): Remember the session so that we
10664     can unsubscribe properly. Use the new class constant to
10665     unsubscribe from the old session and subscribe to the new one.
10666     (SessionTreeCtrl.unsubscribe_all): New method to unsubscribe all
10667     subscriptions of the SessionTreeCtrl.
10668     (SessionTreeView.OnClose): Call the tree's unsubscribe_all method.
10669    
10670     * Thuban/UI/mainwindow.py (MainWindow.__init__): Add the "Show
10671     Session Tree" command to the file menu.
10672    
10673     * Thuban/UI/view.py (MapCanvas.do_redraw): Pass the entire bitmap
10674     as update_region to the renderer.
10675    
10676     * Thuban/UI/renderer.py
10677     (ScreenRenderer.layer_ids, ScreenRenderer.draw_shape_layer): The
10678     update box is now directly a tuple, not a wxRect anymore.
10679    
10680     * Thuban/Model/layer.py (Layer.ShapesInRegion): Remove some debug
10681     prints.
10682    
10683     2002-05-07 Bernhard Herzog <[email protected]>
10684    
10685 bh 146 * setup.py: Add the shptree extension module. See
10686     extensions/pyshapelib/ChangeLog for more details.
10687    
10688     * extensions/shapelib/shpopen.c, extensions/shapelib/shapefil.h,
10689     extensions/shapelib/dbfopen.c: Really update to the versions of
10690     shapelib 1.2.9. For some reason it wasn't really done on
10691     2002-04-11.
10692    
10693     * extensions/shapelib/shptree.c: Modified version of shptree.c of
10694     shapelib 1.2.9. The only real difference is the use of qsort
10695     instead of a bubble sort implementation
10696    
10697     * Thuban/Model/layer.py (Layer.__init__): New instance variable
10698     shapetree to hold the shapelib quadtree for the shapefile
10699     (Layer.open_shapefile): Create the quad tree.
10700     (Layer.ShapesInRegion): New method to return the ids of shapes in
10701     a given region using the quad tree.
10702    
10703     * extensions/thuban/wxproj.cpp (project_points): Fix some typos in
10704     comment
10705     (draw_polygon_shape): Accept both arcs and polygons.
10706     (initwxproj): Use the new PYSHAPELIB_IMPORT_API macro to import
10707     the api.
10708    
10709     * Thuban/UI/renderer.py (MapRenderer.layer_ids): New method to
10710     return the shape ids to be rendered in a given layer.
10711     (MapRenderer.draw_shape_layer): Call layer_ids to get the list of
10712     ids. Use draw_polygon_shape to draw arc shapes as well.
10713     (ScreenRenderer.RenderMap): New parameter for the rectangle that
10714     has to be updated
10715     (ScreenRenderer.layer_ids): Make use of the layer's quadtree by
10716     calling it's ShapesInRegion method.
10717    
10718     * Thuban/UI/view.py (MapCanvas.__init__): New instance variable
10719     update_region for the update region.
10720     (MapCanvas.OnPaint): Maintain the update region
10721     (MapCanvas.do_redraw): Pass the bounding box of the update_region
10722     to the renderer when drawing the bitmap. Reset the update_region.
10723    
10724 bh 129 2002-05-03 Bernhard Herzog <[email protected]>
10725    
10726 bh 131 * Thuban/UI/mainwindow.py (MainWindow.SaveSessionAs,
10727     MainWindow.OpenSession): Change the file extension of the session
10728     files to .thuban
10729    
10730 bh 129 * Thuban/Model/session.py (Session.AddMap, forwarded_channels):
10731     Move the map channels to be forwarded by the session into the
10732 bh 146 class constant with forwarded_channels. Also add
10733     LAYER_PROJECTION_CHANGED and LAYER_VISIBILITY_CHANGED to
10734     forwarded_channels
10735 bh 129
10736     * Thuban/Model/base.py (Modifiable.changed): Fix doc-string (a
10737     typo and some rewording).
10738    
10739 bh 126 2002-05-02 Bernhard Herzog <[email protected]>
10740    
10741     * Thuban/UI/view.py: Keep the temporary bitmap used during drawing
10742     around to speed up most redraws:
10743     (MapCanvas.__init__): New instance variable bitmap which holds the
10744     bitmap
10745     (MapCanvas.do_redraw): Redraw self.bitmap if necessary. Use
10746     self.bitmap to draw.
10747     (MapCanvas.full_redraw): New method to force a full redraw
10748     including the bitmap
10749     (MapCanvas.SetMap): Subscribe full_redraw instead of redraw to
10750     make sure the bitmap is redrawn.
10751     (MapCanvas.projection_changed, MapCanvas.set_view_transform,
10752     MapCanvas.shape_selected): Call full_redraw instead of readraw to
10753     make sure the bitmap is redrawn.
10754     (MapCanvas.OnSize): New method to handle size events so that the
10755     bitmap can be redrawn.
10756    
10757 bh 124 2002-04-29 Bernhard Herzog <[email protected]>
10758    
10759     * Thuban/UI/mainwindow.py (MainWindow.__init__): Subscribe to the
10760     canvas' VIEW_POSITION event
10761     (MainWindow.view_position_changed): Handler for VIEW_POSITION.
10762     Update the text in the status-bar accordingly.
10763    
10764     * Thuban/UI/view.py (MapCanvas): Derive from Publisher as well
10765     (MapCanvas.__del__): Implement because Publisher.__del__ has to be
10766     called.
10767     (MapCanvas.__init__): Bind EVT_LEAVE_WINDOW too. Initialize
10768     current_position
10769     (MapCanvas.set_current_position): New method to set
10770     current_position. Issue a VIEW_POSITION event
10771     (MapCanvas.CurrentPosition): New public method to return the value
10772     of current_position. Should be called when the VIEW_POSITION event
10773     is processed.
10774     (MapCanvas.OnLeftDown, MapCanvas.OnLeftUp, MapCanvas.OnMotion):
10775     Update the position.
10776     (MapCanvas.OnLeaveWindow): Set the position to None.
10777    
10778     * Thuban/UI/messages.py (VIEW_POSITION): New message for the
10779     position in the statusbar
10780    
10781 tkoester 403 2002-04-26 Frank Koormann <[email protected]>
10782 frank 120
10783     * Thuban/UI/mainwindow.py: AddLayer, Dialog title s/session/data
10784    
10785 tkoester 403 2002-04-24 Frank Koormann <[email protected]>
10786    
10787 frank 118 * Resources/Bitmaps/identify.xpm: shadow added
10788    
10789     * Resources/Bitmaps/fullextent.xpm: new
10790 jan 116
10791 tkoester 403 2002-04-22 Jan-Oliver Wagner <[email protected]>
10792 jan 116
10793 tkoester 403 * Thuban/UI/tree.py (update_tree): added test for None on map bounding
10794     box
10795 jan 114
10796 tkoester 403 2002-04-21 Jan-Oliver Wagner <[email protected]>
10797    
10798 jan 114 * Thuban/UI/proj4dialog.py (UTMProposeZoneDialog): new
10799    
10800     * Thuban/UI/tree.py (update_tree): added added map extent
10801    
10802     * Thuban/UI/mainwindow.py (_method_command): extended by parameter
10803 tkoester 403 icon; added map_full_extend as tool
10804 jan 114
10805 tkoester 403 2002-04-19 Jan-Oliver Wagner <[email protected]>
10806 jan 107
10807     * Thuban/UI/mainwindow.py (SaveSession): launch save as dialog for
10808     saving _new_ sessions
10809    
10810     * Thuban/Model/session.py (create_empty_session): new session
10811     don't have a filename (set to None)
10812    
10813     * Thuban/UI/tree.py (update_tree): added filename and modified flag
10814    
10815     * Thuban/Model/load.py (ProcessSession): convert projection
10816     parameters from unicode to regular string
10817    
10818     * Data/iceland_sample.session: Added UTM Zone 26 projection.
10819    
10820 bh 100 2002-04-11 Bernhard Herzog <[email protected]>
10821    
10822     * extensions/shapelib/shapefil.h, extensions/shapelib/shpopen.c,
10823     extensions/shapelib/dbfopen.c: Update to the versions of shapelib
10824     1.2.9
10825    
10826     * setup.py (Lib.wxproj extension): Don't link shpopen.c and put
10827     the pyshapelib directoy into the list of include dirs, so that
10828     pyshapelib_api.h can be found.
10829    
10830     * extensions/thuban/wxproj.cpp (pyshapelib_api): New variable that
10831     holds the pyshapelib C-API
10832     (draw_polygon_shape, point_in_polygon_shape, shape_centroid): Use
10833     pyshapelib_api to access the shapelib functions.
10834     (initwxproj): Import the c_api from the shapelib module and
10835     initialize pyshapelib_api.
10836    
10837 bh 89 2002-04-04 Bernhard Herzog <[email protected]>
10838    
10839 bh 91 * setup.py (thuban_bdist_rpm.initialize_options): Use
10840     initialize_options to create the scripts for the rpm.
10841    
10842 bh 89 * extensions/pyprojection/setup.py (PROJ4_PREFIX): Just use /
10843    
10844 bh 85 2002-04-03 Bernhard Herzog <[email protected]>
10845    
10846 bh 87 * setup.py: Increment version to 0.1.1
10847    
10848 bh 85 * Thuban/UI/mainwindow.py (MainWindow.__init__): Move the "Add
10849     Layer" and "Remove Layer" commands from the layer menu to the map
10850     menu
10851    
10852 bh 83 2002-02-15 Bernhard Herzog <[email protected]>
10853    
10854     * Thuban/Model/layer.py (Layer.Shape): list append only takes one
10855     argument (python <= 1.5.2 erroneously accepted multiuple
10856     arguments)
10857    
10858 bh 81 2002-02-04 Bernhard Herzog <[email protected]>
10859    
10860     * Thuban/UI/identifyview.py (IdentifyGridCtrl): New class to use a
10861     RecordGrid in the identifyview.
10862     (IdentifyView.__init__): Use IdentifyGridCtrl instead of
10863     IdentifyListCtrl. The grid allows editing of the values.
10864    
10865     * Thuban/UI/controls.py (RecordTable, RecordGridCtrl): New classes
10866     implementing a grid for a single row of a thuban table.
10867    
10868     * Thuban/UI/view.py (MapCanvas.SelectShapeAt): Search through all
10869     layers by default. Easier to use than the previous default of only
10870     searching through the select layer which meant that if no layer
10871     was selected, you couldn't select a shape.
10872    
10873     * Thuban/UI/tableview.py (TableGrid.__init__): Fix typo
10874    
10875     * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Honour the
10876     stroke_width attribute
10877    
10878     * Thuban/Model/save.py (save_session): Write the new stroke_width
10879     attribute
10880    
10881     * Thuban/Model/load.py (ProcessSession.startElement): Read the
10882     stroke_width attribute
10883    
10884     * Thuban/Model/layer.py (Layer.__init__): New parameter and
10885     instance variable stroke_width
10886     (Layer.SetStrokeWidth): Set the stroke_width.
10887    
10888 bh 72 2002-02-01 Bernhard Herzog <[email protected]>
10889    
10890     * extensions/thuban/wxproj.cpp (project_points): Fix two
10891     off-by-one errors in the last loop that joins the various parts
10892     together.
10893    
10894 bh 71 2002-01-14 Bernhard Herzog <[email protected]>
10895    
10896     * setup.py (data_dist.make_distribution): Fix some typos
10897    
10898 bh 70 2001-09-18 Bernhard Herzog <[email protected]>
10899    
10900     * README: Slight tweaking in preparation for the 0.1 release
10901    
10902     * setup.cfg: Add section for sdist to create both tgz and zip
10903     archives
10904    
10905     * setup.py: increase version number to 0.1
10906     (data_dist): New command class for data distribution
10907    
10908 bh 64 2001-09-14 Bernhard Herzog <[email protected]>
10909    
10910 bh 70 * Thuban/UI/identifyview.py (IdentifyListCtrl.selected_shape):
10911     Handle the case of no layer (i.e. layer is None) properly.
10912    
10913 tkoester 403 * Thuban/UI/proj4dialog.py (UTMDialog.__init__, Proj4Dialog.__init__):
10914 bh 70 Set the initial selection of the combo boxes to reflect the
10915     projection we're starting with in a way that works on windows,
10916     too.
10917    
10918 bh 64 * Thuban/Lib/connector.py (Connector.print_connections): Print the
10919     puiblisher's ids in hex to make it easier to compare them to the
10920     standard repr of python methods
10921    
10922     * Thuban/Model/map.py (Map.Destroy): Unsubscribe the label_layer
10923     messages
10924    
10925 bh 59 2001-09-13 Bernhard Herzog <[email protected]>
10926    
10927 bh 64 * Thuban/UI/tree.py (SessionTreeCtrl.OnSelChanged): Make sure to
10928     deselect the layer if no layer is selected
10929    
10930 bh 59 * Thuban/UI/view.py (MapCanvas.OnPaint): Only delay drawing to
10931     idle time when there actually is something to draw. If there's
10932     nothing to draw simply clear the window
10933     (MapCanvas.do_redraw): Call dc.EndDrawing and add some comments.
10934     (MapCanvas.SetMap): force a redraw in all cases because
10935     FitMapToWindow doesn't always do it.
10936     (MapCanvas.ZoomFactor): Add an optional parameter, center, to
10937     specify the point to move into the center of the window
10938     (ZoomOutTool.MouseUp, ZoomInTool.MouseUp): If the mouse wasn't
10939     dragged, zoon in/out by a factor of 2
10940 bh 64 (MapCanvas.find_shape_at): Iterate backwards (i.e. with decreasing
10941     index, i.e. reversed drawing order) so that objects appearing to
10942     be in from of others are selected first. This is probably mostly
10943     relevant for point shapes where the symbols used may overlap
10944 bh 59
10945     * Thuban/Model/session.py (create_empty_session): Unset the
10946     modified bit before returning it
10947    
10948     * Thuban/UI/mainwindow.py (MainWindow.NewSession): Use
10949     create_empty_session session to create the new, empty session.
10950    
10951     * Thuban/UI/mainwindow.py (MainWindow.__init__): Set the size of
10952     the tool bitmaps.
10953     (MainWindow.OnClose, MainWindow.save_modified_session): Separate
10954     the code that asks whether the session should be saved into the
10955     new method save_modified_session.
10956     (MainWindow.OpenSession, MainWindow.NewSession): Use the new
10957     method to save modified session here too.
10958    
10959 bh 55 2001-09-11 Bernhard Herzog <[email protected]>
10960    
10961     * setup.py (InnoIconItem): fix typo
10962    
10963     (thuban_bdist_inno.run):
10964     (bdist_inno.run): Move the decision not to create symlinks on
10965     non-nt platforms to thuban_bdist_inno and do it unconditinally
10966     since we never want to create the symlinks here
10967    
10968 bh 48 2001-09-10 Bernhard Herzog <[email protected]>
10969    
10970 bh 53 * Thuban/UI/mainwindow.py (MainWindow.IdentifyTool): Popup the
10971     identify view immediately
10972    
10973     * Thuban/UI/controls.py: New file with two classes RecordListCtrl
10974     and SelectableRecordListCtrl that implement the code shared by the
10975     identify view and the label dialog
10976    
10977     * Thuban/UI/identifyview.py (IdentifyListCtrl): Derive from the
10978     new class RecordListCtrl
10979    
10980     * Thuban/UI/labeldialog.py (LabelDialog.OnOK): Check whether the
10981     return value of GetValue is None instead of using it as a boolean
10982     directly so that Zero numbers are handled properly.
10983     (LabelListCtrl): Derive from the new class
10984     SelectableRecordListCtrl
10985    
10986 bh 48 * Thuban/UI/proj4dialog.py (Proj4Dialog.__init__):
10987     (Proj4Dialog.dialogLayout): Make the window resizable and set the
10988     size of the text control explicitly to make the sizers work on
10989     both Windows and X.
10990    
10991 bh 44 2001-09-07 Bernhard Herzog <[email protected]>
10992    
10993     * Thuban/UI/view.py (MapCanvas.find_shape_at):Add a new parameter
10994     that can limit the search to the currently selected layer.
10995     (MapCanvas.SelectShapeAt): Make sure that the currently selected
10996     layer stays selected even when no shape is found
10997 bh 46 (MapCanvas.FitRectToWindow): If the rect has zero with or zero
10998     height do nothing (avoids zero division errors)
10999 bh 44
11000 bh 32 2001-09-06 Bernhard Herzog <[email protected]>
11001    
11002 bh 42 * Thuban/UI/tree.py (SessionTreeCtrl, SessionTreeView.__init__):
11003     Correct the spelling of SessionTreeCtrl. dabbrev is too damn
11004     convenient :-)
11005     (SessionTreeCtrl.__init__, SessionTreeCtrl.update_tree): Introduce
11006     a new instvar layer_to_item to map layers to tree items
11007     (SessionTreeCtrl.layer_selected): Select the appropriate tree item
11008     to match the current selection in the interactor
11009    
11010 bh 40 * Thuban/UI/interactor.py (Interactor.SelectedLayer):
11011     (Interactor.HasSelectedLayer): New methods to query the current
11012     selection
11013    
11014     * Thuban/UI/mainwindow.py (MainWindow.current_layer):
11015     (MainWindow.has_selected_layer): Simply call the appropriate
11016     interactor method
11017    
11018     * Thuban/UI/mainwindow.py (MainWindow.__init__):
11019     (MainWindow.LayerShowTable):
11020     (MainWindow.identify_view_on_demand): Store the interactor in an
11021     instvar and use that reference instead of going through main.app
11022    
11023 tkoester 403 * Thuban/UI/mainwindow.py (MainWindow.ShowSessionTree):
11024     * Thuban/UI/application.py (ThubanApplication.OnInit):
11025 bh 40 * Thuban/UI/main.py (main): Create the session tree view in main
11026     with the new mainwindow method ShowSessionTree and not directly
11027     the application's OnInit method
11028    
11029     * Thuban/UI/tree.py (myTreeCtrlPanel):
11030     (SessioinTreeCtrl): Rename to SessioinTreeCtrl and turn it into a
11031     TreeCtrl isntead of a panel. This affects most method since we now
11032     refer to self instead of self.tree
11033     (SessionTreeView): New class implementing a non-modal dialog
11034     showing the session tree.
11035    
11036 bh 35 * Thuban/UI/mainwindow.py (MainWindow.LayerShowTable): Pass the
11037     layer to the tableview dialog.
11038    
11039     * Thuban/UI/tableview.py: Add some doc-strings
11040 tkoester 403 (TableGrid):
11041 bh 35 (TableGrid.OnRangeSelect):
11042     (TableGrid.OnSelectCell):
11043     (TableFrame.__init__):
11044     (TableFrame.row_selected):
11045     Selecting rows in the grid view now updates the selected shapes
11046     through the TableFrame. To achieve this we derive TableGrid from
11047     Publisher and introduce the message type ROW_SELECTED which the
11048     TableFrame subscribes to and which is issued by OnRangeSelect and
11049     OnSelectCell
11050    
11051     (DataTable.SelectRow): Removed because it's no longer needed in
11052     the row/shape selection scheme
11053    
11054 bh 32 * Thuban/UI/dialogs.py: New file implementing common classes for
11055     dialogs
11056    
11057     * Thuban/UI/tableview.py (TableGrid.__init__): Don't subscribe to
11058     the SELECTED_SHAPE message anymore. This is now handled by the
11059     parent.
11060     (TableGrid.select_shape): Only update the selection if the shape
11061     is not None.
11062     (TableFrame): Inherit from the new NonModalDialog class.
11063     (TableFrame.__init__, TableFrame.select_shape): Handle the
11064     SELECT_SHAPE message.
11065     (TableFrame.OnClose): Extend the inherited method to unsubscribe
11066     SELECT_SHAPE
11067    
11068     * Thuban/UI/mainwindow.py (MainWindow.init_dialogs):
11069     (MainWindow.add_dialog):
11070     (MainWindow.dialog_open):
11071     (MainWindow.remove_dialog):
11072     (MainWindow.get_open_dialog): New methods to maintain a dictionary
11073     of opened non-modal dialogs.
11074    
11075     (MainWindow.__init__): Initialize the new non-modal dictionary
11076     management code
11077     (MainWindow.LayerShowTable): maintain separate dialogs for each
11078     table using the non-modal dialog management code to only open a
11079     view once for each table.
11080    
11081     (MainWindow.IdentifyTool):
11082     (MainWindow.__init__):
11083     (MainWindow.identify_view_on_demand): Don't open the identify view
11084     in IdentifyTool anymore. This will be done automatically by the
11085     new method identify_view_on_demand which handles the
11086     SELECTED_SHAPE message so that the identify view will be opened on
11087     demand
11088    
11089     * Thuban/UI/identifyview.py (IdentifyListCtrl.__init__): Remove
11090     the interactor argument. The SELECTED_SHAPE message is now handled
11091     by the parent.
11092     (IdentifyView.__init__): Add the interactor argument so that we
11093     can handle the SELECTED_SHAPE message here
11094     (IdentifyView.selected_shape): New method to handle the
11095     SELECTED_SHAPE messages
11096    
11097     * Thuban/UI/identifyview.py (IdentifyView): Derive from the new
11098     NonModalDialog class
11099     (IdentifyView.OnClose): Extend the inherited version to
11100     unsubscribe SELECT_SHAPE
11101    
11102     * Thuban/Model/session.py (Session.UnsetModified): Remove debug prints
11103    
11104 bh 26 2001-09-05 Bernhard Herzog <[email protected]>
11105    
11106     * Thuban/UI/view.py (MapCanvas.__init__): New argument, interactor.
11107 tkoester 403
11108 bh 26 * Thuban/UI/mainwindow.py (MainWindow.__init__): New argument
11109     interactor to pass through to the MapCanvas
11110 tkoester 403
11111 bh 26 * Thuban/UI/application.py (ThubanApplication.OnInit): Use the new
11112     argument to the MainWindow constructor to get rid of the ugly hack
11113     that made main.app available early just so that the mapcanvas
11114     could access the interactor object.
11115    
11116 bh 19 2001-09-04 Bernhard Herzog <[email protected]>
11117    
11118 bh 22 * Thuban/UI/mainwindow.py (MainWindow.RunMessageBox): New method
11119     that runs a modal message box
11120     (MainWindow.OnClose): Use the new method
11121     (MainWindow.RemoveLayer): Just do nothing in case no layer is
11122     selected. The command should be grayed out anyway, so there's no
11123     need to pop up a message box.
11124     (MainWindow.AddLayer): Pop up a message box with an error message
11125     if the shape file can't be opened
11126    
11127     * Thuban/Model/layer.py (Layer.__init__): Open the shapefile
11128     immediately. This will cause an exception in case the file can't
11129     be opened and we can display an appropriate message.
11130    
11131 bh 19 * MANIFEST.in: Add extensions/pyprojection/LICENSE
11132    
11133     * setup.py (thuban_bdist_rpm): New class implementing a Thuban
11134     specific bdist_rpm command.
11135    
11136     * Thuban/UI/main.py: Catch ImportError exceptions when importing
11137     the locale module because it may not be available on some
11138     installations.
11139    
11140     * extensions/pyprojection/LICENSE: Copy of the license text in
11141     Projection.i. Having it in a separate file makes it easier to
11142     refer to license text in e.g. RPMs
11143    
11144 bh 18 2001-09-03 Bernhard Herzog <[email protected]>
11145    
11146 bh 19 * setup.py: use wx-config instead of wxgtk-config because it's
11147     more generic
11148    
11149     * setup.py (ThubanInstall.get_outputs): Add the symlink in
11150     <prefix>/bin to the outputs
11151     (ThubanInstall.link_file): New method to link files. We need this
11152     because the standard copy_files refuses to link non-existing
11153     files.
11154     (ThubanInstall.run): Remove the leading install root from the
11155     script filename if an install root was specified and use the new
11156     link_file method
11157 tkoester 403
11158 bh 18 * Thuban/UI/mainwindow.py (MainWindow.AddLayer): Fit the map to
11159     the window when the first layer is added to the map.
11160    
11161     * setup.py (ThubanInstall.run): Honor the build root (self.root)
11162     when linking thuban.py to <prefix>/bin
11163    
11164 bh 16 2001-08-31 Bernhard Herzog <[email protected]>
11165    
11166     * setup.py: In the setup call, the install parameters shouldn't
11167     have trailing slashes because distutils on non-posix platforms
11168     doesn't like that. The same applies to other directories like
11169     "Resources/Bitmaps"
11170    
11171     In the configuration section for nt, move the wxWindows directory
11172     optins into the part clearly marked as editable.
11173    
11174     (InstallLocal.initialize_options):
11175     (InstallLocal.user_options): remove the currently unused debug
11176     flag
11177     (thuban_build_py.find_all_modules): Add this method so that it
11178     works for our case of having packages and modules in one
11179     distribution as well.
11180     (ThubanInstall.initialize_options):
11181     (ThubanInstall.finalize_options):
11182     (ThubanInstall.user_options):
11183     (ThubanInstall.boolean_options): Add new options, do-symlink and
11184     extra files. Since these are the first ThubanInstall specific
11185     options, override user_options and boolean_options
11186     (ThubanInstall.run): Honor the new do-symlink and extra-files
11187     options.
11188     (ThubanInstall.get_outputs): Add to override the base-class's
11189     version and add the extra-files to the outputs
11190     (bdist_inno): New class for windows distributions with Inno Setup
11191     (InnoIconItem): Helper class for bdist_inno
11192     (thuban_bdist_inno): Thuban specific version of bdist_inno. Added
11193     this together with the appropriate parameters, to the setup call.
11194 tkoester 403
11195 bh 16 * setup.cfg (bdist_inno): added new section for the inno setup
11196     installer
11197    
11198     * Thuban/UI/tree.py (myTreeCtrlPanel.__init__): New inst var
11199     changing_selection to avoid recursive selection events when
11200     modifying the selection in response to a selection event.
11201     (myTreeCtrlPanel.normalize_selection): Set the new inst var when
11202     changing the tree's selection.
11203     (myTreeCtrlPanel.OnSelChanged): Only normalize the selection when
11204     we're not being called indirectly from normalize_selection.
11205    
11206     * Thuban/UI/mainwindow.py (MainWindow.update_command_ui): Call
11207     event.Check only if the command is actuall checkable.
11208     (MainWindow.__init__): Call the toolbar's Realize method to make
11209     sure that the items are actually shown
11210    
11211 bh 7 2001-08-28 Bernhard Herzog <[email protected]>
11212    
11213 bh 9 * setup.py: Fix some doc strings
11214    
11215 bh 7 * ChangeLog: started
11216    

Properties

Name Value
svn:eol-style native
svn:keywords Author Date Id Revision

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26