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

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

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 311 by bh, Tue Sep 10 16:45:32 2002 UTC revision 2509 by jan, Mon Dec 27 09:09:01 2004 UTC
# Line 1  Line 1 
1    2004-12-27  Jan-Oliver Wagner <[email protected]>
2    
3            * Doc/manual/thuban-manual-de.xml: More translations.
4    
5    2004-12-23  Jan-Oliver Wagner <[email protected]>
6    
7            * Thuban/UI/projdialog.py (ProjFrame.load_user_proj): Added a
8            \n to stderr after the warnings. Thanks to Russell Nelson.
9    
10    2004-12-20  Nina Hueffmeyer <[email protected]>
11    
12            * Extensions/ogr/ogrshapes.py: Fixed some issues from
13            Bernhard (coding guidelines etc.). Additionally it is now possible to
14            display shapefiles containing feature collections (e.g.polygons
15            with holes). Works with gdal 1.2.1 now.
16    
17            * Extensions/ogr/test/test_OGRShapestore.py: Fixed some issues
18            from Bernhard (coding guidelines etc.). If ogr can't be imported,
19            tests are skipped now.
20    
21            * Extensions/ogr/ogrstart.py: Fixed some typings.
22    
23    2004-12-20  Bernhard Reiter <[email protected]>
24    
25            * Extensions/svgexport/TODO: updated to add support for
26            raster layers and labels for 1.0.1.
27    
28            * Extensions/svgexport/svgmapwriter.py (draw_raster_layer):
29            Issue a warning now.
30    
31    2004-12-19  Bernhard Reiter <[email protected]>
32    
33            * Extensions/svgexport/TODO: Added idea to support triggering
34            the application down the pipe.
35    
36    2004-12-19  Bernhard Reiter <[email protected]>
37    
38            svgexport: Improved code quality, mainly by better naming.
39    
40            * Extensions/svgexport/svgmapwriter.py:
41            DrawPath() renamed to DrawPolygonPath(),
42            added documentation, improved comments and variable names.
43            
44            * Extensions/svgexport/svgmapwriter.py,
45              Extensions/svgexport/test/test_svgmapwriter.py:
46            All using DrawPolygonPath() now, the default parameter closed=True
47            omitted.
48    
49            * Extensions/svgexport/test/test_svgmapwriter.py:
50            renamed test_polygon_opened() to test_polyline()
51            renamed test_transparent_polygon() to test_transparent_polyline()
52    
53    2004-12-18  Jan-Oliver Wagner <[email protected]>
54    
55            Some fixes of gns2shp extension.
56    
57            * Extensions/gns2shp/test/__init__.py: New. Make this directory a
58            package.
59    
60            * Extensions/gns2shp/test/test_gns2shp.py: Add some import paths
61            dynamically.
62    
63            * Extensions/gns2shp/test/README: Simplified description how to test.
64    
65            * Extensions/gns2shp/gns2shp.py (gns2shp): Fixed doc-string,
66            fixed some dimensions of fields according to the GNS documentation
67            which seems to change undocumented.
68            Now killing trailing \n and/or \r from MODIFY_DATE.
69            This fixes RT#2453.
70    
71    2004-12-18  Bernhard Reiter <[email protected]>
72    
73            svgexport 1.0.0: Treats holes and islands nicely. Documentation added.
74    
75            * Extensions/svgexport/test/test_svgmapwriter.py:
76            Added new tests: test_export_polygon_with_hole()
77            and test_polygon_with_hole().
78    
79            * Extensions/svgexport/svgmapwriter.py
80            (draw_polygon_shape()): Uses DrawPath correctly now.
81    
82            * Doc/manual/thuban-manual.xml: Added documentation for stable
83            extention svgexport.    
84            * Doc/manual/thuban-manual-de.xml: Copied English section about
85            svexport over.
86    
87            * Extensions/svgexport/__init__.py: Bumped version number to 1.0.0.
88    
89            * Extensions/svgexport/svgsaver.py,maplegend.py:
90            Moved from experimental to stable extension menu.
91    
92            * Extensions/svgexport/TODO: updated.
93    
94    
95    2004-12-18  Bernhard Reiter <[email protected]>
96    
97            Added Extensions/svgexport/TODO
98    
99    2004-12-18  Bernhard Reiter <[email protected]>
100    
101            Refactored in svgexport:
102            DrawPath replaces DrawPolygon; added newline in front of "M" in paths.
103    
104            * Extensions/svgexport/svgmapwriter.py
105            Added verbosity level 3 to print out polygon points.
106            (class Point): added __repr__
107            (class Brush, __str__()): Added space after ,.
108            (DrawPolygon): Renamed to DrawPath()
109            (DrawPath): Takes list of polygons as input now, adds \n before "M"s.
110            (DrawLines): Using DrawPath now.
111    
112            * Extensions/svgexport/test/test_svgmapwriter.py:
113            Replaced DrawPolygon() calls with DrawPath() and put the first argument
114            inside another list. Adapted test data with a newline before "M".
115    
116    2004-12-18  Bernhard Reiter <[email protected]>
117            
118            Refactored svgexport tests: 9 double tests runs eliminated;
119            code size reduced by 8 lines.
120    
121            * Extensions/svgexport/test/test_svgmapwriter.py:
122            (class TestWithDC): Renamed to BaseTestWithDC, moved to top.
123            (class BaseWithDCtools): New, subclass from BaseTestWithDC.
124            (class TestDrawSplines): now subclass from BaseTestWithDCtools,
125            this fixed the double running of the nine tests of TestVirtualDC.
126            (class TestVirtualDC): Using self.dc and self.file from setUp().
127    
128    2004-12-17  Bernhard Herzog  <[email protected]>
129    
130            Two windows specific fixes ported from thuban-1�0-branch:
131    
132            * Thuban/UI/about.py (unicodeToLocale): Use getdefaultlocale
133            instead of getlocale because getlocale doesn't return a usable
134            encoding name on a german windows 2000
135    
136            * setup.py: windows build: Removed the absolute path names and
137            made all prfixes relative to the directory containing setup.py.
138            Makes it a little easier to adapt to a different system.
139    
140    2004-12-16  Bernhard Herzog  <[email protected]>
141    
142            Add support for PostGIS tables with LINESTRING geometries.
143            Fixes RT#2299
144    
145            * Thuban/Model/postgisdb.py (shapetype_map): Add LINESTRING
146    
147            * test/postgissupport.py
148            (PostgreSQLServer.get_default_static_data_db): Rename the "roads"
149            table to "roads-multi" because it now uses MULTILINESTRING
150            geometries and introduce a new "roads" table that uses LINESTRING
151            (coords_to_multilinestring): Make the doc string more precise
152            (coords_to_linestring): New.  Create a LINESTRING WKT
153            representatin
154            (wkt_converter): Add coords_to_linestring
155            (upload_shapefile): Rephrase the doc-string a bit.
156    
157            * test/test_postgis_db.py (TestPostGISShapestoreArc)
158            (LineStringTests)
159            (TestPostGISShapestoreLineString)
160            (TestPostGISShapestoreMultiLineString): Split
161            TestPostGISShapestoreArc into a base class LineStringTests and two
162            derived classes TestPostGISShapestoreLineString for LINESTRING
163            geometries and TestPostGISShapestoreMultiLineString for
164            MULTILINESTRING geometries.  Most test methods are in the base
165            class with the exception of tests that explicitly check the raw
166            format.
167    
168    2004-12-16  Bernhard Herzog  <[email protected]>
169    
170            Make the test suite work with PostGIS 0.8.2 and PostgreSQL 7.4
171    
172            * test/postgissupport.py (find_postgis_sql): Different postgis
173            versions put the postgis.sql file into slightly different places
174            so we have to look in both.  The updated doc string describes this
175            is more detail.
176    
177            * test/test_postgis_db.py
178            (TestPostGISSpecialCases.test_column_name_quoting): The return
179            value of UniqueValues is unsorted, so it has to be sorted for
180            comparison.
181    
182    2004-12-16  Bernhard Herzog  <[email protected]>
183    
184            Fix for RT#2237
185    
186            * Thuban/UI/projdialog.py (ProjFrame._show_proj_panel): If the
187            panel to be shown is the UnknownProjPanel disable the OK and Try
188            buttons.  Otherwise enable them.
189            (ProjFrame.__GetProjection): The UnknownProjPanel returns None for
190            the parameters.  In that case __GetProjection also returns None
191            now.
192    
193    2004-12-15  Bernhard Herzog  <[email protected]>
194    
195            * Thuban/UI/classgen.py (GenQuantilesPanel.__init__): Set the
196            minimum number of classes to 2.  The calculate_quantiles needs at
197            least two and raises an exception otherwise.  
198            Fixes RT#2549
199    
200    2004-12-15  Bernhard Herzog  <[email protected]>
201    
202            * test/postgissupport.py (PostgreSQLServer.execute_sql): Extend to
203            so that it returns a result for select statements.
204            (PostgreSQLServer.server_version): New.  Return the version of the
205            server software.
206            (PostgreSQLServer.require_authentication): The format of
207            pg_hba.conf has changed between PostgrSQL 7.2 and 7.3.  Check the
208            server version and generate the file in the correct format
209    
210    2004-12-15  Bernhard Herzog  <[email protected]>
211    
212            * test/postgissupport.py (PostgreSQLServer.is_running): Fix typo
213            in the doc string and rephrase it a little.
214    
215    2004-12-15  Frank Koormann <[email protected]>
216    
217            * test/test_load.py (TestAltPath.checkSession): New, extended checks if
218            session has been loaded successfully. The check is called by the relevant
219            tests after executing load_session().
220    
221    2004-12-13  Bernhard Herzog  <[email protected]>
222    
223            Make sure the region used to determine which shapes are visible
224            actually matches the region on the printed page.  If this isn't
225            done properly some shapes might not be printed.  
226            Fixes RT #2692
227    
228            * Thuban/UI/view.py (MapPrintout.draw_on_dc): The region for the
229            renderer has to be at the same position as the mapregion
230    
231            * Thuban/UI/renderer.py (ExportRenderer.RenderMap): self.region
232            has to be moved by (self.shiftx, self.shifty) too.
233    
234    2004-12-13  Bernhard Herzog  <[email protected]>
235    
236            * libraries/pyprojection/Projection.i: Work around a bug in the
237            generated python code which leads to exception in the __del__
238            method when the constructor fails.  See the comments in the code
239            for more details.
240    
241            * libraries/pyprojection/Projection.py: Updated from Projection.i
242            with SWIG.
243    
244    2004-12-13  Bernhard Herzog  <[email protected]>
245    
246            * test/test_load.py (TestAltPath.test_01_single_path_error_fix)
247            (TestAltPath.test_02_path_error_fix_from_list)
248            (TestAltPath.test_05_path_error_fix_from_list_changed)
249            (TestAltPath.test_06_path_error_fix_from_list_fails): self.session
250            is destroyed in tearDown, so there's no need to do it in a test
251            case.
252    
253            * Thuban/Model/load.py (SessionLoader.open_shapefile): Remove a
254            debug print
255    
256    2004-12-13  Bernhard Herzog  <[email protected]>
257    
258            * Extensions/svgexport/test/test_svgmapwriter.py
259            (TestDrawSplines.setUp): Do not use super with the unittest
260            classes because in Python 2.2 they're still old-style classes.
261    
262    2004-12-13  Frank Koormann <[email protected]>
263    
264        Alternative Path feature: When loading a (moved) session where
265            shapefiles cannot be found, ask the user. Use the specified path
266            if further shapefiles are missing. However, ask the usr for confirmation
267            in such cases.
268    
269            * test/test_load.py (TestAltPath): New, tests for alternative path feature
270            in load_session()
271            (Shapefile_CallBack): Helper, implements controllable callback.
272    
273            * Thuban/UI/application.py (ThubanApplication.OnInit):
274            Added "alt_path" to self.path
275            (ThubanApplication.OpenSession): Added shapefile_callback as second
276            callback similar to db_connection_callback.
277            (ThubanApplication.run_alt_path_dialog): New, implementaion of
278            shapefile_callback. In addition to raising the dialog the control of
279            self.path('alt_path') is implemented here.
280    
281            * Thuban/Model/load.py (SessionLoader.__init__): Added shapefile_callback.
282            (SessionLoader.open_shapefile): Open shapefile, eventually with
283            alternative path. This wrapps the "theSession.OpenShapefile(filename)"
284            formerly used in start_fileshapesource()/start_layer().
285            (SessionLoader.start_fileshapesource): Call open_shapefile().
286            (SessionLoader.start_layer): Call open_shapefile().
287            (load_session): Added shapefile_callback.
288    
289            * Thuban/UI/altpathdialog.py: New, implements dialogs for alternative path
290            feature (search / check).
291            
292            * Doc/manual/thuban-manual.xml: Added documentation of new feature.
293    
294    2004-12-11  Bernhard Reiter <[email protected]>
295    
296             svgexport 0.9.2: Point size supports for maps.
297    
298            * Extensions/svgexport/svgmapwriter.py: Added import of SHAPETYPE_POINT
299            (def draw_point_shape): new parameter size defaults to 2 as before.
300            (draw_shape_layer_incrementally): Moved draw_func log line higher.
301            Added draw_func call with size when dealing with a point layer.
302    
303            * Extensions/svgexport/__init__.py: bumped version to 0.9.2.
304            
305    2004-12-11  Bernhard Reiter <[email protected]>
306    
307            Made sure that newlines are inserted in the svg path d attributes
308            to raise the chance that the line length will be below 255 characters,
309            as recommended by REC SVG 1.1 in section 8.3.1.
310    
311            * Extensions/svgexport/svgmapwriter.py(DrawPolygon):
312            Adding \n before L's and changed whitespace handling.
313    
314            * Extensions/svgexport/test/test_svgmapwriter.py:
315            Adapted tests to new whitespace handling of DrawPolygon.
316    
317    2004-12-11  Bernhard Reiter <[email protected]>
318    
319            * Doc/technotes/coding_guidelines.txt: easy typo fixed.
320    
321            * Extensions/svgexport/test/test_svgmapwriter.py:
322            Removed test_drawbezier in favour of new test_drawspline3 and
323            test_drawspline4 within new class TestDrawSplines(TestVirtualDC).
324            All only to test DrawSpline.
325    
326            * Extensions/svgexport/svgmapwriter.py(DrawSpline):
327            New implementation now really using the strange algorithm of
328            xfig 3.1's approximated splines and its conversion to postscript
329            with one twist: SVG can do quadratic beziers, so skipped translation
330            to cubic beziers.
331            (TestWithDC): Typo in comment fixed.
332    
333    2004-12-09  Martin Schulze  <[email protected]>
334    
335            * Thuban/Model/classgen.py: Added missing character encoding
336    
337            * Extensions/wms/properties.py (OpenWMSProperties): removed
338    
339            * Extensions/wms/parser.py (WMSCapabilitiesParser.error): Dropped
340            support for get_srs_discrepancies() since there are no
341            discrepancies anymore (was a thinko)
342    
343            * Extensions/wms/layer.py (WMSLayer.GetMapImg): Improved graphic
344            format priority now that more formats are supported globally by
345            the render engine.
346    
347    2004-12-08  Silke Reimer <[email protected]>
348            * Extensions/ogr/ogrshapes.py: Substituted ogr-method CloseRings
349            because it is not available in all versions of ogr
350    
351    2004-12-08  Bernhard Reiter <[email protected]>
352            * Extensions/ogr/__init__.py: Added empty __init__.py to heal
353            global tests until a real one is commited.
354    
355    2004-12-07 Nina H�ffmeyer <[email protected]>
356    
357            * /Extensions/ogr/: Adding a new extension to read shapefiles with
358            ogr. It is planned to add other vector formats.
359    
360            * /test/runtests.py: Adding tests from /Extensions/ogr/test/.
361    
362    2004-12-07  Jan-Oliver Wagner <[email protected]>
363    
364            * /Extensions/svgexport/test/test_svgmapwriter.py: Reverting
365            part of a (non-)fix to renable that the tests are always
366            executed.
367    
368    2004-12-07  Bernhard Reiter <[email protected]>
369    
370            * Extensions/svgexport/test/test_svgmapwriter.py:
371            Added test_drawbezier() to test DrawSpline().
372    
373            * Extensions/svgexport/svgmapwriter.py(DrawSpline):
374            Really implemented bezier drawing.
375    
376            * Extensions/svgexport/__init__.py: Bumped version of svgexport
377            to 0.9.1 because now the legend examples lines styles
378            will be drawing with beziers.
379    
380    2004-12-05  Martin Schulze  <[email protected]>
381    
382            * Thuban/UI/renderer.py (raster_format_map): Added PNG, TIFF and
383            GIF as supported bitmap image formats (helpful for the WMS extension)
384    
385    2004-11-30  Martin Schulze  <[email protected]>
386    
387            * Extensions/wms/test/test_ogclib.py (TestOGCLib.test_compareURLs):
388            Improved the test for the internal compare method
389    
390    2004-11-27  Jan-Oliver Wagner <[email protected]>
391    
392            * Thuban/UI/about.py (About.__init__): Added
393            Norbert Solymosi for hungarian translation and Ole Rahn
394            as contrbutor. Moved Bernhard Reiter from Contributor
395            to Developer.
396    
397    2004-11-27  Bernhard Reiter <[email protected]>
398    
399            * Extensions/svgexport/test/test_svgmapwriter.py:
400            Removed Jan from author list as he did not change enough significant
401            lines yet.
402    
403            * Extensions/svgexport/__init__.py: Added Bernhard as author
404            of the Extension.
405    
406    2004-11-27  Jan-Oliver Wagner <[email protected]>
407    
408            * po/hu.po: New. Hungarian translation. Contributed
409            by Norbert Solymosi.
410    
411    2004-11-26  Bernhard Herzog  <[email protected]>
412    
413            * Extensions/svgexport/test/test_svgmapwriter.py
414            (Testobjectexport.test_transparent_polygon): Commented out some
415            debug prints
416    
417    2004-11-24  Jan-Oliver Wagner <[email protected]>
418    
419            Fix broken tests for svg extension and added svg legend
420            to Experimental menu.
421    
422            * Extensions/svgexport/test/test_svgmapwriter.py: Fix to have
423            the test run correctly even if the extension is a package.
424            Also removed the "import Thuban" which makes no sense.
425    
426            * Extensions/svgexport/__init__.py: Fix to have the extensions'
427            test module also be executed from the global test routine.
428            This is done by looking for the absense of the DISPLAY variable.
429    
430            * Extensions/svgexport/maplegend.py: Moved the menu entry from Extensions
431            to Experimental menu since this module has yet not reached a stable
432            status (ie. 1.0).
433    
434    2004-11-22  Bernhard Reiter <[email protected]>
435    
436            * Extensions/svgexport/svgmapwriter.py:
437            Added verbose variable and some logging depending on it.
438            (class VirtualDC(XMLWriter)): Minor improvement in the polygon loop,
439            because counting i is not necessary.
440            (class Pen, class Brush): Added simple __str__ methods.
441            (SVGRenderer.draw_polygone_shape): Fix #2698 (transparent polygons are
442            not exported to svg file) Note: holes still unhandled.
443    
444            * Extensions/svgexport/test/test_svgmapwriter.py:
445                    Made a baseclass TestWithDC for test needed a DC.
446                    Added tests for bug #2698 (transparent polygons are not
447                    exported to svg file):
448                    Testobjectexport.test_transparent_polygon()
449    
450            * Thuban/Model/base.py (UnsetModified):
451            Fixed some typos in docstring.
452    
453            * Thuban/UI/baserenderer.py (BaseRenderer.draw_polygon_shape()):
454            Added hints on the used algorithm for handling holes.
455    
456    2004-11-20  Jan-Oliver Wagner <[email protected]>
457    
458            Some face lifting for the examples.
459    
460            * Examples/__init__.py: Make this directory a package.
461    
462            * Examples/simple_extensions/__init__.py: Make this directory a package.
463    
464            * Examples/simple_extensions/hello_world.py: Moved entry from Extensions
465            menu to Examples menu.
466    
467            * Examples/simple_extensions/simple_command.py: Some more comments,
468            minor changes.
469    
470            * Examples/simple_extensions/simple_tool.py: Minor changes.
471    
472    2004-11-20  Jan-Oliver Wagner <[email protected]>
473    
474            Changed way of extension registry for wms and added extension
475            registry for umn_mapserver extension.
476    
477            * Extensions/wms/__init__.py: Added registry entry and the importing
478            of the actual wms module. Included a test for the required PyOGCLib.
479    
480            * Extensions/wms/wms.py: Removed registry entry (moved to __init__.py).
481    
482            * Extensions/umn_mapserver/__init__.py: Added registry entry and the
483            importing of the actual umn mapserver management modules.
484            Included a test for the required Python MapScript.
485    
486    2004-11-20  Jan-Oliver Wagner <[email protected]>
487    
488            Changed way of extension registry for importAPR, bboxdump
489            and added extension registry for svgexport.extension registry for
490            svgexport.
491    
492            * Extensions/importAPR/__init__.py: Added registry entry and the importing
493            of the actual importAPR module.
494    
495            * Extensions/importAPR/importAPR.py: Removed registry entry (moved to
496            __init__.py).
497    
498            * Extensions/bboxdump/__init__.py: Added registry entry and the importing
499            ����of the actual bboxdump module.
500    
501            * Extensions/bboxdump/bboxdump.py: Removed registry entry (moved to
502            ����__init__.py).
503    
504            * Extensions/svgexport/__init__.py: Added registry entry and the importing
505            of the svgsaver module.
506    
507            * Extensions/svgexport/svgsaver.py: Moved the menu entry from Extensions
508            to Experimental menu since this module has yet not reached a stable
509            status (ie. 1.0).
510    
511    2004-11-18  Jan-Oliver Wagner <[email protected]>
512    
513            Now the hit test considers the size of point symbols.
514    
515            * Thuban/UI/viewport.py (ViewPort._hit_point): Added optional parameter
516            'size' defaulting to the previously fixed value 5.
517            Extended doc-string.
518            (Viewport._find_shape_in_layer): Resolved FIXME regarding flexibility
519            for symbols.
520            Now the size of the largest point symbol is determined to find out
521            about whether the point has been hit.
522            This fixes the problem that only clicks inside a fixed distance of
523            5 where found.
524    
525    2004-11-17  Jan-Oliver Wagner <[email protected]>
526    
527            Another open issue fixed regarding sizeable symbols: correct rendering of
528            selected symbols.
529    
530            * Thuban/UI/renderer.py (ScreenRenderer.draw_selection_incrementally):
531            Added consideration of the specific size of point symbols.
532            The property for each point symbol is retrieved and the size applied
533            for the rendering method.
534            Added doc-string.
535    
536    2004-11-16  Jan-Oliver Wagner <[email protected]>
537    
538            Changed way of Extension Registry for gns2shp and profiling.
539    
540            * Extensions/gns2shp/gns2shp.py: Removed registry entry (moved to
541            __init__.py).
542    
543            * Extensions/gns2shp/__init__.py: Added registry entry and the importing
544            of the actual gns2shp module.
545    
546            * Extensions/profiling/profiling.py: Removed registry entry (moved to
547            __init__.py).
548    
549            * Extensions/profiling/__init__.py: Added registry entry and the importing
550            of the actual profiling module.
551    
552    2004-10-28  Bernhard Reiter <[email protected]>
553    
554            * Extensions/svgexport/: Minor improvements to doc strings.
555    
556    2004-10-07  Jan-Oliver Wagner <[email protected]>
557    
558            Further elements for sizable point objects now
559            making this feature usable though not yet complete.
560    
561            * Thuban/Model/save.py (SessionSaver.write_classification): Write
562            attribute 'size' for cldata when the shape layer is of point type.
563            This also now make the test_load.py tests happy.
564    
565            * Thuban/Model/classgen.py (CustomRamp.GetProperties): Added size
566            gradient.
567    
568            * Thuban/UI/classifier.py (ID_SELPROP_SPINCTRL): Renamed to
569            ID_SELPROP_SPINCTRL_LINEWIDTH.
570            (ID_SELPROP_SPINCTRL_LINEWIDTH): New Id replaces ID_SELPROP_SPINCTRL.
571            (ID_SELPROP_SPINCTRL_SIZE): New Id.
572            (SelectPropertiesDialog.__init__): Added a second spin control
573            for the size in case the corresponding layer is of point type.
574            (SelectPropertiesDialog._OnSpin): Renamed to _OnSpinLineWidth.
575            (SelectPropertiesDialog._OnSpinLineWidth): New. Former _OnSpin.
576            (SelectPropertiesDialog._OnSpinSize): New. Set size of property
577            and refresh preview.
578    
579    
580    
581    2004-10-04  Martin Schulze  <[email protected]>
582    
583            * Extensions/wms/test/test_parser.py
584            (TestWMSCapabilitiesParser.test_compareLists): Added missing
585            self-test for compareLists()
586            (TestWMSCapabilitiesParser.test_compareDicts): Added missing
587            self-test for compareDicts()
588            (TestWMSCapabilitiesParser.test_compareLists): Adding more tests
589            to verify the test routine fails with non-equal arguments
590            (TestWMSCapabilitiesParser.test_compareDicts): Adding more tests
591            to verify the test routine fails with non-equal arguments
592    
593    2004-10-03  Jan-Oliver Wagner <[email protected]>
594    
595            First elements for sizeable point objects.
596    
597            * Resources/XML/thuban-1.1.dtd: Added size attribute to cldata.
598    
599            * Data/iceland_sample_size.thuban: New. Sample for sized point objects.
600    
601            * test/test_load.py (ClassificationTest.TestLayers): Added SetSize in case
602            of a corresponding argument is given.
603            (TestSymbolSize): New. Test the size attribute of cldata.
604    
605            * Thuban/Model/classification.py: Removed some trailing whitespaces.
606            (ClassGroupProperties.__init__): Set default size.
607            (ClassGroupProperties.SetProperties): Set the size.
608            (ClassGroupProperties.GetSize): New. Return the size.
609            (ClassGroupProperties.SetSize): New. Set the size.
610            (ClassGroupProperties__eq__): Compare also size.
611            (ClassGroupProperties__repr__): Print also size.
612    
613            * Thuban/Model/load.py (SessionLoader.start_cldata): Also parse
614            the size attribute.
615    
616            * Thuban/UI/classifier.py (ClassDataPreviewer.Draw): Added doc-string.
617            Also, now there is a return value that indicates whether the drawing
618            size exceeded the given rect extent and if so the new extent.
619            Finally, point objects are drawn depending on the size. If either
620            the width or height is exceeded, the new extent is returned.
621            (ClassRenderer.Draw): Now when calling the previewer drawing function,
622            evaluate the return value and, if not None, adapt the grid widget size
623            accordingly and redraw again.
624    
625            * Thuban/UI/baserenderer.py (BaseRenderer.draw_shape_layer_incrementally):
626            If the draw function is for points, call it with the size as additional
627            parameter.
628            (BaseRenderer.draw_point_shape): Added additional, optional parameter for
629            the size. Compute the radius using the size.
630    
631            * Extensions/importAPR/apr.py (APR_BMkSym.GetThubanProp): Now
632            that Thuban supports size, apply this correctly.
633    
634            * Extensions/importAPR/importAPR.py: Bumped version to 0.1.1.
635    
636    2004-10-03  Jan-Oliver Wagner <[email protected]>
637    
638            * Doc/manual/thuban-manual-de.xml: Started translation of
639            Map chapter.
640    
641    2004-10-01  Martin Schulze  <[email protected]>
642    
643            * Extensions/wms/properties.py (wmsProperties.__init__): Extended
644            argument for general use through properties-dialog selector
645            
646            * Thuban/UI/classifier.py: Register properties dialog classes for
647            both provided layer classes/types.
648    
649            * Thuban/UI/mainwindow.py (MainWindow.OpenLayerProperties): The
650            map can be retrieved through the parent which is passed to the
651            constructor anyway and doesn't require an argument of its own,
652            required for the unification of arguments for general use through
653            properties-dialog selector.
654            (MainWindow.OpenOrRaiseDialog): Move the logic for checking
655            whether a dialog is already opened (and raising it to the users
656            attention) and creating a new dialog into a function of its own
657            (MainWindow.OpenLayerProperties): Use the new OpenOrRaiseDialog()
658            method
659            (MainWindow.OpenLayerProperties): Utilise the new ClassMapper for
660            global registration of properties dialog classes (which are indeed
661            layer-specific).
662    
663            * Thuban/UI/classifier.py (Classifier.__init__): Unify arguments
664            for general use through properties-dialog selector, the map can be
665            retrieved through the parent and doesn't require an argument of
666            its own.
667    
668            * Extensions/wms/wms.py: Register the properties dialog class for
669            the provided WMS layer
670    
671    2004-09-28  Jan-Oliver Wagner <[email protected]>
672    
673            New feature: Registry for Extensions.
674    
675            * Thuban/UI/extensionregistry.py: This module defines a registry for
676            Extensions.
677    
678            * Thuban/UI/about.py (About.__init__): Added description
679            of the registered extensions with all of the information.
680    
681            * Thuban/Model/extension.py (Extension): Improved doc-string.
682    
683            * Extensions/gns2shp/gns2shp.py, Extensions/importAPR/importAPR.py,
684            Extensions/bboxdump/bboxdump.py, Extensions/profiling/profiling.py,
685            Extensions/wms/wms.py: Added registration of the extension.
686    
687    2004-09-27  Bernhard Reiter <[email protected]>
688    
689            More fixes to svgexport to make used ids unique and
690            conforming to XML's Name production.
691    
692            * Extensions/svgexport/test/test_svgmapwriter.py: Added new tests
693            test_xml_id_constraints(), test_make_ide_nosetbaseid() and
694            test_make_id_nonintegersetid().  Switched SetID and SetBaseID.
695            Added Bernhard R. as author.
696            * Extensions/svgexport/svgmapwriter.py (make_id): Using "_" as
697            concatenation char now (makes test_make_ide_nosetbaseid() valid).
698            Also transform second id part with "%d" and catch the TypeError
699            to raise SVGMapWriterError (making test_make_id_nonintegersetid() ok).
700            Corrected typo inBernhard's author line.
701            (SetBaseID): Return the transformed base id. Transform characters
702            which are not alnum() or in ".-_" to binascii.b2a_hex(). Added
703            import binascii. If to be set string starts with "xml" or so, add "t".
704            (draw_shape_layer_incrementally): use the returned value of SetBaseID
705            for used_baseids checks.
706    
707    2004-09-25  Bernhard Herzog  <[email protected]>
708    
709            * test/test_layer.py (TestLayer.test_arc_layer_with_projection):
710            Remove a debug print and some tab characters.
711    
712    2004-09-25  Bernhard Reiter <[email protected]>
713    
714            * Extensions/svgexport/svgmapwriter.py: Added Bernhard R. as Author.
715            (SetBaseID, SetID, make_id): Improved docstring comments to explain
716            the interaction of the three functions and the XML id contrains.
717    
718    
719    2004-09-23  Jan-Oliver Wagner <[email protected]>
720    
721            * Doc/ThubanModel.xmi: New. UML file for Thuban Model
722            Module.
723    
724            * Doc/README: Added info on ThubanModel.xmi.
725    
726    2004-09-23  Jan-Oliver Wagner <[email protected]>
727    
728            * Doc/README: New. Some info about how to generate technical
729            documentation from the source code.
730            This text was send to the Thuban developer mailing list on
731            September 21st 2004 by Bernhard Reiter.
732    
733    2004-09-21  Bernhard Reiter <[email protected]>
734    
735            Improved the svgexport to only use unique ids. Will issues
736            an error message dialoge when two layer names are the same.
737            ShapeIDs are now added with a dash within the svg ids.
738    
739            * Extensions/svgexport/svgmapwriter.py (SVGMapWriterError): New.
740            * Extensions/svgexport/test/test_svgmapwriter.py: Added imports
741            (TestSVGRenderer): New test class with test_make_in() and
742            test_check_for_layer_name_clash()
743            * Extensions/svgexport/svgmapwriter.py (SVGRenderer): Fixed __init__()
744            and draw_shape_layer_incrementally() to not use a baseid twice,
745            satisfying test_check_for_layer_name_clash()
746            (VirtualDC.make_id): Use a dash between baseit and id, satisfies
747            test_make_in().
748            * Extensions/svexport/svgsaver.py: Import SVGMapWriterError, wxOK
749            and wxICON_HAND.
750            (write_to_svg): Put dc and rendering in a try statement and on
751            catching SVGmapWriterError notify the user and delete the target file.
752    
753    2004-09-20  Bernhard Reiter <[email protected]>
754    
755            * Model/base.by, Model/layer.py: Fixed typos in docstrings.
756    
757    2004-09-03  Jan Sch�ngel  <[email protected]>
758    
759            * Extensions/umn_mapserver/mapfile(MF_Class.add_thubanstyle): Fix a
760            small bug with the line color. Now the line color will now only set
761            if it is set in Thuban an not Transparent.
762            
763            * Extensions/umn_mapserver/mf_export(tblayer_to_map): Fixed a bug with
764            deleting the layers from mapfile. Now all layers will delete backwards
765            from the last.
766    
767    2004-08-20  Silke Reimer <[email protected]>
768    
769            * Thuban/Model/layer.py:
770            Fixes bug in projection handling: Otherwise very large region might not
771            have valid values in the layer's projection.
772    
773    2004-08-20  Silke Reimer <[email protected]>
774    
775            * Thuban/UI/about.py:
776            small changes to be consistent with coding style.
777              
778    2004-08-13  Martin Schulze  <[email protected]>
779    
780            * Extensions/wms/test/test_ogclib.py (TestOGCLib.compare_URLs):
781            Adjusted a comment
782    
783    2004-08-11  Silke Reimer <[email protected]>
784    
785            * Thuban/UI/about.py: Small changes to encoding related stuff to avoid
786                    too many and too enhanced imports of locale
787    
788    2004-08-10  Silke Reimer <[email protected]>
789    
790            * Thuban/UI/about.py: Fixed encoding problem of about dialog: Added
791                    function unicodeToLocale() to convert special characters to users
792                    locale encoding
793    
794    2004-08-10  Jan-Oliver Wagner <[email protected]>
795    
796            * Doc/technotes/coding_guidelines.txt: Added rule 'Method names start with
797            lower case letter'
798    
799    2004-08-09  Jan Sch�ngel  <[email protected]>
800    
801            * ChangeLog: Rewrite the last ChangeLog entry to follow
802            the standard way.
803    
804            * Extensions/umn_mapserver/mapfile: Moved the import AnnotationLayer to
805            the function where it is needed, because it don't works if it stands
806            at the beginning.
807            (MF_Layer.__init__): Removed the extra numclassed variable. Now
808            numclasses from the mapscript will be used.
809            (MF_Layer.get_index): New. Return the index of the layer in mapfile.
810            (MF_Layer.set_classes): New. A Classlist will be set to the layer.
811            (MF_Layer.set_metadata): New. A Metadata mapscript object will set.
812            (MF_Layer.remove_allclasses): New. All class of the layer will remove.
813            (MF_Map.create_new_layer): New. A new Layer is created and associated
814            with the mapscript object.
815            (MF_Map.set_layerorder): New. The Layer order like in thuban is set in
816            the mapscript.
817            (MF_Map.add_thubanlayer): Now a new layerobj is created if no one is
818            linked to the layer in thuban, else the layerobject linked to the
819            thubanlayer will be used.
820            AnnotationLayer will now store the filename of the shapefile.
821            (MF_Map.remove_layer): If a layer is removed the associated object
822            must be set new.
823            
824            * Extensions/umn_mapserver/mf_export.py(tb_layer_to_map): Add all
825            layers which are exists in thuban to the mapobj. All removed Layers
826            will be removed from the mapobj.
827            Added comments to all functions.
828            (thuban_to_map): No layer will be removed here.
829            
830            * Extensions/umn_mapserver/mf_handle.py
831            (_has_umn_mapobj_and_selectedlayer): Activating the layer menu. Now
832            Layersettings for the mapserver kann be edited.
833    
834            * Extensions/umn_mapserver/mf_import.py: Now all layers which are
835            imported, will be linked with the associated MF_Layer.
836            (import_mapfile): All layers, which are not selected, will be removed.
837            Disable the "import layer from mapfile" menu option.
838    
839            * Extensions/umn_mapserver/sample/iceland.map: Set the status of the
840            Annotation Layer from DEFAULT to OFF. The DEFAULT setting turns the
841            layer on permanently.
842    
843    2004-08-03  Jan Sch�ngel  <[email protected]>
844    
845            * Extensions/umn_mapserver/mapfile.py(MF_Metadata.remove_allmetadata):
846            New. This function removes all metadata
847            (MF_Layer.set_group): New. Set the group setting.
848            (MF_Layer.get_group): New. Get the group setting.
849            (MF_Map): Removed the extra numlayers variable, used the mapscript
850            parameter instead.
851            (MF_Map.get_numlayers): New. This get numlayers.
852            (MF_Map.remove_all_layers): New. Removes all layers from the mapobj.
853            (MF_Map.add_thubanlayer): Replaced the exception handling by a check
854            if the object is an instance. Also added the annotation layer here to
855            export, but only the layer is created in the mapfile.
856    
857            * Extensions/umn_mapserver/mf_export.py(export_mapfile): Removed
858            the check if a mapobj exist, because its not needed anymore. The
859            export function is only available if a mapobj exist.
860            Use the new function to remove all layers.
861            
862            * Extensions/umn_mapserver/mf_handle.py(Layer_Dialog): Added a group
863            option and the metadata button. The layer dialog is temporary disabled.
864            (Metadata_CustomDataTable): Added some functions to show the grid
865            correct.
866    
867            * Extensions/umn_mapserver/mf_import.py: Moved the code for showing
868            the number of layer from import_mapfile to this function.
869            (AnnotationLayer): New. This Class shows the Annotation layer in
870            thuban. The layer don't do anything. It's only to show the layer
871            and to save the layer order.
872            (add_annotationlayer): New. Import an annotation layer to thuban.
873            (select_layer2import): New. Import only layers to thuban and not
874            the other settings like projection or scalebar.
875            (create_new_mapfile): Moved the _has_umn_mapobj function and the
876            create_new_mapfile functions from mf_handle.py to mf_import.py.
877            
878            * Extensions/umn_mapserver/sample/iceland.map: Added the group
879            parameter to the roads and cultural layers. Also added a new
880            Annotation Layer for the cultural points.
881    
882            * Extensions/umn_mapserver/sample/iceland.html: Added the select
883            option for the annotation layer.
884    
885            * Extensions/umn_mapserver/sample/index.html: Added the start
886            parameter for the annotation layer.
887    
888    2004-08-01  Jan-Oliver Wagner <[email protected]>
889    
890            * Doc/manual/thuban-manual-de.xml (Chapter Session Management):
891            translation completed.
892    
893            * Doc/manual/thuban-manual.xml (Chapter Session Management):
894            Fixed unprecise description for Save Session.
895    
896    2004-07-31  Jan-Oliver Wagner <[email protected]>
897    
898            Started translation of Users Manual into german.
899    
900            * Doc/manual/thuban-manual-de.xml: New. German Users Manual.
901    
902            * Doc/manual/Makefile: Added build instructions for german
903            users manual.
904    
905            * Doc/manual/thuban-manual.xml: Minor corrections in Introduction.
906    
907    2004-07-28  Jan Sch�ngel  <[email protected]>
908    
909            * Extensions/umn_mapserver/mapfile.py(MF_Metadata): Changed all class
910            functions. Now all metadata will handle by the function and its not
911            needed to initialize it from outside. Therefor the associated mapobj
912            will be stored in the Metadata Object. So we can use the special
913            functions from the associated mapobj to get the Metadata.
914            Therefor all initialization code for the metadata is removed from the
915            other classes.
916            (MF_Layer): Added a function to get the metadata object.
917            (MF_Map): Added a function to set the mappath, the path where
918            the mapfile ist stored.
919    
920            * Extensions/umn_mapserver/mf_export.py(thuban_to_map): Changed the code
921            to set the extent in the mapfile. Now the code is set by the displayed
922            data in the Thuban-view.
923            (export_mapfile): The shapepath is now set empty, until relative
924            pathnames are supported.
925    
926            * Extension/umn_mapserver/mf_handle.py: Added a dialog to handle
927            metadata. Yet only mapfile metadata are supported. Layer and class
928            supported are not implemented.
929            Added a dialog to handle layer informations. The dialog only shows the
930            selected layer at the moment.
931    
932            * Extensions/umn_mapserver/mf_import.py(import_mapfile): Changed the
933            code for setting the extent in thuban. Now the extent is set to the
934            given extent from the mapfile.
935            Fixed a logical mistake. Now the extent is set when realy a layer is
936            loaded, and not if one is selected to load.
937    
938            * Extensions/umn_mapserver/sample/iceland.html: Added code to zoom and
939            move the shown map in the browser.
940    
941            * Extensions/umn_mapserver/sample/iceland.map: Added a new metadata
942            line to the mapobj and added metadata to the political layer.
943    
944            * Extensions/umn_mapserver/test/test_mapserver.py: Changed the test
945            for Metadata.
946    
947    2004-07-26  Martin Schulze  <[email protected]>
948    
949            * Thuban/Lib/classmapper.py (ClassMapper.has): Added the new
950            ClassMapper
951    
952            * test/test_classmapper.py (TestMapping.test_mapper): Added a Test
953            case for the new ClassMapper
954    
955    
956    2004-07-22  Bernhard Herzog  <[email protected]>
957    
958            * Thuban/UI/viewport.py (ViewPort.VisibleExtent): New.  Return the
959            visible extent of the map in projected coordinates
960    
961            * test/test_viewport.py (SimpleViewPortTest.test_default_size)
962            (SimpleViewPortTest.test_init_with_size): Add some VisibleExtent()
963            tests.
964            (SimpleViewPortTest.test_visible_extent): New. The real test for
965            VisibleExtent()
966    
967    2004-07-22  Bernhard Herzog  <[email protected]>
968    
969            * test/test_viewport.py: Use support.run_tests as the main
970            function when running asa script.
971    
972    2004-07-22  Jan Sch�ngel <[email protected]>
973    
974            * Extensions/umn_mapserver/mf_export.py: Added "import os"
975            Removed the old "import Thuban.UI.mainwindow" code.
976            (tbextent_to_map): Removed the extra function and at the code direct
977            to "thuban_to_map" function.
978            (write_creatorcomment): Added. Now a short comment is added to the
979            beginning of an generated mapfile.
980            (export_mapfile): Now the Path and filename are saved in to variables,
981            and not together in one variable. This is needed for the new
982            write_creatorcomment function.
983                    
984            * Extensions/umn_mapserver/mf_import.py (import_mapfile): Added the
985            import module "re". Also added Range and the ClassGroupRange import
986            from Thuban. Both are needed for the new range expression import.
987            (create_rangeexpression): Added. Creates a Range Expression in Thuban
988            style from a given mapfile expression.
989            (added_rasterlayer): Make some small code changes. The shapepath is
990            now stored in an extra variable and the clazz_name is set empty if no
991            class name set in the mapfile.
992            Changed the Error message for Range Expressions, becaus the new
993            function create a error string which will be shown in the dialog.
994    
995            * Extensions/umn_mapserver/test/test_mapserver.py: Added a test for the
996            range expression import.
997    
998    2004-07-21  Jan-Oliver Wagner <[email protected]>
999    
1000            * Extensions/umn_mapserver/README: Added hint that
1001            installation as root can be avoided. Removed all tabs.
1002    
1003    2004-07-16  Bernhard Herzog  <[email protected]>
1004    
1005            * test/test_viewport.py
1006            (ViewPortTest.test_changing_map_projection): Check that changing
1007            the projection of an empty map shown in a viewport doesn't lead to
1008            exceptions in the viewport's handler for the
1009            MAP_PROJECTION_CHANGED messages
1010    
1011            * Thuban/UI/viewport.py (ViewPort.map_projection_changed): Only
1012            try to keep the same region visible when the map actually contains
1013            something
1014    
1015    2004-07-15  Jan Sch�ngel <[email protected]>
1016    
1017            * Extensions/umn_mapserver/mapfile.py: Added a function to get the
1018            mappath directly from the mapobj. Is needed because of the changes
1019            in mf_import.py.
1020            (MF_Layer.add_thubanclass): Added a new comment.
1021            (MF_Map.set_extent): Fixed a bug with exporting empty mapobj. If the
1022            mapobj is empty there is no extent get from thuban an so no one can
1023            set to th mapobj.
1024            
1025            * Extensions/umn_mapserver/mf_import.py (import_mapfile): Updated
1026            the discription.
1027            Split the funktion in to three smaller ones. The new functions are
1028            add_rasterlayer, add_polygonlayer and select_layer2import.
1029            Removed the mapfilepath and filepath initialisation, because its know
1030            include in the new functions.
1031            Now nothing will be imported if cancel is pressed in the
1032            layer choice dialog.
1033    
1034    2004-07-14  Jan Sch�ngel <[email protected]>
1035    
1036            * Extensions/umn_mapserver/mapfile.py: Added ClassGroupDefault to
1037            import.
1038            (MF_Symbolset): Removed the extra variable for numsymbols.
1039            (MF_Class.__init__): Added a comment to the exception clause.
1040            Removed the extent init, because it was not needed anymore.
1041            (MF_Layer.add_thubanclass): Added the code to set the class name to
1042            the expression value from thuban if no label is defined.
1043            Added the code to export Range expressions from thuban to the mapfile.
1044            (MF_Map.set_extent): Removed the exception and replace it by some if
1045            code. If the size of a map is not defined the size will be set to 1,1.
1046            This is necessary because if the extent is set, mapscript checks if
1047            the size is greater than zero.
1048            (MF_Web): Added the get and set function for the template.
1049    
1050            * Extensions/umn_mapserver/mf_export.py: Added the function to check
1051            if a mapobject exists and used it to set the status of the menu items.
1052            If no mapfile exists the settings could not be edditied.
1053            Define after which menuitem the exportitem will include.
1054            
1055            * Extensions/umn_mapserver/mf_handle.py: Removed the import
1056            Thuban.UI.mainwindow clause, because it is not needed.
1057            Added the command Refresh() to all "OnChangeColor()" functions,
1058            because the color preview window was not updated on a color change.
1059            Added the function to check if a mapobject exists and used it to set the
1060            status of the menu items. If no mapobject exists the settings could not
1061            be edditied.
1062            (Map_Dialog): Moved the imagetype selector from the
1063            Outputformat_Dialog to Map_Dialog and removed Outputformat_Dialog.
1064            (Web_Dialog): Removed the name label and added the template textbox.
1065    
1066            * Extensions/umn_mapserver/mf_import.py (import_mapfile): Replace
1067            the exception handling on loading the layers by an if statement. It
1068            is not necessary to us the exception there.
1069            The Filepath creation now use os.path.join to build the path.
1070    
1071            * Extensions/umn_mapserver/test/test_mapserver.py: Moved the testMap
1072            definition from global to the setUp function. Now the testMap will
1073            initialize new on each test.
1074    
1075            * Extensions/umn_mapserver/sample/iceland.map: Include three new
1076            classes in the Line Layer, to test logical Expressions.
1077            Set the status of the class "Point9" in the Point Layer to off
1078            
1079    2004-07-13  Bernhard Herzog  <[email protected]>
1080    
1081            * Thuban/UI/baserenderer.py
1082            (BaseRenderer.render_map_incrementally): Fix a logic bug in the
1083            optimization that tries not to draw layers under a raster layer.
1084            The bug was harmless.  All it effectively did was to produce The a
1085            strange messages about not being able to draw Layer instances for
1086            all vector layers below a raster layer which would be invisible
1087            anyway because the raster layer currently always covers the entire
1088            window
1089    
1090    2004-07-08  Jan Sch�ngel <[email protected]>
1091    
1092            * Extensions/umn_mapserver/mapfile.py: Added code to generade and get
1093            a list of supported outputformats. This formats are not alle supported
1094            because there is no possibility to get the outputformat without the
1095            name known. Make some formal changes to the code.
1096            (MF_Map.set_name()): Fixed a bug if the name is None.
1097    
1098            * Extensions/umn_mapserver/mf_handle.py: Removed the image_type import
1099            statement, because its not needed anymore. The Outputformat is now
1100            given as string from the object. Make some formal changes to the code.
1101    
1102            * Extensions/umn_mapserver/test/test_mapserver.py: Added new test for
1103            most of the new setting which were added during the last changes.
1104            Removed the MF_Size Test.
1105            
1106            * Extensions/umn_mapserver/test/test.map: Added a new class to the
1107            cultural Layer to test expressions and the the status of that layer
1108            from on to default.
1109            Changed the data path the the correct Thuban Data
1110            Added the Outputformat Object and Symbol Object
1111            
1112    2004-07-07  Jan Sch�ngel <[email protected]>
1113    
1114            * Extensions/umn_mapserver/mapfile.py: Added some new
1115            settings to edit (outputformat, label, imagetype)
1116    
1117            * Extensions/umn_mapserver/mf_handle.py: Added some setting to
1118            the Label Dialog and add the OutputDialog.
1119            Make some changes to the code order.
1120    
1121    2004-07-06  Jan Sch�ngel <[email protected]>
1122    
1123            * Extensions/umn_mapserver/mapfile.py: Added the symbolObj, pointObj
1124            and line Obj and add the scalebar_status_type, scalebar_style_type and
1125            scalebar_position_type.
1126            Added the symbol- and symbolsetObject (MF_Symbol,MF_Symbolset). The
1127            are only used to create a Symbol like the circle in Thuban.
1128            Added the scalebarObject (MF_Scalebar)
1129            (MF_Class): Added set_status and get_status.
1130            (MF_Layer.add_thubanclass): Added code to set the class status
1131            (MF_Map): Added code to handle the symbols and scalebar
1132            (MF_Label): Added the set_partials and get_partials functions
1133            
1134            * Extensions/umn_mapserver/mf_export.py: Added MF_Symbol to import
1135            from mapfile. Added a function to create a circle object like the one
1136            from thuban if no one exists.
1137            
1138            * Extensions/umn_mapserver/mf_handle.py: All colors are now set when
1139            press ok in the assosiated dialog and not at the end of the
1140            colordialog.
1141            Added the Dialog for the Scalebar.
1142            (Label_Dialog): Added the offset option
1143    
1144            * Extensions/umn_mapserver/mf_import.py: Added code to import the
1145            status of the Classes.
1146            Fixed a bug with the projection. Now the to_meter parameter will be
1147            added to the Projection only if it doesn't exists.
1148    
1149    2004-07-01  Jan Sch�ngel <[email protected]>
1150    
1151            Added the functionality to handle the content thuban is not
1152            able to handle directly.
1153    
1154            * Extensions/umn_mapserver/mf_handle.py: New. This module extents
1155            Thuban with the possibility to edit the mapfile content.        
1156            
1157            * Extensions/umn_mapserver/mf_import.py: Added the possibility
1158            to import mapfiles without any layer selected. So it is possible
1159            to edit the other settings in a mapfile.
1160            (import_mapfile): Added code to use the editing functions.
1161            Added the possibility to import the projection to a layer if one
1162            is defined.
1163            Status settings (On,Off) will now set in thuban (visible, invisible).
1164            fixed a bug with with classnames. If no classname is set in mapfile
1165            the value in Thuban will set to the expression.
1166            
1167            * Extensions/umn_mapserver/mf_export.py(export_mapfile): Added the
1168            possibility to save a new mapfile or use the old one which is
1169            imported or new created.
1170            Added code to use the editing functions.
1171            Remove some not needed import statements
1172    
1173            * Extensions/umn_mapserver/mapfile.py: Added new types which are
1174            need for the editing functions.
1175            Added needed set-functions for the editing functions.
1176            Added the possibility to export rasterimages.
1177            Added new classes (MF_Web, MF_Label, MF_Legend, MF_Symbol,
1178            MF_SymbolSet). MF_Symbol and MF_SymbolSet are not needed at the
1179            moment.
1180            (MF_Class.set_thubanstyle): Now point layers will set to a default
1181            symbol to show a circle in mapserver and not only a 1px dot.
1182            (MF_Style.__init__): Fixed a bug with the color. Color was not set
1183            correct before.
1184            (MF_Size): Removed, because it is not needed.
1185            
1186            * Extensions/umn_mapserver/README: Added the hints to use the
1187            export and editing functions, too.
1188    
1189            * Extensions/umn_mapserver/sample/iceland.map: Added the
1190            new parameter "UNITS METERS".
1191            Change the political layer to status OFF.
1192    
1193            * Extensions/umn_mapserver/sample/README: Added some
1194            more details to setup the sample in the MapServer.
1195            
1196    2004-06-26  Bernhard Reiter <[email protected]>
1197    
1198            * Extensions/svgexport/test/test_svgmapwriter.py:
1199            Removed class VFile and used standard StringIO instead.
1200    
1201    2004-06-23  Jan Sch�ngel  <[email protected]>
1202    
1203            Add the export function to the umn_mapserver extension.
1204    
1205            * Extension/umn_mapserver/mf_export.py: New. This module extents
1206            Thuban with the possibility to export the Thuban content.
1207    
1208            * Extensions/umn_mapserver/mapfile.py: Expand the classes to use
1209            with the export module. Especially added the possibility to
1210            add thuban objects directly to the map objects.
1211    
1212            * Extensions/umn_mapserver/mf_import.py: Removed the wxCHANGE_DIR,
1213            because of the hint from Bernhard Herzog.
1214            Corrected the handling of absolute pathnames.
1215            Changed the Text of the Menu-Item, now the beginning is upper case.
1216    
1217            * Extensions/umn_mapserver/README: Added the --with-tiff statement.
1218    
1219    2004-06-16  Jan Sch�ngel  <[email protected]>
1220    
1221            Add a sample and make some changes.
1222    
1223            * Extension/umn_mapserver/mf_import.py: Changed the wxPython.wx
1224            import from * to explicit used statements. Changed the
1225            Thuban.UI.mainwindow import phrase, too.
1226            (import_mapfile):Corrected a clerical mistake.
1227            Added wxCHANGE_DIR in OpenFile Dialog.
1228            Added a MultipleChoiceDialog, to select the layers to load from
1229            mapfile into thuban. Thereby the projection is only set if one layer
1230            is selected.
1231            Added the possibility to handle relative pathnames which uses
1232            up-level references.
1233            Removed some doubled code.
1234            Corrected an error with integer values used as label in thuban
1235            ClassGroup.
1236            
1237            * Extensions/umn_mapserver/sample: New.
1238    
1239            * Extensions/umn_mapserver/sample/README: New. Describes the
1240            usage of the sample files.
1241    
1242            * Extensions/umn_mapserver/sample/iceland.map: New. This is
1243            a suitable .map-file for the iceland data.
1244    
1245            * Extensions/umn_mapserver/sample/index.html: New. The template
1246            for the mapfile.  
1247    
1248            * Extensions/umn_mapserver/sample/iceland.html: New. Initialisation
1249            file for the Iceland Application on web.
1250    
1251            * Extensions/umn_mapserver/README: Corrected a inaccuracy and added
1252            some details.
1253    
1254            * Extensions/umn_mapserver/test/test_mapserver
1255            (mapserver_import_Test_generalClasses.test_MF_Color):
1256            Corrected the thubancolor test.
1257    
1258    2004-06-15  Jan Sch�ngel  <[email protected]>
1259    
1260            * Extensions/umn_mapserver/README: New. Install instruction.
1261    
1262    2004-06-14  Bernhard Reiter <[email protected]>
1263    
1264            * libraries/thuban/cpl_mfile.h: Added copyright header.
1265    
1266            * libraries/thuban/ cpl_mfile.cpp, cpl_mfile.h: Added non-protecting
1267            Free Software License so that it is most useful with gdalwarp
1268            and bmpdataset.
1269    
1270    2004-06-14  Bernhard Herzog  <[email protected]>
1271    
1272            * Thuban/UI/multiplechoicedialog.py (__version__): Add missing
1273            import of wxPython.wx itself (as opposed to the contents of
1274            wxPython.wx).  For some reason wxPython.wx is available as
1275            wxPython.wx.wx in at least some 2.4 releases.  Fixes RT#2482
1276            wrt. wxPython 2.4.
1277    
1278    2004-06-10  Jan Sch�ngel  <[email protected]>
1279    
1280            Initial version of new extension "umn_mapserver".  This extension aims
1281            to manage configuration for the UMN MapServer application.  This
1282            inital version just imports the .map-files and displays all, Thuban is
1283            capable of.
1284    
1285            * Extensions/umn_mapserver, Extensions/umn_mapserver/test: New.
1286    
1287            * Extensions/umn_mapserver/test/README: New. Describes how to run the
1288            tests.
1289    
1290            * Extensions/umn_mapserver/test/test.map: New. This is a test
1291            .map-file for automated tests of the umn_mapserver extension of
1292            Thuban.
1293    
1294            * Extensions/umn_mapserver/test/test_mapserver.py: New. Tests for
1295            UMN Mapserver classes.
1296    
1297            * Extensions/umn_mapserver/__init__.py: New. Init to make this
1298            directory a package.
1299    
1300            * Extensions/umn_mapserver/mapfile.py: New. Classes to represent
1301            '.map'-file objects.
1302    
1303            * Extensions/umn_mapserver/mf_import.py: New. This module extends
1304            Thuban with the possibility to handle UMN MapServer mapfiles.
1305    
1306    2004-06-03  Bernhard Herzog  <[email protected]>
1307    
1308            * Thuban/Model/layer.py (Layer.TreeInfo): Convert the bounding box
1309            to a tuple before using it as arguments to the % operator.  This
1310            fixes the formatting issue filed in RT#2239 on 2004-01-13 and
1311            reported today on thuban-list by Jan Sch�ngel
1312    
1313            * test/test_layer.py (TestLayerModification.setUp): Save the
1314            filename as an instance variable so we can refer to it in tests
1315            (TestLayerModification.test_tree_info): Uncomment this method
1316            again and make it work.  This tests for the formatting issue
1317            filed in RT#2239 on 2004-01-13
1318    
1319    2004-05-28  Bernhard Herzog  <[email protected]>
1320    
1321            * Thuban/UI/baserenderer.py: Fix some typos.
1322    
1323    2004-05-18  Jan-Oliver Wagner <[email protected]>
1324    
1325            * Extensions/gns2shp/gns2shp.py (gns2shp): Fixed a bug
1326            by increasing a field size.
1327    
1328    2004-05-17  Bernhard Herzog  <[email protected]>
1329    
1330            Update to newest shapelib and get rid of Thuban specific
1331            extensions, i.e. use the new DBFUpdateHeader instead of our
1332            DBFCommit kludge
1333    
1334            * libraries/shapelib/shpopen.c: Update to version from current
1335            shapelib CVS.
1336    
1337            * libraries/shapelib/shapefil.h: Update to version from current
1338            shapelib CVS.
1339    
1340            * libraries/shapelib/dbfopen.c: Update to version from current
1341            shapelib CVS.
1342            (DBFCommit): Effectively removed since shapelib itself has
1343            DBFUpdateHeader now which is better for what DBFCommit wanted to
1344            achieve.  
1345            We're now using an unmodified version of dbfopen.
1346    
1347            * setup.py (extensions): Add the HAVE_UPDATE_HEADER macro with
1348            value '1' to the Lib.dbflibc extension.  This simply reflects the
1349            shapelib and pyshapelib updates
1350    
1351    2004-05-16  Jan-Oliver Wagner <[email protected]>
1352    
1353            Finished introduction of Menu.FindOrInsertMenu.
1354    
1355            * Extensions/drawshape/drawshape.py: Add the command
1356            to the experimental menu additionally to the toolbar.
1357    
1358            * Extensions/svgexport/svgsaver.py: Use FindOrInsertMenu() instead of
1359            finding menu on its own.
1360    
1361            * Doc/manual/thuban-manual.xml: updated sample file
1362            to use FindOrInsertMenu().
1363    
1364            * Examples/simple_extensions/hello_world.py: Use FindOrInsertMenu()
1365            instead of finding menu on its own.
1366    
1367    2004-05-11  Jan-Oliver Wagner <[email protected]>
1368    
1369            * test/test_menu.py (MenuTest.test): Added testing
1370            of method Menu.FindOrInsertMenu.
1371    
1372    2004-05-10  Jan-Oliver Wagner <[email protected]>
1373    
1374            Introduce and use Menu.FindOrInsertMenu.
1375    
1376            * Thuban/UI/menu.py (Menu.FindOrInsertMenu): New. Find a
1377              given menu or, if not found, insert it.
1378    
1379            * Extensions/bboxdump/bboxdump.py, /Extensions/gns2shp/gns2shp.py,
1380            /Extensions/importAPR/importAPR.py, Extensions/profiling/profiling.py,
1381            /Extensions/wms/wms.py: Use FindOrInsertMenu() instead of finding
1382            menu on its own.
1383    
1384    2004-05-06  Jan-Oliver Wagner <[email protected]>
1385    
1386            Introduce a abstract ColorDialog class and remove
1387            and outdated file.
1388    
1389            * Thuban/UI/proj4dialog.py: Removed. It is has been
1390            replaced by projdialog for quite a while and is not used
1391            anymore.
1392    
1393            * Thuban/UI/colordialog.py: New. Abstraction for color selection
1394            dialog(s).
1395    
1396            * Thuban/UI/classifier.py (SelectPropertiesDialog.__GetColor):
1397            Now calls the abstract ColorDialog instead of wxColourDialog.
1398            This also removed the dependency to Color class conversion
1399            from this function.
1400    
1401    2004-05-04  Frank Koormann  <[email protected]>
1402    
1403            * Extensions/bboxdump/__init__.py: Fixed string left over from
1404            copying.
1405    
1406            * Extensions/bboxdump/bboxdump.py (bboxdump):
1407            Use layer.ShapeStore().AllShapes() to loop over shapes instead of
1408            xrange(layer.NumShapes()). Compile the bboxmessage from a list
1409            of formatted outputs (string.join) instead of appending to the
1410            message. Two progress bar dialogs to report progress on the sometimes
1411            lenghty processing.
1412    
1413    2004-04-22  Frank Koormann  <[email protected]>
1414    
1415            New Extension to dump bounding boxes of all shapes of the selected
1416            layer. An optional column can be specified to group the objects,
1417            in this case the bounding box is a union of the separate boxes.
1418            Dump can be displayed in a ScrolledMessageDialog or written to file.
1419            The Extension is simply a combination of available and well tested
1420            Thuban functionality.
1421    
1422            * Extensions/bboxdump/__init__.py: New: Init to make this
1423            directory a package.
1424    
1425            * Extensions/bboxdump/bboxdump.py: New: Dump bounding boxes of
1426            all shapes of the selected layer.
1427    
1428    2004-04-22  Jan-Oliver Wagner <[email protected]>
1429    
1430            * Thuban/UI/classgen.py (GenUniquePanel.__init__): Fixed two
1431            strings to be i18n now.
1432    
1433    2004-04-18  Jan-Oliver Wagner <[email protected]>
1434    
1435            Changing popup menu of legend from direct building
1436            to using the Menu construction as used for the mainwindow.
1437    
1438            * Thuban/UI/mainwindow.py: New method commands: layer_to_top,
1439            layer_to_bottom, layer_visibility
1440            (MainWindow.LayerToTop): New. Put current layer to the top.
1441            (MainWindow.LayerToBottom): New. Put current layer to bottom.
1442            (MainWindow.HideLayer, MainWindow.ShowLayer, _has_visible_map):
1443            Replace 1,0 by True, False.
1444            (MainWindow.ToggleLayerVisibility): New. Toggle visibility of
1445            current layer.
1446            (MainWindow.LayerShowTable): Removed raising of dialog.
1447            (_has_selected_layer_visible): New. Support function.
1448    
1449            * Thuban/UI/legend.py: ID_POP_xxx: removed.
1450            (LegendPanel.__init__): Removed EVT_MENU bindings.
1451            (LegendTree._OnRightClick): Replace direct creation of
1452            menu via wx Classes by applying the menu definition
1453            as of Menu class of menu.py.
1454            
1455    2004-04-16  Jan-Oliver Wagner <[email protected]>
1456    
1457            * Thuban/UI/exceptiondialog.py (ExceptionDialog.dialog_layout): Improved
1458        button string to stronger clearify that Thuban will be closed when hitting
1459            the button.
1460    
1461            * Thuban/UI/mainwindow.py (MainWindow.LayerShowTable): Added docstring.
1462            Now for layers without a ShapeStore a corresponding message is given
1463            to the user, that this layer has no table to show.
1464    
1465    2004-04-15  Martin Schulze  <[email protected]>
1466    
1467            * Extensions/wms/layer.py (WMSLayer.setWMSFormat): Need to
1468            recalculate the format for the internal render engine as well.
1469    
1470            * Extensions/wms/properties.py (wmsProperties): First start for a
1471            properties dialog.  It's functional for a first selection of
1472            layers, but still has some weired wxWidgets/GTK problems but
1473            beautification can be done later.
1474    
1475            * Extensions/wms/layer.py: Added more documentation
1476            (WMSLayer.getFormats): New: Return list of supported image formats
1477            by the WMS server
1478            (WMSLayer.getLayers): New: Return the list of layer names
1479            supported by the WMS server
1480            (WMSLayer.getLayerTitle): New: Return the title of the named layer
1481            (WMSLayer.getWMSFormat): New: Return the image format that is used
1482            for WMS GetMap requests
1483            (WMSLayer.setWMSFormat): New: Set the image format that is used
1484            for WMS GetMap requests
1485            (WMSLayer.__init__): Move away from using only one layer to using
1486            a list of layers (unsorted at the moment, though).
1487            (WMSLayer.getVisibleLayers): New: Return the list of names for all
1488            visible layers
1489            (WMSLayer.setVisibleLayers): New: Set the list of names for all
1490            visible layers
1491    
1492            * Extensions/wms/wms.py: Moved the WMS layer into layer.py in
1493            order to establish a clean structure.
1494    
1495            * Extensions/wms/layer.py: Moved the WMS layer into a file on its
1496            own in order to establish a clean structure.
1497    
1498    2004-04-13  Martin Schulze  <[email protected]>
1499    
1500            * Extensions/wms/parser.py (WMSCapabilitiesParser.grok): Added
1501            support for oldstyle (WMS 1.0 apparently) image format
1502            specification.
1503    
1504            * Extensions/wms/wms.py (WMSLayer.calcFormat): Reduce the list of
1505            supported graphic formats back to JPEG and BMP, PNG and others are
1506            too *cough* experimental...  Sorry, I meant to filter this out
1507            before I committed this part.  This should make the WMS extension
1508            run from CVS again.
1509            (wms_dialog): Reset an empty URL to None so that the subsequent
1510            program can depend on this, since the dialog will indeed return an
1511            empty URL, causing another declaration of love by Python.
1512    
1513            * Extensions/wms/parser.py (WMSCapabilitiesParser.getLayerBBox):
1514            Whenever a native BoundingBox request cannot be fulfilled, check
1515            whether the requested SRS is EPSG:3426, in which case return the
1516            LatLonBoundingBox values.
1517    
1518            * Extensions/wms/test/test_parser.py
1519            (TestWMSCapabilitiesParser.test_LayerSRS): Added a test for
1520            ignoring AUTO:* SRS.
1521            (TestWMSCapabilitiesParser.test_LatLonBoundingBoxes_as_bboxes):
1522            Added another test method to test whether the LatLonBoundingBox
1523            values will be returned if BoundingBox values are requested with
1524            SRS set to EPSG:3426.
1525    
1526            * Extensions/wms/parser.py (WMSCapabilitiesParser.peekLayers):
1527            Added rudimentary support for non-EPSG SRS, i.e. ignore them for
1528            the moment by placing them into a variable which is currently
1529            unused.  Also test whether the EPSG SRS is numerical as it should
1530            be and add an error message if it is not.
1531    
1532            * Extensions/wms/test/sample.xml: Added AUTO:* SRS since they
1533            appear in the real world as well.  Since we cannot handle them yet
1534            (OGCLib can't either), we will ignore them for the moment.
1535    
1536            * Extensions/wms/parser.py: Use a variable for denoting the sample
1537            filename
1538            (WMSCapabilitiesParser.peekLayers): Added support for error
1539            messages during grok().  They will be aggregated in an array and
1540            may be displayed later.  We may have to add a classification
1541            "Warning" and "Error" to this.  That requires more experience,
1542            though, since not every error may be lethal.
1543    
1544            * Thuban/UI/mainwindow.py (MainWindow.LayerShowTable): Raise the
1545            ShowTable() dialog/frame when the user attempts to display it
1546            while it has been opened before already and not closed again.
1547    
1548    2004-04-11  Martin Schulze  <[email protected]>
1549    
1550            * Extensions/wms/infodialog.py: Adjusted the class documentation
1551    
1552            * Extensions/wms/wms.py (WMSLayer.__init__, WMSLayer.GetMapImg):
1553            Switch to using Thuban{Begin,End}BusyCursor instead of the pure
1554            wxWidgets variants.
1555            (WMSLayer.__init__): The epsg_id variable is named top_srs now.
1556    
1557            * Extensions/wms/infodialog.py: Added an information dialog that
1558            will display various information about the WMS current resource,
1559            so that additional information such as the title, the abstract,
1560            fees and access constraints can be displayed for the user if they
1561            are documented in the WMS XML.
1562    
1563    2004-04-10  Martin Schulze  <[email protected]>
1564    
1565            * Extensions/wms/parser.py (WMSCapabilitiesParser.grok): Adjusted
1566            string handling.  It's "foo".lower() and not lower(foo) without
1567            lower imported from strings or something.
1568    
1569            * Extensions/wms/wms.py (WMSLayer): Incorporated WMSCapabilities
1570            from capabilities.py and parser.py.  Implement priority list for
1571            supported graphics formats, take care of wbmp != bmp.  PNG, TIFF
1572            and GIF are supported here, but not yet by main Thuban.  Hence,
1573            support for them may be removed later.  Special contribution to
1574            usability: get wxWidgets to change the cursor when we're waiting
1575            for data from the network so the user won't start to worry.  This
1576            causes a redrawing error/warning, though.
1577    
1578            * Extensions/wms/parser.py (WMSCapabilitiesParser.grok): Unlink
1579            the DOM object.
1580    
1581    2004-04-01  Martin Schulze  <[email protected]>
1582    
1583            * Extensions/wms/capabilities.py: Adjusted documentation
1584            (WMSCapabilities.__init__): Improved documentation, fixed syntax
1585            (WMSCapabilities.saveCapabilities): Only catch IOError when
1586            handling files
1587            (WMSCapabilities.loadCapabilities): Only catch IOError when
1588            handling files
1589            __main__: corrected variable naming
1590            (WMSCapabilities.fetchCapabilities,loadCapabilities): Make this
1591            class a specialisation of WMSCapabilitiesParser as well.  Also
1592            execute grok() after loading or fetching capabilities, if that
1593            went well, so that subsequent calls can already access the data.
1594            (WMSCapabilities.getVersion): Export the used version of the
1595            GetCapabilities request, so we can use it for subsequent calls,
1596            i.e. for GetMap requests.
1597            (WMSCapabilities.fetchCapabilities): Added proper error handling
1598            when the GetCapabilities request failed, so that the surrounding
1599            program can act accordingly.
1600    
1601    2004-03-30  Martin Schulze  <[email protected]>
1602    
1603            * Extensions/wms/parser.py (WMSCapabilitiesParser.getLayerSRS):
1604            Adjusted the getLayerSRS method to return the list of SRSes
1605            extracted from <SRS> elements instead of <BoundingBox> elements.
1606            Added a bit of documentation as well.
1607            (WMSCapabilitiesParser.checkLayerSRS): Removed integrity test
1608            since it was only implemented due to a misunderstanding.
1609    
1610            * Extensions/wms/test/test_parser.py
1611            (TestWMSCapabilitiesParser.test_LayerSRS): Adjust the tests to
1612            reflect the corrected interpretation of the standard: i.e. a layer
1613            does not have to define a BoundingBox for all SRSes it supports.
1614            Hence the <SRS></SRS> specification is authoritative, not the list
1615            of BoundingBoxes.
1616            (TestWMSCapabilitiesParser.test_BoundingBoxes): Added a new test
1617            to ensure None is returned for a non-existing SRS.
1618            (TestWMSCapabilitiesParser.test_grok): Removed test_grok method
1619            since it is not applicable anymore.  Listing more SRSes in <SRS>
1620            elements is valid according to the specs.
1621    
1622    2004-03-26  Bernhard Reiter <[email protected]>
1623    
1624            * README: Nicer formatting of text. Improved descriptions.
1625            Reflected wxWidgets name change.
1626            
1627            * Thuban/UI/about.py: Extended copyright to 2004 and added
1628            information about the thuban-devel mailinglist.
1629    
1630    2004-03-24  Martin Schulze  <[email protected]>
1631    
1632            * Extensions/wms/capabilities.py: Renamed the class to contain
1633            'WMS', also added a linebreak where required
1634    
1635            * Extensions/wms/parser.py: Finally added the XML parser for the
1636            GetCapabilities response.
1637    
1638            * Extensions/wms/test/sample.xml: Adjusted the sample file so that
1639            <SRS> elements match the <BoundingBox> elements, except for the
1640            layer 'beschriftung'.
1641    
1642            * Extensions/wms/test/test_parser.py: Encode non-ascii strings
1643            since Python uses unicode strings internally, otherwise
1644            comparisons will fail.  Removed tests for getLayerBBoxSRS() since
1645            the SRS will be calculated anyway and this method is obsoleted by
1646            getLayerSRS().  Denote SRS as strings and not as cardinal numbers.
1647            Move loading the sample file into the setUp method.  Added a test
1648            for finding the integrity problem in the sample response.
1649            Improved formatting.
1650    
1651            * Extensions/wms/domutils.py: Added convenience routines for
1652            handling of Document Object Model (DOM) nodes.
1653    
1654            * Extensions/wms/test/test_domutils.py: Added a test for the
1655            domutils module
1656    
1657    2004-03-19  Martin Schulze  <[email protected]>
1658    
1659            * Extensions/wms/test/test_parser.py (TestWMSCapabilitiesParser):
1660            Moved path detection and adding into a module of its own,
1661            adjustpath, which exports thubandir as main Thuban directory.
1662    
1663            * Extensions/wms/test/test_ogclib.py (TestWMSLib): Moved path
1664            detection and adding into a module of its own, adjustpath, which
1665            exports thubandir as main Thuban directory.  Reorganised the
1666            module in order to support the SkipTest feature for Thuban test
1667            cases.
1668    
1669            * Extensions/wms/test/adjustpath.py: Moved path detection and
1670            adding into a module of its own.
1671    
1672    2004-03-18  Martin Schulze  <[email protected]>
1673    
1674            * Extensions/wms/test/test_parser.py: Added another test for
1675            checking whether the WMS XML parser (to be implemented) returns
1676            the information we expect.  This requires a sample WMS WML file
1677            (sample.xml) which has been extracted from the frida server and
1678            "improved" manually.
1679    
1680            * Extensions/wms/test/test_ogclib.py: Added legacy code to add the
1681            main Thuban directory to the path in order to be able to import
1682            random modules.  Adjusted the PyOGCLib detection to reuse the
1683            information gathered.  Also added a note about the PYTHONPATH
1684            environment variable.
1685    
1686            * Extensions/wms/test/test_ogclib.py: The format specification is
1687            a mime-type, not a graphic format, hence image/jpeg wou ld be the
1688            proper format and not JPEG.  We'll also have to take care of the
1689            encoding of / as %2F.
1690    
1691    2004-03-16  Martin Schulze  <[email protected]>
1692    
1693            * Extensions/wms/test/test_ogclib.py: Added a (hopefully)
1694            comprehensive test for the getMapURL method, built compare URLs
1695            according to the documentation in OGC 01-068r3
1696    
1697            * Extensions/wms/capabilities.py (WMSCapabilities): Added the
1698            class WMSCapabilities to manage capabilites, will incorporate
1699            parsing the capabilities response and provide details for other
1700            classes.
1701    
1702    2004-03-12  Bernhard Herzog  <[email protected]>
1703    
1704            Support views in addition to normal tables in the postgis
1705            shapestore
1706    
1707            * Thuban/Model/postgisdb.py
1708            (PostGISShapeStore._fetch_table_information): Add a fallback for
1709            the case where the table name is not in the geometry_columns
1710            table.  This is usually the case for views.  Also, set
1711            self.shapestore here.
1712            (PostGISShapeStore.ShapeType): No need to query the database all
1713            the time.  The shape type is now determined in
1714            _fetch_table_information
1715    
1716            * test/postgissupport.py (PostgreSQLServer.new_postgis_db)
1717            (PostgreSQLServer.get_static_data_db, PostGISDatabase.__init__):
1718            New parameter to specify views.
1719            (PostGISDatabase.has_data): Also compare the views.  New views
1720            parameter
1721            (PostGISDatabase.initdb): Create the views.
1722            (PostgreSQLServer.get_default_static_data_db): Add the v_landmarks
1723            view
1724    
1725            * test/test_postgis_db.py
1726            (TestPostGISShapestorePointFromViews): New.  Test a
1727            PostGISShapeStore with a view
1728            (TestPostGISShapestorePointOIDAsGIDColumn.setUp): Pass the name of
1729            the geometry_column explicitly to test whether that works
1730    
1731    2004-03-12  Bernhard Herzog  <[email protected]>
1732    
1733            Final step for explicit id/geometry columns: Loading and saving
1734    
1735            * Resources/XML/thuban-1.1.dtd: New.  Derived from thuban-1.0.dtd
1736            with the following changes:
1737            (dbshapesource): Two new attributes id_column and geometry_column
1738    
1739            * Thuban/Model/save.py (SessionSaver.write): Use the new dtd
1740            (SessionSaver.write_session): Use the new namespace
1741            (SessionSaver.write_data_containers): Write the new dbshapesource
1742            parameters
1743    
1744            * Thuban/Model/load.py (SessionLoader.__init__): New namespace for
1745            the new file format version
1746            (SessionLoader.start_dbshapesource): Handle the new db parameters
1747    
1748            * test/test_save.py: Update to the new dtd and namespace
1749            (SaveSessionTest.test_save_postgis): Update the NonConnectionStore
1750            mock object to provide a working IDColumn method.
1751    
1752            * test/test_load_1_0.py: New.  Copy of the test_load.py before
1753            today's changes but with the round-trip tests removed.
1754    
1755            * test/test_load_0_9.py: Update doc-string.
1756    
1757            * test/test_load.py: Update all .thuban files to the new dtd and
1758            namespace.
1759            (TestPostGISLayer.file_contents): Add the new dbshapesource
1760            paramters
1761    
1762    2004-03-11  Bernhard Herzog  <[email protected]>
1763    
1764            Next step for explicit id/geometry columns: User interaction
1765    
1766            * Thuban/UI/dbdialog.py (ChooseDBTableDialog.__init__): Rework how
1767            the dialog is constructed. Add combo boxes to select id and
1768            geometry column.  Rename some instance variables.
1769            (ChooseDBTableDialog.GetTable): Return id and geometry column
1770            names
1771            (ChooseDBTableDialog.OnTableSelect): New. Event handler for
1772            selections in the table list
1773    
1774            * Thuban/UI/mainwindow.py (MainWindow.AddDBLayer): Use id_column
1775            and geometry_column
1776    
1777            * Thuban/Model/session.py (Session.OpenDBShapeStore): Add the new
1778            parameters for id_column and geometry column of PostGISShapeStore
1779            here as well.
1780    
1781            * Thuban/Model/postgisdb.py (type_map): Add ROWID psycog type.
1782            (_raw_type_map): New. Map raw PostgreSQL type ints to thuban types
1783            (PostGISConnection.GeometryTables): Use a better query to
1784            determine which relations in the database might be usable for
1785            shapestores.  Now supports views as well but is more PostgreSQL
1786            specific
1787            (PostGISConnection.table_columns): New. Somewhat experimental
1788            method to let the db dialogs provide lists of columns to users so
1789            that they can select id and geometry columns.
1790            (PostGISTable.__init__): The default value of the id_column
1791            parameter is now None it still means "gid" effectively, though.
1792            (PostGISTable.IDColumn): New introspection method to return a
1793            column object for the id column
1794            (PostGISShapeStore.GeometryColumn): New introspection method to
1795            return a column object for the geometry column
1796    
1797            * test/test_postgis_db.py
1798            (TestPostGISConnection.test_gis_tables_non_empty):
1799            Removed. Subsumed by the new:
1800            (TestPostGISConnection.test_gis_tables_with_views_and_tables):
1801            New. Tes the GeometryTables and table_columns methods with actual
1802            tables and views.
1803            (PointTests.test_id_column, PointTests.test_geometry_column):
1804            New. tests for the new methods.
1805            (TestPostGISShapestorePoint.setUp)
1806            (TestPostGISShapestorePointSRID.setUp)
1807            (TestPostGISShapestorePointExplicitGIDColumn.setUp): Fill the
1808            instance variables needed by the new tests
1809    
1810    2004-03-11  Bernhard Herzog  <[email protected]>
1811    
1812            * Thuban/UI/classgen.py (GenQuantilesPanel.GetList): The row
1813            numbers given to ReadValue are ordinals.
1814    
1815    2004-03-11  Bernhard Herzog  <[email protected]>
1816    
1817            Elimiate the requirement for PostGIS tables to have a column
1818            called "gid".
1819    
1820            * Thuban/Model/postgisdb.py (PostGISTable.__init__): New parameter
1821            id_column to specify which column to use to identify rows.  Also
1822            new instance variables id_column and quoted_id_column
1823            (PostGISTable.RowIdToOrdinal, PostGISTable.RowOrdinalToId)
1824            (PostGISTable.ReadRowAsDict, PostGISTable.ReadValue)
1825            (PostGISTable.SimpleQuery): Use the id column name provided to the
1826            constructor instead of "gid"
1827            (PostGISShapeStore.__init__): New parameter id_column analogously
1828            to PostGISTable.__init__.  This parameter is simply passed through
1829            to the base class constructor
1830            (PostGISShapeStore._create_col_from_description): Fix typo in
1831            doc-string
1832            (PostGISShapeStore.Shape, PostGISShapeStore.AllShapes)
1833            (PostGISShapeStore.ShapesInRegion): Use the id column name
1834            provided to the constructor instead of "gid"
1835    
1836            * test/postgissupport.py
1837            (PostgreSQLServer.get_default_static_data_db): New static table
1838            landmarks_point_id with an id column != "gid.  Update the comments
1839            a bit.
1840            (skip_if_addgeometrycolumn_does_not_use_quote_ident): Fix typo in
1841            doc-
1842            (upload_shapefile): New parameter gid_column to use a name other
1843            than "gid" for the column to store the shape ids
1844    
1845            * test/test_postgis_db.py (TableTests): New.  Mixin-class
1846            containing all tests previously in TestPostGISTable.  The actual
1847            tests are the same but the code is a bit more configurable to
1848            allow for different id columns etc.
1849            (TestPostGISTable): Derive from TableTests now for the actual
1850            tests.
1851            (TestPostGISTableExplicitGIDColumn): New. Like TestPostGISTable
1852            except that it the landmarks_point_id table to test the id_column
1853            parameter
1854            (PointTests): Extend the doc-string
1855            (TestPostGISShapestorePointExplicitGIDColumn)
1856            (TestPostGISShapestorePointOIDAsGIDColumn): New classes derived
1857            from PointTests to test the explicit id_column parameter.  One
1858            tests with the name of the column holding the shape ids, the other
1859            uses PostgreSQL's OID column.  For the latter a number of methods
1860            have to be overwritten to make them independent of the actual id
1861            values.
1862    
1863    2004-03-08  Silke Reimer  <[email protected]>
1864    
1865            Update debian directory:
1866    
1867            * debian/changelog: Added new version.
1868            * deiban/rules: Updated management of patches (with cbds)
1869            * debian/control: Added cbds to dependencies
1870            * debian/patches/*: New. Adds better support for patches of thuban in
1871                            debian
1872            * debian/menu: Syntax of menu changed slightly
1873            * debian/setup.py.patch: removed because it has been moved to
1874                            debian/patechs/setup.py.patch
1875            
1876    
1877    2004-02-26  Bernhard Herzog  <[email protected]>
1878    
1879            Create the Doc/technotes directory for text files with information
1880            for developers
1881    
1882            * Doc/technotes/README: New. README for the technotes
1883    
1884            * Doc/technotes/coding_guidelines.txt: New. Coding guidelines for
1885            Thuban
1886    
1887            * Doc/technotes/release_process.txt: New. Used to be
1888            HOWTO-Release.  Now slightly adapted to technote formatting style.
1889    
1890            * HOWTO-Release: Removed.  It's contents are now in
1891            Doc/technotes/release_process.txt
1892    
1893    2004-02-25  Bernhard Herzog  <[email protected]>
1894    
1895            * libraries/thuban/wxproj.cpp (get_wx_version): New.  Return the
1896            version of wxWindows the module was compiled with so we can check
1897            that against the wxPython version.
1898    
1899            * Thuban/version.py (thuban_branch, thuban_release): New variables
1900            controlling which and how Thuban versions are shown.  See the
1901            comments for details.
1902            (verify_versions): Also check that the wx version that wxproj is
1903            compiled against matches that of the wxPython we use at runtime
1904    
1905    2004-02-20  Bernhard Herzog  <[email protected]>
1906    
1907            * Extensions/wms/wms.py (epsg_code_to_projection): Use
1908            get_system_proj_file to read the epsg projections.  The old way
1909            depended on the current directory being the top Thuban directory.
1910    
1911    2004-02-20  Bernhard Herzog  <[email protected]>
1912    
1913            * Extensions/svgexport/test/test_svgmapwriter.py
1914            (TestVirtualDC.test_clippath): Remove a debug print
1915    
1916    2004-02-20  Bernhard Herzog  <[email protected]>
1917    
1918            * Extensions/svgexport/__init__.py: New.  Turn
1919            Extensions/svgexport into a package.
1920    
1921            * Extensions/svgexport/svgmapwriter.py: Reorder the imports and
1922            doc-string a bit.  The doc-string must come first, otherwise it's
1923            not a doc-string.  The __future__ import must be the first thing
1924            after the doc-string.  Use only double quotes in doc-strings.
1925            Single quotes trip up emacs syntax highlighting if the text
1926            contains apostrophes.
1927    
1928    2004-02-20  Bernhard Herzog  <[email protected]>
1929    
1930            * Extensions/svgexport/test/__init__.py,
1931            Extensions/svgexport/test/test_svgmapwriter.py: New. Initial test
1932            suite for svgexport
1933    
1934            * test/runtests.py (find_test_modules): New. Function with the
1935            module finding code from main.
1936            (main): Use find_test_modules to figure out the default test
1937            modules and take modules from Extensions.svgexport.test too.
1938    
1939    2004-02-19  Bernhard Herzog  <[email protected]>
1940    
1941            * Thuban/UI/application.py (ThubanApplication.OnInit): Make sure
1942            the mainwindow has a reference to the map of the initial session.
1943            This fixes a bug introduced with the fix for RT#2245
1944    
1945    2004-02-19  Bernhard Herzog  <[email protected]>
1946    
1947            * Extensions/svgexport/svgsaver.py,
1948            Extensions/svgexport/svgmapwriter.py,
1949            Extensions/svgexport/maplegend.py: Added again.  This time in the
1950            correct place.
1951    
1952    2004-02-17  Bernhard Herzog  <[email protected]>
1953    
1954            Fix for RT#2245
1955    
1956            * Thuban/UI/application.py (ThubanApplication.OnInit): Initialize
1957            instance variables before trying to create any windows.  Creating
1958            windows can start an event loop if e.g. message boxes are popped
1959            up for some reason, and event handlers, especially EVT_UPDATE_UI
1960            may want to access things from the application.
1961            (ThubanApplication.maps_changed): The mainwindow may not have been
1962            created yet, so check whether it has been created before calling
1963            its methods
1964    
1965            * Thuban/UI/view.py (MapCanvas.OnIdle): Only try to redraw if we
1966            have a map
1967    
1968    2004-02-17  Bernhard Herzog  <[email protected]>
1969    
1970            * test/test_svgmapwriter.py, Extensions/svgsaver.py,
1971            Extensions/svgmapwriter.py, Extensions/maplegend.py,
1972            extensions/svgexport/svgsaver.py,
1973            extensions/svgexport/svgmapwriter.py,
1974            extensions/svgexport/maplegend.py: Removed.  These files were in
1975            the wrong places or didn't work at all.
1976    
1977    2004-02-16  Bernhard Herzog  <[email protected]>
1978    
1979            * Thuban/UI/view.py (MapCanvas.Export): Remove accidentally added
1980            line
1981    
1982    2004-02-16  Bernhard Herzog  <[email protected]>
1983    
1984            * Thuban/UI/view.py (MapCanvas.Export): Avoid UnboundLocalError.
1985    
1986    2004-02-15  Markus Rechtien  <[email protected]>
1987            
1988            * Extensions/svgexport/svgmapwriter.py: New. Adds the capability
1989            to write a session to a file in SVG format.
1990            * Extensions/svgexport/svgsaver.py: New. Uses svgmapwriter.py
1991            to write a SVG map of a session.
1992            * Extensions/svgexport/maplegend: New. Writes a basic maplegend
1993            in SVG format for the current session.
1994    
1995    2004-02-13  Bernhard Herzog  <[email protected]>
1996    
1997            * Thuban/UI/mainwindow.py (MainWindow.AddDBLayer): When the layer
1998            can't be created, return immediately after displaying the error
1999            message.
2000    
2001    2004-02-11  Bernhard Herzog  <[email protected]>
2002    
2003            Handle postgis tables with more than one geometry column.
2004    
2005            * Thuban/Model/postgisdb.py
2006            (PostGISTable._fetch_table_information): Delegate the creation of
2007            column objects to a different method so that we can extend that in
2008            derived classes
2009            (PostGISTable._create_col_from_description): New. Column object
2010            creation part of _fetch_table_information
2011            (PostGISShapeStore._create_col_from_description): New. Extend
2012            inherited method to handle geometry columns
2013            (PostGISShapeStore.__init__): New parameter geometry_column to
2014            specify which geometry column to use.  Optional but mandatory for
2015            tables with more than one geometry column
2016            (PostGISShapeStore._fetch_table_information): Also use the name of
2017            the geometry column when looking for the srid
2018            (PostGISShapeStore.ShapeType): Also use the name of the geometry
2019            column when looking for the shape type
2020    
2021            * test/test_save.py (SaveSessionTest.test_save_postgis): Adapt
2022            NonConnectionStore to changes in the PostGISShapeStore
2023    
2024            * test/test_postgis_db.py
2025            (TestPostGISSpecialCases.test_shapestore_two_geom_cols): Test
2026            PostGISShapeStore with tables having two geometry columns.
2027    
2028    2004-02-10  Bernhard Herzog  <[email protected]>
2029    
2030            Fix some postgis problems.  What remains to be done is real
2031            handling of SRIDs as they affect how reprojection is done
2032    
2033            * Thuban/Model/postgisdb.py (quote_identifier): Fix typo in
2034            doc-string
2035            (PostGISShapeStore._fetch_table_information): New. Extend
2036            inherited method to retrieve srid
2037            (PostGISShapeStore.BoundingBox): Handle tables without data.
2038            extent yields NULL for those
2039            (PostGISShapeStore.ShapesInRegion): Use the srid of the table.
2040    
2041            * test/test_postgis_db.py
2042            (TestPostGISSpecialCases.test_shapestore_empty_table): New test
2043            for the special case of a table without any data
2044            (TestPostGISShapestorePointSRID): New class with tests for a table
2045            that uses srids
2046            (PolygonTests): Fix a doc-string typo
2047    
2048            * test/postgissupport.py (PostGISDatabase.__init__): New parameter
2049            reference_systems with a specification of spacial reference
2050            systems to create in the new db.
2051            (PostgreSQLServer.new_postgis_db)
2052            (PostgreSQLServer.get_static_data_db): New parameter
2053            reference_systems to be passed through ultimately to
2054            PostGISDatabase.  In new_postgis_db also check whether an existing
2055            db already has the right srids
2056            (PostgreSQLServer.get_default_static_data_db): Add srids and a
2057            table that uses srids
2058            (PostGISDatabase.initdb): Create the entries for the reference
2059            systems
2060            (PostGISDatabase.has_data): Add reference_systems parameter to
2061            check for those too
2062            (upload_shapefile): New parameter srid to create tables with a
2063            specific srid
2064    
2065    2004-02-06  Frank Koormann  <[email protected]>
2066    
2067            * po/pt_BR.po: Fixed charset
2068    
2069    2004-02-05  Frank Koormann  <[email protected]>
2070    
2071            * po/pt_BR.po: Fixed format string for error message, missing %s
2072            added (Thuban/UI/application.py:273)
2073    
2074    2004-02-03  Frank Koormann  <[email protected]>
2075            
2076            First version of Portuguese (Brazilian) translation
2077    
2078            * po/pt_BR.po: New, translation of pot (2004-01-15 16:07+0300) for
2079            Brazilian Portuguese by Eduardo Patto Kanegae.
2080    
2081            * Thuban/UI/about.py (About.__init.py__): Added Eduardo to the list of
2082            translators.
2083    
2084    
2085    2004-01-22  Frank Koormann  <[email protected]>
2086    
2087            * Doc/manual/thuban-manual.xml: Added section on installation of
2088            Thuban under Win32 systems. Fixed image path references in the postgis
2089            section. Some minor source formattings.
2090    
2091    2004-01-21  Frank Koormann  <[email protected]>
2092    
2093            Make Thuban remember path selections (at least for one application run).
2094    
2095            * Thuban/UI/application.py (Application.OnInit): Initialize path as a
2096            attribute of application object. Path is a dictionary of
2097            strings, currently with the items "data" and "projection".  
2098            (Application.SetPath): New, stores path for the specified item.
2099            (Application.Path): New, return path for the specified item.
2100    
2101            * Thuban/UI/mainwindow.py
2102            (MainWindow.OpenSession, MainWindow.SaveSessionAs,
2103            MainWindow.AddLayer, MainWindow.AddRasterLayer,
2104            MainWindow.TableOpen): Access "data" path information of the
2105            application.
2106            
2107            * Thuban/UI/projdialog.py (ProjFrame._OnImport, ProjFrame._OnExport):
2108            Access "projection" path information of the application.
2109    
2110    2004-01-05  Bernhard Herzog  <[email protected]>
2111    
2112            * po/ru.po: Updated translations from Alex Shevlakov
2113    
2114    2004-01-05  Bernhard Herzog  <[email protected]>
2115    
2116            * po/Makefile, po/README: Move the description of how to generate
2117            the translation statistics to the README.
2118    
2119    2003-12-23  Bernhard Herzog  <[email protected]>
2120    
2121            * NEWS: Update for 1.0.0
2122    
2123            * po/it.po: Another update from Maurizio Napolitano
2124    
2125    2003-12-23  Bernhard Herzog  <[email protected]>
2126    
2127            * po/it.po: Updated translation from Maurizio Napolitano
2128    
2129    2003-12-23  Bernhard Herzog  <[email protected]>
2130    
2131            * Thuban/UI/join.py (JoinDialog.__init__): Mark one more string
2132            for translation
2133    
2134            * Thuban/UI/mainwindow.py (MainWindow.TableRename)
2135            (MainWindow.RenameMap, MainWindow.RenameLayer): Mark some more
2136            strings for translation
2137    
2138            * po/de.po: Update with the newly marked strings.
2139    
2140    2003-12-22  Bernhard Herzog  <[email protected]>
2141    
2142            * HOWTO-Release: Fix the places where version numbers have to be
2143            updated
2144    
2145    2003-12-22  Bernhard Herzog  <[email protected]>
2146    
2147            * setup.py (setup call): 1.0.0, yeah!
2148    
2149            * Thuban/version.py (longversion): 1.0.0, yeah!
2150    
2151            * Thuban/Model/load.py (SessionLoader.__init__): Accept the
2152            1.0.0 namespace too
2153    
2154            * Thuban/Model/save.py (SessionSaver.write_session): Save with
2155            1.0.0 namespace
2156    
2157            * test/test_load.py (LoadSessionTest.dtd)
2158            (TestSingleLayer.file_contents)
2159            (TestNonAsciiColumnName.file_contents)
2160            (TestLayerVisibility.file_contents)
2161            (TestClassification.file_contents, TestLabels.file_contents)
2162            (TestLayerProjection.file_contents)
2163            (TestRasterLayer.file_contents, TestJoinedTable.file_contents)
2164            (TestLabelLayer.file_contents, TestPostGISLayer.file_contents)
2165            (TestPostGISLayerPassword.file_contents)
2166            (TestLoadError.file_contents, TestLoadError.test): Update for
2167            1.0.0 namespace
2168    
2169            * test/test_save.py (SaveSessionTest.dtd)
2170            (SaveSessionTest.testEmptySession)
2171            (SaveSessionTest.testSingleLayer)
2172            (SaveSessionTest.testLayerProjection)
2173            (SaveSessionTest.testRasterLayer)
2174            (SaveSessionTest.testClassifiedLayer)
2175            (SaveSessionTest.test_dbf_table)
2176            (SaveSessionTest.test_joined_table)
2177            (SaveSessionTest.test_save_postgis): Update for 1.0.0 namespace
2178    
2179    2003-12-22  Bernhard Herzog  <[email protected]>
2180    
2181            * Thuban/Model/load.py (SessionLoader.start_label): Make sure the
2182            alignment flags are byte strings not unicode and that they have
2183            valid values
2184    
2185            * test/test_load.py (TestLabelLayer): New. Test loading (and
2186            indirectly saving) of maps with labels.
2187    
2188    2003-12-22  Bernhard Herzog  <[email protected]>
2189    
2190            * Thuban/UI/tableview.py (TableGrid.OnDestroy)
2191            (TableGrid.__init__): Handle EVT_WINDOW_DESTROY in the grid to
2192            unsubscribe all subscribers.
2193            (LayerTableFrame.OnDestroy): Do not unsubscribe any messages from
2194            self.grid since it may already have been destroyed.
2195            Fixes RT #2256
2196    
2197    2003-12-19  Bernhard Herzog  <[email protected]>
2198    
2199            * po/fr.po, po/es.po: Updated translations from Daniel Calvelo
2200    
2201    2003-12-16  Bernhard Herzog  <[email protected]>
2202            
2203            * debian/bitmappath.patch, debian/setup.py.patch:
2204                    added to ensure compliance with FHS for debian
2205            * debian/rules, debian/changelog:
2206                added patches in rules to ensure compliance with FHS for debian
2207    
2208    2003-12-16  Bernhard Herzog  <[email protected]>
2209    
2210            * po/Makefile (mo): Make the output a bit nicer so that it prints
2211            statistics about the translations. Add a comment how produce even
2212            nicer statistics with sed.
2213    
2214    2003-12-09  Frank Koormann   <[email protected]>
2215    
2216            * Resources/Projections/defaults.proj:
2217            French projection sample with correct accents (UNICODE).
2218    
2219    2003-12-05  Bernhard Herzog  <[email protected]>
2220    
2221            * MANIFEST.in: Add the devtools directory
2222    
2223            * setup.py (setup call): Use license instead of licence. This
2224            silences a deprecation warning on Python 2.3
2225    
2226    2003-12-05  Frank Koormann   <[email protected]>
2227    
2228            Documentation synced with 1.0rc1
2229    
2230            * Doc/manual/thuban-manual.xml:
2231            Minor formatting changes and references to database layers .
2232            Introduction.Internationalization: New section on i18n.
2233            MapManagement.AddingandRemovingLayers: Added item on database layers.  
2234            MapManagement.TheLegend: Added section and screenshot on popup menu.
2235            ProjectionManagement: Updated screenshot and sentence on EPSG.
2236            Appendix.SupportedDataSources: Added PostGIS.
2237            Appendix.WorkingwithPostGIS: New section.
2238    
2239            * Doc/manual/images/6_projection.png: Updated screenshot including
2240            EPSG checkboxes.
2241    
2242            * Doc/manual/images/3_5_popup_menu.png: New, popup menu screenshot.
2243    
2244            * Doc/manual/images/app_postgis_add_layer.png,
2245            Doc/manual/images/app_postgis_db_add.png,
2246            Doc/manual/images/app_postgis_db_management.png:
2247            New screenshots focussing on database layers
2248    
2249    2003-12-05  Frank Koormann   <[email protected]>
2250    
2251            * Thuban/UI/projdialog.py (load_user_proj): If user.proj is missing
2252            write warning to stderr instead of rising a warning dialog
2253    
2254    2003-12-03  Bernhard Herzog  <[email protected]>
2255    
2256            Fix for RT #2243
2257    
2258            * Thuban/UI/mainwindow.py (MainWindow.has_selected_shape_layer):
2259            New. Like has_selected_layer but for shape layers only
2260            (_has_selected_shape_layer): New. Like _has_selected_layer but for
2261            shape layers only
2262            (layer_show_table command, layer_jointable command): Use these
2263            commands should only be available for shape layers
2264    
2265    2003-12-03  Bernhard Herzog  <[email protected]>
2266    
2267            * Thuban/UI/mainwindow.py (MainWindow.Unsubscribe): Deal with
2268            publishers that are wx objects and may have been destroyed by wx
2269            already. Fixes RT #2242.
2270    
2271    2003-12-03  Bernhard Herzog  <[email protected]>
2272    
2273            * po/ru.po: Updates from Alex Shevlakov
2274    
2275    2003-12-03  Silke Reimer <silkeintevation.de>
2276    
2277            * debian/control, debian/changelog: Added gdal-support to
2278                    debian package, updated to new thuban version
2279    
2280    
2281    2003-12-03  Bernhard Herzog  <[email protected]>
2282    
2283            * Thuban/Lib/version.py: New. Module for version number
2284            manipulations. The version of make_tuple here also deals better
2285            with more unusual version number strings, such as e.g.
2286            "1.2+cvs20031111"
2287    
2288            * Thuban/version.py (make_tuple): Removed. It's now in
2289            Thuban.Lib.version. Use that implementation instead.
2290    
2291            * test/test_lib_version.py: New. Tests for Thuban/Lib/version.py
2292    
2293    2003-12-02  Bernhard Herzog  <[email protected]>
2294    
2295            * MANIFEST.in: Add debian files
2296    
2297            * setup.py (setup call): Add packages for the Extensions so that
2298            they're installed too
2299            (data_files): Add READMEs and sample data from some Extensions
2300    
2301            * NEWS: Add note about the extensions in binary packages
2302    
2303    2003-12-02  Bernhard Herzog  <[email protected]>
2304    
2305            * Thuban/Model/save.py (SessionSaver.write_session): Save files
2306            with the thuban-1.0rc1
2307    
2308            * Thuban/Model/load.py (SessionLoader.__init__): Recognize the
2309            thuban-1.0rc1 namespace too
2310    
2311            * test/test_save.py (SaveSessionTest.dtd)
2312            (SaveSessionTest.testEmptySession)
2313            (SaveSessionTest.testSingleLayer)
2314            (SaveSessionTest.testLayerProjection)
2315            (SaveSessionTest.testRasterLayer)
2316            (SaveSessionTest.testClassifiedLayer)
2317            (SaveSessionTest.test_dbf_table)
2318            (SaveSessionTest.test_joined_table)
2319            (SaveSessionTest.test_save_postgis): Update to thuban-1.0rc1
2320            namespace
2321    
2322            * test/test_load.py (LoadSessionTest.dtd): Update to thuban-1.0rc1
2323            namespace
2324            (TestSingleLayer.file_contents)
2325            (TestNonAsciiColumnName.file_contents)
2326            (TestLayerVisibility.file_contents)
2327            (TestClassification.file_contents, TestLabels.file_contents)
2328            (TestLayerProjection.file_contents)
2329            (TestRasterLayer.file_contents, TestJoinedTable.file_contents)
2330            (TestPostGISLayer.file_contents)
2331            (TestPostGISLayerPassword.file_contents)
2332            (TestLoadError.file_contents, TestLoadError.test): Update to
2333            thuban-1.0rc1 namespace
2334    
2335    2003-12-01  Bernhard Herzog  <[email protected]>
2336    
2337            * setup.py (proj4_prefix, wx_prefix, gdal_prefix): Fix these for
2338            nt to better match Intevation's current w32 setup
2339    
2340            * HOWTO-Release: Add note about updating MANIFEST.in
2341    
2342            * MANIFEST.in: Add the Extensions
2343    
2344            * NEWS: Update for 1.0rc1
2345    
2346    2003-12-01  Bernhard Herzog  <[email protected]>
2347    
2348            * Thuban/UI/mainwindow.py (MainWindow.AddLayer): Change the wild
2349            cards for the dialog so that shapefiles ending in all uppercase
2350            SHP are listed too
2351    
2352    2003-11-28  Bernhard Herzog  <[email protected]>
2353    
2354            * Thuban/version.py (longversion): Update to 1.0rc1
2355    
2356            * setup.py (setup call): Update version to 1.0rc1. Use the
2357            [email protected] email address as author email instead of my
2358            personal one.
2359    
2360    2003-11-28  Bernhard Herzog  <[email protected]>
2361    
2362            * po/de.po: Update german translation.
2363    
2364    2003-11-28  Bernhard Herzog  <[email protected]>
2365    
2366            Unify the filenames stored in .thuban files so that the .thuban
2367            files are more platform independend
2368    
2369            * Thuban/Model/save.py (unify_filename): New. Unify filenames so
2370            that they can be used on both windows and unix
2371            (SessionSaver.prepare_filename): New. Handle all filename
2372            transformations for filenames stored in the thuban file
2373            (SessionSaver.write_data_containers, SessionSaver.write_layer):
2374            Use prepare_filename
2375    
2376            * test/test_save.py (SaveSessionTest.testSingleLayer)
2377            (SaveSessionTest.testLayerProjection)
2378            (SaveSessionTest.testRasterLayer)
2379            (SaveSessionTest.testClassifiedLayer)
2380            (SaveSessionTest.test_dbf_table)
2381            (SaveSessionTest.test_joined_table): Filenames are always stored
2382            with slashes on all currently supported platforms so adapt all
2383            tests to this
2384    
2385            * test/test_load.py (LoadSessionTest.filenames): With the new
2386            filename scheme the filenames in the tests should be
2387            understandable on all currently supported platforms so we turn
2388            this into an empty list because we don't have to normalize them
2389            anymore
2390    
2391    2003-11-28  Bernhard Herzog  <[email protected]>
2392    
2393            * test/test_layer.py (TestLayer.test_arc_layer_with_projection):
2394            Add the ellipsoid to the projection since some Proj versions
2395            complain if it's missing.
2396    
2397    2003-11-27  Bernhard Herzog  <[email protected]>
2398    
2399            Corect some bounding box projection problems
2400    
2401            * Thuban/Model/proj.py (Projection.InverseBBox): New. Inverse
2402            version of ForwardBBox
2403            (Projection._transform_bbox): New. common implementation of
2404            ForwardBBox and InverseBBox
2405            (Projection.ForwardBBox): Use _transform_bbox.
2406    
2407            * test/test_proj.py (TestProjection.test): Add test for
2408            InverseBBox
2409    
2410            * Thuban/Model/layer.py (Layer.LatLongBoundingBox)
2411            (Layer.ShapesBoundingBox, RasterLayer.LatLongBoundingBox): Use the
2412            new InverseBBox method to determine the unprojected bounding box
2413            (Layer.ShapesInRegion): Use the ForwardBBox method to project the
2414            bbox.
2415    
2416            * test/test_layer.py (TestLayer.test_point_layer_with_projection):
2417            Removed.
2418            (TestLayer.test_arc_layer_with_projection): New. This test is
2419            better able to test whether bounding boxes are projected correctly
2420            than test_point_layer_with_projection
2421    
2422            * Thuban/UI/viewport.py (ViewPort.map_projection_changed): Use
2423            InverseBBox to unproject bboxes
2424    
2425    2003-11-25  Bernhard Herzog  <[email protected]>
2426    
2427            * Thuban/UI/about.py (About.__init__): Make sure we have ASCII
2428            source code.
2429    
2430    2003-11-25  Bernhard Herzog  <[email protected]>
2431    
2432            * Thuban/Model/layer.py (Layer.__getattr__): Removed. It was only
2433            there for backwards compatibility and all code relying on that
2434            should have been updated by now.
2435    
2436    2003-11-25  Bernhard Herzog  <[email protected]>
2437    
2438            * test/test_load.py (TestClassification.test): Add the missing
2439            round trip test.
2440            (TestClassification.file_contents): Update to the newest file
2441            format
2442    
2443    2003-11-25  Bernhard Herzog  <[email protected]>
2444    
2445            Add very experimental (and possibly dangerous) extension to draw
2446            polygons:
2447    
2448            * Extensions/drawshape/README: New. Brief installation
2449            instructions
2450    
2451            * Extensions/drawshape/drawshape.py: New. Implementation of the
2452            drawshape extensions
2453    
2454            * Extensions/drawshape/patch.diff: Patch to apply before the
2455            extension can be used.
2456    
2457    2003-11-24  Bernhard Herzog  <[email protected]>
2458    
2459            * Thuban/Model/data.py (ShapefileStore._open_shapefile)
2460            (ShapefileStore.__init__): Factor opening the shapefile into a
2461            separate method (the new _open_shapefile). This makes the code a
2462            bit more readable but the real reason is that it makes some evil
2463            hacks easier. :-)
2464    
2465    2003-11-24  Bernhard Herzog  <[email protected]>
2466    
2467            * Thuban/Model/load.py (SessionLoader.check_attrs): If no
2468            converter is specified for an attribute assume it's a string
2469            containing only Latin1 characters. Update doc-string accordingly.
2470            This change should fix many places where unicode objects might
2471            accidentally enter Thuban.
2472    
2473            * test/test_load.py (TestNonAsciiColumnName): New test to check
2474            what happens with column names in DBF files that contain non-ascii
2475            characters
2476    
2477    2003-11-21  Bernhard Herzog  <[email protected]>
2478    
2479            Enable the experimental attribute editing again and introduce a
2480            command line switch to actually activate it
2481    
2482            * Thuban/UI/main.py (options): New. Container for options set on
2483            the commmand line
2484            (main): Add the --enable-attribute-editing flag.
2485    
2486            * Thuban/UI/identifyview.py (IdentifyView.__init__): If attribute
2487            editing is enabled use the grid ctrl which allows editing of the
2488            values
2489    
2490            * Thuban/Model/transientdb.py (AutoTransientTable.write_record):
2491            New. Just delegate this to the underlying table.
2492    
2493    2003-11-20  Bernhard Herzog  <[email protected]>
2494    
2495            * test/test_proj.py (ProjFileReadTests.test_read_unreadable_file):
2496            Skip this test if run under non-posix systems since it only works
2497            there
2498    
2499    2003-11-19  Bernhard Herzog  <[email protected]>
2500    
2501            * Thuban/Model/resource.py: Rework the way gdal support is
2502            determined so that we can give a reason in the about why gdal is
2503            not supported.
2504            (gdal_support_status): New. Variable holding a string with the
2505            reason for no gdal support
2506    
2507            * Thuban/UI/about.py (About.__init__): Add the reason why gdal is
2508            not supported to the message
2509    
2510    2003-11-19  Bernhard Herzog  <[email protected]>
2511    
2512            Remove the old table interface and its test cases
2513    
2514            * Thuban/Model/table.py (OldTableInterfaceMixin): Removed.
2515            (DBFTable, MemoryTable): Do not derive from OldTableInterfaceMixin
2516            anymore
2517    
2518            * Thuban/Model/transientdb.py (TransientTableBase)
2519            (AutoTransientTable): Do not derive from OldTableInterfaceMixin
2520            anymore
2521    
2522            * test/test_table.py: Removed since the old interface it tests is
2523            gone.
2524    
2525            * test/runtests.py (main): The old table interface is gone and
2526            with it the deprecation warnings so remove the code that turns
2527            these warnings into errors
2528    
2529    2003-11-19  Bernhard Herzog  <[email protected]>
2530    
2531            * test/test_table.py: Revert to revision 1.5 again. Changing the
2532            tests to use the new table interface is completely wrong since the
2533            whole purpose of the tests in this module is to test the old
2534            interface.
2535    
2536    2003-11-18  Bernhard Herzog  <[email protected]>
2537    
2538            * Thuban/Model/postgisdb.py (PostGISConnection.MatchesParameters):
2539            New. Test whether the connection matches a set of connection
2540            parameters
2541    
2542            * Thuban/UI/dbdialog.py (DBFrame.conns_changed): Fix doc-string
2543            (DBFrame.OnAdd): Use the new MatchesParameters method when looking
2544            for existing connections with the same parameters and break out of
2545            the loop correctly.
2546    
2547            * test/test_postgis_db.py (TestBriefDescription)
2548            (TestPostGISSimple.test_brief_description): Rename
2549            TestBriefDescription to TestPostGISSimple and the test method to
2550            test_brief_description so that we can add more test methods.
2551            (TestPostGISSimple.test_matches_parameters): New. Test the new
2552            MatchesParameters method
2553    
2554    2003-11-18  Bernhard Herzog  <[email protected]>
2555    
2556            * Thuban/Lib/connector.py (Publisher): Introduce a new flag,
2557            _was_destroyed, to indicate whether an publisher instance has
2558            already been destroyed.
2559            (Publisher.Unsubscribe): Only disconnect if the publisher has not
2560            been destroyed yet.
2561            (Publisher.Destroy): Set the _was_destroyed flag to true.
2562    
2563            * test/test_connector.py
2564            (TestPublisher.test_unsubscribe_after_destroy): New. Test that
2565            calling Unsubscribe after Destroy doesn't raise an exception
2566    
2567    2003-11-14  Bernhard Herzog  <[email protected]>
2568    
2569            * Thuban/UI/identifyview.py (IdentifyView.selected_shape): Fix
2570            typo in doc-string
2571    
2572    2003-11-13  Bernhard Herzog  <[email protected]>
2573    
2574            Quote table and column names properly for postgis.
2575    
2576            * Thuban/Model/postgisdb.py (quote_identifier): New. Function to
2577            quote an identifier for use in an sql statement
2578            (PostGISColumn.__init__): Add the quoted_name attribute
2579            (PostGISTable.__init__): New instance variable quoted_tablename
2580            (PostGISTable._fetch_table_information): Use the quoted table
2581            name. New isntance variable quoted_geo_col with a quoted version
2582            of geometry_column
2583            (PostGISTable.NumRows, PostGISTable.RowIdToOrdinal)
2584            (PostGISTable.RowOrdinalToId): Use the quoted table name
2585            (PostGISTable.ReadValue, PostGISTable.ValueRange)
2586            (PostGISTable.UniqueValues, PostGISTable.SimpleQuery)
2587            (PostGISShapeStore.BoundingBox, PostGISShapeStore.Shape)
2588            (PostGISShapeStore.AllShapes, PostGISShapeStore.ShapesInRegion):
2589            Use quoted table and column names
2590    
2591            * test/test_postgis_db.py (TestPostGISSpecialCases)
2592            (TestPostGISIgnoredColumns): Rename the class to
2593            TestPostGISSpecialCases because that better describes the new
2594            cases
2595            (TestPostGISSpecialCases.test_unsupported_types)
2596            (TestPostGISSpecialCases.test): Rename the method to
2597            test_unsupported_types because we need a more descriptive name now
2598            that there are more methods
2599            (TestPostGISSpecialCases.test_table_name_quoting)
2600            (TestPostGISSpecialCases.test_column_name_quoting)
2601            (TestPostGISSpecialCases.test_shapestore_name_quoting): New test
2602            cases to test quoting of table and column names in PostGISTable
2603            and PostGISShapeStore
2604    
2605            * test/postgissupport.py
2606            (skip_if_addgeometrycolumn_does_not_use_quote_ident): New. Skip if
2607            AddGeometryColumn desn't support table or column names with sapces
2608            or double quotes
2609    
2610    2003-11-12  Jan-Oliver Wagner <[email protected]>
2611    
2612            * Extensions/wms/__init__.py: New: Init to make this
2613            directory a package.
2614    
2615            * Extensions/wms/wms.py: New: Provide layers via OGC WMS.
2616    
2617    2003-11-11  Bernhard Herzog  <[email protected]>
2618    
2619            * Thuban/Model/resource.py (EPSG_DEPRECATED_PROJ_FILE): New.
2620            Constant for the file woth deprecated epsg projections
2621            (get_system_proj_file): Update doc-string
2622    
2623            * Thuban/UI/projdialog.py (ProjFrame.build_dialog): Add a space
2624            above the EPS widgets, introduce a check box for the deprecated
2625            eps projections and a label for the epsg widgets
2626            (ProjFrame._OnShowEPSG): Handle the deprecated EPSG projections
2627            too
2628    
2629    2003-11-11  Bernhard Herzog  <[email protected]>
2630    
2631            Avoid warnings when run under Python 2.3
2632    
2633            * Thuban/UI/baserenderer.py (BaseRenderer.draw_point_shape)
2634            (BaseRenderer.draw_label_layer): Coordinates must be ints.
2635    
2636            * Thuban/UI/renderer.py (MapRenderer.make_point): Turn this into a
2637            real method so that we can convert to int.
2638            (MapRenderer.label_font): The font size mist be an int.
2639    
2640            * Thuban/UI/common.py (Color2wxColour): The color values must be
2641            ints. Also, remove the unnecessary asserts.
2642    
2643            * test/test_load_0_8.py (TestUnicodeStrings.file_contents)
2644            (TestUnicodeStrings.test): Python source code should not contain
2645            non-ascii characters unless an encoding is specified in the file.
2646            Therefore use \x escapes in the string literals for non-ascii
2647            characters.
2648    
2649    2003-11-11  Bernhard Herzog  <[email protected]>
2650    
2651            * Thuban/Model/resource.py (get_system_proj_file): Add a filename
2652            parameter so that this function can be used for all proj files in
2653            Resource/Projections
2654            (DEFAULT_PROJ_FILE, EPSG_PROJ_FILE): New. Predefined filenames for
2655            get_system_proj_file
2656    
2657            * Thuban/UI/projdialog.py (ProjFrame.__init__): Instead of one
2658            ProjFile self.__sysProjFile use a dictionary of system ProjFile
2659            objects self._sys_proj_files
2660            (ProjFrame.build_dialog): Adapt to the new changes in the
2661            ProjectionList constructor. Add a check button to toggle whether
2662            EPSG projections are shown
2663            (ProjFrame._OnShowEPSG): New. Handler for the epsg check button
2664            events.
2665            (ProjFrame.load_user_proj, ProjFrame.load_system_proj): Only show
2666            the busy cursor if the files have not yet been loaded by the
2667            dialog.
2668            (ProjFrame.load_system_proj): Add a parameter for the name of the
2669            proj file. Maintain the dictionary of system projections
2670            self._sys_proj_files
2671    
2672            * Thuban/UI/projlist.py (ProjectionList): Merge the system_projs,
2673            user_projs parameters into one parameter proj_files which is a
2674            list of proj files.
2675            (ProjectionList._subscribe_proj_files)
2676            (ProjectionList._unsubscribe_proj_files): New. Move
2677            subscription/unsubscription of projfile messages to separate
2678            methods
2679            (ProjectionList.Destroy): The unsubscribe is now done in
2680            _unsubscribe_proj_files
2681            (ProjectionList.update_projections): We now have a list of proj
2682            file objects
2683            (ProjectionList.SetProjFiles): New method to set a new list of
2684            proj file objects
2685    
2686            * test/test_proj.py (ProjFileReadTests.test_get_system_proj_file):
2687            Specify explicitly which system proj file to load.
2688    
2689    2003-11-11  Bernhard Herzog  <[email protected]>
2690    
2691            * Thuban/Model/load.py (SessionLoader.Destroy): New. Clear all
2692            instance variables to cut cyclic references. The GC would have
2693            collected the loader eventually but it can happen that it doesn't
2694            run at all until thuban is closed (2.3 but not 2.2 tries a bit
2695            harder and forces a collection when the interpreter terminates)
2696            (load_session): Call the handler's Destroy method to make sure
2697            that it gets garbage collected early. Otherwise it will be
2698            collected very late if at all and it holds some references to e.g.
2699            shapestores and the session which can lead to leaks (of e.g. the
2700            temporary files)
2701    
2702            * test/test_load.py (TestSingleLayer.test_leak): New. test for the
2703            resource leak in load_session
2704    
2705    2003-11-10  Bernhard Herzog  <[email protected]>
2706    
2707            * Thuban/UI/baserenderer.py: Add a way to specify how layers in
2708            extensions are to be rendered.
2709            (_renderer_extensions): New. List with renderer for layers in
2710            extensions
2711            (add_renderer_extension): New. Add a renderer extension
2712            (init_renderer_extensions): New. Init the renderer extensions
2713            (BaseRenderer.render_map_incrementally): Search
2714            _renderer_extensions for how to draw unknown layer types
2715            (BaseRenderer.draw_raster_data): Add format parameter so that
2716            formats other than BMP can be drawn
2717            (BaseRenderer.draw_raster_layer): Pass an explicit format to
2718            draw_raster_data
2719    
2720            * Thuban/UI/renderer.py (raster_format_map): New. Mapping form the
2721            strings of the format parameter of draw_raster_data method to wx
2722            constants
2723            (MapRenderer.draw_raster_data): Add the format parameter and use
2724            raster_format_map to map it to the right wxwindows constant for
2725            wxImageFromStream
2726    
2727            * test/test_baserenderer.py (SimpleRenderer.draw_raster_data): Add
2728            the format parameter and record it
2729            (TestBaseRenderer.test_raster_no_projection): check the format
2730            paramter of the draw_raster_data method
2731            (TestBaseRenderer.test_renderer_extension): New. Test the renderer
2732            extension facility
2733    
2734    2003-11-07  Bernhard Herzog  <[email protected]>
2735    
2736            Tweak the usage of the sqlite database to make common use cases
2737            more responsive. In most cases copying the data to the sqlite
2738            database takes so long that using sqlite doesn't have enough
2739            advantages.
2740    
2741            * Thuban/Model/transientdb.py (TransientTableBase.ValueRange): Add
2742            comments about performance and query the min and max in separate
2743            statements because only that way will indexes be used.
2744            (TransientTableBase.UniqueValues): Add some comments about
2745            performance.
2746            (AutoTransientTable.ValueRange, AutoTransientTable.UniqueValues):
2747            Do not copy the data to the transient DB but use the transient
2748            copy if it exists. See the new comments for the performance trade
2749            offs
2750    
2751            * test/test_transientdb.py
2752            (TestTransientTable.test_auto_transient_table): Make sure that the
2753            data is copied to the transient database at some point.
2754    
2755    2003-11-03  Bernhard Herzog  <[email protected]>
2756    
2757            * Thuban/Model/data.py (ShapefileStore.ShapesInRegion): Bind some
2758            globals to locals so that it's a bit faster
2759    
2760    2003-11-03  Bernhard Herzog  <[email protected]>
2761    
2762            * Thuban/UI/baserenderer.py
2763            (BaseRenderer.draw_shape_layer_incrementally): Use the ReadValue
2764            method. ReadValue is faster than ReadRowAsDict since it only reads
2765            one cell especially now that the dbf file objects actually
2766            implement it.
2767    
2768            * Thuban/Model/table.py (DBFTable.ReadValue): Use the new
2769            read_attribute method of the dbf objects
2770    
2771    2003-11-03  Bernhard Herzog  <[email protected]>
2772    
2773            * Extensions/profiling/profiling.py (popup_dialog_box): New config
2774            variable to indicate whether the result should be shown in a
2775            dialog box
2776            (profile_screen_renderer, time_screen_renderer): Only show a
2777            dialog box if popup_dialog_box is true.
2778            (profile_screen_renderer): Flush stdout after the printing the
2779            first part of the "profiling..." message
2780    
2781            * Thuban/UI/baserenderer.py
2782            (BaseRenderer.draw_shape_layer_incrementally): Cache the pens and
2783            brushes for the groups so that they're not created over and over
2784            again
2785    
2786            * Thuban/Model/classification.py (Classification.__getattr__)
2787            (Classification._compile_classification)
2788            (Classification._clear_compiled_classification): New. Methods to
2789            manage a 'compiled' representation of the classification groups
2790            which is created on demand
2791            (Classification.InsertGroup, Classification.RemoveGroup)
2792            (Classification.ReplaceGroup): reset the compiled representation
2793            (Classification.FindGroup): Use the compiled representation to
2794            find the matching group
2795            (ClassGroupRange.GetRangeTuple): New. Return the range as a tuple
2796    
2797    2003-10-31  Bernhard Herzog  <[email protected]>
2798    
2799            * Thuban/Model/classification.py (Classification.SetDefaultGroup):
2800            Send a CLASS_CHANGED message
2801            (Classification.RemoveGroup): Send a CLASS_CHANGED message and do
2802            not return the removed group since it wasn't used.
2803    
2804            * test/test_classification.py
2805            (TestClassification.test_set_default_group): New. Test the
2806            SetDefaultGroup method
2807            (TestClassification.test_insert_group): New. Test the InsertGroup
2808            method
2809            (TestClassification.test_remove_group): New. Test the RemoveGroup
2810            method
2811            (TestClassification.test_replace_group): New. Test the
2812            ReplaceGroup method
2813    
2814    2003-10-31  Bernhard Herzog  <[email protected]>
2815    
2816            * test/test_classification.py (TestClassification.setUp):
2817            Subscribe to the CLASS_CHANGED messages
2818            (TestClassification.tearDown): New. Destroy the classification
2819            properly
2820            (TestClassification.test_defaults): Add tests for the default line
2821            width and whether no messages were sent yet
2822            (TestClassification.test_set_default_properties): Add tests for
2823            messages and setting the default line width
2824            (TestClassification.test_add_singleton)
2825            (TestClassification.test_add_range)
2826            (TestClassification.test_multiple_groups): Add tests for messages
2827    
2828    2003-10-31  Bernhard Herzog  <[email protected]>
2829    
2830            Some more refactoring in preparation for new tests:
2831    
2832            * test/test_classification.py (TestClassification.setUp): New.
2833            Instantiate the classification here. Update the test methods
2834            accordingly.
2835            (TestClassification.test_multiple_groups): Make sure that the two
2836            singletons matching 1 are considered different.
2837    
2838    2003-10-31  Bernhard Herzog  <[email protected]>
2839    
2840            * test/test_classification.py (red, green, blue): New. These
2841            constants were used in several cases. Update the relevant methods.
2842            (TestClassification.test_defaults)
2843            (TestClassification.test_set_default_properties)
2844            (TestClassification.test_add_singleton)
2845            (TestClassification.test_add_range)
2846            (TestClassification.test_multiple_groups)
2847            (TestClassification.test_deepcopy): New. These were formerly all
2848            part of the single method test.
2849            (TestClassification.test_deepcopy): Removed.
2850            (TestClassIterator): Removed. The test case is now a method of
2851            TestClassification since it tests part of the public interface of
2852            Classification
2853            (TestClassification.test_iterator): New. Used to be
2854            TestClassIterator effectively
2855    
2856    2003-10-31  Jan-Oliver Wagner <[email protected]>
2857    
2858            GUIfied the functions of the profiling extension.
2859    
2860            * /Extensions/profiling/__init__.py: New: Init to make this
2861            directory a package.
2862    
2863            * Extensions/profiling/profiling.py: Moved menu entries to
2864            the Extensions menu. Applied _() for strings.
2865            (profile_screen_renderer): Catch the detailed printout and present
2866            it in a dialog.
2867            (time_screen_renderer): Raise a dialog to present the result instead
2868            of printing it to stdout.
2869    
2870    2003-10-31  Bernhard Herzog  <[email protected]>
2871    
2872            * test/test_classification.py (TestClassGroupProperties)
2873            (TestClassGroup, TestClassGroupDefault, TestClassGroupRange)
2874            (TestClassGroupSingleton, TestClassIterator, TestClassification):
2875            Split TestClassification into several classes, one for each class
2876            being tested. TestClassification itself now only tests
2877            Classification. This split makes changes to the tests a bit easier
2878    
2879    2003-10-31  Bernhard Herzog  <[email protected]>
2880    
2881            * Extensions/profiling/profiling.py: New. Extension to measure
2882            Thuban performance
2883    
2884    2003-10-31  Frank Koormann <[email protected]>
2885    
2886            Added two items to legend popup menu: Remove Layer and Show Layer Table
2887    
2888            * Thuban/UI/legend.py (LegendPanel._OnRemoveLayer,
2889            LegendPanel._OnShowTable): New event handlers, call the corresponding
2890            mainwindow methods.
2891            (LegendTree._OnRightClick): Added items to popup menu.
2892    
2893    2003-10-30  Bernhard Herzog  <[email protected]>
2894    
2895            * Thuban/UI/dialogs.py (ThubanFrame.__init__): Handle
2896            EVT_WINDOW_DESTROY
2897            (ThubanFrame.OnDestroy): New. Handler for EVT_WINDOW_DESTROY. Does
2898            nothing but is convenient for the derived classes.
2899    
2900            * Thuban/UI/tableview.py
2901            (TableFrame.OnDestroy, LayerTableFrame.OnDestroy): New.
2902            Unsubscribe the messages here not in OnClose because that might
2903            get called multiple times. Fixes RT #2196
2904            (TableFrame.OnClose, LayerTableFrame.OnClose): Removed. Not needed
2905            anymore.
2906    
2907            * README: Update the minimum requirement for wxPython. Since we
2908            now use the EVT_WINDOW_DESTROY event, we need at least 2.4.0.4,
2909            the version in which that was introduced for all platforms
2910    
2911    2003-10-30  Frank Koormann <[email protected]>
2912    
2913            * Thuban/UI/join.py (JoinDialog.OnJoin): Wrapped the major parts of
2914            the join process in a ThubanBeginBusyCursor, ThubanEndBusyCursor
2915            frame.
2916    
2917    2003-10-30  Jan-Oliver Wagner <[email protected]>
2918    
2919            Improved APR import extension, added further EPSG definitions
2920            and some cleanup regarding string class.
2921    
2922            * test/test_proj.py (TestProjection.test_get_projection_units_geo):
2923            Added test for alias 'longlat'.
2924    
2925            * Resources/Projections/epsg-deprecated.proj: New. Contains
2926            deprecated EPSG definitions.
2927    
2928            * Extensions/importAPR/odb.py (ODBBaseObject.TreeInfo): Added
2929            the variable names for objects.
2930    
2931            * Extensions/importAPR/apr.py (APR_BLnSym, APR_BMkSym, APR_BShSym): New.
2932            Copied from importAPR and provided with documentation.
2933    
2934            * Extensions/importAPR/importAPR.py (APR_BLnSym, APR_BMkSym, APR_BShSym):
2935            Moved to apr.py.
2936            (APR_View): Added object ref 'ITheme'.
2937    
2938            * Thuban/Lib/fileutil.py, Thuban/UI/proj4dialog.py: Replaced string
2939            split function by corresponding use of the string class method.
2940    
2941            * Thuban/Model/xmlwriter.py: Replaced string replace function by
2942            corresponding string method.
2943    
2944    2003-10-29  Bernhard Herzog  <[email protected]>
2945    
2946            * Thuban/UI/baserenderer.py
2947            (BaseRenderer.draw_shape_layer_incrementally): Speed up the
2948            special case of a classification that only has the default group
2949    
2950    2003-10-27  Bernhard Herzog  <[email protected]>
2951    
2952            * po/fr.po, po/es.po: Updated translations from Daniel Calvelo
2953    
2954            * po/de.po: Update.
2955    
2956            * Thuban/UI/application.py
2957            (ThubanApplication.ShowExceptionDialog): Handle translation of the
2958            dialog message properly
2959    
2960    2003-10-27  Bernhard Herzog  <[email protected]>
2961    
2962            Rework how localization works so that we use wx's translation
2963            functions when running Thuban as a normal application but not when
2964            we don't need any UI, such as in the test suite. See the comment
2965            in Thuban/__init__.py for details
2966    
2967            * Thuban/__init__.py (_): Add one level of indirection to make the
2968            translation handling more flexible and to make it possible to use
2969            either wx's translation services or not.
2970            (gettext_identity, translation_function_installed)
2971            (install_translation_function): New function to help with this
2972    
2973            * Thuban/UI/__init__.py: Install the wx specific translation
2974            function if it's OK to do that
2975    
2976            * test/support.py (initthuban): Install a dummy translation
2977            function so that importing Thuban.UI doesn't install a wx specific
2978            one for which would need to import wxPython
2979    
2980    2003-10-27  Bernhard Herzog  <[email protected]>
2981    
2982            * HOWTO-Release: Source archives should be created first and the
2983            binary packages should be created from the source archives.
2984            There's an official debian package now so there's no need to test
2985            the rpm on debian anymore
2986    
2987    2003-10-27  Bernhard Herzog  <[email protected]>
2988    
2989            Several rendering changes:
2990    
2991             - Render the selection into a separate bitmap so that only that
2992               bitmap needs to be redrawn when the selection changes
2993    
2994             - Render incrementally showing previews and allowing interaction
2995               before rendering is complete
2996    
2997             - Update the renderer interface a bit. Most parameters of
2998               RenderMap are now parameters of the constructor
2999    
3000            * Thuban/UI/baserenderer.py (BaseRenderer.__init__): Add the map
3001            and the update region as parameters. Update the doc-string
3002            (BaseRenderer.render_map_incrementally): New. Generator function
3003            to renders the map incrementally
3004            (BaseRenderer.render_map): Remove the map argument (it's now in
3005            the constructor) and simply iterate over the
3006            render_map_incrementally generator to draw the map.
3007            (BaseRenderer.draw_shape_layer_incrementally)
3008            (BaseRenderer.draw_shape_layer): Renamed to
3009            draw_shape_layer_incrementally and changed into a generator that
3010            yields True every 500 shapes. Used by render_map_incrementally to
3011            render shape layers incrementally
3012    
3013            * Thuban/UI/renderer.py (ScreenRenderer.RenderMap): Removed the
3014            map and region parameters which are now in the constructor
3015            (ScreenRenderer.RenderMapIncrementally): New. Public frontend for
3016            the inherited render_map_incrementally.
3017            (BaseRenderer.draw_shape_layer): Removed.
3018            (ScreenRenderer.draw_selection_incrementally): New. The selection
3019            drawing part of the removed draw_shape_layer as a generator
3020            (ScreenRenderer.layer_shapes): Update because of the region
3021            parameter change
3022            (ExportRenderer.__init__): New. Extend the inherited constructor
3023            with the destination region for the drawing
3024            (ExportRenderer.RenderMap): Removed the map and region parameters
3025            which are now in the constructor
3026    
3027            * Thuban/UI/view.py (MapCanvas.PreviewBitmap): New. Return a
3028            bitmap suitable for a preview in a tool
3029            (CanvasPanTool.MouseMove): Use the PreviewBitmap method to get the
3030            bitmap
3031            (MapPrintout.draw_on_dc): Adapt to new renderer interface
3032            (MapCanvas.OnPaint): Handle drawing the selection bitmap if it
3033            exists
3034            (MapCanvas.OnIdle): Update the logic to deal with incremental
3035            rendering and the selection bitmap
3036            (MapCanvas._do_redraw): Handle the instantiation of the render
3037            iterator and the redraws during rendering
3038            (MapCanvas._render_iterator): New. Generator to incrementally
3039            redraw both bitmaps
3040            (MapCanvas.Export): Adapt to new renderer interface.
3041            (MapCanvas.full_redraw): Reset the selection bitmap and the
3042            renderer iterator too
3043            (MapCanvas.redraw_selection): New. Force a redraw of the selection
3044            bitmap
3045            (MapCanvas.shape_selected): Only redraw the selection bitmap
3046    
3047            * test/test_baserenderer.py
3048            (TestBaseRenderer.test_polygon_no_projection)
3049            (TestBaseRenderer.test_raster_no_projection)
3050            (TestBaseRenderer.test_point_map_projection)
3051            (TestBaseRenderer.test_point_layer_and_map_projection)
3052            (TestBaseRenderer.test_point_layer_projection)
3053            (TestBaseRenderer.test_point_with_classification): Adapt to new
3054            renderer interface
3055    
3056    2003-10-24  Bernhard Herzog  <[email protected]>
3057    
3058            * libraries/thuban/wxproj.cpp (draw_polygon_shape)
3059            (point_in_polygon_shape, shape_centroid): Raise an exception if
3060            the shape can't be read. Previously invalid shape ids would lead
3061            to a segfault.
3062    
3063            * test/test_wxproj.py (TestShapeCentroid.test_invalid_shape_id):
3064            New. test whether an exception is raised for invalid shape ids
3065    
3066    2003-10-24  Jan-Oliver Wagner <[email protected]>
3067    
3068            * Thuban/Model/proj.py (Projection.GetProjectedUnits): Added 'longlat'
3069            as alias for 'latlong'.
3070    
3071            * Thuban/UI/projdialog.py (ProjFrame.__init__): Added 'longlat'
3072            as alias for 'latlong'.
3073    
3074    2003-10-24  Jan-Oliver Wagner <[email protected]>
3075    
3076            * Thuban/UI/projdialog.py (ProjFrame.proj_selection_changed): Set
3077            the projection even for the UnknownPanel.
3078            (UnknownProjPanel.__init__): Define the text and create the textctrl
3079            widget.
3080            (UnknownProjPanel._DoLayout): Replaced static text widget by the
3081            textctrl created in __init__.
3082            (UnknownProjPanel.SetProjection): Set the text for the text ctrl
3083            including the parameters of the projection.
3084            
3085    2003-10-24  Jan-Oliver Wagner <[email protected]>
3086    
3087            * Resources/Projections/epsg.proj: New. This is a list of
3088            EPSG codes with parameters for proj. The list has been
3089            generated using devtools/create_epsg.py based on the
3090            file nad/epsg of the proj 4.4.7 package. Four projection
3091            definitions have been deleted as they are not accepted by proj:
3092            "CH1903+ / LV95", "Bern 1898 (Bern) / LV03C", "CH1903 / LV03"
3093            and "HD72 / EOV".
3094    
3095    2003-10-22  Bernhard Herzog  <[email protected]>
3096    
3097            Some more tweaks to the projection dialog which should fix RT
3098            #1886.
3099    
3100            * Thuban/UI/projlist.py (ProjectionList.Destroy): Unsubscribe from
3101            the ProjFile's messages and call the base class methods correctly
3102            (ProjectionList.SelectProjection): Set the wxLIST_STATE_FOCUSED
3103            flag on the newly selected item too. Otherwise some other item is
3104            focused and the first time the focus is moved with the keyboard
3105            the selection moves in unexpected ways.
3106    
3107            * Thuban/UI/projdialog.py (ProjFrame.__init__): Do not set the
3108            focus on the OK button, only on the projection list. That way the
3109            list really has the focus initially
3110            (ProjFrame.OnClose): Call the projection list's Destroy method to
3111            make it unsubscribe all messages
3112    
3113    2003-10-21  Bernhard Herzog  <[email protected]>
3114    
3115            Rework the projection dialog to fix a few bugs, including RT 2166
3116            and most of 2168
3117    
3118            * Thuban/UI/projlist.py: New. The class ProjectionList is a
3119            special wxListCtrl to show a list of projections in a more MVC
3120            fashion
3121    
3122            * Thuban/UI/projdialog.py (ProjFrame): Substantial changes
3123            throughout the class. The main change is to use the ProjectionList
3124            class instead of a normal wxListBox. Also, add an explicit
3125            "Unknown" projection to the projection choice control.
3126            (ProjPanel.__init__): Add an "unknown" ellipsoid
3127            (TMPanel.__init__, LCCPanel.__init__): Tweak the order of
3128            instantiation of the panel's controls to make the tab-order more
3129            natural
3130    
3131    2003-10-21  Bernhard Herzog  <[email protected]>
3132    
3133            * test/test_load.py (TestSingleLayer.file_contents)
3134            (TestSingleLayer.test): Add non-ascii characters to the titles of
3135            session, map and layer. This is effectively a port of the
3136            TestUnicodeStrings test in test_load_0_8.py which for some reason
3137            was only added there.
3138    
3139            * test/test_load_0_9.py (TestSingleLayer.file_contents)
3140            (TestSingleLayer.test): Same as in test_load.py: add non-ascii
3141            characters to the titles of session, map and layer,.
3142    
3143    2003-10-21  Bernhard Herzog  <[email protected]>
3144    
3145            Add EPSG projection handling to .thuban files
3146    
3147            * test/test_save.py (SaveSessionTest.dtd)
3148            (SaveSessionTest.testEmptySession)
3149            (SaveSessionTest.testLayerProjection)
3150            (SaveSessionTest.testRasterLayer)
3151            (SaveSessionTest.testClassifiedLayer)
3152            (SaveSessionTest.test_dbf_table)
3153            (SaveSessionTest.test_joined_table)
3154            (SaveSessionTest.test_save_postgis): Update to 1.0-dev namespace
3155            (SaveSessionTest.testSingleLayer): Update to 1.0-dev namespace and
3156            use a and epsg projection to test saving them
3157    
3158            * test/test_load.py (LoadSessionTest.dtd): Update to 1.0-dev
3159            namespace
3160            (TestLayerVisibility.file_contents, TestLabels.file_contents)
3161            (TestLayerProjection.file_contents)
3162            (TestRasterLayer.file_contents, TestJoinedTable.file_contents)
3163            (TestPostGISLayer.file_contents)
3164            (TestPostGISLayerPassword.file_contents)
3165            (TestLoadError.file_contents, TestLoadError.test): Update to use
3166            1.0-dev namespace
3167            (TestSingleLayer.file_contents, TestSingleLayer.test): Update to
3168            use 1.0-dev namespace and use an EPSG projection to test whether
3169            loading it works
3170    
3171            * test/test_load_0_9.py: New. Effectively a copy of test_load.py
3172            as of Thuban 0.9. These are now tests to determine whether Thuban
3173            can still read files generated by Thuban 0.9
3174    
3175            * Thuban/Model/save.py (SessionSaver.write)
3176            (SessionSaver.write_session): Use the 1.0 dtd and 1.0-dev
3177            namespace
3178            (SessionSaver.write_projection): Write the projection's epsg
3179            attribute
3180    
3181            * Thuban/Model/load.py (SessionLoader.__init__): Also accept the
3182            thuban-1.0-dev.dtd namespace
3183            (SessionLoader.check_attrs): Allow a callable object as conversion
3184            too
3185            (SessionLoader.start_projection, SessionLoader.end_projection)
3186            (SessionLoader.start_parameter): Handle the epsg attribute and
3187            rename a few instance variables to lower case
3188    
3189            * Resources/XML/thuban-1.0.dtd: New. Only difference to
3190            thuban-0.9.dtd is the epsg attribute for projections.
3191    
3192    2003-10-21  Bernhard Herzog  <[email protected]>
3193    
3194            * test/runtests.py (main): Let the user specify which tests to run
3195            on the command line
3196    
3197            * test/support.py (ThubanTestResult.getDescription): Override to
3198            give a better short description. The description can be used as a
3199            parameter to run_tests to run that particular test in isolation.
3200    
3201    2003-10-21  Frank Koormann   <[email protected]>
3202    
3203            Popup menu for legend. Scheduled for the 1.2 release this was too
3204            simple to implement: The popup menu is bound to the legend tree, while
3205            the events are hanlded by its anchestor, the legend panel. This
3206            allows reuse of all the event handlers already implemented for the
3207            legend toolbar buttons.
3208    
3209            * Thuban/UI/legend.py (LegendPanel.__init__): EVT_MENU macros
3210            to add handlers for the events issued by the popup menu.
3211            (LegendPanel._OnToggleVisibility): Handler for toggling layer
3212            visibility event
3213            (LegendPanel._OnProjection): Handler for layer projection event.
3214            (LegendTree.__init__): Added EVT_TREE_ITEM_RIGHT_CLICK
3215            (LegendTree._OnRightClick): Event handler for right click, select item
3216            and pop up menu.
3217            (LegendTree.ToggleVisibility): Toggle layer visibility
3218            (LegendTree.LayerProjection): Raise layer projection dialog for
3219            current layer.
3220    
3221    2003-10-21  Bernhard Herzog  <[email protected]>
3222    
3223            * Resources/Projections/defaults.proj: Use correct DOCTYPE
3224            declaration. The top-level element is projectionlist not projfile
3225    
3226    2003-10-20  Bernhard Herzog  <[email protected]>
3227    
3228            * Thuban/UI/projdialog.py (ProjFrame.write_proj_file): New. helper
3229            method to write a projfile and display a busy cursor and error
3230            dialogs.
3231            (ProjFrame._OnSave, ProjFrame._OnAddToList, ProjFrame._OnImport)
3232            (ProjFrame._OnExport, ProjFrame._OnRemove): Use write_proj_file
3233            (ProjFrame.__FillAvailList): Translate "<None>" too and display a
3234            busy cursor while loading the user and system prj files.
3235    
3236    2003-10-16  Bernhard Herzog  <[email protected]>
3237    
3238            * Thuban/Model/resource.py (projfile_cache): Introduce a cache for
3239            ProjFile objects
3240            (clear_proj_file_cache): New function to clear the cache. Mainly
3241            useful for use by the test suite
3242            (read_proj_file): Use the cache.
3243    
3244            * test/test_proj.py (TestProjFile): Clarify the doc-string
3245            (ProjFileReadTests): Update doc-string
3246            (ProjFileReadTests.test_get_system_proj_file): Check whether the
3247            system proj files is cached.
3248            (ProjFileLoadTestCase): New base class for the proj file tests
3249            derived from support.FileLoadTestCase to provide some common
3250            behavior.
3251            (TestLoadingProjFile)
3252            (TestLoadingProjFileWithEmptyProjectionlist.file_contents)
3253            (TestProjFileWithInvalidParameters.file_contents): Derive from
3254            ProjFileLoadTestCase
3255            (TestLoadingProjFile.test_caching): New. Test whether the cache
3256            works
3257    
3258    2003-10-16      Silke Reimer    <[email protected]>
3259    
3260            * debian/*: New directory with configuration files for building a thuban
3261              deb-package.
3262    
3263    2003-10-14  Bernhard Herzog  <[email protected]>
3264    
3265            * test/test_proj.py: Execute support.run_tests when run as
3266            __main__ so that missing unsubscribes are detected
3267            (TestProjFile.tearDown): Destroy the proj_file properly
3268    
3269    2003-10-14  Bernhard Herzog  <[email protected]>
3270    
3271            * Thuban/Model/messages.py (PROJECTION_ADDED)
3272            (PROJECTION_REPLACED, PROJECTION_REMOVED): New message types for
3273            the ProjFile objects
3274    
3275            * Thuban/Model/proj.py (ProjFile): Derive from Publisher so we can
3276            easily send messages when the projections change
3277            (ProjFile.Add, ProjFile.Remove, ProjFile.Replace): Issue messages
3278            when the change was successful
3279    
3280            * test/test_proj.py (TestProjFile.setUp): Subscribe to some of the
3281            proj file messages
3282            (TestProjFile.test_add_remove)
3283            (TestProjFile.test_remove_non_existing)
3284            (TestProjFile.test_replace)
3285            (TestProjFile.test_replace_non_existing): Test whether the right
3286            messages are sent
3287    
3288    2003-10-14  Bernhard Herzog  <[email protected]>
3289    
3290            * test/test_proj.py (TestProjFile.test): Refactor into several
3291            tests
3292            (TestProjFile.test_add_remove)
3293            (TestProjFile.test_remove_non_existing)
3294            (TestProjFile.test_replace)
3295            (TestProjFile.test_replace_non_existing): Some of the new
3296            individual test cases
3297            (TestProjFileSimple): New class for the rest of the test cases
3298            that came out of the refactoring
3299            (ProjFileTest): Derive from xmlsupport.ValidationTest so that the
3300            derived classes don't have to
3301    
3302    2003-10-13  Bernhard Herzog  <[email protected]>
3303    
3304            Add an optional EPSG code to the projection objects and extend the
3305            .proj file format accordingly.
3306    
3307            * Resources/XML/projfile.dtd (element projection): Add epsg
3308            attribute
3309    
3310            * Thuban/Model/proj.py (Projection.__init__): New parameter and
3311            instance variable epsg. Update doc-string
3312            (Projection.EPSGCode, Projection.Label): New methods to provide
3313            access to EPSG code and a label for use in dialogs
3314    
3315            * Thuban/Model/resource.py (ProjFileReader.start_projection)
3316            (ProjFileReader.end_projection, ProjFileSaver.write_projfile):
3317            Handle the epsg code attribute when reading or writing proj files
3318    
3319            * Thuban/UI/projdialog.py (ProjFrame._OnSave)
3320            (ProjFrame._OnAddToList, ProjFrame.__DoOnProjAvail)
3321            (ProjFrame.__FillAvailList): Use the projection's Label method to
3322            get the string for the list box
3323    
3324            * test/test_proj.py (TestProjection.test_label)
3325            (TestProjection.test_label_epsg)
3326            (TestProjection.test_epsgcode_for_non_epsg_projection)
3327            (TestProjection.test_epsgcode_for_real_epsg_projection): New tests
3328            for the label and EPSGCode methods
3329            (WriteProjFileTests.doTestWrite, WriteProjFileTests.test_write)
3330            (WriteProjFileTests.test_write_empty_file): Create the ProjFile
3331            objects in the test cases and put the expected contents into the
3332            test case methods too. Update doTestWrite accordingly
3333            (TestLoadingProjFile)
3334            (TestLoadingProjFileWithEmptyProjectionlist): New classes with the
3335            read tests from TestProjFile.
3336            (TestProjFile.doTestRead, TestProjFile.testRead): Removed. These
3337            tests are now in the new classes.
3338            (sample_projfile, sample_projfile_data)
3339            (sample_projfile2, sample_projfile_data2): Removed. Not used
3340            anymore.
3341            (TestProjFile.test_read_unreadable_file): No need to reset the
3342            permissions at the end anymore since we use a unique filename
3343    
3344    2003-10-13  Bernhard Herzog  <[email protected]>
3345    
3346            * test/test_proj.py: Some more refactoring of the test cases
3347            (ProjFileTest): New base class for the proj file tests.
3348            (TestProjFile): Derive from ProjFileTest
3349            (TestProjFile.test_read_unreadable_file)
3350            (TestProjFile.test_read_empty_file, TestProjFile.doTestRead): Use
3351            the new filename method to get a unique filename
3352            (TestProjFile.doTestWrite, TestProjFile.testWrite): Removed.
3353            (WriteProjFileTests): New class for proj file write tests.
3354            Contains the write test that were in TestProjFile originally.
3355    
3356    2003-10-13  Bernhard Herzog  <[email protected]>
3357    
3358            * test/test_proj.py (TestProjFile.testRead)
3359            (TestProjFile.test_read_non_existing_file)
3360            (TestProjFile.test_read_unreadable_file)
3361            (TestProjFile.test_read_empty_file): Split into several methods.
3362    
3363    2003-10-10  Bernhard Herzog  <[email protected]>
3364    
3365            * Thuban/UI/sizers.py: New file with custom sizers.
3366    
3367            * Thuban/UI/projdialog.py (ProjFrame.build_dialog): Instantiate
3368            all projection type specific panels and put them into a
3369            NotebookLikeSizer. This way the dialog doesn't change its size
3370            when a different projection is selected
3371            (ProjFrame.__init__): Rename projection_panels
3372            projection_panel_defs and reuse projection_panels for a list of
3373            the instantiated panels.
3374            (ProjFrame._show_proj_panel, ProjFrame.__DoOnProjAvail)
3375            (ProjFrame.__DoOnProjChoice): Changes due to the new handling of
3376            the panels
3377            (UnknownProjPanel._DoLayout): Place the newlines in the message
3378            differently to make the panel narrower.
3379            (TMPanel._DoLayout): Layout the parameters in one column.
3380    
3381    2003-10-10  Bernhard Herzog  <[email protected]>
3382    
3383            * Thuban/UI/projdialog.py (ProjFrame.build_dialog): New method
3384            that contains all the setup for the dialog's widgets, layout and
3385            event handling.
3386            (__): Call build_dialog to build the dialog.
3387            (ProjFrame.__set_properties, ProjFrame.__do_layout): Removed.
3388            Their functionality is now in build_dialog
3389            (ProjFrame.__VerifyButtons, ProjFrame.__VerifyButtons)
3390            (ProjFrame.__DoOnProjAvail, ProjFrame.__DoOnProjAvail)
3391            (ProjFrame.__DoOnProjChoice): Small updates due to slightly
3392            different widget names and hierarchy introduced with build_dialog.
3393    
3394    2003-10-10  Bernhard Herzog  <[email protected]>
3395    
3396            * README: Fix typo.
3397    
3398    2003-10-09  Bernhard Herzog  <[email protected]>
3399    
3400            * Thuban/Model/proj.py (ProjFile.Add): Do not check whether the
3401            projection is already in the list. This is *a lot* faster when
3402            loading files with hundreds of projections since it saves a linear
3403            search. OTOH this will allow adding the same projection to the
3404            user.proj file multiple times in the projection dialog but we'll
3405            deal with that later
3406    
3407    2003-10-09  Jan-Oliver Wagner <[email protected]>
3408    
3409            * devtools: New. Directory for developer tools that are not intended
3410            for the regular user.
3411    
3412            * devtools/create_epsg.py: New. Convert the epsg file of proj into
3413            a python .proj file.
3414    
3415    2003-10-09  Bernhard Herzog  <[email protected]>
3416    
3417            * test/test_proj.py
3418            (TestProjection.test_get_parameter_without_equals_sign): New. Test
3419            whether GetParameter handles parameters without "=" sign correctly
3420    
3421            * Thuban/Model/proj.py (Projection.GetParameter): Handle
3422            parameters that do not contain a "=". Update the doc-string
3423    
3424    2003-10-08  Bernhard Herzog  <[email protected]>
3425    
3426            * Thuban/UI/projdialog.py (ProjFrame.__set_properties): Remove the
3427            length limit on the projname text control
3428    
3429    2003-10-08  Bernhard Herzog  <[email protected]>
3430    
3431            * test/test_proj.py (TestProjection.test_get_projection_units_geo)
3432            (TestProjection.test_get_projection_units_normal): New. Tests for
3433            the Projection.GetProjectedUnits method
3434    
3435    2003-10-08  Jan-Oliver Wagner <[email protected]>
3436    
3437            * Thuban/Model/resource.py (get_user_proj_file): small bug-fix:
3438            Added missing 'val' parameter.
3439    
3440    2003-10-08  Bernhard Herzog  <[email protected]>
3441    
3442            * Thuban/UI/projdialog.py (ProjFrame.__DoOnProjAvail): When the
3443            projection type of the currently selected projection is not known,
3444            i.e. there's no panel for it, use the UnknownProjPanel
3445            (ProjFrame.__DoOnProjChoice, ProjFrame._show_proj_panel): Split
3446            the actual replacing of the proj panel into the new method
3447            _show_proj_panel.
3448            (UnknownProjPanel): Add doc-string.
3449            (UnknownProjPanel._DoLayout): Insert a newline into the text so
3450            that the panel is not so wide.
3451    
3452    2003-10-08  Bernhard Herzog  <[email protected]>
3453    
3454            * Thuban/Model/resource.py (read_proj_file): Return the warnings
3455            too. Update the doc-string
3456            (get_proj_files): Removed. It wasn't used anywhere
3457            (get_system_proj_files, get_system_proj_file): Rename to
3458            get_system_proj_file and return the ProjFile object and not a list
3459            of ProjFile objects. Update the callers.
3460            (get_user_proj_files, get_user_proj_file): Rename to
3461            get_user_proj_file return the ProjFile object and not a list of
3462            ProjFile objects. Update the callers.
3463            (ProjFileReader.__init__): New instance variable for the warnings.
3464            Rename the __pf ivar to projfile. Update the methods referring to
3465            __pf
3466            (ProjFileReader.end_projection): Catch any errors raised when
3467            instantiating the projection and record that as an error. The
3468            projection will not be in the final ProjFile object.
3469            (ProjFileReader.GetWarnings): New method to return the warnings.
3470    
3471            * Thuban/UI/projdialog.py (ProjFrame.show_warnings): New method to
3472            show the warnings from the projfile reader
3473            (ProjFrame._OnImport): Deal with any warnings returned by
3474            read_proj_file
3475            (ProjFrame.__FillAvailList): Deal with any warnings returned by
3476            get_system_proj_file or get_user_proj_file.
3477    
3478            * test/test_proj.py (TestProjFile.doTestRead): Check the warnings.
3479            (TestProjFileWithInvalidParameters.file_contents): New test cases
3480            to test whether read_proj_file handles invalid projection
3481            parameters correctly
3482            (TestProjFile.test_get_system_proj_file): New. Simple test for
3483            resource.get_system_proj_file
3484    
3485    2003-10-07  Bernhard Herzog  <[email protected]>
3486    
3487            * test/test_derivedshapestore.py
3488            (TestDerivedShapeStoreExceptions.tearDown): Clear the session
3489            properly so that the temporary directories get deleted correctly
3490    
3491    2003-10-06  Bernhard Herzog  <[email protected]>
3492    
3493            Handle the title changes in a proper MVC way.
3494    
3495            * Thuban/UI/mainwindow.py (MainWindow.__init__): Subscribe to the
3496            canvas' TITLE_CHANGED messages
3497            (MainWindow.update_title): New. Update the main window's title
3498            (MainWindow.__SetTitle): Removed. Use update_title instead.
3499            (MainWindow.SetMap): Use update_title instead of __SetTitle
3500            (MainWindow.RenameMap): Do change the window title explicitly
3501            here. That's handled in a proper MVC way now.
3502            (MainWindow.title_changed): New. Subscriber for the TITLE_CHANGED
3503            messages
3504    
3505            * Thuban/Lib/connector.py (Conduit): New class to help classes
3506            that forward messages
3507    
3508            * Thuban/UI/viewport.py: Forward the map's TITLE_CHANGED messages
3509            (ViewPort): Derive from Conduit instead of Publisher
3510            (ViewPort.Subscribe, ViewPort.Unsubscribe): Use the new base class
3511            when calling the inherited versions
3512            (ViewPort._subscribe_map, ViewPort._unsubscribe_map): New helper
3513            methods to subscribe and unsubscribe map messages
3514            (ViewPort.SetMap, ViewPort.Destroy): Use the new helper methods to
3515            handle the map subscriptions
3516            (ViewPort.Map, ViewPort.map_projection_changed)
3517            (ViewPort.layer_projection_changed): Add or update doc-strings
3518    
3519            * test/test_connector.py (TestPublisher.test_issue_simple): Fix
3520            typo
3521            (MyConduit): Helper class for the Conduit test.
3522            (TestConduit): Test cases for Conduit
3523    
3524            * test/test_connector.py: Use support.run_tests as main.
3525    
3526            * test/test_viewport.py (ViewPortTest.setUp): Also subscribe to
3527            the TITLE_CHANGED messages
3528            (ViewPortTest.test_forwarding_title_changed): New test to check
3529            whether the viewport forwards the map's TITLE_CHANGED messages
3530            (TestViewportWithPostGIS.tearDown): Call the map's Destroy method
3531            after the port's because the latter may require a still functional
3532            map.
3533    
3534    2003-10-06  Bernhard Herzog  <[email protected]>
3535    
3536            * Thuban/UI/application.py (ThubanApplication.maps_changed): Add
3537            doc-string
3538    
3539    2003-10-06  Bernhard Herzog  <[email protected]>
3540    
3541            * test/test_viewport.py (ViewPortTest.setUp)
3542            (SimpleViewPortTest.test_init_with_size): Move the test for the
3543            initial size as a constructor parameter from ViewPortTest.setUp
3544            method to a new separate test in SimpleViewPortTest.
3545    
3546    2003-10-06  Bernhard Herzog  <[email protected]>
3547    
3548            * test/test_viewport.py (MockView): New class derived from
3549            ViewPort with a mock implementation of GetTextExtent to be used in
3550            the test cases
3551            (ViewPortTest.setUp): Use MockView instead of ViewPort
3552    
3553            * Thuban/UI/viewport.py (ViewPort.GetTextExtent): Turn this method
3554            into what would be a "pure virtual function" in C++: always raise
3555            NotImplementedError. Mock implementations for test cases don't
3556            belong into the real code
3557    
3558    2003-10-02  Bernhard Herzog  <[email protected]>
3559    
3560            * test/test_layer.py (TestLayer.test_empty_layer): Explicitly
3561            close the dbf file we create so that it's contents have been
3562            written properly.
3563    
3564            * libraries/shapelib/shptree.c, libraries/shapelib/shpopen.c,
3565            libraries/shapelib/shapefil.h, libraries/shapelib/dbfopen.c:
3566            Update to shapelib 1.2.10
3567    
3568    2003-10-01  Jan-Oliver Wagner <[email protected]>
3569    
3570            * Thuban/UI/tree.py, Thuban/UI/main.py: Remove the #! line as
3571            it annoys lintian which warns about these files not being
3572            executable. The #! isn't necessary here since if you absolutely
3573            must execute them you can always say "python <filename>".
3574    
3575    2003-09-26  Bernhard Herzog  <[email protected]>
3576    
3577            * Thuban/Model/classgen.py (GenQuantiles0): Removed since it's
3578            only used in GREAT-ER but not used in Thuban itself. When GREAT-ER
3579            is ported to a newer the import will fail, so it should be noticed
3580            immediately that this function is gone.
3581            Fixes RT#1919
3582    
3583    2003-09-26  Bernhard Herzog  <[email protected]>
3584    
3585            Add a DTD for the projection files and make thuban write valid
3586            projection files
3587    
3588            * Resources/XML/projfile.dtd: New. DTD for thuban's projection
3589            files
3590    
3591            * Thuban/Model/resource.py (ProjFileSaver.write): Use
3592            'projectionlist' as the name in the document type declaration so
3593            that it matches the element type of the root element.
3594    
3595            * test/test_proj.py (sample_projfile, sample_projfile2): Use
3596            'projectionlist' as the name in the document type declaration just
3597            as it is done now in the files thuban would write
3598            (sample_projfile, sample_projfile_data): Fix spelling of
3599            "Mercator"
3600            (TestProjFile.doTestWrite): Validate the written and the expected
3601            XML data
3602            (TestProjFile): Derive from ValidationTest so that we can run xml
3603            validation tests
3604    
3605    2003-09-24  Bernhard Herzog  <[email protected]>
3606    
3607            * Thuban/UI/renderer.py (ExportRenderer.render_legend): Do not
3608            modify the list returned by map.Layers() in place since it is the
3609            actual list of layers used by the map.
3610    
3611    2003-09-23  Jan-Oliver Wagner <[email protected]>
3612    
3613            * Doc/manual/thuban-manual.xml: Added subsection to chapter
3614            Extensions to describe the extensions coming with the Thuban
3615            standard package (gns2shp and importAPR).
3616    
3617    2003-09-23  Bernhard Herzog  <[email protected]>
3618    
3619            * libraries/thuban/wxproj.cpp (project_point): if there's an
3620            inverse but no forward projection, convert to degrees after
3621            applying the inverse projection. Fixes RT#2096
3622    
3623            * test/test_wxproj.py: New. Test cases for wxproj.so. One test
3624            implicitly tests for the fix to RT#2096
3625    
3626            * test/support.py (FloatComparisonMixin.assertFloatSeqEqual):
3627            Check that the sequences have the same lengths
3628    
3629            * Resources/Projections/defaults.proj (Geographic projection): Use
3630            a much more precise value for the to_meter attribute.
3631    
3632    2003-09-22  Bernhard Herzog  <[email protected]>
3633    
3634            * test/support.py (initthuban): Make sure to unset the LANG env.
3635            var. so that tests that compare translated strings work. Solves RT
3636            #2094
3637    
3638    2003-09-22  Jan-Oliver Wagner <[email protected]>
3639    
3640            Small improvement of APR import.
3641    
3642            * Extensions/importAPR/test/test_apr.py (aprTest.test_LClass):
3643            Added tests for text-ranges.
3644    
3645            * Extensions/importAPR/apr.py (APR_LClass.GetThubanRange): Now
3646            returns a string object if the range is based on text.
3647    
3648            * Extensions/importAPR/importAPR.py (import_apr_dialog): Unified
3649            range retrieval.
3650    
3651    2003-09-22  Jan-Oliver Wagner <[email protected]>
3652    
3653            Initial version of the importAPR extension which is in
3654            experimental state.
3655    
3656            * /Extensions/importAPR/, /Extensions/importAPR/samples/,
3657            /Extensions/importAPR/test/: New directories.
3658    
3659            * /Extensions/importAPR/samples/README: New: Howto load the samples.
3660    
3661            * /Extensions/importAPR/samples/iceland.apr: New: A sample APR
3662            file which refers to the Thuban Iceland demo data.
3663    
3664            * /Extensions/importAPR/test/README: New: Howto execute the tests.
3665    
3666            * /Extensions/importAPR/test/test_apr.py: New: Tests for APR classes.
3667    
3668            * /Extensions/importAPR/apr.py: New: Classes for ArcView Objects
3669            as in '.apr'-files.
3670    
3671            * /Extensions/importAPR/odb.py: New: Classes for generic ArcView
3672            ODB Objects as in '.apr', '.avl' and other files.
3673    
3674            * /Extensions/importAPR/__init__.py: New: Init to make this
3675            directory a package.
3676    
3677            * /Extensions/importAPR/importAPR.py: New: Import a ArcView
3678            project file (.apr) and convert it to Thuban.
3679    
3680    2003-09-22  Jan-Oliver Wagner <[email protected]>
3681    
3682            * Extensions/gns2shp.gns2shp.py: The main module of gns2shp.
3683    
3684    2003-09-19  Jan-Oliver Wagner <[email protected]>
3685    
3686            * Doc/manual/thuban-manual.xml: Extended section 'Installation'
3687            with description on RPM installation and RPM binary package
3688            creation.
3689    
3690    2003-09-18  Bernhard Herzog  <[email protected]>
3691    
3692            * setup.py (data_files): Only add the mo files if the Locales
3693            directory actually exists, so that setup.py works with a fresh CVS
3694            checkout
3695    
3696    2003-09-12  Jan-Oliver Wagner <[email protected]>
3697    
3698            * Examples/simple_extensions/simple_tool.py: bugfix: Tool is now
3699            in viewport, not anymore in view
3700    
3701    2003-09-04  Jan-Oliver Wagner <[email protected]>
3702    
3703            Introducing first Extension (gns2shp).
3704    
3705            * Extensions, Extensions/gns2shp, Extensions/gns2shp/test: New.
3706    
3707            * Extensions/__init__.py: New. init to make this dir a package.
3708    
3709            * Extensions/gns2shp/__init__.py: New. init to make this dir a package.
3710    
3711            * Extensions/gns2shp/test/README: New. some info on this test directory.
3712    
3713            * Extensions/gns2shp/test/ls.txt: New. test data set (Liechtenstein).
3714    
3715            * Extensions/gns2shp/test/test_gns2shp.py: New. Test for correct creation
3716            of Shapefile from GNS text file format
3717    
3718    2003-09-03  Jan-Oliver Wagner <[email protected]>
3719    
3720            Fix/workaround for bug #2019:
3721            https://intevation.de/rt/webrt?serial_num=2019
3722    
3723            * Thuban/UI/identifyview.py (IdentifyView.ID_STOP): New.
3724            (IdentifyView.__init__): Added another button that allows to
3725            stop the identify mode.
3726            (IdentifyView.OnStop): New. Stops the identify mode.
3727    
3728    2003-09-03  Jan-Oliver Wagner <[email protected]>
3729    
3730            Introducing a new exception dialog that allows to exit the
3731            application immediately.
3732            This fixes bug #2060: https://intevation.de/rt/webrt?serial_num=2060
3733    
3734            * Thuban/UI/exceptiondialog.py: New. A special exception dialog.
3735    
3736            * Thuban/UI/application.py (ThubanApplication.ShowExceptionDialog):
3737            Made strings available to translations. Exchanged the simple
3738            ScrolledMessageDialog by the new ExceptionDialog.
3739    
3740    2003-09-01  Bernhard Herzog  <[email protected]>
3741    
3742            * NEWS: New. Summary of changes and release notes.
3743    
3744            * MANIFEST.in: Add NEWS
3745    
3746    2003-09-01  Bernhard Herzog  <[email protected]>
3747    
3748            * MANIFEST.in: Correct the include statement for the mo-files and
3749            include the documentation too.
3750    
3751            * setup.py (data_files): Add the .mo files
3752            (setup call): Up to version 0.9.0
3753    
3754    2003-09-01  Bernhard Herzog  <[email protected]>
3755    
3756            * Thuban/UI/dbdialog.py (ChooseDBTableDialog.__init__): Change the
3757            parameter list to just parent and session
3758            (ChooseDBTableDialog.__set_properties): Removed. Setting the
3759            selection of empty list boxes is not allowed (and produces C++
3760            assertion errors) and the rest of the setup is better done in
3761            __init__ anyway.
3762            (ChooseDBTableDialog.OnCancel, ChooseDBTableDialog.OnOK)
3763            (ChooseDBTableDialog.OnLBDClick, DBDialog.OnOK): Use the Python
3764            builtins True/False for booleans to avoid warnings from wxPython
3765    
3766            * Thuban/UI/mainwindow.py (MainWindow.AddDBLayer): Adapt to new
3767            ChooseDBTableDialog constructor parameters.
3768    
3769    2003-09-01  Bernhard Herzog  <[email protected]>
3770    
3771            * Thuban/Model/postgisdb.py
3772            (PostGISTable): Extend doc-string
3773            (PostGISTable._fetch_table_information): Set the column index
3774            correctly, pretending ignored columns don't exist.
3775    
3776            * test/test_postgis_db.py (TestPostGISIgnoredColumns): New tests
3777            for postgis tables with data types not yet supported by thuban.
3778    
3779    2003-08-29  Bernhard Herzog  <[email protected]>
3780    
3781            * HOWTO-Release: Tweak item about running the tests.
3782    
3783    2003-08-29  Jan-Oliver Wagner <[email protected]>
3784    
3785            * /Doc/manual/thuban-manual.xml: updated to version 1.0pre2.
3786    
3787    2003-08-29  Bernhard Herzog  <[email protected]>
3788    
3789            Add some missing parameters to projections. Proj complains about
3790            them on windows but for some reason not on Linux.
3791    
3792            * test/test_save.py (SaveSessionTest.testLayerProjection): Add
3793            missing required projection parameters
3794    
3795            * test/test_proj.py (TestProjFile.test): Add missing required
3796            projection parameters
3797    
3798            * test/test_load_0_8.py (TestLayerProjection.file_contents)
3799            (TestLayerProjection.test): Add missing required projection
3800            parameters and tests for them
3801    
3802            * test/test_load.py (TestLayerProjection.file_contents)
3803            (TestLayerProjection.test): Add missing required projection
3804            parameters and tests for them
3805    
3806            * test/test_layer.py (TestLayer.test_base_layer): Add missing
3807            required projection parameters
3808    
3809    2003-08-29  Bernhard Herzog  <[email protected]>
3810    
3811            * libraries/pyprojection/Projection.i: Use pj_get_errno_ref to
3812            access the pj_errno because directly accessing pj_errno doesn't
3813            work on windows if the proj library is in a DLL
3814    
3815            * libraries/pyprojection/Projection_wrap.c: Update from Projection.i
3816    
3817    2003-08-28  Bernhard Herzog  <[email protected]>
3818    
3819            * test/test_proj.py: Import things from Thuban after calling
3820            initthuban
3821    
3822            * test/test_load.py (LoadSessionTest.filenames): New class
3823            variable with the filename attributes to normalize
3824            (LoadSessionTest.check_format): Pass self.filenames to
3825            sax_eventlist to normalize the filename attributes
3826    
3827            * test/xmlsupport.py: Add cvs keywords
3828            (SaxEventLister.__init__): New parameter filenames which indicates
3829            attributes that contain filenames
3830            (SaxEventLister.startElementNS): Normalize the filename attributes
3831            with os.path.normpath
3832            (sax_eventlist): New parameter filenames to pass through to
3833            SaxEventLister
3834    
3835            * test/test_derivedshapestore.py: Make this file callable as a
3836            program to execute the tests
3837            (TestDerivedShapeStoreExceptions.test_table_with_wrong_size): Bind
3838            the session to self.session so that it gets destroyed properly
3839    
3840            * test/test_layer.py (TestLayer.tearDown): Call the session's
3841            Destroy method
3842    
3843            * test/test_map.py (TestMapBase.tearDown): Destroy self.session
3844            too if it exists
3845            (TestMapAddLayer.test_add_layer): Bind the session to self.session
3846            so that it gets destroyed properly
3847    
3848            * test/postgissupport.py (reason_for_not_running_tests): Add a
3849            test for the existence of popen2.Popen4.
3850    
3851            * test/test_save.py (SaveSessionTest.tearDown): New. Provide a
3852            reliable way to destroy the sessions created in the test cases
3853            (SaveSessionTest.test_dbf_table): Bind the session to self.session
3854            so that it gets destroyed properly
3855            (SaveSessionTest.testLayerProjection): Bind the session to
3856            self.session so that it gets destroyed properly
3857    
3858            * test/test_session.py (UnreferencedTablesTests.tearDown): Make
3859            sure that the session is destroyed properly
3860    
3861            * test/test_shapefilestore.py: Make this callable as a program to
3862            execute the tests
3863    
3864            * test/test_scalebar.py: Remove unnecessary import of _ from
3865            Thuban
3866    
3867            * test/support.py (print_garbage_information): Call initthuban
3868            here because it may be called indirectly from test cases that test
3869            test support modules which do not use anything from thuban itself
3870            (ThubanTestProgram.runTests): Remove unnecessary debug print
3871    
3872    2003-08-28  Bernhard Herzog  <[email protected]>
3873    
3874            * Thuban/version.py (longversion): Update to 0.9
3875    
3876            * Thuban/UI/mainwindow.py: Remove some unused imports
3877    
3878            * README: Add section about required additional software. Add date
3879            and revision CVS keywords
3880    
3881            * HOWTO-Release: Add item about the translations. Add date and
3882            revision CVs keywords and change formatting to match README a bit
3883            better
3884    
3885            * po/de.po: Update for 0.9
3886    
3887            * test/README: Tweak the wording a little because many tests are
3888            not really unittest.
3889    
3890    2003-08-27  Bernhard Herzog  <[email protected]>
3891    
3892            As preparation for the 0.9 release, switch thuban files to a
3893            non-dev namespace
3894    
3895            * Thuban/Model/save.py (SessionSaver.write_session): Write files
3896            with the http://thuban.intevation.org/dtds/thuban-0.9.dtd
3897            namespace
3898    
3899            * Thuban/Model/load.py (SessionLoader.__init__): Accept the
3900            http://thuban.intevation.org/dtds/thuban-0.9.dtd namespace too
3901    
3902            * test/test_save.py (SaveSessionTest.dtd)
3903            (SaveSessionTest.testEmptySession)
3904            (SaveSessionTest.testSingleLayer)
3905            (SaveSessionTest.testLayerProjection)
3906            (SaveSessionTest.testRasterLayer)
3907            (SaveSessionTest.testClassifiedLayer)
3908            (SaveSessionTest.test_dbf_table)
3909            (SaveSessionTest.test_joined_table)
3910            (SaveSessionTest.test_save_postgis): Update for new namespace
3911    
3912            * test/test_load.py (LoadSessionTest.dtd, TestSingleLayer)
3913            (TestLayerVisibility.file_contents, TestLabels.file_contents)
3914            (TestLayerProjection.file_contents)
3915            (TestRasterLayer.file_contents, TestJoinedTable.file_contents)
3916            (TestPostGISLayer.file_contents)
3917            (TestPostGISLayerPassword.file_contents)
3918            (TestLoadError.file_contents, TestLoadError.test): Update for new
3919            namespace
3920    
3921    2003-08-27  Bernhard Herzog  <[email protected]>
3922    
3923            Make the table interface distinguish between row ids (an integer
3924            that uniquely identifies a row) and row ordinals (a simple row
3925            count from 0 to NumRows() - 1)
3926    
3927            * Thuban/Model/postgisdb.py (PostGISTable.RowIdToOrdinal)
3928            (PostGISTable.RowOrdinalToId): New methods to conver between row
3929            ids and row ordinals
3930            (PostGISTable.ReadRowAsDict, PostGISTable.ReadValue): New keyword
3931            parameter row_is_ordinal to indicate whether the row parameter is
3932            the row id or the ordinal
3933    
3934            * Thuban/Model/transientdb.py (TransientTableBase.RowIdToOrdinal)
3935            (TransientTableBase.RowOrdinalToId)
3936            (AutoTransientTable.RowIdToOrdinal)
3937            (AutoTransientTable.RowOrdinalToId): Same new methods as in
3938            PostGISTable.
3939            (TransientTableBase.ReadRowAsDict, TransientTableBase.ReadValue)
3940            (AutoTransientTable.ReadRowAsDict, AutoTransientTable.ReadValue):
3941            Same new parameter as in PostGISTable.
3942    
3943            * Thuban/Model/table.py (DBFTable.RowIdToOrdinal)
3944            (DBFTable.RowOrdinalToId, MemoryTable.RowIdToOrdinal)
3945            (MemoryTable.RowOrdinalToId): Same new methods as in PostGISTable.
3946            (DBFTable.ReadValue, DBFTable.ReadRowAsDict)
3947            (MemoryTable.ReadValue, MemoryTable.ReadRowAsDict): Same new
3948            parameter as in PostGISTable.
3949    
3950            * Thuban/UI/tableview.py (DataTable.RowIdToOrdinal)
3951            (DataTable.RowOrdinalToId): New methods to convert between row ids
3952            and row ordinals.
3953            (TableGrid.SelectRowById): New method to select a row based on its
3954            ID as opposed to its ordinal
3955            (DataTable.GetValue, TableGrid.OnRangeSelect)
3956            (TableGrid.OnSelectCell, LayerTableGrid.select_shapes)
3957            (QueryTableFrame.OnQuery, QueryTableFrame.get_selected)
3958            (LayerTableFrame.__init__): Convert between row ids and row
3959            ordinals as appropriate
3960    
3961            * test/postgissupport.py (PostGISDatabase.__init__): Add
3962            doc-string.
3963            (PostGISDatabase.initdb): The optional third item in a tuple in
3964            tables is now a (key, value) list with additional arguments to
3965            pass to upload_shapefile
3966            (upload_shapefile): New parameter gid_offset to allow gids that
3967            are not the same as the shapeids in the shapefile
3968            (PostgreSQLServer.get_default_static_data_db): Use the new
3969            gid_offset to make the gids in landmarks 1000 higher than the
3970            shapeids in the shapefile
3971    
3972            * test/test_viewport.py
3973            (TestViewportWithPostGIS.test_find_shape_at_point): Adapt to the
3974            new shapeids in the landmarks table
3975    
3976            * test/test_transientdb.py
3977            (TestTransientTable.run_iceland_political_tests)
3978            (TestTransientTable.test_transient_joined_table): Add tests for
3979            the new table methods and new keywords arguments.
3980    
3981            * test/test_postgis_db.py
3982            (TestPostGISTable.test_read_row_as_dict_row_count_mode)
3983            (TestPostGISTable.test_read_value_row_count_mode)
3984            (TestPostGISTable.test_row_id_to_ordinal)
3985            (TestPostGISTable.test_row_oridnal_to_id): New test for the new
3986            table methods and the new arguments
3987            (TestPostGISShapestorePoint.test_shapes_in_region)
3988            (TestPostGISShapestorePoint.test_shape_raw_data)
3989            (TestPostGISShapestorePoint.test_shape_points)
3990            (TestPostGISShapestorePoint.test_shape_shapeid)
3991            (TestPostGISShapestorePoint.test_all_shapes)
3992            (TestPostGISTable.test_simple_query)
3993            (TestPostGISTable.test_simple_query)
3994            (TestPostGISTable.test_simple_query)
3995            (TestPostGISTable.test_read_value)
3996            (TestPostGISTable.test_read_row_as_dict): Adapt to the new
3997            shapeids in the landmarks table
3998    
3999            * test/test_memory_table.py
4000            (TestMemoryTable.test_read_row_as_dict_row_count_mode)
4001            (TestMemoryTable.test_read_value_row_count_mode)
4002            (TestMemoryTable.test_row_id_to_ordinal)
4003            (TestMemoryTable.test_row_oridnal_to_id): New test for the new
4004            table methods and the new arguments
4005    
4006            * test/test_dbf_table.py
4007            (TestDBFTable.test_read_row_as_dict_row_count_mode)
4008            (TestDBFTable.test_read_value_row_count_mode)
4009            (TestDBFTable.test_row_id_to_ordinal)
4010            (TestDBFTable.test_row_oridnal_to_id): New test for the new table
4011            methods and the new arguments
4012    
4013    2003-08-26  Bernhard Herzog  <[email protected]>
4014    
4015            * Thuban/Model/postgisdb.py (PostGISShapeStore.BoundingBox): Use a
4016            more postgis specific but much faster method to get the bounding
4017            box
4018    
4019    2003-08-26  Bernhard Herzog  <[email protected]>
4020    
4021            * Thuban/Model/postgisdb.py (PostGISTable.Title)
4022            (PostGISShapeStore.AllShapes): Add these missing methods.
4023            (PostGISShapeStore.ShapesInRegion): No need to raise
4024            StopIteration. We can simply return
4025    
4026            * test/test_postgis_db.py (TestPostGISTable.test_title)
4027            (TestPostGISShapestorePoint.test_all_shapes): New tests for the
4028            new methods
4029    
4030    2003-08-25  Bernhard Herzog  <[email protected]>
4031    
4032            * Thuban/Model/postgisdb.py (shapetype_map): Add MUTLIPOLYGON.
4033    
4034            * test/test_postgis_db.py (PolygonTests): New class containing
4035            those tests from TestPostGISShapestorePolygon that can also be
4036            used to test MUTLIPOLYGON tables
4037            (TestPostGISShapestorePolygon): Most tests are now in PolygonTests
4038            so derive from that
4039            (TestPostGISShapestoreMultiPolygon): New class with tests for
4040            MUTLIPOLYGON tables
4041    
4042            * test/postgissupport.py (PostGISDatabase.initdb): Allow the
4043            tables argument to have tuples with three items to override the
4044            WKT type used.
4045            (PostgreSQLServer.get_default_static_data_db): Use the above to
4046            create a polygon table with MUTLIPOLYGONs
4047            (point_to_wkt, coords_to_point, polygon_to_wkt, coords_to_polygon)
4048            (arc_to_wkt, coords_to_multilinestring): Rename from *_to_wkt to
4049            coords_to*
4050            (coords_to_multipolygon): New. Convert to MUTLIPOLYGON
4051            (wkt_converter): New. Map WKT types to converters
4052            (upload_shapefile): New parameter force_wkt_type to use a
4053            different WKT type than the default
4054    
4055    2003-08-25  Bernhard Herzog  <[email protected]>
4056    
4057            * Thuban/UI/application.py
4058            (ThubanApplication.run_db_param_dialog): New. Suitable as a
4059            db_connection_callback. Main difference is that the dialog run
4060            from this method doesn't have a parent so it can be used even when
4061            there is no main window
4062            (ThubanApplication.OpenSession): Use self.run_db_param_dialog if
4063            no db_connection_callback was given. This way the dialog pops up
4064            even when the .thuban file was given as a command line parameter.
4065    
4066    2003-08-25  Bernhard Herzog  <[email protected]>
4067    
4068            * Thuban/UI/view.py (MapCanvas.OnLeftUp): Release the the mouse
4069            before calling MouseLeftUp. MouseLeftUp may pop up modal dialogs
4070            which leads to an effectively frozen X session because the user
4071            can only interact with the dialog but the mouse is still grabbed
4072            by the canvas.
4073            Also, call the tool's Hide method before MouseLeftUp because
4074            MouseLeftUp may change the tool's coordinates.
4075    
4076    2003-08-25  Bernhard Herzog  <[email protected]>
4077    
4078            * Thuban/UI/application.py (ThubanApplication.OpenSession): Catch
4079            LoadCancelled exceptions and handle them by returning immediately.
4080    
4081    2003-08-25  Bernhard Herzog  <[email protected]>
4082    
4083            GUI part of loading sessions with postgis connections which may
4084            require user interaction to get passwords or updated parameters
4085    
4086            * Thuban/UI/dbdialog.py (DBDialog): Reimplement to make it look a
4087            bit nucer and be more generic.
4088            (DBFrame.OnAdd): Adapt to new DBDialog interface
4089    
4090            * Thuban/UI/application.py (ThubanApplication.OpenSession): New
4091            optional parameter db_connection_callback which is passed to
4092            load_session.
4093    
4094            * Thuban/UI/mainwindow.py (MainWindow.run_db_param_dialog): New.
4095            Suitable as a db_connection_callback
4096            (MainWindow.OpenSession): Use self.run_db_param_dialog as the
4097            db_connection_callback of the application's OpenSession method
4098    
4099    
4100    2003-08-25  Bernhard Herzog  <[email protected]>
4101    
4102            Basic loading of sessions containing postgis connections:
4103    
4104            * Thuban/Model/load.py (LoadError): Add doc-string
4105            (LoadCancelled): New exception class to indicate a cancelled load
4106            (SessionLoader.__init__): Add the db_connection_callback parameter
4107            which will be used by the loader to get updated parameters and a
4108            password for a database connection
4109            (SessionLoader.__init__): Add the new XML elements to the
4110            dispatchers dictionary
4111            (SessionLoader.check_attrs): Two new conversions, ascii to convert
4112            to a byte-string object and idref as a generic id reference
4113            (SessionLoader.start_dbconnection)
4114            (SessionLoader.start_dbshapesource): New. Handlers for the new XML
4115            elements
4116            (load_session): Add the db_connection_callback to pass through the
4117            SessionLoader
4118    
4119            * test/test_load.py (TestPostGISLayer, TestPostGISLayerPassword):
4120            New classes to test loading of sessions with postgis database
4121            connections.
4122    
4123    2003-08-25  Bernhard Herzog  <[email protected]>
4124    
4125            * Thuban/UI/mainwindow.py (__ThubanVersion__): Remove this and
4126            replace it and the comment with __BuildDate__ by the Source: and
4127            Id: cvs keywords as used in the other files.
4128    
4129    2003-08-25  Bernhard Herzog  <[email protected]>
4130    
4131            * Thuban/Model/load.py (SessionLoader.check_attrs): Raise a
4132            LoadError when a required attribute is missing. The code used to
4133            be commented out for some reason, but probably should have been
4134            active.
4135    
4136            * test/test_load.py (TestLoadError.test): Test the message in the
4137            LoadError too to make sure it really is about the missing
4138            attribute
4139    
4140    2003-08-22  Bernhard Herzog  <[email protected]>
4141    
4142            * test/test_save.py (SaveSessionTest.test_dbf_table)
4143            (SaveSessionTest.test_joined_table): Add XML validation tests.
4144    
4145    2003-08-22  Bernhard Herzog  <[email protected]>
4146    
4147            Implement saving a session with a postgis connection
4148    
4149            * Resources/XML/thuban-0.9.dtd (dbconnection, dbshapesource) New
4150            elements for database connections and shapestores using db
4151            connections
4152            (session): Add the dbconnections to the content model
4153    
4154            * Thuban/Model/save.py (SessionSaver.write_db_connections): New.
4155            Write the db connections
4156            (SessionSaver.write_session): Call write_db_connections to write
4157            the connection before the data sources
4158            (SessionSaver.write_data_containers): Handle postgis shapestores
4159    
4160            * test/test_save.py (SaveSessionTest.thubanids)
4161            (SaveSessionTest.thubanidrefs): Update for new DTD
4162            (SaveSessionTest.test_save_postgis): New. Test saving a session
4163            with postgis connections
4164    
4165            * Thuban/Model/postgisdb.py (PostGISTable.DBConnection)
4166            (PostGISTable.TableName): New accessor methods for the connection
4167            and table name
4168    
4169            * test/test_postgis_db.py (TestPostGISTable.test_dbconn)
4170            (TestPostGISTable.test_dbname): New methods to test the new
4171            PostGISConnection methods
4172    
4173    2003-08-22  Bernhard Herzog  <[email protected]>
4174    
4175            * Thuban/Model/postgisdb.py (ConnectionError): New exception class
4176            for exceptions occurring when establishing a Database connection
4177            (PostGISConnection.connect): Catch psycopg.OperationalError during
4178            connects and raise ConnectionError.
4179    
4180            * test/test_postgis_db.py (TestPostgisDBExceptions): New class for
4181            tests for database exceptions
4182    
4183    2003-08-22  Bernhard Herzog  <[email protected]>
4184    
4185            Prepare the test suite for tests with required authentication
4186    
4187            * test/postgissupport.py (PostgreSQLServer.__init__): Add instance
4188            variables with two predefined users/passwords, one for the admin
4189            and one for a non-privileged user.
4190            (PostgreSQLServer.createdb): Pass the admin name to initdb and add
4191            the non-privileged user to the database and set the admin password
4192            (PostgreSQLServer.wait_for_postmaster): Use the admin user name.
4193            Better error reporting
4194            (PostgreSQLServer.connection_params)
4195            (PostgreSQLServer.connection_string): New methods to return
4196            information about how to connect to the server
4197            (PostgreSQLServer.execute_sql): New. Convenience method to execute
4198            SQL statements
4199            (PostgreSQLServer.require_authentication): Toggle whether the
4200            server requires authentication
4201            (PostgreSQLServer.create_user, PostgreSQLServer.alter_user): New.
4202            Add or alter users
4203            (PostGISDatabase.initdb): Pass the admin name one the
4204            subprocesses' command lines. Grant select rights on
4205            geometry_columns to everybody.
4206            (upload_shapefile): Use the admin name and password when
4207            connecting. Grant select rights on the new table to everybody.
4208    
4209            * test/test_viewport.py (TestViewportWithPostGIS.setUp): Use the
4210            server's new methods to get the connection parameters.
4211    
4212            * test/test_postgis_session.py (TestSessionWithPostGIS.setUp)
4213            (TestSessionWithPostGIS.test_remove_dbconn_exception): Use the
4214            server's new methods to get the connection parameters.
4215    
4216            * test/test_postgis_db.py
4217            (TestPostGISConnection.test_gis_tables_empty)
4218            (TestPostGISConnection.test_gis_tables_non_empty)
4219            (PostGISStaticTests.setUp): Use the server's new methods to get
4220            the connection parameters.
4221    
4222    2003-08-22  Bernhard Herzog  <[email protected]>
4223    
4224            * Thuban/UI/about.py (About.__init__): Add the psycopg version.
4225    
4226            * Thuban/version.py: Add psycopg version
4227    
4228            * Thuban/Model/postgisdb.py (psycopg_version): New. Return the
4229            version of the psycopg module
4230    
4231    2003-08-22  Bernhard Herzog  <[email protected]>
4232    
4233            * Thuban/UI/dbdialog.py (DBPwdDlg): Removed because it's not used.
4234            (DBFrame.OnEdit): Removed because it's not used and wouldn't work
4235            at the moment. The functionality should probably be implemented
4236            some time, though.
4237            (DBFrame.OnRemove): Display a message if the connection can't be
4238            removed because it's still in use.
4239    
4240    2003-08-22  Jan-Oliver Wagner <[email protected]>
4241    
4242            * Thuban/UI/about.py (About.__init__): split up the huge about
4243            text into elements/lists for easier translation. This fixes bug
4244            https://intevation.de/rt/webrt?serial_num=2058
4245            Also, made some forgotten string available for the i18n.
4246    
4247    2003-08-21  Bernhard Herzog  <[email protected]>
4248    
4249            Make postgis support really optional including insensitive menu
4250            items.
4251    
4252            * Thuban/Model/postgisdb.py (has_postgis_support): New. Return
4253            whether the postgis is supported.
4254    
4255            * Thuban/UI/dbdialog.py: Put the psycopg import into try..except
4256            to make postgis support optional
4257    
4258            * Thuban/UI/mainwindow.py (_has_postgis_support): New. Context
4259            version of Thuban.Model.postgisdb.has_postgis_support
4260            (database_management command): Make it only sensitive if postgis
4261            is supported.
4262    
4263    2003-08-21  Jan-Oliver Wagner <[email protected]>
4264    
4265            * Doc/manual/thuban-manual.xml: Added CVS revision for rev-history.
4266            (section Adding and Removing Layers): Added text and described
4267            multi-selection.
4268            (chapter Extensions): New.
4269    
4270    2003-08-21  Jan-Oliver Wagner <[email protected]>
4271    
4272            * Thuban/UI/mainwindow.py (MainWindow.AddLayer): Changed dialog
4273            settings to allow multiple files to load into the map.
4274            Also reduced selection to *.shp as a default.
4275    
4276    2003-08-20  Bernhard Herzog  <[email protected]>
4277    
4278            Add dialogs and commands to open database connections and add
4279            database layers.
4280    
4281            * Thuban/UI/mainwindow.py (MainWindow.DatabaseManagement): New
4282            method to open the database connection management dialog
4283            (MainWindow.AddDBLayer): New method to add a layer from a database
4284            (_has_dbconnections): New helper function to use for sensitivity
4285            (database_management command, layer_add_db command): New commands
4286            that call the above new methods.
4287            (main_menu): Add the new commands to the menu.
4288    
4289            * Thuban/Model/postgisdb.py (PostGISConnection.__init__)
4290            (PostGISConnection.connect): Establish the actual connection in a
4291            separate method and call it in __init__. This makes it easier to
4292            override the behavior in test cases
4293            (PostGISConnection.BriefDescription): New method to return a brief
4294            description for use in dialogs.
4295    
4296            * test/test_postgis_db.py (NonConnection): DB connection that
4297            doesn't actually connect
4298            (TestBriefDescription): New class with tests for the new
4299            BriefDescription method
4300    
4301    2003-08-19  Jan-Oliver Wagner <[email protected]>
4302    
4303            Moved anything from extensions to libraries.
4304    
4305            * libraries: New.
4306    
4307            * libraries/ pyprojection, pyshapelib, shapelib, thuban: New.
4308    
4309            * libraries/pyprojection/ LICENSE, MANIFEST.in, Projection.i,
4310            Projection.py, Projection_wrap.c, setup.py, swighelp.txt: These files have
4311            been moved here from thuban/extensions/pyprojection/
4312            See there in the Attic for the older history.
4313    
4314            * libraries/pyshapelib/ COPYING, ChangeLog, NEWS, README, dbflib.i,
4315            dbflib.py, dbflib_wrap.c, pyshapelib_api.h, pytest.py, setup.py,
4316            shapelib.i, shapelib.py, shapelib_wrap.c, shptreemodule.c: These files
4317            have been moved here from thuban/extensions/pyshapelib/
4318            See there in the Attic for the older history.
4319    
4320            * libraries/shapelib/ dbfopen.c, shapefil.h, shpopen.c, shptree.c: These
4321            files have been moved here from thuban/extensions/shapelib/
4322            See there in the Attic for the older history.
4323    
4324            * libraries/thuban/ bmpdataset.cpp, cpl_mfile.cpp, cpl_mfile.h,
4325            gdalwarp.cpp, wxproj.cpp: These files have been moved here from
4326            thuban/extensions/thuban/
4327            See there in the Attic for the older history.
4328    
4329            * MANIFEST.in, setup.cfg, setup.py: renamed extensions to libraries.
4330    
4331            * extensions/thuban/ bmpdataset.cpp, cpl_mfile.cpp, cpl_mfile.h,
4332            gdalwarp.cpp, wxproj.cpp: Moved to libraries/thuban.
4333    
4334            * extensions/shapelib/ dbfopen.c, shapefil.h, shpopen.c, shptree.c:
4335            Moved to libraries/shapelib.
4336    
4337            * extensions/pyshapelib/ COPYING, NEWS, dbflib.py, pytest.py,
4338            shapelib.py, README, dbflib_wrap.c, setup.py, shapelib_wrap.c,
4339            ChangeLog, dbflib.i, pyshapelib_api.h, shapelib.i, shptreemodule.c:
4340            Moved to libraries/pyshapelib.
4341    
4342            * extensions/pyprojection/ MANIFEST.in, Projection.py, setup.py,
4343            LICENSE, Projection.i, Projection_wrap.c, swighelp.txt:
4344            Moved to libraries/pyprojection.
4345    
4346            * extensions/ pyprojection, pyshapelib, shapelib, thuban: Removed.
4347    
4348            * extensions: Removed.
4349    
4350    2003-08-19  Bernhard Herzog  <[email protected]>
4351    
4352            * test/test_viewport.py (ViewPortTest): We don't use the
4353            facilities of FileTestMixin so don't derive from it.
4354            (TestViewportWithPostGIS): New class with tests for using a
4355            viewport on a map with postgis layers.
4356    
4357    2003-08-19  Bernhard Herzog  <[email protected]>
4358    
4359            Add the db connection management to the session.
4360    
4361            * Thuban/Model/session.py (Session.__init__): New instance
4362            variable db_connections
4363            (Session.AddDBConnection, Session.DBConnections)
4364            (Session.HasDBConnections, Session.CanRemoveDBConnection)
4365            (Session.RemoveDBConnection): New methods to manage and query the
4366            db connections managed by the session
4367            (Session.OpenDBShapeStore): New method to open a shapestore from a
4368            db connection
4369    
4370            * Thuban/Model/messages.py (DBCONN_REMOVED, DBCONN_ADDED): New
4371            messages for the db connection handling in the session
4372    
4373            * test/test_postgis_session.py: New. test cases for the session's
4374            db connection handling with postgis connections
4375    
4376    2003-08-19  Bernhard Herzog  <[email protected]>
4377    
4378            Add very basic postgis database support and the corresponding test
4379            cases. The test cases require a PostgreSQL + postgis installation
4380            but no existing database. The database will be created
4381            automatically by the test cases
4382    
4383            * test/README: Add note about skipped tests and the requirements
4384            of the postgis tests.
4385    
4386            * Thuban/Model/postgisdb.py: New. Basic postgis database support.
4387    
4388            * test/test_postgis_db.py: New. Test cases for the postgis
4389            support.
4390    
4391            * Thuban/Model/wellknowntext.py: New. Parser for well-known-text
4392            format
4393    
4394            * test/test_wellknowntext.py: New. Test cases for the
4395            wellknowntext parser
4396    
4397            * test/postgissupport.py: New. Support module for tests involving
4398            a postgis database.
4399    
4400            * test/support.py (execute_as_testsuite): Shut down the postmaster
4401            if it's still running after the tests
4402    
4403            * Thuban/Model/data.py (RAW_WKT): New constant for raw data in
4404            well known text format
4405    
4406    2003-08-19  Jan-Oliver Wagner <[email protected]>
4407    
4408            * Examples/simple_extensions/hello_world.py: New. Raises a Hello World
4409            message dialog.
4410    
4411    2003-08-18  Bernhard Herzog  <[email protected]>
4412    
4413            * test/support.py (ThubanTestResult.printErrors): Indent the
4414            reason for the skips in the output to make it a bit more readable.
4415            (execute_as_testsuite): New helper function to run a test suite
4416            and print some more information.
4417            (run_tests): Use execute_as_testsuite to run the tests
4418    
4419            * test/runtests.py (main): Use execute_as_testsuite to run the
4420            tests
4421    
4422    2003-08-18  Bernhard Herzog  <[email protected]>
4423    
4424            Fix some bugs in Thuban and the test suite that were uncovered by
4425            changes introduced in Python 2.3:
4426    
4427            * Thuban/Model/table.py (DBFTable.__init__): Make sure the
4428            filename is an absolute name
4429    
4430            * Thuban/Model/layer.py (RasterLayer.__init__): Make sure the
4431            filename is an absolute name
4432    
4433            * test/test_save.py (SaveSessionTest.testRasterLayer): Use a
4434            unique filename to save to and use the correct relative filename
4435            in the expected output.
4436            (SaveSessionTest.test_dbf_table): Use the correct relative
4437            filename in the expected output.
4438    
4439            * test/test_layer.py (TestLayer.test_raster_layer): Update the
4440            test to check whether the filename is absolute.
4441    
4442    2003-08-18  Jan-Oliver Wagner <[email protected]>
4443    
4444            * Thuban/UI/about.py (About.__init__): Added Silke Reimer.
4445    
4446    2003-08-15  Bernhard Herzog  <[email protected]>
4447    
4448            Change the way shapes are returned by a shape store. The
4449            ShapesInRegion method returns an iterator over actual shape
4450            objects instead of a list of shape ids.
4451    
4452            * Thuban/Model/data.py (ShapefileShape.ShapeID): New. Return shape
4453            id.
4454            (ShapefileStore.ShapesInRegion): Return an iterator over the
4455            shapes which yields shape objects instead of returning a list of
4456            shape ids
4457            (ShapefileStore.AllShapes): New. Return an iterator over all
4458            shapes in the shape store
4459            (DerivedShapeStore.AllShapes): New. Like in ShapefileStore
4460    
4461            * Thuban/Model/layer.py (Layer.ShapesInRegion): Update
4462            doc-string.
4463    
4464            * Thuban/UI/baserenderer.py
4465            (BaseRenderer.layer_ids, BaseRenderer.layer_shapes): Rename to
4466            layer_shapes and make it return an iterator containg shapes
4467            instead of a list of ids.
4468            (BaseRenderer.draw_shape_layer): Update doc-string; Adapt to
4469            layer_shapes() change
4470    
4471            * Thuban/UI/renderer.py (ScreenRenderer.layer_ids)
4472            (ScreenRenderer.layer_shapes): Rename as in BaseRenderer
4473    
4474            * Thuban/UI/viewport.py (ViewPort._find_shape_in_layer): Adapt to
4475            changes in the ShapesInRegion return value.
4476            (ViewPort._get_hit_tester): Remove commented out code
4477    
4478            * test/mockgeo.py (SimpleShapeStore.ShapesInRegion): Adapt to the
4479            new return value.
4480            (SimpleShapeStore.AllShapes): New. Implement this method too.
4481    
4482            * test/test_layer.py (TestLayer.test_arc_layer)
4483            (TestLayer.test_polygon_layer, TestLayer.test_point_layer)
4484            (TestLayer.test_point_layer_with_projection)
4485            (TestLayer.test_derived_store): Adapt to changes in the
4486            ShapesInRegion return value.
4487    
4488            * test/test_shapefilestore.py
4489            (TestShapefileStoreArc.test_shapes_in_region)
4490            (TestShapefileStorePolygon.test_shapes_in_region)
4491            (TestShapefileStorePoint.test_shapes_in_region): Adapt to changes
4492            in the ShapesInRegion return value.
4493            (TestShapefileStorePoint.test_all_shapes)
4494            (TestShapefileStoreArc.test_shape_shapeid): New tests for the new
4495            methods
4496    
4497            * test/test_derivedshapestore.py
4498            (TestDerivedShapeStore.test_shapes_in_region): Adapt to changes in
4499            the ShapesInRegion return value.
4500            (TestDerivedShapeStore.test_all_shapes)
4501            (TestDerivedShapeStore.test_shape_shapeid): New tests for the new
4502            methods
4503    
4504    2003-08-15  Bernhard Herzog  <[email protected]>
4505    
4506            Make the renderers deal correctly with raw vs. python level
4507            representation of shape geometries
4508    
4509            * Thuban/UI/baserenderer.py (BaseRenderer.low_level_renderer):
4510            Return a flag useraw in addition to the callable and the parameter
4511            to indicate whether the callable can deal with the raw shape data
4512            or uses the higher level python lists of coordinates. The callable
4513            now should accept either the raw data or the return value of the
4514            shape's Points() method.
4515            (BaseRenderer.draw_shape_layer): Adapt to the low_level_renderer
4516            change
4517            (BaseRenderer.projected_points): Instead of the shape id use the
4518            points list as parameter.
4519            (BaseRenderer.draw_polygon_shape, BaseRenderer.draw_arc_shape)
4520            (BaseRenderer.draw_point_shape): Adapt to projected_points()
4521            change and accept the points list as parameter instead of the
4522            shape id.
4523    
4524            * Thuban/UI/renderer.py (MapRenderer.low_level_renderer): Return
4525            the useraw flag as required by the BaseRenderer
4526            (ScreenRenderer.draw_shape_layer): Adapt to low-level renderer
4527            changes.
4528    
4529            * test/test_baserenderer.py
4530            (TestBaseRenderer.test_point_with_classification): New test for
4531            rendering a map with classifications.
4532    
4533    2003-08-15  Bernhard Herzog  <[email protected]>
4534    
4535            * Thuban/UI/viewport.py (ViewPort.find_shape_at)
4536            (ViewPort._find_shape_in_layer, ViewPort._find_shape_in_layer)
4537            (ViewPort._get_hit_tester, ViewPort.projected_points)
4538            (ViewPort._hit_point, ViewPort._hit_arc, ViewPort._hit_polygon)
4539            (ViewPort._find_label_at): Split the find_shape_at method into
4540            several new methods and use the functions in the hit-test module.
4541    
4542            * Thuban/UI/hittest.py: New module with Python-level hit-testing
4543            functions
4544    
4545            * test/test_hittest.py: New. Test for the new hittest module
4546    
4547    2003-08-15  Bernhard Herzog  <[email protected]>
4548    
4549            * Thuban/Model/layer.py (Layer.ShapesInRegion): Apply the layer
4550            projection to all corners of the bounding box to get a better
4551            approximation of the projected bounding box
4552    
4553            * test/test_layer.py (TestLayer.test_point_layer_with_projection):
4554            New. Test coordinate handling of a layer with a projection.
4555            Catches the bug fixed in Layer.ShapesInRegion
4556    
4557    2003-08-15  Bernhard Herzog  <[email protected]>
4558    
4559            Move some of the mock objects in test_baserenderer into their own
4560            module so they can easily be used from other tests
4561    
4562            * test/mockgeo.py: New test helper module with some mock objects
4563            for geometry related things like shapes, shapestores and
4564            projections.
4565    
4566            * test/test_mockgeo.py: New. Tests for the new helper module
4567    
4568            * test/test_baserenderer.py: Some of the mock-objects are in
4569            mockgeo now.
4570    
4571    2003-08-12  Jan-Oliver Wagner <[email protected]>
4572    
4573            * Thuban/UI/about.py (About.__init__): Added Bj�rn Broscheit.
4574    
4575    2003-08-12  Bernhard Herzog  <[email protected]>
4576    
4577            * po/de.po: New. German translations by Bjoern Broscheit
4578    
4579    2003-08-12  Bernhard Herzog  <[email protected]>
4580    
4581            * Thuban/UI/projdialog.py (UnknownProjPanel._DoLayout): Translated
4582            strings have to be one string literal.
4583    
4584    2003-08-11  Bernhard Herzog  <[email protected]>
4585    
4586            * test/support.py (FloatComparisonMixin.assertPointListEquals):
4587            New. This method was used in various derived classes, but it's
4588            better to have it here.
4589    
4590            * test/test_shapefilestore.py
4591            (ShapefileStoreTests.assertPointListEquals): Removed. It's now in
4592            FloatComparisonMixin
4593    
4594            * test/test_layer.py (TestLayer.assertPointListEquals): Removed.
4595            It's now in FloatComparisonMixin
4596    
4597            * test/test_derivedshapestore.py
4598            (TestDerivedShapeStore.assertPointListEquals): Removed. It's now
4599            in FloatComparisonMixin
4600    
4601    2003-08-11  Bernhard Herzog  <[email protected]>
4602    
4603            * Thuban/UI/join.py (JoinDialog.OnJoin): Add missing space to
4604            error message
4605    
4606    2003-08-08  Jan-Oliver Wagner <[email protected]>
4607    
4608            * Doc/manual/thuban-manual.xml: Now use authorgroup. Added revhistory
4609            with version number.
4610            Changed title to reflect version number of Thuban.
4611    
4612    2003-08-08  Jan-Oliver Wagner <[email protected]>
4613    
4614            * Thuban/UI/about.py (About.__init__): Reworked the hall of fame. Now
4615            the list corresponds to the "About" web page.
4616    
4617    2003-08-08  Bernhard Herzog  <[email protected]>
4618    
4619            * Thuban/UI/projdialog.py (UTMProposeZoneDialog.dialogLayout):
4620            Make sure translated strings are recognized as one string literal.
4621    
4622            * Thuban/UI/proj4dialog.py (UTMProposeZoneDialog.dialogLayout):
4623            Make sure translated strings are recognized as one string literal.
4624    
4625            * Thuban/UI/classgen.py (ClassGenDialog.OnOK): Make sure
4626            translated strings are recognized as one string literal.
4627    
4628            * Thuban/UI/application.py (ThubanApplication.OpenSession): Make
4629            sure translated strings are recognized as one string literal.
4630    
4631    2003-08-07  Bernhard Herzog  <[email protected]>
4632    
4633            * Thuban/Model/data.py (DerivedShapeStore.RawShapeFormat): New.
4634            Simply delegates to the original shapestore.
4635    
4636            * test/test_derivedshapestore.py
4637            (TestDerivedShapeStore.test_raw_format): New. Test case for
4638            DerivedShapeStore.RawShapeFormat
4639    
4640    2003-08-07  Bernhard Herzog  <[email protected]>
4641    
4642            Add raw data interface to shape objects.
4643    
4644            * Thuban/Model/data.py (ShapefileShape, Shape): Rname the shape
4645            class to ShapefileShape which now holds shapefile specific
4646            information.
4647            (ShapefileShape.compute_bbox): Simplified to not cache any
4648            information. The way this method is used that shouldn't matter
4649            performance wise.
4650            (ShapefileShape.RawData): New. Return the shapeid which is the raw
4651            data format for shapes from shapefiles.
4652            (ShapefileStore.RawShapeFormat): New. Return the raw datatype used
4653            in the shape objects returned by a shapestore. For a
4654            ShapefileStore this is always RAW_SHAPEFILE.
4655            (RAW_PYTHON, RAW_SHAPEFILE): Constants for the RawShapeFormat
4656            method.
4657    
4658            * test/test_shapefilestore.py
4659            (TestShapefileStore.test_raw_format): New test to test the raw
4660            format feature of shapes.
4661    
4662            * Thuban/Model/layer.py: Remove the unused import of Shape from
4663            data. It was only there for interface compatibility but it's not
4664            used inside of Thuban and the generic Shape class has gone away.
4665    
4666            * Thuban/UI/renderer.py (MapRenderer.low_level_renderer): Check
4667            the raw data format and only use an optimized version of its a
4668            shapefile.
4669    
4670    2003-08-07  Bernhard Herzog  <[email protected]>
4671    
4672            * test/test_baserenderer.py (SimpleShape): Shape class for the
4673            tests.
4674            (SimpleShapeStore.Shape): Use SimpleShape instead of
4675            Thuban.Model.data.Shape to make the tests independed of the coming
4676            changes.
4677    
4678    2003-08-07  Bernhard Herzog  <[email protected]>
4679    
4680            * test/support.py (SkipTest, ThubanTestResult, ThubanTestRunner)
4681            (ThubanTestProgram): New classes that extend the respective
4682            classes from unittest. These new version support skipping tests
4683            under certain expected conditions. In the Thuban test suite we
4684            uses this for tests that require the optional gdal support.
4685            (run_tests): Use ThubanTestProgram instead of the unittest.main()
4686    
4687            * test/runtests.py (main): Use the new ThubanTestRunner instead of
4688            the normal one from unittest
4689    
4690            * test/test_layer.py (TestLayer.test_raster_layer): If this test
4691            is not run because gdal support isn't available report this to the
4692            runner.
4693    
4694            * test/test_baserenderer.py
4695            (TestBaseRenderer.test_raster_no_projection): Do not run this test
4696            if gdal support isn't available and report this to the runner.
4697    
4698    2003-08-06  Bernhard Herzog  <[email protected]>
4699    
4700            Rearrange the renderers a bit, partly in preparation for changes
4701            required for the postgis merge, partly to make it more testable.
4702            Also make the representation of coordinates in Shapes more
4703            consistent.
4704    
4705            * Thuban/UI/renderer.py (MapRenderer): Most of the code/methods in
4706            this class is now in BaseRenderer. This class is now practically
4707            only a specialization of BaseRenderer for rendering to an actual
4708            wx DC.
4709            (ScreenRenderer.draw_shape_layer): Use self.low_level_renderer()
4710            to get the shapetype specific rendering functions.
4711    
4712            * Thuban/UI/baserenderer.py: New file with the basic rendering
4713            logic. The code in this file is completely independend of wx.
4714            (BaseRenderer): Class with the basic rendering logic
4715    
4716            * test/test_baserenderer.py: New. Test cases for BaseRenderer
4717    
4718            * Thuban/UI/view.py (MapCanvas.__init__): New instance variable
4719            error_on_redraw to guard agains endless loops and stack overflows
4720            when there's a bug in the rendering code that raises exceptions.
4721            (MapCanvas.OnIdle, MapCanvas._do_redraw): Split the actual
4722            rendering into a separate method _do_redraw so that error handling
4723            is a bit easier. When an exception occurs, set error_on_redraw to
4724            true. When it's true on entry to OnIdle do nothing and return
4725            immediately.
4726    
4727            * Thuban/Model/data.py (ShapefileStore.Shape): For consistency, a
4728            Shape object will always have the coordinates as a list of list of
4729            coordinate pairs (tuples).
4730            (Shape.compute_bbox): Adapt to new representation.
4731    
4732            * Thuban/UI/viewport.py (ViewPort.find_shape_at)
4733            (ViewPort.LabelShapeAt): Adapt to new coordinate representation in
4734            Shape objects.
4735    
4736            * test/test_shapefilestore.py
4737            (ShapefileStoreTests.assertFloatTuplesEqual)
4738            (ShapefileStoreTests.assertPointListEquals): Rename to
4739            assertPointListEquals and change purpose to checking equality of
4740            the lists returned by Shape.Points().
4741            (TestShapefileStoreArc.test_shape)
4742            (TestShapefileStorePolygon.test_shape)
4743            (TestShapefileStorePoint.test_shape): Use the new
4744            assertPointListEquals instead of assertFloatTuplesEqual
4745    
4746            * test/test_layer.py (TestLayer.assertFloatTuplesEqual)
4747            (TestLayer.assertPointListEquals): Rename to assertPointListEquals
4748            and change purpose to checking equality of the lists returned by
4749            Shape.Points().
4750            (TestLayer.test_arc_layer, TestLayer.test_arc_layer)
4751            (TestLayer.test_polygon_layer, TestLayer.test_point_layer)
4752            (TestLayer.test_derived_store): Use the new assertPointListEquals
4753            instead of assertFloatTuplesEqual
4754    
4755            * test/test_derivedshapestore.py
4756            (TestDerivedShapeStore.assertFloatTuplesEqual)
4757            (TestDerivedShapeStore.assertPointListEquals): Rename to
4758            assertPointListEquals and change purpose to checking equality of
4759            the lists returned by Shape.Points().
4760            (TestDerivedShapeStore.test_shape): Use the new
4761            assertPointListEquals instead of assertFloatTuplesEqual
4762    
4763    2003-08-06  Jan-Oliver Wagner <[email protected]>
4764    
4765            * Thuban/UI/projdialog.py (UTMPanel._OnPropose): Added test for
4766            a bounding box. A dialog is raised in case, no bounding box
4767            is found. This fixes bug #2043:
4768            https://intevation.de/rt/webrt?serial_num=2043
4769    
4770    2003-08-05  Bernhard Herzog  <[email protected]>
4771    
4772            * Thuban/Model/color.py (Color.__repr__): Make the repr of a color
4773            object look like a Color instantiation. Formerly it looked like a
4774            tuple.
4775    
4776            * test/test_color.py (TestColor.test_repr)
4777            (TestColor.test_equality, TestColor.test_inequality): New. test
4778            some more apects of the Color class
4779            (TestTransparent.test_repr, TestTransparent.test_hex)
4780            (TestTransparent.test_equality): New. Test cases for the
4781            Transparent object.
4782    
4783    2003-08-04  Jan-Oliver Wagner <[email protected]>
4784    
4785            * Doc/manual/thuban-manual.xml: a number of small improvements.
4786            The resulting file is the version submitted for GREAT-ER II.
4787    
4788    2003-08-01  Bernhard Herzog  <[email protected]>
4789    
4790            * Thuban/UI/resource.py, Thuban/UI/projdialog.py,
4791            Thuban/UI/join.py, Thuban/UI/classgen.py, Thuban/UI/about.py,
4792            Thuban/Model/resource.py: Insert cvs keywords and doc-strings.
4793    
4794            * Thuban/UI/common.py: Insert cvs keywords and doc-strings.
4795            (Color2wxColour, wxColour2Color, ThubanBeginBusyCursor)
4796            (ThubanEndBusyCursor): Add doc-strings
4797    
4798    2003-08-01  Bernhard Herzog  <[email protected]>
4799    
4800            First step towards PostGIS integration. More abstraction by movin
4801            more code from the layer to the shapestore. More methods of the
4802            layer are now simply delegated to the equivalent method of the
4803            shapestore. The SHAPETYPE_* constants are now in data not in
4804            layer.
4805    
4806            * Thuban/Model/data.py (SHAPETYPE_POLYGON, SHAPETYPE_ARC)
4807            (SHAPETYPE_POINT, Shape): Move these constants and classes from
4808            layer.py to data.py
4809            (ShapefileStore.__init__): More Initialization for the new methods
4810            and functionality.
4811            (ShapefileStore.ShapeType, ShapefileStore.NumShapes)
4812            (ShapefileStore.BoundingBox, ShapefileStore.ShapesInRegion)
4813            (ShapefileStore.Shape): New methods that were formerly implemented
4814            in the layer.
4815            (DerivedShapeStore.Shape, DerivedShapeStore.ShapesInRegion)
4816            (DerivedShapeStore.ShapeType, DerivedShapeStore.NumShapes)
4817            (DerivedShapeStore.BoundingBox): New. DerivedShapeStore
4818            equivalents of the new shape methods. These versions are simply
4819            delegated to the original shapstore.
4820    
4821            * Thuban/Model/layer.py (SHAPETYPE_POLYGON, SHAPETYPE_ARC)
4822            (SHAPETYPE_POINT, Shape): Removed. They're now in data.py
4823            (Layer.SetShapeStore): Removed the initializatin of instance
4824            variables that were needed for the stuff that's now in
4825            ShapefileStore
4826            (Layer.BoundingBox, Layer.NumShapes, Layer.ShapeType)
4827            (Layer.Shape, Layer.ShapesInRegion): Simply delegate to the
4828            shapestore.
4829    
4830            * Thuban/UI/classifier.py, Thuban/UI/renderer.py,
4831            Thuban/UI/viewport.py: Import the SHAPETYPE_* constants from data
4832            instead of layer.
4833    
4834            * test/test_shapefilestore.py: New. Tests for ShapefileStore.
4835    
4836            * test/test_derivedshapestore.py: New. Tests for DerivedShapeStore.
4837    
4838            * test/test_layer.py: Import the SHAPETYPE_* constants from data
4839            instead of layer.
4840            (TestLayer.test_derived_store): Remove the test for the exception
4841            when instantiating the DerivedShapeStore with an incompatible
4842            table which is now in test_derivedshapestore.py. Add some more
4843            tests of the layer methods to determine whether they work for a
4844            DerivedShapeStore as well.
4845    
4846    2003-07-31  Jonathan Coles   <[email protected]>
4847    
4848            * Doc/manual/thuban-manual.xml: Fix the list of required packages
4849            by just listing the name and where they can be found.
4850    
4851    2003-07-31  Frank Koormann   <[email protected]>
4852    
4853            * Doc/manual/thuban-manual.xml:
4854            Changed the screenshot elements to figure.
4855            Changed some variablelist elements to itemizedlist.
4856            Added section on GDAL formats.
4857    
4858    2003-07-31  Jonathan Coles   <[email protected]>
4859    
4860            * Doc/manual/thuban-manual.xml: Added a few sentences about
4861            the Fix Border Color option when generating classes.
4862    
4863    2003-07-30  Jonathan Coles   <[email protected]>
4864    
4865            * Thuban/Model/classgen.py: Add docstrings. Rename specific
4866            Ramp instances to use lower_case_style.
4867    
4868            * Thuban/UI/classgen.py: Use renamed Ramp instances.
4869            
4870            * Thuban/UI/classifier.py: Add docstrings.
4871    
4872            * Thuban/UI/dock.py: Add docstrings.
4873    
4874            * test/test_classgen.py: Use renamed Ramp instances.
4875    
4876    2003-07-30  Bernhard Herzog  <[email protected]>
4877    
4878            * Thuban/Lib/connector.py (QueueingPublisher): Removed. This class
4879            was never used in Thuban.
4880    
4881    2003-07-30  Bernhard Herzog  <[email protected]>
4882    
4883            * Thuban/UI/join.py (JoinDialog.__init__): Use the table's Title()
4884            method directly instead of going through the transient_table
4885            method. This faster because transient_table may force the copy of
4886            a DBF file into the transient database and setting a table's title
4887            doesnm't affect the title of the associated transient table, so
4888            this fixes RT #2042
4889    
4890            * Thuban/UI/main.py (__version__): Don't import the already
4891            removed show_exception_dialog.
4892    
4893    2003-07-29  Jonathan Coles   <[email protected]>
4894    
4895            * Thuban/UI/application.py (ThubanApplication.ShowExceptionDialog):
4896            Put back this method and remove the equivalent function since we
4897            are setting the exception hook from within this class (OnInit).
4898    
4899    2003-07-29  Jonathan Coles   <[email protected]>
4900    
4901            * Doc/manual/images/5_2_custom_ramp.png,
4902            Doc/manual/images/5_2_quantiles.png,
4903            Doc/manual/images/5_2_uniform_dist.png,
4904            Doc/manual/images/5_2_unique_values.png,
4905            Doc/manual/images/8_int_error.png: New screen shots.
4906    
4907            * Doc/manual/thuban-manual.xml: Fixed typos and wording, clarified
4908            some points, and added more screen shots.
4909    
4910    2003-07-29  Bernhard Herzog  <[email protected]>
4911    
4912            * Thuban/Model/data.py: Remove the now unused import of warnings
4913    
4914    2003-07-29  Bernhard Herzog  <[email protected]>
4915    
4916            * Thuban/Model/data.py (SimpleStore): Removed. This class has been
4917            deprecated since before the 0.8 release and isn't used in Thuban
4918            itself anymore.
4919    
4920            * Thuban/Model/transientdb.py: Remove some unnecessary imports
4921    
4922    2003-07-29  Jonathan Coles   <[email protected]>
4923    
4924            * Thuban/UI/application.py (ThubanApplication.OnInit): set the
4925            python exception hook here so that we are sure to catch any
4926            Thuban exception that happen during initialization.
4927    
4928            * Thuban/UI/main.py (main): Don't set the exception hook here,
4929            it will get set in ThubanApplication.OnInit.
4930    
4931    2003-07-29  Jonathan Coles   <[email protected]>
4932                                                                                
4933            * Thuban/UI/application.py (ThubanApplication.ShowExceptionDialog):
4934            Removed and called it show_exception_dialog() so that the exception
4935            handler can be set before the class is created.
4936                                                                                
4937            * Thuban/UI/main.py (main): Install the exception handler before
4938            a ThubanApplication is created.
4939                                                                                    
4940    2003-07-29  Bernhard Herzog  <[email protected]>
4941    
4942            * po/it.po: New. Italian translation by Maurizio Napolitano
4943    
4944            * po/ru.po: New. Russian translation by Alex Shevlakov
4945    
4946    2003-07-29  Frank Koormann   <[email protected]>
4947    
4948            * Doc/manual/thuban-manual.xml: Extended section on supported
4949            projections.
4950            
4951    2003-07-29  Frank Koormann   <[email protected]>
4952    
4953            * Doc/manual/thuban-manual.xml: gaspell-checked.
4954    
4955    2003-07-29  Jonathan Coles   <[email protected]>
4956    
4957            * Doc/manual/images/3_5_legend.png: Added border to improve look
4958            on white background.
4959    
4960    2003-07-29  Jonathan Coles   <[email protected]>
4961    
4962            * Doc/manual/thuban-manual.xml: Fixed grammar and typos. Added
4963            descriptions for the legend toolbar.
4964    
4965            * Doc/manual/images/4_2_raster_layer_properties.png: Removed
4966            cursor from dialog box.
4967    
4968    2003-07-28  Jonathan Coles   <[email protected]>
4969    
4970            * Doc/manual/thuban-manual.xml: More screenshots and more chapters.
4971    
4972            * Doc/manual/images/2_4_session_tree.png,
4973            Doc/manual/images/3_5_legend.png, Doc/manual/images/3_rename_map.png,
4974            Doc/manual/images/4_2_layer_properties.png,
4975            Doc/manual/images/4_2_raster_layer_properties.png,
4976            Doc/manual/images/5_3_genclass.png,
4977            Doc/manual/images/5_classification.png,
4978            Doc/manual/images/6_projection.png,
4979            Doc/manual/images/7_1_table_view.png,
4980            Doc/manual/images/7_2_5_join.png: New screenshots.
4981    
4982    2003-07-24  Jonathan Coles   <[email protected]>
4983    
4984            * Doc/manual/thuban-manual.xml: Chapter on Projection Management.
4985    
4986    2003-07-24  Jonathan Coles   <[email protected]>
4987    
4988            * Doc/manual/thuban-manual.xml: Added EPS images and wrote
4989            chapter on Layer Management.
4990    
4991            * Doc/manual/Makefile: New. Makefile to generate all formats for the
4992            manual and images.
4993    
4994    2003-07-24  Bernhard Herzog  <[email protected]>
4995    
4996            * Thuban/Model/range.py, Thuban/version.py: Remove the #! line as
4997            it annoys lintian which warns about these files not being
4998            executable. The #! isn't necessary here since if you absolutely
4999            must execute them you can always say "python <filename>".
5000    
5001            * Thuban/UI/renderer.py (ScreenRenderer.draw_shape_layer): Remove
5002            superfluous code to set brush and pen for point shapes
5003    
5004            * Thuban/UI/viewport.py: Remove commented out code that wouldn't
5005            belong in viewport anyway
5006    
5007    2003-07-24  Frank Koormann   <[email protected]>
5008    
5009            * Doc/manual/thuban-manual.xml: Added section on table management.
5010    
5011    2003-07-24  Bernhard Herzog  <[email protected]>
5012    
5013            * test/runtests.py (main): Recognize the long "verbose" option
5014            correctly.
5015    
5016    2003-07-22  Jonathan Coles   <[email protected]>
5017    
5018            * Doc/manual/thuban-manual.xml: Continue to write first revision
5019            of the manual.
5020    
5021            * Thuban/UI/renderer.py (MapRenderer.render_map): Wrap method
5022            with Begin/EndDrawing() calls to ensure we aren't doing to
5023            many updates to the dc during rendering.
5024            (ScreenRenderer.draw_shape_layer): self.draw_point_shape takes
5025            a pen and brush argument so they need to be passed to the function.
5026    
5027            * Thuban/UI/viewport.py (ViewPort.calc_min_max_scales): New.
5028            Calculates the minimum and maximum scale values. Factored out
5029            of set_view_transform so that it could be used to zoom all the
5030            way into a single point.
5031            (ViewPort.set_view_transform): Call calc_min_max_scales().
5032            (ViewPort.FitSelectedToWindow): Zoom to the maximum scale
5033            if only a single point is selected.
5034    
5035            * Doc/manual/images/1_2_legend_close.png,
5036            Doc/manual/images/1_2_legend_dock.png,
5037            Doc/manual/images/1_2_mainwindow.png,
5038            Doc/manual/images/1_2_mainwindow.ps,
5039            Doc/manual/images/1_2_mainwindow.sk,
5040            Doc/manual/images/3_2_fullextent.png,
5041            Doc/manual/images/3_2_fulllayerextent.png,
5042            Doc/manual/images/3_2_fullshapeextent.png,
5043            Doc/manual/images/3_2_pan.png,
5044            Doc/manual/images/3_2_zoomin.png,
5045            Doc/manual/images/3_2_zoomout.png,
5046            Doc/manual/images/3_3_identify.png,
5047            Doc/manual/images/3_3_label.png,
5048            Doc/manual/images/3_5_invisible.png,
5049            Doc/manual/images/3_5_movedown.png,
5050            Doc/manual/images/3_5_moveup.png,
5051            Doc/manual/images/3_5_props.png,
5052            Doc/manual/images/3_5_tobottom.png,
5053            Doc/manual/images/3_5_totop.png,
5054            Doc/manual/images/3_5_visible.png: New. Images for the documentation.
5055    
5056    2003-07-18  Bernhard Herzog  <[email protected]>
5057    
5058            * Thuban/UI/messages.py (MAP_REPLACED): New message.
5059    
5060            * Thuban/UI/viewport.py (ViewPort.SetMap): Issue MAP_REPLACED
5061            after the new map has been assigned
5062    
5063            * Thuban/UI/mainwindow.py (MainWindow.delegated_messages):
5064            Delegate MAP_REPLACED to the canvas too
5065            (MainWindow.prepare_new_session): Removed. Thanks to the new
5066            MAP_REPLACED message it's no longer needed
5067            (MainWindow.OpenSession, MainWindow.NewSession):
5068            prepare_new_session has been removed.
5069    
5070            * Thuban/UI/classifier.py (Classifier.__init__): Subscribe to
5071            MAP_REPLACED so that we can close the dialog if a new map is set.
5072            (Classifier.unsubscribe_messages): Unsubscribe from MAP_REPLACED
5073            (Classifier.map_replaced): Handle MAP_REPLACED by closing the
5074            dialog
5075    
5076            * test/test_viewport.py (SimpleViewPortTest)
5077            (SimpleViewPortTest.test_default_size): Add doc-strings
5078            (ViewPortTest.setUp): Bind map to self.map so we can use it in
5079            tests. Subscribe to MAP_REPLACED messages too.
5080            (ViewPortTest.tearDown): No need to explicitly unsubscribe
5081            (ViewPortTest.test_set_map): New test for the SetMap method.
5082    
5083    2003-07-18  Bernhard Herzog  <[email protected]>
5084    
5085            * test/test_viewport.py (SimpleViewPortTest.test_default_size):
5086            Move this test from ViewPortTest.setUp to this new separate test
5087            case. setUp is not the place for the actual tests.
5088            (ViewPortTest.test_inital_settings, ViewPortTest.setUp): Move some
5089            more of the test from setUp to the new test test_inital_settings.
5090            (ViewPortTest.test_win_to_proj, ViewPortTest.test_proj_to_win)
5091            (ViewPortTest.test_proj_conv): Split test_proj_conv into
5092            test_win_to_proj and test_proj_to_win and make the tests easier to
5093            understand
5094            (ViewPortTest.testFitRectToWindow, ViewPortTest.testZoomFactor)
5095            (ViewPortTest.testZoomOutToRect, ViewPortTest.testTranslate)
5096            (ViewPortTest.test_unprojected_rect_around_point)
5097            (ViewPortTest.test_find_shape_at, ViewPortTest.testTools):
5098            Reformat to increase readability.
5099    
5100    2003-07-18  Bernhard Herzog  <[email protected]>
5101    
5102            * Thuban/UI/view.py (MapCanvas.OnLeftDown): Capture the mouse.
5103    
5104    2003-07-18  Bernhard Herzog  <[email protected]>
5105    
5106            * test/runtests.py: The test suite can now be run without an X
5107            connection. To make sure this remains true, remove the DISPLAY
5108            environment variable so that an error occurs if the wxGTK is
5109            imported accidentally
5110    
5111    2003-07-18  Bernhard Herzog  <[email protected]>
5112    
5113            * Thuban/UI/viewport.py: Remove unused imports
5114    
5115            * Thuban/UI/view.py: Remove unused imports
5116    
5117    2003-07-18  Bernhard Herzog  <[email protected]>
5118    
5119            * test/test_export.py Remove unused imports. The OutputTransform
5120            function is now in viewport.py and is called output_transform
5121            (TestScalebar.test_output_transform)
5122            (TestScalebar.test_OutputTransform): Renamed to
5123            test_output_transform and updated to use output_transform instead
5124            of OutputTransform
5125    
5126            * Thuban/UI/view.py (OutputTransform): Moved to viewport.py and
5127            renamed.
5128            (MapCanvas.Export, MapPrintout.draw_on_dc): OutputTransform was
5129            renamed to output_transform
5130    
5131            * Thuban/UI/viewport.py (OutputTransform, output_transform):
5132            Rename to output_transform
5133    
5134    2003-07-18  Bernhard Herzog  <[email protected]>
5135    
5136            * Thuban/Model/layer.py (Layer.__init__): Rename
5137            classificationField to classificatin_column and init it here so
5138            that it can be used in SetClassificationColumn
5139            (Layer.GetClassificationColumn, Layer.GetClassificationField):
5140            Rename to GetClassificationColumn.
5141            (Layer.SetClassificationColumn, Layer.SetClassificationField):
5142            Rename to SetClassificationColumn and issue a LAYER_CHANGED
5143            message if the column changes.
5144            (Layer._classification_changed, Layer.ClassChanged): Rename to
5145            _classification_changed. Update the callers.
5146            (Layer.SetShapeStore): Further field->column renames.
5147    
5148            * Thuban/Model/load.py (SessionLoader.start_classification)
5149            (SessionLoader.start_clpoint): Updates because of
5150            field->column method name changes in the Layer class
5151    
5152            * Thuban/Model/save.py (SessionSaver.write_classification): Updates
5153            because of field->column method name changes in the Layer class
5154    
5155            * Thuban/UI/classifier.py (Classifier.__init__)
5156            (Classifier._OnTry, Classifier._OnRevert): Updates because of
5157            field->column method name changes in the Layer class
5158    
5159            * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Updates
5160            because of field->column method name changes in the Layer class
5161    
5162            * Thuban/UI/viewport.py (ViewPort.find_shape_at): Updates because
5163            of field->column method name changes in the Layer class
5164    
5165            * test/test_save.py (SaveSessionTest.testClassifiedLayer)
5166            (SaveSessionTest.testClassifiedLayer): Update because of
5167            field->column method name changes in the Layer class
5168    
5169            * test/test_layer.py (SetShapeStoreTests.setUp)
5170            (SetShapeStoreTests.test_sanity): Update because of field->column
5171            method name changes in the Layer class
5172            (TestLayerModification.setUp): Subscribe to LAYER_CHANGED as well
5173            (TestLayerModification.test_sanity)
5174            (TestLayerModification.test_initial_settings): remove unsued code
5175            and rename to test_sanity.
5176            (TestLayerModification.test_set_classification): New test for
5177            SetClassification and SetClassificationField.
5178    
5179    2003-07-18  Bernhard Herzog  <[email protected]>
5180    
5181            * test/test_classgen.py (TestFixedRamp.test): Extend test to check
5182            the non-fixed values as well. The old test would have accepted a
5183            fixed ramp that only returnes the fixed properties
5184    
5185    2003-07-17  Jonathan Coles   <[email protected]>
5186    
5187            * Doc/manual/mainwindow.png, Doc/manual/mainwindow.xcf: Screen
5188            shots for the manual. The XCF file is the source image and
5189            has additional layers to support changes.
5190    
5191            * Doc/manual/thuban-manual.xml: Wrote an initial Introduction.
5192    
5193            * Thuban/UI/classifier.py (Classifier.__BuildClassification):
5194            Return both the new class and the field name.
5195    
5196            * Thuban/UI/mainwindow.py (MainWindow.ToggleLegend): Don't
5197            fit the map to the window as this changes any zoom level that
5198            the user may have set.
5199    
5200    2003-07-16  Jonathan Coles   <[email protected]>
5201    
5202            * Thuban/Model/classgen.py (generate_singletons,
5203            generate_uniform_distribution, generate_quantiles): Remove
5204            fixes parameter, but maintain the same functionality by having
5205            the calling function pass a FixedRamp object for the ramp.
5206            (FixedRamp): New. Adapts a ramp to have fixed property values.
5207    
5208            * Thuban/Model/classification.py: Use new CLASS_CHANGED message.
5209            (Classification): Inherit from Publisher.
5210            (Classification.__init__): Remove the layer parameter.
5211            Classifications no longer need to have a parent layer.
5212            (Classification.GetField, Classification.GetFieldType,
5213            Classification.SetFieldInfo): Removed. The field name is stored
5214            in the layer, and the type can be retreived by calling
5215            Layer.GetFieldType().
5216            (Classification._set_layer, Classification.GetLayer): Removed.
5217            Classifications no longer have a parent layer.
5218    
5219            * Thuban/Model/layer.py (Layer.Destroy): Unsubscribe from the
5220            classification.
5221            (Layer.SetShapeStore): Reset the classification first while
5222            we still have the old shape store to work with.
5223            (Layer.GetClassificationField, Layer.SetClassificationField):
5224            New. Method for getting/setting the field to classify on.
5225            (Layer.SetClassification): Simplified now that the layer
5226            simply has to hold a reference to the classification and not
5227            tell the classification who owns it.
5228            Fixes RTbug #2023.
5229    
5230            * Thuban/Model/load.py (SessionLoader.start_classification):
5231            Set the field name on the layer, not the classification.
5232    
5233            * Thuban/Model/messages.py: Add CLASS_CHANGED for when a
5234            classification is modified.
5235    
5236            * Thuban/Model/save.py (SessionSaver.write_classification):
5237            Get the field name and type from the layer.
5238    
5239            * Thuban/Model/table.py (table_to_dbf, table_to_csv): Renamed
5240            parameter records to rows and add docstring. Fixes RTbug #1997.
5241    
5242            * Thuban/UI/classgen.py (ClassGenDialog.OnOK): Use a fixed
5243            ramp when we need to fix certain values of a ramp rather than
5244            using the old fixes parameter. Fixes RTbug #2024.
5245    
5246            * Thuban/UI/classifier.py (ClassGrid.CreateTable): Add fieldType
5247            parameter.
5248            (ClassTable.Reset): Add fieldType parameter and use it, rather
5249            than asking the classification.
5250            (Classifier.__init__): Remember the original class's field
5251            and ask the layer for the field type, rather than the classification.
5252            (Classifier.__SetGridTable): Retrieve the field and field type
5253            for the table because they are not in the classification.
5254            (Classifier._OnTry, Classifier._OnRevert): Set the classification
5255            field on the layer in addition to the classification itself.
5256    
5257            * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Get the
5258            classification field from layer.
5259    
5260            * Thuban/UI/viewport.py (ViewPort.find_shape_at): Get the
5261            classification field from layer. Split up tests and remove
5262            *-imports. Fixes RTbug #1992.
5263    
5264            * test/test_classgen.py (TestFixedRamp): Test for the FixedRamp class.
5265    
5266            * test/test_classification.py
5267            (TestClassification.test_classification): Remove tests for methods
5268            that no longer exist.
5269    
5270            * test/test_layer.py (SetShapeStoreTests.setUp): Classification
5271            __init__ no longer has a field parameter, use SetClassificationField.
5272            (SetShapeStoreTests.test_sanity): Use layer object to get class
5273            field info.
5274    
5275            * test/test_save.py (SaveSessionTest.testClassifiedLayer): Use
5276            SetClassificationField on layer to set class field info.
5277    
5278            * test/test_viewport.py: Renamed from test/test_view.py.
5279    
5280    2003-07-16  Jan-Oliver Wagner <[email protected]>
5281    
5282            * Doc/manual/thuban-manual.xml: Added authors and an initial
5283            coarse structure.
5284    
5285    2003-07-15  Bernhard Herzog  <[email protected]>
5286    
5287            * test/support.py (FloatComparisonMixin): This is a mix-in class
5288            and therefore should not be derived from any other class.
5289    
5290            * test/test_range.py (RangeTest): FloatComparisonMixin is a
5291            mix-in, so derive from TestCase as well.
5292    
5293    2003-07-15  Bernhard Herzog  <[email protected]>
5294    
5295            * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Rework the
5296            draw_func handling a bit to remove one layer of indirection. This
5297            makes the renderer about 10% faster in the non-classifying case
5298            and the code a bit cleaner
5299            (MapRenderer.draw_point_shape): Add the pen and brush parameters
5300            and set them in the dc. Now the draw_point_shape method and
5301            wxproj's draw_polygon_shape function have basically the same
5302            signature so that both can be directly used as draw_func
5303    
5304    2003-07-15  Bernhard Herzog  <[email protected]>
5305    
5306            * Thuban/Model/save.py (SessionSaver.write_classification): Encode
5307            string values (in addition to the labels) as UTF 8
5308    
5309            * Thuban/Model/load.py (SessionLoader.start_clpoint): Decode the
5310            values if the field type is string
5311    
5312            * test/test_save.py (SaveSessionTest.testClassifiedLayer): Test
5313            saving a session with non-ascii string classification values.
5314    
5315            * test/test_load.py (TestClassification.file_contents)
5316            (TestClassification.test): Check for non-ascii values in string
5317            classifications
5318    
5319    2003-07-14  Jonathan Coles   <[email protected]>
5320    
5321            * test/test_view.py: New. Tests for ViewPort.
5322    
5323    2003-07-14  Frank Koormann   <[email protected]>
5324    
5325            * Thuban/Model/load.py (SessionLoader.start_map): Encode map
5326            title to latin1.  Fixes https://intevation.de/rt/webrt?serial_num=2013
5327    
5328            * test/test_load_0_8.py (TestUnicodeStrings): New, test load of
5329            unicode strings from session file: session title, map title and
5330            projection name.
5331            
5332    2003-07-10  Jonathan Coles   <[email protected]>
5333    
5334            * Thuban/UI/viewport.py (Tool.MouseUp): Should have called
5335            drag_stop, not drag_move when the mouse is released.
5336    
5337    2003-07-10  Jonathan Coles   <[email protected]>
5338    
5339            The most important part of this is the seperation of view.py into
5340            two pieces. viewport.py now has a class called ViewPort which
5341            contains all the non-wx parts of view.py and can therefore be
5342            tested. view.py contains only the wx-specific parts and is fairly
5343            simple.
5344    
5345            * Thuban/UI/view.py: Stripped out all non-wx functionality. Fixes
5346            RTTbug #1992.
5347            * Thuban/UI/viewport.py: New. Contains non-wx view functionality.
5348            RTTbug #1992.
5349    
5350            * Thuban/Model/classgen.py (generate_singletons,
5351            generate_uniform_distribution, generate_quantiles):
5352            Added 'fixes' parameter so that property attributes can
5353            be held constant over the generated classification groups.
5354            (CustomRamp.GetProperties): Remove unused variables.
5355    
5356            * Thuban/Model/map.py (Map.SetProjection): Send the old
5357            projection as an argument to listeners of the MAP_PROJECTION_CHANGED
5358            event.
5359    
5360            * Thuban/Model/table.py (table_to_dbf, table_to_csv): Added 'records'
5361            parameter which is a list of records that restricts which
5362            records are saved. Fixes RTbug #1997.
5363    
5364            * Thuban/UI/application.py (ThubanApplication.ShowExceptionDialog):
5365            Port exception dialog from GREAT-ER. Fixes RTbug #1993.
5366    
5367            * Thuban/UI/classgen.py (ClassGenDialog.__init__): Add controls
5368            to allow the user to fix line color/width on generated groups.
5369            (ClassGenDialog.OnOK): Use new 'fixes' parameter of the generate_*
5370            functions to optionally fix group properties.
5371    
5372            * Thuban/UI/main.py (main): Set exception hook to the
5373            ShowExceptionDialog. Fixes RTbug #1993.
5374    
5375            * Thuban/UI/mainwindow.py (MainWindow.ShowTableView): Raise
5376            the table window when it is selectd to be shown.
5377    
5378            * Thuban/UI/tableview.py (QueryTableFrame.__init__): Add an
5379            Export Selection button and move the export buttons underneath
5380            the table.
5381            (QueryTableFrame.UpdateStatusText): Added event argument so
5382            that it can respond to grid selection events. The status text
5383            is now updated even when the table is not associated with a
5384            layer as was previously assumed.
5385            (QueryTableFrame.OnGridSelectRange, OnGridSelectCell): Removed.
5386            UpdateStatusText responds to these events.
5387            (QueryTableFrame.OnSaveAs): Renamed to doExport.
5388            (QueryTableFrame.doExport): Helper function that saves the
5389            entire table, or selected rows, to a file.
5390            (QueryTableFrame.OnExport, QueryTableFrame.OnExportSel): New.
5391            Respond to export button events and call doExport.
5392    
5393            * extensions/thuban/gdalwarp.cpp (ProjectRasterFile): Make sure
5394            the function doesn't return NULL without first setting a Python
5395            Error.
5396    
5397            * test/runtests.py (main): Only print "Unknown option" for
5398            unsupported options.
5399    
5400            * test/support.py (FloatComparisonMixin.assertFloatEqual): Take
5401            optional epsilon argument to specify floating point accuracy.
5402            (FloatComparisonMixin.assertFloatSeqEqual): Call assertFloatEqual
5403            for each item test.
5404    
5405            * test/test_csv_table.py (TestCSVTable.test_table_to_cvs): Add
5406            tests for saving selected records.
5407    
5408            * test/test_dbf_table.py (TestTableToDBF.test_table_to_dbf): Add
5409            tests for saving selected records.
5410    
5411            * test/test_map.py (TestMapWithContents.test_set_projection):
5412            MAP_PROJECTION_CHANGED events send the old projection.
5413    
5414            * test/test_session.py
5415            (TestSessionWithContent.test_forward_map_projection):
5416            MAP_PROJECTION_CHANGED events send the old projection.
5417    
5418            * test/test_table.py (TableTest): Update tests to use non-deprecated
5419            functions.
5420    
5421    2003-07-08  Bernhard Herzog  <[email protected]>
5422    
5423            * Thuban/Model/transientdb.py (TransientTableBase.Width): The type
5424            constants in the column objects are the standard ones defined in
5425            the table module.
5426    
5427            * test/test_transientdb.py
5428            (TestTransientTable.test_transienttable_to_dbf): New. Test whether
5429            exporting transient tables as DBF works. This should catch the bug
5430            just fixed in TransientTableBase.Width.
5431    
5432    2003-07-08  Bernhard Herzog  <[email protected]>
5433    
5434            * Thuban/Model/classgen.py (CustomRamp.GetProperties): Compute the
5435            interpolated colors correctly.
5436    
5437            * test/test_classgen.py (TestCustomRamp.test_color_interpolation):
5438            New. Test case for the fix in classgen.py
5439    
5440    2003-07-08  Bernhard Herzog  <[email protected]>
5441    
5442            * test/runtests.py (main): Make the default output less verbose
5443            and add a verbosity option (-v) to get the old output
5444    
5445    2003-07-08  Bernhard Herzog  <[email protected]>
5446    
5447            * Resources/XML/thuban-0.9.dtd: New. This will become the DTD for
5448            0.9.
5449    
5450            * Thuban/Model/transientdb.py (TransientJoinedTable.JoinType):
5451            New. Return the join type
5452    
5453            * Thuban/Model/save.py (SessionSaver.write_session): Use new 0.9
5454            DTD
5455            (SessionSaver.write_data_containers): Save the join type for
5456            joined tables
5457    
5458            * Thuban/Model/load.py (SessionLoader.__init__): Add the new 0.9
5459            namespace
5460            (SessionLoader.start_jointable): Handle the jointype attribute
5461    
5462            * test/test_load_0_8.py: New. Effectively a copy of test_load.py
5463            as of Thuban 0.8. These are now tests to determine whether Thuban
5464            can still read files generated by Thuban 0.8
5465    
5466            * test/test_load.py (LoadSessionTest.dtd)
5467            (TestSingleLayer.file_contents)
5468            (TestLayerVisibility.file_contents, TestLabels.file_contents)
5469            (TestLayerProjection.file_contents)
5470            (TestRasterLayer.file_contents, TestJoinedTable.file_contents)
5471            (TestJoinedTable.file_contents)
5472            (TestLoadError.file_contents): Update for new DTD
5473            (TestJoinedTable.file_contents, TestJoinedTable.setUp): Add test
5474            for new join type attribute
5475    
5476            * test/test_save.py (SaveSessionTest.dtd)
5477            (SaveSessionTest.testEmptySession)
5478            (SaveSessionTest.testSingleLayer)
5479            (SaveSessionTest.testLayerProjection)
5480            (SaveSessionTest.testRasterLayer)
5481            (SaveSessionTest.testClassifiedLayer)
5482            (SaveSessionTest.test_dbf_table)
5483            (SaveSessionTest.test_joined_table): Update for new DTD
5484            (SaveSessionTest.test_joined_table): Add test for new join type
5485            attribute
5486    
5487    2003-07-04  Bernhard Herzog  <[email protected]>
5488    
5489            * Thuban/Model/table.py (_find_dbf_column_names): New. Helper
5490            function for table_to_dbf
5491            (table_to_dbf): Deal with names longer than the 10 character limit
5492    
5493            * test/test_dbf_table.py (TestTableToDBF.test_table_to_dbf): Add
5494            doc-string
5495            (TestTableToDBF.test_table_to_dbf_long_col_names): New test for
5496            long column names
5497    
5498    2003-07-03  Bernhard Herzog  <[email protected]>
5499    
5500            * Doc/manual/thuban-manual.xml: Fix the CVS Revision Tag syntax
5501    
5502    2003-07-03  Bernhard Herzog  <[email protected]>
5503    
5504            * Doc/manual/thuban-manual.xml, Doc/manual/README: New. Skeleton
5505            for the Thuban manual and README with some basic information about
5506            the manual
5507    
5508    2003-07-03  Bernhard Herzog  <[email protected]>
5509    
5510            * Thuban/Model/transientdb.py (TransientJoinedTable.__init__):
5511            Update doc-string
5512            (TransientJoinedTable.create): Do not modify the column objects of
5513            the input tables in place and copy all columns of the input tables
5514            into the joined table after all.
5515    
5516            * test/test_transientdb.py
5517            (TestTransientTable.test_transient_joined_table_same_column_name):
5518            Update to reflect the new behavior
5519            (TestTransientTable.test_transient_joined_table_with_equal_column_names):
5520            Update to reflect the new behavior
5521            (TestTransientTable.test_transient_joined_table_name_collisions_dont_modify_in_place):
5522            New test case for a bug which modified the column objects in place
5523    
5524    2003-07-02  Jonathan Coles   <[email protected]>
5525    
5526            * Thuban/Model/classgen.py (generate_singletons,
5527            generate_uniform_distribution, generate_quantiles,
5528            GenQuantiles0): Make sure maxValue isn't less than
5529            one, otherwise we could divide by zero.
5530    
5531            * test/test_classgen.py (ClassGenTest.doClassRangeTest,
5532            ClassGenTest.doClassSingleTest): Call doBoundsTest to
5533            check the end classification groups against the
5534            proper property values.
5535            (ClassGenTest.doBoundsTest): New. Checks the first and
5536            last classification groups to make sure their properties
5537            are the correct upper and lower bounds for a color ramp.
5538    
5539    2003-07-02  Jonathan Coles   <[email protected]>
5540    
5541            * Thuban/Model/classgen.py (generate_singletons,
5542            generate_uniform_distribution, generate_quantiles,
5543            GenQuantiles0): The denominator was one to high when
5544            calculating the index for the ramp causing the index
5545            to never to reach one.
5546    
5547    2003-07-02  Jonathan Coles   <[email protected]>
5548    
5549            Changed the singature of ClassGroupRange.__init__ and
5550            ClassGroupRange.SetRange() so that the min/max values are
5551            passed as a tuple. This makes a better calling scheme for
5552            when a Range object is passed instead.
5553    
5554            * Thuban/Model/classgen.py: Fixed parameters to
5555            ClassGroupRange constructor.
5556    
5557            * Thuban/Model/classification.py (ClassGroupRange.__init__):
5558            Consolidate the min/max parameters into a single _range which
5559            can either be a tuple or a Range object.
5560            (ClassGroupRange.SetRange): Consolidate the min/max parameters
5561            into a single _range which can either be a tuple or a Range object.
5562    
5563            * Thuban/Model/load.py (SessionLoader.start_clrange): Fix
5564            call to ClassGroupRange constructor to use a tuple.
5565    
5566            * Thuban/Model/layer.py (Layer.SetClassification): Switch
5567            the classification instance variable to the new class
5568            before calling _set_layer otherwise subscribers to a
5569            LAYER_CHANGED event will not see any difference.
5570    
5571            * test/test_classification.py: Fix tests of ClassGroupRange
5572            so that they use the new signature.
5573    
5574            * test/test_load.py: Fix use of ClassGroupRange so that it
5575            uses the new signature.
5576    
5577            * test/test_load_0_2.py: Fix use of ClassGroupRange so that it
5578            uses the new signature.
5579    
5580            * test/test_save.py: Fix use of ClassGroupRange so that it
5581            uses the new signature.
5582    
5583    
5584    2003-07-01  Jonathan Coles   <[email protected]>
5585    
5586            * Thuban/Model/classgen.py: Fixes RTbug #1972, 1971.
5587            Import used objects/class from color.
5588            (generate_singletons): We don't
5589            need the numGroups parameter anymore because we are using
5590            the new ramps with GetProperties().
5591            (generate_uniform_distribution): Use new ramp method
5592            GetProperties().
5593            (generate_quantiles, GenQuantiles0): Use new ramp method
5594            GetProperties().
5595            (CustomRamp.SetNumGroups): Removed. The ramps now map
5596            a value from 0 to 1 to class properties so the number
5597            of groups is not needed ahead of time.
5598            (CustomRamp.next): Removed. CustomRamp does not support
5599            interation anymore.
5600            (CustomRamp.GetProperties): Returns a ClassGroupProperties
5601            object based on the index value from 0 to 1 that is
5602            passed to it.
5603            (GreyRamp, RedRamp, GreenRamp, BlueRamp, GreenToRedRamp):
5604            Made into instances of Monochromatic class instread of
5605            deriving from it.
5606            (HotToCold.SetNumGroups): Removed. See CustomRamp.
5607            (HotToCold.next): Removed. See CustomRamp.
5608    
5609            * Thuban/Model/classification.py: Fixes RTbug #1973, 1971.
5610            (Classification.SetField, Classification.SetFieldType):
5611            Replaced with SetFieldInfo.
5612            (Classification.SetFieldInfo): New. Does a better job of
5613            what SetField and SetFieldType used to do by combining
5614            their function since they should really always be done
5615            at the same time.
5616            (Classification.SetLayer): Renamed to _set_layer.
5617            (Classification._set_layer): Should only be called from
5618            Layer's SetClassification. This does not cause a recursive
5619            call as SetLayer did because we know that Layer knows about
5620            the classification.
5621    
5622            * Thuban/Model/color.py: Fixes RTbug #1971.
5623            (_Transparent): Renamed from Transparent so it doesn't
5624            conflict with the module variable.
5625            (Transparent, Black): Renamed from Color.Transparent,
5626            Color.Black so they are not class variables.
5627    
5628            * Thuban/Model/layer.py: Fixes RTbug #1971, 1973.
5629            (Layer.Destroy): We don't need to call SetClassification
5630            anymore to clear out the back reference in the classifcation
5631            to the layer. It's better to set it to None using _set_layer,
5632            and we won't be creating another clas object too.
5633            (Layer.SetClassification): Classification._set_layer is not
5634            recursive so remove all the locking variables. Also clean
5635            up the code so that it remains unchanged if something fails.
5636    
5637            * Thuban/Model/load.py: Fixes RTbug #1971.
5638            (SessionLoader.start_classification): Call
5639            Classification.SetFieldInfo().
5640    
5641            * Thuban/Model/save.py: Removed import of Color which wasn't
5642            being used.
5643    
5644            * Thuban/UI/classgen.py: Fixes RTbug #1972.
5645            (ClassGenDialog.__init__): Color ramps are now instances
5646            already so we don't need to create any new objects.
5647            (ClassGenDialog.OnOK): Check for numGroups is no longer
5648            necessary because we never use it.
5649    
5650            * Thuban/UI/classifier.py: Fixes RTbug #1971.
5651            (Classifier.__BuildClassification, Classifier.__SetGridTable):
5652            Call Classification.SetFieldInfo() instead of SetFieldType.
5653    
5654            * Thuban/UI/renderer.py: Fixes RTbug #1971.
5655    
5656            * Thuban/UI/view.py: Fixes RTbug #1974, 1971.
5657            (MapCanvas.__init__): Subscribe to the idle time event. Set
5658            background color to white.
5659            (MapCanvas.OnPaint): Set a flag indicating that we should
5660            render the map during idle time. If we already have a bitmap
5661            just draw it now.
5662            (MapCanvas.OnIdle): New. Render the map only during idle time.
5663            This also fixes a problem with the busy cursor under gtk.
5664    
5665            * test/test_classgen.py (ClassGenTest.test_generate_singletons):
5666            Fix calls to generate_singletons because the signature changed.
5667    
5668            * test/test_classification.py: Fix color references and
5669            change calls to Classification.[SetField|SetFieldType] to
5670            SetFieldInfo.
5671    
5672            * test/test_load.py: Fix color references.
5673    
5674            * test/test_load_0_2.py: Fix color references.
5675    
5676            * test/test_save.py (SaveSessionTest.testClassifiedLayer):
5677            Change calls to Classification.[SetField|SetFieldType] to
5678            SetFieldInfo.
5679    
5680    2003-07-01  Frank Koormann   <[email protected]>
5681    
5682            MERGE from the greater-ms3 branch.
5683    
5684            * test/test_transientdb.py
5685            (TestTransientTable.test_transient_joined_table_with_equal_column_names):
5686            New. Test join of two tables with partly equal column names.
5687    
5688            * Thuban/Model/transientdb.py (TransientJoinedTable.create):
5689            If duplicates in left and right tables column names are found,
5690            append '_' (underscores) to the name until it is unique.
5691            Create always new internal names for the resulting table and reference
5692            columns in the join statement with <table>.<column>
5693    
5694    2003-07-01  Bernhard Herzog  <[email protected]>
5695    
5696            * test/test_transientdb.py
5697            (TestTransientTable.test_transient_joined_table_same_column_name):
5698            New. Test whether joining on columns with the same names in both
5699            tables works.
5700            
5701            * Thuban/Model/transientdb.py (TransientJoinedTable.create): Make
5702            sure to use the right internal names even when joining on field
5703            with the same names in both tables. Also, detect duplicate names
5704            in the joined table correctly.
5705    
5706    2003-07-01  Frank Koormann   <[email protected]>
5707    
5708            * Thuban/UI/renderer.py (ExportRenderer.render_legend):
5709            Reverse List of layers to render in same order as in desktop legend.
5710    
5711    2003-06-30  Jonathan Coles   <[email protected]>
5712    
5713            * Thuban/version.py (make_tuple): Takes a version string
5714            and splits it into a tuple of at most three integers.
5715            Used make_tuple() to make tuple versions of the version
5716            numbers.
5717    
5718            * Thuban/UI/about.py: Add Thuban email addresses.
5719    
5720    2003-06-30  Jonathan Coles   <[email protected]>
5721    
5722            * Thuban/version.py: SQLite/PySQLite version dependencies
5723            were too high.
5724    
5725    2003-06-30  Jonathan Coles   <[email protected]>
5726    
5727            * Thuban/version.py: Update version to 0.8.1
5728            
5729            * MANIFEST.in: Added Projections so that default.proj is
5730            included.
5731    
5732    2003-06-26  Jonathan Coles   <[email protected]>
5733    
5734            New About box with lots more information including library
5735            versions and credits. More/better version checking before
5736            Thuban starts.
5737    
5738            * Thuban/UI/about.py: New. New About box that displays
5739            library version information and credits.
5740    
5741            * Thuban/version.py: Added new 'versions' dictionary which
5742            contains the verions of various libraries which are checked
5743            when the module loads.
5744            (verify_versions): Check all version numbers and returns
5745            a list of errors.
5746    
5747            * Thuban/UI/classifier.py (Classifier.__EnableButtons):
5748            Reset the status of the buttons as the situation warrants,
5749            but in a better more reliable way by not relying on the
5750            current status to determine what needs to change.
5751    
5752            * Thuban/UI/main.py (wxCHECK_VERSION): Removed. Not needed.
5753            (verify_versions): Remove most of the code since it is
5754            now in Thuban.version.verify_versions.o
5755    
5756            * Thuban/UI/mainwindow.py (MainWindow.About): Call new
5757            About box in Thuban.UI.about.
5758    
5759            * extensions/thuban/gdalwarp.cpp (get_gdal_version): New.
5760            Returns the version of gdal library being used as a string.
5761    
5762            * extensions/thuban/wxproj.cpp (check_version, check_version_gtk):
5763            Removed.
5764            (get_proj_version): Return the version of PROJ that the file
5765            was compiled with.
5766            (get_gtk_version): Return th version of GTK that the file
5767            was compiled with.
5768    
5769    2003-06-25  Jonathan Coles   <[email protected]>
5770    
5771            * Thuban/UI/classifier.py (Classifier.EditSymbol): The parent
5772            of the SelectPropertiesDialog should be self so the window
5773            appears on top.
5774            (ClassGroupPropertiesCtrl.DoEdit): The parent
5775            of the SelectPropertiesDialog should be self so the window
5776            appears on top.
5777    
5778            * Thuban/UI/resource.py: Cleaned up how we determine file
5779            extensions.
5780            (GetImageResource): Return an wxImage from our Resources.
5781    
5782    2003-06-24  Jonathan Coles   <[email protected]>
5783    
5784            * Thuban/UI/renderer.py (ExportRenderer.render_legend):
5785            Check that a layer has a classification before trying
5786            to get it. Raster layers don't have classifications.
5787    
5788    2003-06-23  Jonathan Coles   <[email protected]>
5789            
5790            * setup.py: Add Resources/XML to resource list.
5791        
5792    2003-06-23  Jonathan Coles   <[email protected]>
5793    
5794            * setup.cfg: Fix copyright dates
5795        
5796    2003-06-23  Jonathan Coles   <[email protected]>
5797    
5798            * MANIFEST.in: Update with Resources/XML
5799    
5800            * setup.py: Don't include Locale resources yet as we don't
5801            have any and it causes problems building the distribution
5802            for Windows. Update version to 0.8.0.
5803    
5804            * Doc/thuban.dtd: Removed since it is now in Resources/XML.
5805    
5806            * Thuban/UI/mainwindow.py: Add blank line at the end because
5807            file was not being read correctly building the Windows
5808            distribution.
5809    
5810    2003-06-23  Jonathan Coles   <[email protected]>
5811    
5812            * Thuban/UI/mainwindow.py (MainWindow.About): Fix text.
5813    
5814            * Thuban/version.py: Temporarily update longversion for
5815            the 0.8 release so that it doesn't have the cvs revision.
5816    
5817    2003-06-23  Jonathan Coles   <[email protected]>
5818    
5819            * Thuban/UI/common.py (ThubanBeginBusyCursor): Call wxSafeYield
5820            to make sure that we don't create reentrant possibilities with
5821            wxYield.
5822    
5823            * Thuban/UI/view.py (MapCanvas.OnPaint): Call wxBeginBusyCursor()
5824            directly to avoid the wxSafeYield() call which generates an
5825            OnPaint event causing infinite recursion. Don't try to catch
5826            exception anymore. This was for before there were limits on map
5827            scaling.
5828    
5829    2003-06-23  Bernhard Herzog  <[email protected]>
5830    
5831            Bug fix for RT #1961:
5832    
5833            * Thuban/Model/load.py (SessionLoader.start_derivedshapesource):
5834            Register DerivedShapestores with the session
5835    
5836            * Thuban/Model/session.py (Session.Tables): Make sure each table
5837            is only listed once.
5838    
5839            * test/test_load.py (TestJoinedTable.test): Add check_format call.
5840            Update file contents to match the one written out.
5841    
5842    2003-06-20  Bernhard Herzog  <[email protected]>
5843    
5844            * test/xmlsupport.py (SaxEventLister.startElementNS)
5845            (SaxEventLister.endElementNS): Do not include the qname. Python
5846            2.2.1 and 2.2.2 and 2.2.3 differ in this regard. In 2.2.1 qname it
5847            is (presumably incorrectly) None, whereas it's a string with the
5848            element name in the later versions.
5849    
5850            * test/test_xmlsupport.py (TestEventList.test_even_list_simple)
5851            (TestEventList.test_even_list_namespace): Update tests to reflect
5852            the new behaviour
5853            (TestEventList.test_even_list_id_normalization): Fix doc-string
5854    
5855    2003-06-20  Jonathan Coles   <[email protected]>
5856    
5857            * Thuban/Model/layer.py (BaseLayer.HasShapes): New. Overridden
5858            by deriving classes to determine if that layer supports shapes.
5859            (Layer): Override HasShapes and return true.
5860    
5861            * Thuban/UI/classgen.py: Use Thuban[Begin|End]BusyCursor()
5862            instead of a direct call to wx[Begin|End]CusyCursor().
5863            (GenUniquePanel._OnRetrieve): Set busy cursor while retrieving
5864            table data.
5865    
5866            * Thuban/UI/common.py (ThubanBeginBusyCursor, ThubanEndBusyCursor):
5867            New. Wrappers around the wxWindows functions that allow us to
5868            make additional calls such as wxYield which gives the native
5869            system a chance to update the cursor correctly.
5870    
5871            * Thuban/UI/tableview.py: Use Thuban[Begin|End]BusyCursor()
5872            instead of a direct call to wx[Begin|End]CusyCursor().
5873    
5874            * Thuban/UI/view.py: Use Thuban[Begin|End]BusyCursor()
5875            instead of a direct call to wx[Begin|End]CusyCursor().
5876            (MapCanvas.find_shape_at): Check if the current search layer
5877            support shapes, otherwise go on to the next layer.
5878    
5879            * test/test_layer.py: Add tests in each type of layer for
5880            HasClassification() and HasShapes()
5881    
5882    2003-06-20  Jonathan Coles   <[email protected]>
5883    
5884            * Thuban/UI/view.py (MapCanvas.OnPaint): Call wxYield after
5885            turning on the busy cursor to allow the system to change the
5886            cursor before we begin painting. This fixes a problem that
5887            was occuring only under GTK. Fixes RTbug #1840.
5888    
5889    2003-06-20  Bernhard Herzog  <[email protected]>
5890    
5891            * Resources/XML/thuban-0.8.dtd: New DTD for the new file format
5892            version.
5893    
5894            * Thuban/Model/save.py (sort_data_stores): New. Make topological
5895            sort of the data sources so they can be written with sources that
5896            data sources that depend on other data sources come after the
5897            sources they depend on.
5898            (SessionSaver.__init__): Add idmap instance variable to map from
5899            objects to the ids used in the file.
5900            (SessionSaver.get_id, SessionSaver.define_id)
5901            (SessionSaver.has_id): New. Methods to manage the idmap
5902            (SessionSaver.write): Use thuban-0.8.dtd
5903            (SessionSaver.write_session): Add a namespace on the session and
5904            write out the data sources before the maps.
5905            (SessionSaver.write_data_containers): New. Write the data
5906            containers.
5907            (SessionSaver.write_layer): Layer elements now refer to a
5908            shapestore and don't contain filenames anymore.
5909    
5910            * Thuban/Model/load.py (LoadError): Exception class to raise when
5911            errors in the files are discovered
5912            (SessionLoader.__init__): Define dispatchers for elements with a
5913            thuban-0.8 namespace too.
5914            (SessionLoader.check_attrs): New helper method to check and
5915            convert attributes
5916            (AttrDesc): New. Helper class for SessionLoader.check_attrs
5917            (SessionLoader.start_fileshapesource)
5918            (SessionLoader.start_derivedshapesource)
5919            (SessionLoader.start_filetable, SessionLoader.start_jointable):
5920            Handlers for the new elements in the new fileformat
5921            (SessionLoader.start_layer): Handle the shapestore attribute in
5922            addition to filename.
5923            (SessionLoader.start_table, SessionLoader.end_table): Removed.
5924            They were never used in the old formats and aren't needed for the
5925            new.
5926    
5927            * Thuban/Model/session.py (Session.DataContainers): New method to
5928            return all "data containers", i.e. shapestores and tables
5929    
5930            * test/xmlsupport.py (SaxEventLister.__init__)
5931            (SaxEventLister.startElementNS, sax_eventlist): Add support to
5932            normalize IDs.
5933    
5934            * test/test_xmlsupport.py
5935            (TestEventList.test_even_list_id_normalization): New test case for
5936            id normalization
5937    
5938            * test/test_load.py (LoadSessionTest.check_format): Use ID
5939            normalization
5940            (LoadSessionTest.thubanids, LoadSessionTest.thubanidrefs): New
5941            class atrributes used for ID normalization
5942            (TestSingleLayer, TestLayerVisibility, TestLabels.test)
5943            (TestLayerProjection.test, TestRasterLayer.test): Adapt to new
5944            file format
5945            (TestJoinedTable): New test for loading sessions with joined
5946            tables.
5947            (TestLoadError): New. Test whether missing required attributes
5948            cause a LoadError.
5949    
5950            * test/test_save.py (SaveSessionTest.thubanids)
5951            (SaveSessionTest.thubanidrefs): New class attributes for ID
5952            normalization in .thuban files.
5953            (SaveSessionTest.compare_xml): Use id-normalization.
5954            (SaveSessionTest.testEmptySession)
5955            (SaveSessionTest.testLayerProjection)
5956            (SaveSessionTest.testRasterLayer)
5957            (SaveSessionTest.testClassifiedLayer): Adapt to new file format.
5958            (SaveSessionTest.testLayerProjection): The filename used was the
5959            same as for testSingleLayer. Use a different one.
5960            (SaveSessionTest.test_dbf_table)
5961            (SaveSessionTest.test_joined_table): New test cases for saving the
5962            new data sources structures.
5963            (TestStoreSort, MockDataStore): Classes to test the sorting of the
5964            data stores for writing.
5965    
5966            * test/runtests.py: Add CVS keywords
5967    
5968    2003-06-20  Jonathan Coles   <[email protected]>
5969    
5970            * test/test_session.py
5971            (UnreferencedTablesTests.test_unreferenced_tables_with_joins):
5972            Use the cultural_landmark-point.dbf file for the store so that
5973            the table rows and shape count match.
5974    
5975    2003-06-20  Jonathan Coles   <[email protected]>
5976    
5977            * Thuban/Model/data.py (DerivedShapeStore.__init__): Raise
5978            an exception if the number of shapes is different from the
5979            number of rows in the table. Address RTbug #1933.
5980    
5981            * test/test_layer.py (TestLayer.test_derived_store): Add
5982            a test for the new exception in DerivedShapeStore.__init__.
5983    
5984            * test/support.py (FloatTestCase): Removed since there is
5985            already FloatComparisonMixin. Fixes RTbug #1954.
5986            (FloatComparisonMixin.assertFloatEqual): Include test for
5987            infinity that was part of FloatTestCase.
5988    
5989            * test/test_range.py (RangeTest): Inherit from
5990            support.FloatComparisonMixin now that we don't have
5991            support.FloatTestCase.
5992    
5993    2003-06-20  Bernhard Herzog  <[email protected]>
5994    
5995            * test/test_save.py (SaxEventLister, sax_eventlist): Removed. Use
5996            the implementation in xmlsupport instead.
5997            (SaveSessionTest.compare_xml): sax_eventlist is now in xmlsupport
5998    
5999            * test/test_proj.py: Import sax_eventlist from xmlsupport instead
6000            of test_save
6001    
6002    2003-06-20  Bernhard Herzog  <[email protected]>
6003    
6004            * test/test_load.py (LoadSessionTest.check_format): New helper
6005            method to make sure the test files we load might have been written
6006            by the current thuban version.
6007            (ClassificationTest.TestLayers, TestSingleLayer.test)
6008            (TestLayerVisibility.test, TestClassification.test)
6009            (TestLabels.test, TestLayerProjection.test, TestRasterLayer.test):
6010            Add check_format() calls and fix the thuban data to match the data
6011            that would be written by saving the session loaded from it.
6012    
6013            * test/xmlsupport.py (SaxEventLister, sax_eventlist): Copies of
6014            the same class and function in test_save.
6015    
6016            * test/test_xmlsupport.py (TestEventList): New. test cases for
6017            sax_eventlist
6018    
6019    2003-06-20  Bernhard Herzog  <[email protected]>
6020    
6021            * Resources/XML/thuban.dtd: Add comment about which versions of
6022            Thuban are covered by this DTD
6023            (map): Fix content model for layers and raster layers. There can
6024            be any number or layers and raster layers in any order.
6025    
6026    2003-06-20  Jonathan Coles   <[email protected]>
6027    
6028            This is mainly about fixing RTbug #1949.
6029    
6030            * Thuban/Model/classification.py: Remove "from __future__"
6031            import statement since python 2.2 is the earliest supported
6032            version.
6033    
6034            * Thuban/Model/proj.py (Projection.GetProjectedUnits): New.
6035            Currently returns PROJ_UNITS_METERS or PROJ_UNITS_DEGREES
6036            depending on the units this projection *forwards* into.
6037    
6038            * Thuban/Model/save.py (SessionSaver.write_classification):
6039            Remove unnecessary use of lambdas and nested functions.
6040    
6041            * Thuban/UI/legend.py (ScaleBarBitmap.__SetScale): Do scale
6042            adjustment here if the map projection uses degrees.
6043    
6044            * Thuban/UI/scalebar.py (ScaleBar.DrawScaleBar): Remove
6045            scale adjust code since it is now done before calling
6046            this method. Don't do anything if the map projection
6047            is None.
6048    
6049    2003-06-19  Bernhard Herzog  <[email protected]>
6050    
6051            Move version specific load tests to their own file.
6052    
6053            * test/test_load.py: Expand the doc-string to explain a bit how to
6054            handle file format changes.
6055            (TestClassification.test): Update the docstring as this test is
6056            not about Thuban 0.2 anymore.
6057    
6058            * test/test_load_0_2.py: New file with the load tests for thuban
6059            files created with Thuban 0.2 and earlier.
6060    
6061    2003-06-19  Bernhard Herzog  <[email protected]>
6062    
6063            Add XML validation to some of the tests. Validation will only be
6064            done if pyRXP is installed (http://reportlab.com/xml/pyrxp.html).
6065            To make the DTD available to the test cases it's moved into
6066            Resources/XML
6067    
6068            * Resources/XML/thuban.dtd: New. This is now the real Thuban DTD
6069            for versions up to and including 0.2. Two slight changes: added an
6070            encoding specification and fixed the comment which refered to
6071            GRASS, not Thuban
6072    
6073            * test/xmlsupport.py: New support module for tests involving XML.
6074            Currently there's a mix-in class for XML validation.
6075    
6076            * test/test_xmlsupport.py: New. Tests for the xmlsupport module
6077    
6078            * test/test_save.py (SaveSessionTest): Derive from ValidationTest
6079            so that we can validate the
6080            (SaveSessionTest.testEmptySession)
6081            (SaveSessionTest.testSingleLayer)
6082            (SaveSessionTest.testSingleLayer)
6083            (SaveSessionTest.testLayerProjection)
6084            (SaveSessionTest.testRasterLayer)
6085            (SaveSessionTest.testClassifiedLayer): Validate the generated XML
6086    
6087            * test/runtests.py (main): Call print_additional_summary instead
6088            of print_garbage_information
6089    
6090            * test/support.py (resource_dir): New function to return the
6091            "Resource" subdirectory
6092            (print_additional_summary): New function to combine several
6093            summary functions
6094            (run_tests): Use print_additional_summary instead of calling
6095            print_garbage_information directly
6096    
6097    2003-06-19  Bernhard Herzog  <[email protected]>
6098    
6099            * Doc/thuban.dtd (classification): Correct the content model of
6100            the classification element.
6101            (projection): Add the "name" attribute
6102    
6103    2003-06-19  Frank Koormann   <[email protected]>
6104    
6105            MERGE from the greater-ms3 branch.
6106    
6107            * Thuban/UI/scalebar.py (ScaleBar.DrawScaleBar): Apply conversion to
6108            scale if projection is latlong to get better estimate.
6109    
6110            Fix problem of hidden properties dialog under windows after double
6111            click on layer tree:
6112            The tree control always gets an Expanded / Collapsed event after
6113            the ItemActivated  on double click, which raises the main window again.
6114            We add a second ItemActivated event to the queue, which simply
6115            raises the already displayed window.
6116    
6117            * Thuban/UI/legend.py (LegendTree.__init__): Instance variable
6118            raiseProperties initialized to prevent endless loops
6119            (LegendTree._OnItemActivated): Depending on self.raiseProperties
6120            simply raise the properties or open the dialog and issue a second
6121            event.
6122    
6123    2003-06-18  Jonathan Coles   <[email protected]>
6124    
6125            * setup.py: Fix a few problems that occured under Windows.
6126    
6127    2003-06-18  Jonathan Coles   <[email protected]>
6128    
6129            When Thuban loaded the map was redrawn twice because the
6130            legend was being opened after the mainwindow was created
6131            and not during its creation. This meant the map was drawn
6132            initially and then had to be redrawn when the legend
6133            caused the display to change. Now the legend is opened
6134            in the mainwindow constructor which resolves this issue.
6135    
6136            Also, although we were checking for the existence of
6137            gdal and gdalwarp modules, the gdalwarp extension was
6138            still being compiled (which may fail if the system doesn't
6139            have gdal installed). the build_ext command to setup.py
6140            now accepts the flags --with-gdal and --without-gdal.
6141            If --without-gdal is specified setup.py will try to
6142            use the gdal parameters specified by gdal-config. Under
6143            windows, those parameters have to be set in setup.py
6144            as with proj4 an wxWindows.
6145    
6146            * setup.py: Use a list instead of seperate variables for
6147            extension parameters so we can create a generic function
6148            that runs an appropriate *-config script.
6149            (run_cs_script): Renamed from run_wx_script and modified
6150            to accept a second argument which is a list of lists to
6151            be filled in by the values returned from running the command.
6152            (thuban_build_ext): New. Extends the build_ext command and
6153            provides the options --with-gdal/--without-gdal which then
6154            optionally includes the gdalwarp extension.
6155    
6156            * Thuban/Model/resource.py: First check if we can import
6157            the gdalwarp Thuban extension before checking for gdal.
6158            Also added some comments.
6159            
6160            * Thuban/UI/legend.py (ScaleBarBitmap.__SetScale): Check if
6161            the map is None which may be the case if none has been loaded
6162            yet.
6163    
6164            * Thuban/UI/main.py (main): Remove call to ShowLegend.
6165    
6166            * Thuban/UI/mainwindow.py (MainWindow.__init__): Call ShowLegend().
6167    
6168            * Thuban/UI/renderer.py: Check for gdal support before importing
6169            gdalwarp.
6170            (MapRenderer.render_map): Only try to optimize if we have gdal
6171            support otherwise nothing will get drawn.
6172    
6173            * Thuban/UI/view.py (MapCanvas.FitMapToWindow): This may be called
6174            during startup before a map has been created. Check if map is None
6175            before using it and do nothing if it is.
6176    
6177    2003-06-17  Jonathan Coles   <[email protected]>
6178    
6179            Fix the problem with raster layers under Windows that caused
6180            Thuban to crash. The view should respond to layer projection
6181            changed events to update the display. Changes to a projection
6182            should not cause the map to be set to full extent.
6183            
6184            * Thuban/UI/view.py (MapCanvas.__init__): New instance variable
6185            current_map_proj to remember the current map projection so that
6186            when the projection changes we know what the previous projection
6187            was.
6188            (MapCanvas.SetMap): Unsubscribe and subscribe to
6189            LAYER_PROJECTION_CHANGED events.
6190            (MapCanvas.projection_changed): Split into two methods that respond
6191            to map and layer projection changes.
6192            (MapCanvas.map_projection_changed): New. Takes the current view and
6193            projects it using the new projection. This does not cause the
6194            map to be redrawn at full extent.
6195            (MapCanvas.layer_projection_changed): New. Cause a redraw which
6196            will draw each layer in its new projection.
6197            
6198            * extensions/thuban/bmpdataset.cpp (BMPDataset::Open): Call
6199            VSIFClose() not VSIFCloseL() to close the file. Fixes a crash
6200            under Windows.
6201            
6202            * extensions/thuban/gdalwarp.cpp (MFILENAME): Padding should be
6203            to twice sizeof(void*) because there are two digits for each
6204            hex byte.
6205    
6206    2003-06-16  Bernhard Herzog  <[email protected]>
6207    
6208            Update to the layer interface: Direct access to the table,
6209            shapetable, shapefile and filename attributes is now actively
6210            deprecated by issuing deprecation warnings for all places where
6211            this happens.
6212    
6213            * Thuban/Model/layer.py (Layer.__getattr__): New. Implement access
6214            to the instance variables table, shapetable, shapefile and
6215            filename via __getattr__ so that we can issue a deprecation
6216            warning.
6217            (Layer.SetShapeStore): Don't set the deprecated instance variables
6218            any more
6219            (Layer.SetShapeStore): Don't use deprecated layer instance
6220            variables
6221            (Layer.Destroy): No need to explicitly remove the instance
6222            variables any more
6223            (Layer.GetFieldType, Layer.Shape): Don't use deprecated layer
6224            instance variables
6225    
6226            * Thuban/UI/classgen.py (ClassGenDialog.__init__)
6227            (GenUniformPanel._OnRetrieve, GenUniquePanel._OnRetrieve)
6228            (GenQuantilesPanel.GetList, GenQuantilesPanel.OnRetrieve): Don't
6229            use deprecated layer instance variables
6230    
6231            * Thuban/UI/classifier.py (Classifier.__init__): Don't use
6232            deprecated layer instance variables
6233    
6234            * Thuban/UI/identifyview.py (IdentifyListCtrl.selected_shape)
6235            (IdentifyGridCtrl.selected_shape): Don't set the deprecated layer
6236            instance variables
6237    
6238            * Thuban/UI/tableview.py (LayerTableGrid.select_shapes): Don't use
6239            deprecated layer instance variables
6240    
6241            * Thuban/UI/mainwindow.py (MainWindow.LayerShowTable): Don't use
6242            deprecated layer instance variables
6243    
6244            * Thuban/Model/save.py (SessionSaver.write_layer): Don't use
6245            deprecated layer instance variables
6246    
6247            * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer)
6248            (MapRenderer.polygon_render_param): Don't use deprecated layer instance
6249            variables
6250    
6251            * test/runtests.py (main): Turn Thuban's deprecation warnings into
6252            errors so that they're cought by the tests
6253    
6254            * test/test_load.py (TestSingleLayer.test): Don't use deprecated
6255            layer instance variables
6256    
6257    2003-06-16  Jonathan Coles   <[email protected]>
6258    
6259            Fix a problem under Windows whereby if the user double-clicks on a
6260            layer in the legend that tree item will expand or collapse as well
6261            as open the layer properties dialog. The state of the tree item
6262            should not be affected.
6263    
6264            * Thuban/UI/legend.py (LegendTree.__init__): Add instance variable
6265            preventExpandCollapse and subscribe to expanding and collapsing
6266            events.
6267            (LegendTree.OnItemExpandCollapse): New. Responds to expanding and
6268            collapsing events and will veto the event if it has been triggered
6269            by the user double clicking on a layer.
6270            (LegendTree._OnItemActivated): Set preventExpandCollapse to indicate
6271            that an expanding/collapsing event should be vetoed.
6272    
6273    2003-06-13  Bernhard Herzog  <[email protected]>
6274    
6275            * Thuban/UI/classifier.py (Classifier.OnClose)
6276            (Classifier.map_layers_removed)
6277            (Classifier.layer_shapestore_replaced): Unsubscribe the messages
6278            in OnClose and not in map_layers_removed or
6279            layer_shapestore_replaced to make sure it always happens when the
6280            dialog is closed
6281    
6282    2003-06-13  Jonathan Coles   <[email protected]>
6283    
6284            This puts back a fix for Windows where a panel is needed so that
6285            the background of the table view appears correctly.
6286    
6287            * Thuban/UI/tableview.py (TableFrame.__init__): Add a panel
6288            object that can be used by derived classes to place any
6289            controls (including the grid) onto.
6290            (QueryTableFrame.__init__): Use the panel as the parent window
6291            for all the controls. Reparent the grid so that the panel is
6292            the parent. Call UpdateStatusText() to correctly initialize
6293            the status bar.
6294    
6295    2003-06-13  Jonathan Coles   <[email protected]>
6296    
6297            * Thuban/UI/dialogs.py (ThubanFrame): New: a class that inherits
6298            from wxFrame (as opposed to wxDialog like the other classes)
6299            but otherwise behaves like the other classes. This is needed
6300            for the TableView which isn't really a dialog and needs to
6301            have a status bar and control buttons.
6302    
6303            * Thuban/UI/tableview.py (TableGrid.__init__): Create an
6304            instance variable to keep track of how many rows are selected.
6305            Subscribe once to the the events we are interested in.
6306            (ThubanGrid.OnRangeSelect): Only handle event if event handling
6307            hasn't been turned off.
6308            (ThubanGrid.OnSelectCell): Only handle event if event handling
6309            hasn't been turned off.
6310            (ThubanGrid.ToggleEventListeners): Rather than subscribe None
6311            as an event listener (which changes the event handler stack)
6312            simply set an instance variable to False. This is checked in
6313            the event handlers.
6314            (ThubanGrid.GetNumberSelected): Return the number of currently
6315            selected rows.
6316            (TableFrame): Inherit from ThubanFrame so we can have a
6317            status bar and control buttons.
6318            (QueryTableFrame.__init__): Create a status bar. Fixes RTbug #1942.
6319            Explicitly set which items are selected in the operator choice and
6320            action choice so there is always a valid selection. Fixes RTbug #1941.
6321            Subscribe to grid cell selection events so we can update the
6322            status bar.
6323            (QueryTableFrame.UpdateStatusText): Update the status bar with
6324            how many rows are in the grid, how many columns, and how many
6325            rows are selected.
6326            (QueryTableFrame.OnGridSelectRange, QueryTableFrame.OnGridSelectCell):
6327            Call UpdateStatusText when cells are (de)selected.
6328            (QueryTableFrame.OnQuery): Use the string value in the value
6329            combo if either the selected item index is 0 or if the string
6330            cannot be found in the predefined list (this happens if the
6331            user changes the text). Fixes RTbug #1940.
6332            Only turn off the grid event listeners if there a query comes
6333            back with a none empty list of ids. in the case that the list
6334            is empty this causes a grid.ClearSelection() call to actually
6335            clear the grid selection which causes the selected items in
6336            the map to be deselected. Fixes RTbug #1939.
6337    
6338            * test/test_save.py (XMLWriterTest.Encode): Check return values.
6339            Fixes RTbug #1851.
6340    
6341    2003-06-13  Bernhard Herzog  <[email protected]>
6342    
6343            * Thuban/UI/identifyview.py (IdentifyView.__init__): Call
6344            self.selected_shape with the current selection to make sure the
6345            contents of the dialog are up to date when it's shown for the
6346            first time.
6347            The dialog used to work without this by luck. The recent fix to
6348            the connector module 'broke' a 'feature' the identify view was
6349            relying on, i.e that subscribing to a message in response to
6350            receiving a message of that type would mean that the new
6351            subscriber would also be called for the same message.
6352            
6353    2003-06-12  Jonathan Coles   <[email protected]>
6354    
6355            * extensions/thuban/gdalwarp.cpp: Removed debug printing as
6356            the image is rendered. Fixes RTbug #1937.
6357    
6358    2003-06-12  Jonathan Coles   <[email protected]>
6359    
6360            * Thuban/Lib/fileutil.py: As is done under Windows, create the
6361            user directory if it doesn't exist on a posix system.
6362            Fixes RTbug #1815.
6363    
6364            * Thuban/Model/resource.py (get_user_proj_files): Moved the
6365            called to get_application_dir here, so that the directory
6366            will only be called if this method is invoked.
6367    
6368            * Thuban/UI/projdialog.py (ProjFrame.__DoOnProjAvail): Clear
6369            the projfilepath if no projection is selected.
6370    
6371    2003-06-12  Jonathan Coles   <[email protected]>
6372    
6373            * Thuban/UI/legend.py (ScaleBarBitmap.__SetScale): Don't draw
6374            the scalebar if the current map has no projection set.
6375    
6376            * Thuban/UI/projdialog.py (ProjFrame.__DoOnProjAvail): Set the
6377            projfilepath label to just the basename of the projection file
6378            rather than include the entire path.
6379    
6380            * Thuban/Model/resource.py: Fix missed proj functions that
6381            needed to be renamed.
6382    
6383    2003-06-12  Jonathan Coles   <[email protected]>
6384    
6385            * Thuban/Model/classification.py: Removed assert statements that
6386            tested if the variable was an instance of Color.
6387    
6388            * Thuban/Model/color.py (Color): Remove commented code that isn't
6389            used.
6390            (Transparent): Renamed from NoColor. Doesn't inherit from Color.
6391            Fixes RTbug #1835.
6392            (Transparent.__eq__, Transparent.__ne, Transparent.__repr): New.
6393            Needed now that the class doesn't inherit from Color.
6394    
6395    2003-06-12  Jonathan Coles   <[email protected]>
6396    
6397            * test/test_save.py (XMLWriterTest.testEncode): Explicitly
6398            check unicode strings.
6399    
6400            * test/test_layer.py: Check for existence of gdal.
6401    
6402    2003-06-12  Jonathan Coles   <[email protected]>
6403        
6404            * Thuban/Model/xmlreader.py: New. Contains the XMLReader class
6405            that was in load.py
6406    
6407            * Thuban/Model/xmlwriter.py: New. Contains the XMLWriter class
6408            that was in save.py
6409    
6410    2003-06-12  Jonathan Coles   <[email protected]>
6411    
6412            This is largely a collection of bug fixes. We also handle the
6413            case where gdal is not on the system. The XMLReader and XMLWriter
6414            classes were moved into there own files to resolve some circular
6415            import references and because they shouldn't really be in the
6416            file that is dediciated to reading/writing session files since
6417            they are also used elsewhere.
6418    
6419            * Thuban/Model/classgen.py: Renamed functions to follow the
6420            function_names_with_underscores style. Fixes RTbug #1903.
6421            (calculate_quantiles): Raise ValueError if 'percents' is invalid.
6422    
6423            * Thuban/Model/layer.py: Import gdal only if it available.
6424            (RasterLayer): Handle the case where the gdal library is unavailable.
6425            Addresses RTbug #1877.
6426    
6427            * Thuban/Model/load.py (XMLReader): Moved into seperate file
6428            xmlreader.py.
6429    
6430    2003-06-12  Jonathan Coles   <[email protected]>
6431    
6432            This is largely a collection of bug fixes. We also handle the
6433            case where gdal is not on the system. The XMLReader and XMLWriter
6434            classes were moved into there own files to resolve some circular
6435            import references and because they shouldn't really be in the
6436            file that is dediciated to reading/writing session files since
6437            they are also used elsewhere.
6438    
6439            * Thuban/Model/classgen.py: Renamed functions to follow the
6440            function_names_with_underscores style. Fixes RTbug #1903.
6441            (calculate_quantiles): Raise ValueError if 'percents' is invalid.
6442    
6443            * Thuban/Model/layer.py: Import gdal only if it available.
6444            (RasterLayer): Handle the case where the gdal library is unavailable.
6445            Addresses RTbug #1877.
6446    
6447            * Thuban/Model/load.py (XMLReader): Moved into seperate file
6448            xmlreader.py.
6449    
6450            * Thuban/Model/save.py (escape, XMLWriter): Moved into seperate
6451            file xmlwriter.py.
6452    
6453            * Thuban/Model/resource.py: Renamed functions to following the
6454            function_names_with_underscores style.
6455            (has_gdal_support): New function that returns true if the gdal
6456            library is available. Addresses RTbug #1877.
6457    
6458            * Thuban/UI/application.py (ThubanApplication.OpenSession):
6459            Display a message box if the gdal library is not available, but
6460            only if there are any layers that would use it. Addresses RTbug #1877.
6461    
6462            * Thuban/UI/classgen.py: Use renamed projection resource functions.
6463            (GenUniformPanel.__CalcStepping): Fix a slight discrepency
6464            when using integers versus floats.
6465    
6466            * Thuban/UI/mainwindow.py (_has_gdal_support): New. Used to
6467            determine if the "Add Image Layer" menu option should be
6468            greyed out or not. Addresses RTbug #1877.
6469    
6470            * Thuban/UI/projdialog.py: Use renamed projection resource functions.
6471    
6472            * Thuban/UI/renderer.py (MapRenderer.render_map): Only try to
6473            optimize if a raster layer is visible. Fixes RTbug #1931.
6474            Only draw the raster layer if the gdal library is available.
6475            Addresses RTbug #1877.
6476    
6477            * test/test_classgen.py: Add tests for generate_singletons,
6478            generate_uniform_distribution, generate_quantiles. Fixes RTbug #1903.
6479            (test_calculate_quantiles): Fix some tests to catch the new
6480            ValueError that is raised.
6481    
6482            * test/test_proj.py: Use renamed projection resource functions.
6483    
6484            * test/test_save.py (SaveSessionTest.testClassifiedLayer): New
6485            test for saving classified layers. Fixes RTbug #1902.
6486            (XMLWriterTest): New. Tests the XMLWriter class. Fixes RTbug #1851.
6487    
6488    2003-06-12  Jan-Oliver Wagner <[email protected]>
6489    
6490            Fix for http://intevation.de/rt/webrt?serial_num=1900.
6491    
6492            * Thuban/UI/multiplechoicedialog.py: New. A multiple choice dialog.
6493    
6494            * Thuban/UI/mainwindow.py: import wxMultipleChoiceDialog from
6495            multiplechoicedialog.py rather than from the wxPython library.
6496    
6497    2003-06-11  Frank Koormann  <[email protected]>
6498    
6499            * Thuban/Lib/fileutil.py (get_application_dir): Minor stability
6500            update.
6501    
6502    2003-06-11  Frank Koormann  <[email protected]>
6503    
6504            * Thuban/Lib/fileutil.py (get_application_dir): New function to
6505            determine the absolute .thuban/thuban directory under
6506            "posix" (os.expanduser) and "nt" (read AppData registry key).
6507    
6508            * Thuban/Model/resource.py: Use get_application_dir
6509    
6510            * Thuban/UI/application.py (ThubanApplication.read_startup_files):
6511            Use get_application_dir.
6512    
6513    2003-06-10  Bernhard Herzog  <[email protected]>
6514    
6515            * Thuban/UI/tableview.py (LayerTableFrame.__init__): Subscribe to
6516            the messages MAP_LAYERS_REMOVED messages
6517            (LayerTableFrame.OnClose): Unsubscribe from it.
6518            (LayerTableFrame.map_layers_removed): New. Receiver for
6519            MAP_LAYERS_REMOVED. Close the dialog when the layer whose the
6520            dialog is showing is removed.
6521    
6522    2003-06-10  Bernhard Herzog  <[email protected]>
6523    
6524            * Thuban/Lib/connector.py (Connector.Issue): Iterate over a copy
6525            of the receivers list so that unsubscribing in a receiver doesn't
6526            modify it while iterating over it.
6527    
6528            * test/test_connector.py
6529            (ConnectorTest.test_disconnect_in_receiver): New. Test whether
6530            unsubscribing in a receiver works correctly. See docstring for
6531            details
6532    
6533    2003-06-10  Bernhard Herzog  <[email protected]>
6534    
6535            * Thuban/Model/messages.py (LAYER_SHAPESTORE_REPLACED): New
6536            message.
6537    
6538            * Thuban/Model/layer.py (Layer.SetShapeStore): Send
6539            LAYER_SHAPESTORE_REPLACED when the shapestore changes. A
6540            LAYER_CHANGED will still be sent if the classification changes.
6541    
6542            * Thuban/UI/classifier.py (Classifier.__init__): Add the map as
6543            parameter so we can subscribe to some of its messages
6544            (Classifier.__init__): Subscribe to the map's MAP_LAYERS_REMOVED
6545            and the layer's LAYER_SHAPESTORE_REPLACED
6546            (Classifier.unsubscribe_messages): New. Unsubscribe from message
6547            subscribed to in __init__
6548            (Classifier.map_layers_removed)
6549            (Classifier.layer_shapestore_replaced): receivers for the messages
6550            subscribed to in __init__. Unsubscribe and close the dialog
6551    
6552            * Thuban/UI/mainwindow.py (MainWindow.OpenLayerProperties): Pass
6553            the map to the Classifier dialog
6554    
6555            * test/test_layer.py (SetShapeStoreTests): Derive from
6556            SubscriberMixin as well so we can test messages
6557            (SetShapeStoreTests.setUp): Subscribe to some of the layer's
6558            messages
6559            (SetShapeStoreTests.tearDown): Clear the messages again
6560            (SetShapeStoreTests.test_sanity): Expand the doc-string and check
6561            for the modified flag too
6562            (SetShapeStoreTests.test_set_shape_store_modified_flag): New test
6563            to check whether SetShapeStore sets the modified flag
6564            (SetShapeStoreTests.test_set_shape_store_different_field_name)
6565            (SetShapeStoreTests.test_set_shape_store_same_field)
6566            (SetShapeStoreTests.test_set_shape_store_same_field_different_type):
6567            Add tests for the messages. This checks both the new
6568            LAYER_SHAPESTORE_REPLACED and the older LAYER_CHANGED
6569    
6570    2003-06-06  Jan-Oliver Wagner <[email protected]>
6571    
6572            * Thuban/UI/mainwindow.py: Improved and partly added help texts for
6573            the menu items.
6574    
6575    2003-06-05  Frank Koormann  <[email protected]>
6576    
6577            * Thuban/UI/identifyview.py (IdentifyView.__init__):
6578            Layout reimplemented without panel. Make life easier to fit the list
6579            in the dialog.
6580    
6581    2003-06-05  Frank Koormann  <[email protected]>
6582    
6583            * Thuban/UI/projdialog.py (ProjFrame.__init__): Fill the projchoice
6584            once on initialisation (Former implementation resulted in multiple
6585            entries for each projection).
6586            (ProjFrame.__FillAvailList): selectProj as second optional parameter,
6587            if set, select the projection found under the specified name. This
6588            overwrites any other selection estimate.
6589            Removed projchoice filling from this method.
6590            (ProjFrame._OnSave, ProjFrame._OnAddToList):
6591            Updated call of ProjFrame.__FillAvailList
6592            (LCCPanel._DoLayout): Moved parameter controls in more common order.
6593    
6594            * Resources/Projections/defaults.proj: Extended defaults representing
6595            various common European projections.
6596    
6597    2003-06-05  Frank Koormann  <[email protected]>
6598    
6599            * Thuban/UI/identifyview.py (IdentifyView.__init__):
6600            Use ListCtrl instead of GridCtrl
6601    
6602            * Thuban/Model/resource.py:
6603            Guess location of .thuban directory from tempdir parent directory.
6604    
6605            * Thuban/UI/application.py (ThubanApplication.read_startup_files):
6606            Guess location of .thuban directory from tempdir parent directory.
6607    
6608    2003-06-04  Bernhard Herzog  <[email protected]>
6609    
6610            Do not cache the values returned by the tree widget's
6611            GetFirstChild and GetNextChild methods because it led to lots of
6612            segfaults. The new way requires more brute force but is more
6613            reliable.
6614    
6615            * Thuban/UI/legend.py (LegendTree.__init__): Remove instance
6616            variable layer2id
6617            (LegendTree.find_layer): New method to do with brute force what
6618            layer2id tried to accomplish
6619            (LegendTree._OnMsgLayerChanged)
6620            (LegendTree._OnMsgLayerTitleChanged, LegendTree.__ShowHideLayer):
6621            Use find_layer instead of layer2id
6622            (LegendTree.__RemoveLayer, LegendTree.__AddLayer): No need to
6623            update layer2id anymore
6624            (LegendTree._OnMsgMapLayersRemoved)
6625            (LegendTree._OnMsgMapLayersAdded): Get by without layer2id.
6626    
6627    2003-06-03  Thomas Koester  <[email protected]>
6628    
6629            * Thuban/Model/classgen.py (GenQuantiles0): New function.
6630    
6631    2003-06-02  Bernhard Herzog  <[email protected]>
6632    
6633            * Thuban/UI/mainwindow.py (layer_rename command, table_rename command):
6634            New commands.
6635            (main_menu): Add the new commands.
6636            (MainWindow.TableRename): New. Implementation of the table_rename
6637            command.
6638            (MainWindow.RenameLayer): New. Implementation of the layer_rename
6639            command.
6640    
6641            * Thuban/Model/session.py (Session.AddTable): call self.changed to
6642            set the modified flag
6643    
6644            * test/test_session.py (TestSessionSimple.test_add_table): Test
6645            whether the modified flag is set properly
6646    
6647            * Thuban/Model/base.py (TitledObject.SetTitle): Call changed
6648            instead of issue so that the modified flags get updated.
6649    
6650            * test/test_base.py (SomeTitledObject): Derive from Modifiable
6651            instead of Publisher to reflect reality better and to accomodate
6652            the fact that SetTitle now calls changed instead of issue
6653    
6654    2003-06-02  Bernhard Herzog  <[email protected]>
6655    
6656            * Thuban/UI/classgen.py (GenQuantilesPanel.GetList): Resource
6657            acquisition has to happen before the try in a try-finally.
6658    
6659    2003-06-02  Bernhard Herzog  <[email protected]>
6660    
6661            * Thuban/UI/legend.py (LegendTree._OnMsgMapLayersRemoved): It's
6662            possible that a layer is removed that is not currently selected in
6663            the legend so don't check for this.
6664    
6665    2003-05-30  Bernhard Herzog  <[email protected]>
6666    
6667            * Thuban/Model/layer.py (Layer.Destroy): Set all instance
6668            variables to None that have direct or indirect references to
6669            shapefiles or dbf files to make sure that they do go away and the
6670            files are closed.
6671    
6672    2003-05-30  Bernhard Herzog  <[email protected]>
6673    
6674            * Thuban/UI/legend.py (LegendTree.GetRootItem): Reset
6675            availImgListIndices when a new image list is created
6676            
6677    2003-05-30  Bernhard Herzog  <[email protected]>
6678    
6679            * Thuban/UI/legend.py (LegendTree.__init__): New instance variable
6680            changing_selection to indicate whether the LegendTree code itself
6681            is currently changing the selection
6682            (LegendTree.normalize_selection): New method to normalize the
6683            selection by selecting the layer item even if the user clicked on
6684            the classification.
6685            (LegendTree._OnSelChanged): normalize the selection. This works
6686            around a bug in wx which doesn't keep track of the selection
6687            properly when subtrees are deleted.
6688    
6689    2003-05-30  Bernhard Herzog  <[email protected]>
6690    
6691            * Thuban/UI/view.py (MapCanvas.set_view_transform): Limit the
6692            maximum and minimum scale factors.
6693    
6694            * test/test_classgen.py (ClassGenTest.test): Update to reflect the
6695            changes in classgen.py
6696    
6697    2003-05-30  Jonathan Coles   <[email protected]>
6698    
6699            * Thuban/Model/classgen.py: Remove ClassGenerator class but make
6700            all the methods functions. Fixes RTBug #1903.
6701    
6702            * Thuban/Model/map.py (Map.TopLayer, Map.BottomLayer): Renamed
6703            to MoveLayerToTop and MoveLayerToBottom respectively. Fixes
6704            RTBug #1907.
6705    
6706            * Thuban/UI/classgen.py: Use classgen functions that were part
6707            of the ClassGenerator class. Put try/finally blocks around
6708            code that uses wxBeginBusyCursor()/wxEndBusyCursor(). Fixes
6709            RTBug #1904.
6710    
6711            * Thuban/UI/classifier.py: Remove unused import of ClassGenerator.
6712    
6713            * Thuban/UI/legend.py: The legend was cleared and repopulated any
6714            time something changed which caused some state to be lost such
6715            as which children were expanded or collapsed. Fixes RTBug #1901.
6716            (LegendTree._OnMsgMapLayersAdded): Add only new layers.
6717            (LegendTree.__OnMsgMapLayersRemoved): Remove layers that exist in
6718            the legend but not in the map.
6719            (LegendTree.__FillTree): Move main functionality out into smaller
6720            methods that can be used by other methods.
6721            (LegendTree.__FillTreeLayer): Reuse old slots in the image list
6722            if they are available.
6723            (LegendTree.DeleteAllItems): Renamed from __DeleteAllItems so
6724            that we override the wxTreeCtrl method. Iterate over children
6725            and call __RemoveLayer.
6726            (LegendTree.__AddLayer): New. Add a new layer to the legend.
6727            (LegendTree.__RemoveLayer): Remove a layer from the legend.
6728            (LegendTree.DeleteChildren): New, overrides wxTreeCtrl method.
6729            Should only be called with the id of a layer branch.
6730            (LegendTree.GetRootItem): New, overrides wxTreeCtrl method.
6731            Returns the root item or creates one if necessary.
6732    
6733            * Thuban/UI/renderer.py (MapRenderer.draw_raster_layer): Call
6734            ProjectRasterFile with tuple arguments instead of strings.
6735    
6736            * Thuban/UI/tableview.py (QueryTableFrame.OnQuery): Wrap code
6737            with try/finally. Fixes RTBug #1904.
6738    
6739            * Thuban/UI/view.py (MapCanvas.OnPaint): Wrap code
6740            with try/finally. Fixes RTBug #1904.
6741            (MapCanvas.FitSelectedToWindow): If a single point is selected
6742            simply center it on the display. Fixes RTBug #1849.
6743    
6744            * extensions/thuban/gdalwarp.cpp: Removed code that allowed gdalwarp
6745            to be compiled as a standalone app. Now the code can only be
6746            called from Python which simplifies the parameter passing.
6747            (ProjectRasterFile): Handle Python arguments. Remove code that
6748            checks for a destination dataset. Add more clean up code.
6749    
6750            * test/test_map.py (TestMapWithContents.test_raise_layer_top,
6751            TestMapWithContents.test_lower_layer_bottom):
6752            Test Map.MoveLayerToTop() and Map.MoveLayerToBottom() respectively.
6753            Fixes RTBug #1907.
6754    
6755            * Thuban/UI/mainwindow.py (MainWindow.ToggleLegend): Apply a full
6756            extent to the map when the legend is toggled. Fixes RTBug #1881.
6757    
6758    2003-05-29  Jan-Oliver Wagner <[email protected]>
6759    
6760            * Thuban/UI/tableview.py (LayerTableFrame.OnClose): Bug-fix: Now
6761            unsubscribes all that is subcribed in __init__.
6762    
6763    2003-05-28  Bernhard Herzog  <[email protected]>
6764    
6765            * Thuban/UI/mainwindow.py (MainWindow.DuplicateLayer)
6766            (MainWindow.CanDuplicateLayer): New methods to implement the
6767            Layer/Duplicate command.
6768            (layer_duplicate command): New.
6769            (main_menu): Add layer_duplicate to the Layer menu.
6770    
6771    2003-05-28  Bernhard Herzog  <[email protected]>
6772    
6773            * Thuban/UI/tableview.py (NullRenderer.Draw): New. Our own
6774            renderer so that NULL/None values get displayed differently (by a
6775            gray rectangle).
6776            (TableGrid.__init__): Override the default renderers
6777    
6778    2003-05-28  Bernhard Herzog  <[email protected]>
6779    
6780            * Thuban/Model/layer.py (Layer.SetShapeStore): Set the
6781            classification to "None" if the type of the field has changed.
6782    
6783            * test/test_layer.py (SetShapeStoreTests): New. Class with a few
6784            test for the Layer.SetShapeStore method
6785    
6786    2003-05-28  Jan-Oliver Wagner <[email protected]>
6787    
6788            * Thuban/Model/layer.py (Layer.TreeInfo): Fixed a bug (a layer
6789            does not necessarily have a filename).
6790    
6791    2003-05-28  Jan-Oliver Wagner <[email protected]>
6792    
6793            * Thuban/UI/mainwindow.py (MainWindow.TableClose, MainWindow.TableShow):
6794            sort the selection list for the dialog.
6795    
6796    2003-05-28  Frank Koormann  <[email protected]>
6797    
6798            * extensions/thuban/wxproj.cpp
6799            (project_point): Removed cast to int for projected point coordinates.
6800            (shape_centroid): Return last point if all polygon vertices fall
6801            to one point.
6802    
6803    2003-05-28  Bernhard Herzog  <[email protected]>
6804    
6805            * Thuban/UI/mainwindow.py (_can_unjoin): Add doc-string and cope
6806            with layers that don't have shapestores, i.e. raster layers.
6807    
6808    2003-05-28  Bernhard Herzog  <[email protected]>
6809    
6810            * Thuban/Model/table.py (DBFTable.__init__): Omit the extension
6811            when determining the title from the filename.
6812    
6813            * test/test_dbf_table.py (TestDBFTable.test_title): Update to
6814            reflect changes in the way the title is derived from the filename
6815    
6816    2003-05-28  Frank Koormann  <[email protected]>
6817    
6818            * Thuban/UI/mainwindow.py (MainWindow.TableShow):
6819            Added wxDEFAULT_DIALOG_STYLE to show table dialog styles.
6820    
6821    2003-05-27  Bernhard Herzog  <[email protected]>
6822    
6823            * Thuban/UI/mainwindow.py (MainWindow.delegated_messages): Also
6824            delegate SelectedLayer.
6825            (MainWindow.LayerUnjoinTable): Implement.
6826            (_can_unjoin): New. Helper function for the sensitivity of the
6827            layer/unjoin command.
6828    
6829            * Thuban/Model/data.py (ShapefileStore.OrigShapeStore)
6830            (DerivedShapeStore.OrigShapeStore): New. Return the original
6831            shapestore. Used to figure out how to unjoin.
6832            (DerivedShapeStore.Shapefile): Fix a typo.
6833    
6834    2003-05-27  Bernhard Herzog  <[email protected]>
6835    
6836            * Thuban/UI/join.py (JoinDialog): Extend to handle layer joins as
6837            well
6838            (JoinDialog.__init__): Use the layer parameter and only build the
6839            left choice when a layer is given
6840            (JoinDialog.OnJoin): Handle layer joins as well
6841            (JoinDialog.OnLeftTable, JoinDialog.OnRightTable): Handle the case
6842            that the user selects the "Select..." item. The sensitivitly
6843            updating is now in update_sensitivity
6844            (JoinDialog.y): New method to refactor the sensitivity update of
6845            the join button into its own method.
6846    
6847            * Thuban/UI/mainwindow.py (MainWindow.LayerJoinTable): Implement.
6848    
6849    2003-05-27  Bernhard Herzog  <[email protected]>
6850    
6851            * Thuban/UI/mainwindow.py (table_close command): Make it sensitive
6852            iff there are unreferenced tables in the session
6853    
6854    2003-05-27  Bernhard Herzog  <[email protected]>
6855    
6856            * Thuban/Model/messages.py (TABLE_REMOVED): New message.
6857    
6858            * Thuban/Model/session.py (Session.UnreferencedTables): New method
6859            to return tables that are not referenced by other tables or shape
6860            stores and can be removed.
6861            (Session.RemoveTable): Issue a TABLE_REMOVED message after
6862            removing the table
6863    
6864            * Thuban/UI/mainwindow.py: Remove unused imports
6865            (MainWindow.TableClose): Implement.
6866    
6867            * Thuban/UI/tableview.py (TableFrame.__init__): Subscribe to some
6868            messages so that the frame will be automatically closed when a new
6869            session is opened or the table is removed.
6870            (TableFrame.OnClose): Unsubscribe the Subscriptions made in
6871            __init__
6872            (TableFrame.close_on_session_replaced)
6873            (TableFrame.close_on_table_removed): New. Subscribers that close
6874            the window
6875    
6876            * test/test_session.py (TestSessionMessages.test_remove_table)
6877            (TestSessionSimple.test_remove_table): Move the test to
6878            TestSessionSimple and add test for the TABLE_REMOVED message
6879            (TestSessionBase.setUp): Also subscribe to TABLE_REMOVED
6880            (TestSessionSimple.test_unreferenced_tables) New. Test for the
6881            UnreferencedTables method.
6882            (UnreferencedTablesTests): New. Class with some more sophisticated
6883            tests for UnreferencedTables.
6884    
6885    2003-05-27  Frank Koormann  <[email protected]>
6886    
6887            * Thuban/UI/tableview.py (QueryTableFrame.__init__): The "_S_election"
6888            display has some unwanted side effects. Removed again.
6889    
6890    2003-05-27  Frank Koormann  <[email protected]>
6891    
6892            * Resources/Bitmaps/legend_icon_layer.xpm: New, icon for legend.
6893    
6894            * Thuban/UI/legend.py (LegendTree.__FillTree): Use "legend_icon_layer"
6895    
6896    2003-05-27  Jan-Oliver Wagner <[email protected]>
6897    
6898            * test/test_menu.py (MenuTest.test): Added test for
6899            Menu.RemoveItem().
6900    
6901            * Thuban/UI/menu.py (Menu.RemoveItem): New. Remove an item from
6902            the menu.
6903    
6904    2003-05-27  Frank Koormann  <[email protected]>
6905            
6906            Nonmodal dialogs without parent (i.e. they can fall behind the main
6907            window)
6908    
6909            * Thuban/UI/mainwindow.py (MainWindow.OnClose): Explicitly destroy
6910            all dialogs in the dialogs dictionary and the canvas.
6911    
6912            * Thuban/UI/dialogs.py (NonModalNonParentDialog): New class, without
6913            parent, i.e. can fall behind other windows.
6914            (NonModalDialog.OnClose): Check is dialog is in mainwindow.dialog
6915            dictionary before removing it.
6916    
6917            * Thuban/UI/classifier.py: Dialog derived from NonModalNonParentDialog
6918    
6919            * Thuban/UI/projdialog.py: Dialog derived from NonModalNonParentDialog
6920            * Thuban/UI/tableview.py: Dialog derived from NonModalNonParentDialog
6921            * Thuban/UI/tree.py: Dialog derived from NonModalNonParentDialog
6922    
6923    2003-05-27  Bernhard Herzog  <[email protected]>
6924    
6925            * Thuban/UI/mainwindow.py (MainWindow.ShowTableView): New. Open a
6926            tableview dialog
6927            (MainWindow.TableShow): Use ShowTableView to open the dialogs.
6928            Also, don't use the table's titles as the dialog names. The titles
6929            aren't guaranteed to be unique.
6930            (MainWindow.TableOpen): Open a table view dialog after opening the
6931            table
6932    
6933    2003-05-27  Bernhard Herzog  <[email protected]>
6934    
6935            * Thuban/UI/mainwindow.py: Remove the Table/Hide menu item. Its
6936            effect can be achieved by simply closing the window showing the
6937            table.
6938            (MainWindow.TableHide): Removed.
6939            (main_menu): Removed "table_hide"
6940    
6941    2003-05-27  Frank Koormann  <[email protected]>
6942    
6943            Fix legend tree display problems under Win32
6944    
6945            * Thuban/UI/legend.py:  BMP_SIZE_W = 15
6946            (LegendTree.__FillTree): Display "legend_icon_map.xpm" with layer title.
6947            (LegendTree.__FillTreeLayer): Explicitely set SelectedImage.
6948    
6949            * Resources/Bitmaps/legend_icon_map.xpm: New icon for legend.
6950    
6951    2003-05-27  Jan-Oliver Wagner <[email protected]>
6952    
6953            * Thuban/UI/menu.py (Menu.InsertSeparator): Additional optional parameter
6954            'after' now allows to insert separators almost anywhere in the menu.
6955    
6956    2003-05-27  Frank Koormann  <[email protected]>
6957    
6958            * Thuban/UI/tableview.py (QueryTableFrame.__init__): Underline the
6959            "S" of selection box label to hint on hot key (Alt-S). Works under
6960            Win32 but is ignored under GTK.
6961    
6962    2003-05-26  Frank Koormann  <[email protected]>
6963    
6964            * Thuban/UI/projdialog.py (ProjFrame.__do_layout, ProjPanel._DoLayout):
6965            Center Choices.
6966    
6967    2003-05-26  Bernhard Herzog  <[email protected]>
6968    
6969            Remove the Precision methods again. They're too DBF specific to be
6970            part of the table interface and they're only used in table_to_dbf
6971            anyway.
6972            
6973            * Thuban/Model/transientdb.py (TransientTableBase.Width):Use a
6974            fixed precision of 12 for doubles.
6975            (TransientTableBase.Precision): Removed
6976            (AutoTransientTable.Width): Delegate to self.table.
6977    
6978            * Thuban/Model/table.py (DBFTable.Precision)
6979            (MemoryTable.Precision): Removed.
6980            (MemoryTable.Width): Use a fixed precision of 12 for doubles.
6981            (table_to_dbf): Use a fixed precision of 12 for floats unless the
6982            column object specifies something else.
6983    
6984            * test/test_dbf_table.py (TestTableToDBF.test_table_to_dbf): New.
6985            test for table_to_dbf
6986    
6987    2003-05-26  Bernhard Herzog  <[email protected]>
6988    
6989            * test/test_transientdb.py
6990            (TestTransientTable.run_iceland_political_tests): Fix a comment.
6991    
6992    2003-05-26  Bernhard Herzog  <[email protected]>
6993    
6994            * Thuban/UI/mainwindow.py (MainWindow.TableOpen): Real
6995            implementation. Mark parts of the file format strings for
6996            localization.
6997    
6998            * Thuban/Model/session.py (Session.OpenTableFile): New. Open a dbf
6999            file and add the table to the tables managed by the session
7000    
7001            * test/test_session.py (TestSessionSimple.test_open_table_file):
7002            New. test case for OpenTableFile
7003    
7004    2003-05-26  Jan-Oliver Wagner <[email protected]>
7005    
7006            * Thuban/UI/controls.py, Thuban/UI/identifyview.py, Thuban/UI/join.py,
7007            Thuban/UI/labeldialog.py, Thuban/UI/mainwindow.py,
7008            Thuban/UI/proj4dialog.py, Thuban/UI/tableview.py, Thuban/UI/view.py:
7009            Replace the true/false of wxWindows by True/False of Python 2.2.1.
7010    
7011    2003-05-26  Jan-Oliver Wagner <[email protected]>
7012    
7013            * Thuban/UI/tableview.py (LayerTableFrame.__init__): If there is
7014            already a selection present, update the grid accordingly.
7015    
7016            * Thuban/UI/mainwindow.py (MainWindow.TableShow): Make the dialog
7017            resizeable and increase its initial size.
7018    
7019    2003-05-26  Frank Koormann  <[email protected]>
7020    
7021            Table export functionality
7022    
7023            * Thuban/Model/table.py (DBFTable.Width, MemoryTable.Width):
7024            Return width (in characters) for a column.
7025            (DBFTable.Precision, MemoryTable.Precision): Return decimal precision.
7026            (table_to_dbf): Write table to dbf file.
7027            (table_to_csv): Write table to csv file.
7028    
7029            * Thuban/Model/transientdb.py (TransientTableBase.Width,
7030            TransientTableBase.Precision): Return column width and precision.
7031    
7032            * Thuban/UI/tableview.py (QueryTableFrame.OnSaveAs): Call table_to_dbf
7033            or table_to_csv depending on file selection.
7034    
7035            * test/test_dbf_table.py:
7036            Test table_to_dbf (extension of former part of test).
7037    
7038            * test/test_csv_table.py:
7039            Test table_to_csv.
7040    
7041    2003-05-23  Jan-Oliver Wagner <[email protected]>
7042    
7043            * Thuban/UI/join.py (JoinDialog.OnJoin): Use _() for strings.
7044            Use QueryTableFrame instead of TableFrame.
7045    
7046            * Thuban/UI/mainwindow.py (MainWindow.LayerShowTable): Prefix the
7047            table window with 'Layer Table:' instead of 'Table:'.
7048    
7049    2003-05-23  Jan-Oliver Wagner <[email protected]>
7050    
7051            Give all tables a title via mix-in TitledObject.LayerShowTable
7052    
7053            * Thuban/Model/base.py (TitledObject.SetTitle): Call method 'issue'
7054            only if it exists.
7055    
7056            * Thuban/Model/table.py (DBFTable, MemoryTable): mix-in TitledObject
7057            and call its init-method with a default title. Remove Title() method.
7058    
7059            * Thuban/Model/transientdb.py (TransientTable, TransientJoinedTable,
7060            AutoTransientTable): mix-in TitledObject and call its init-method with
7061            a default title. Remove Title() method.
7062    
7063    2003-05-23  Bernhard Herzog  <[email protected]>
7064    
7065            * Thuban/Model/session.py (Session.AddShapeStore): Define
7066            AddShapeStore analogously to AddTable.
7067    
7068            * test/test_session.py (TestSessionSimple.test_add_shapestore):
7069            New. Test for AddShapeStore
7070    
7071    2003-05-23  Jan-Oliver Wagner <[email protected]>
7072    
7073            Introducing QueryTableFrame and a very coarse ShowTable implementation.
7074    
7075            * Thuban/UI/tableview.py (LayerTableFrame, QueryTableFrame): Split the
7076            class LayerTableFrame into two classes, LayerTableFrame and QueryTableFrame.
7077            The latter implements the selection GUI without dependency on a layer.
7078            LayerTableFrame now is derived from QueryTableFrame and connects
7079            to a layer.
7080    
7081            * Thuban/UI/mainwindow.py (MainWindow.TableShow): A very coarse
7082            implementation that still needs work.
7083    
7084            * Thuban/Model/layer.py (Layer.TreeInfo): Added filename.
7085    
7086    2003-05-22  Frank Koormann  <[email protected]>
7087    
7088            * Thuban/Model/transientdb.py (TransientJoinedTable.__init__):
7089            Added "outer_join = False" as optional parameter.
7090            (TransientJoinedTable.create): If outer join is true, perform a
7091            "LEFT OUTER JOIN" instead of "JOIN", which preserves all records of
7092            the left table. Records not matching are filled with 0 / None.
7093    
7094            * Thuban/UI/join.py (JoinDialog.__init__): Checkbox for outer join.
7095            (JoinDialog.OnJoin): Consider outer join check box.
7096    
7097    2003-05-22  Bernhard Herzog  <[email protected]>
7098    
7099            * Thuban/UI/join.py (JoinDialog.OnJoin): Use exc_info in a
7100            somewhat safer way. Storing the traceback in a local variable can
7101            lead to memory leaks
7102    
7103    2003-05-22  Bernhard Herzog  <[email protected]>
7104    
7105            * Thuban/UI/join.py (JoinDialog.OnJoin): Make sure to really call
7106            the wxMessageDialog's Destroy() method.
7107    
7108    2003-05-22  Frank Koormann  <[email protected]>
7109    
7110            * Thuban/UI/join.py (JoinDialog.__init__): Make use of
7111            TransientTable.Title()
7112    
7113    2003-05-22  Frank Koormann  <[email protected]>
7114    
7115            Join Dialog, initial version.
7116    
7117            * Thuban/UI/mainwindow.py (MainWindow.TableJoin): Removed print.
7118    
7119            * Thuban/UI/join.py (JoinDialog): Functional implementation of
7120            former framework. Renamed Table1/Table2 to LeftTable/RightTable
7121            in all occurences.
7122    
7123            * Thuban/Model/transientdb.py (TransientJoinedTable.__doc__):
7124            Typo fixed.
7125    
7126    2003-05-22  Bernhard Herzog  <[email protected]>
7127    
7128            Give the tables titles so that the GUI can display more meaningful
7129            names. For now the titles are fixed but depend on e.g. filenames
7130            or the titles of the joined tables.
7131    
7132            * Thuban/Model/transientdb.py (TransientTable.Title)
7133            (TransientJoinedTable.Title, AutoTransientTable.Title): New.
7134    
7135            * Thuban/Model/table.py (DBFTable.Title, MemoryTable.Title): New.
7136    
7137            * test/test_transientdb.py
7138            (TestTransientTable.test_auto_transient_table_title): New. Test
7139            for the Title method
7140            (TestTransientTable.test_transient_joined_table)
7141            (TestTransientTable.test_transient_table): Add test for the Title
7142            methods
7143    
7144            * test/test_memory_table.py (TestMemoryTable.test_title): New.
7145            Test for the Title method
7146    
7147            * test/test_dbf_table.py (TestDBFTable.test_title): New. Test for
7148            the Title method
7149    
7150    2003-05-22  Bernhard Herzog  <[email protected]>
7151    
7152            * test/test_layer.py (TestLayer.setUp, TestLayer.tearDown):
7153            Provide a better way to destroy the layers
7154            (TestLayer.test_base_layer, TestLayer.test_arc_layer)
7155            (TestLayer.test_point_layer, TestLayer.test_empty_layer)
7156            (TestLayer.test_polygon_layer, TestLayer.test_get_field_type): Use
7157            the new way to destroy the layers.
7158            (TestLayer.test_derived_store): New. Test for using a layer with a
7159            DerivedShapeStore
7160    
7161            * Thuban/Model/layer.py (Layer.SetShapeStore): Only set the
7162            filename if the shape store actually has one.
7163    
7164    2003-05-22  Bernhard Herzog  <[email protected]>
7165    
7166            * Thuban/Model/table.py (DBFTable.FileName): New. Accessor method
7167            for the filename
7168    
7169            * test/test_dbf_table.py (TestDBFTable.test_filename): New. Test
7170            for the FileName method
7171            (TestDBFTableWriting.test_write): Fix spelling of filename
7172    
7173    2003-05-22  Thomas Koester  <[email protected]>
7174    
7175            * Thuban/Model/range.py, test/test_range.py: Brought over new Range
7176            from SciParam that now really is immutable.
7177    
7178    2003-05-22  Frank Koormann  <[email protected]>
7179    
7180            Layer Top/Bottom placement added to legend.
7181    
7182            * Thuban/UI/legend.py
7183            (LegendPanel._OnMoveTop(), LayerPanel._OnMoveBottom): New, methods
7184            bound to tool events.
7185            (LegendTree.MoveCurrentItemTop(), LegendTree.MoveCurrentItemBottom):
7186            New, methods binding the event methods with the map methods.
7187    
7188            * Thuban/Model/map.py (Map.TopLayer(), Map.BottomLayer()): New, place
7189            layer at top/bottom of layer stack.
7190    
7191            * Resources/Bitmaps/top_layer.xpm: New button icon.
7192    
7193            * Resources/Bitmaps/bottom_layer.xpm: New button icon.
7194    
7195    2003-05-22  Bernhard Herzog  <[email protected]>
7196    
7197            * Thuban/Model/session.py (Session.RemoveTable): New method to
7198            remove tables
7199    
7200            * test/test_session.py (TestSessionSimple.test_remove_table): New.
7201            Test for RemoveTable
7202    
7203    2003-05-22  Thomas Koester  <[email protected]>
7204    
7205            * Thuban/Model/classgen.py: Added short module doc string and CVS id.
7206            (ClassGenerator.GenUniformDistribution): Use new Range __init__, too.
7207    
7208    2003-05-22  Bernhard Herzog  <[email protected]>
7209    
7210            Implement a way to discover dependencies between tables and
7211            shapestores.
7212    
7213            * Thuban/Model/transientdb.py (TransientTableBase.Dependencies)
7214            (TransientJoinedTable.Dependencies)
7215            (AutoTransientTable.SimpleQuery): New. Implement the dependencies
7216            interface
7217            (TransientJoinedTable.__init__): Keep tack of the original table
7218            objects in addition to the corresponding transient tables.
7219    
7220            * Thuban/Model/table.py (DBFTable.Dependencies)
7221            (MemoryTable.Dependencies): New. Implement the dependencies
7222            interface
7223    
7224            * Thuban/Model/data.py (ShapeTable): New. Helper class for
7225            ShapefileStore
7226            (ShapefileStore.__init__): Use ShapeTable instead of
7227            AutoTransientTable
7228            (ShapefileStore.Table, ShapefileStore.Shapefile): Add doc-strings
7229            (ShapefileStore.FileName, ShapefileStore.FileType): New. Accessor
7230            methods for filename and type
7231            (ShapefileStore.Dependencies): New. Implement the dependencies
7232            interface
7233            (DerivedShapeStore): New class to replace SimpleStore. The main
7234            difference to SimpleStore is that it depends not on a shapefile
7235            but another shapestore which expresses the dependencies a bit
7236            better
7237            (SimpleStore.__init__): Add deprecation warning.
7238    
7239            * test/test_dbf_table.py (TestDBFTable.test_dependencies): New.
7240            Test for the Dependencies method.
7241    
7242            * test/test_memory_table.py (TestMemoryTable.test_dependencies):
7243            New. Test for the Dependencies method.
7244    
7245            * test/test_transientdb.py
7246            (TestTransientTable.test_auto_transient_table_dependencies): New.
7247            Test for the Dependencies method.
7248            (TestTransientTable.test_transient_joined_table): Add test for the
7249            Dependencies method.
7250    
7251            * test/test_session.py (TestSessionSimple.setUp)
7252            (TestSessionSimple.tearDown): New. Implement a better way to
7253            destroy the sessions.
7254            (TestSessionSimple.test_initial_state)
7255            (TestSessionSimple.test_add_table): Bind session to self.session
7256            so that it's destroyed by tearDown
7257            (TestSessionSimple.test_open_shapefile): New. Test for
7258            OpenShapefile and the object it returns
7259    
7260    2003-05-22  Bernhard Herzog  <[email protected]>
7261    
7262            * Thuban/Model/session.py (Session.AddTable): New method to
7263            register tables with the session.
7264            (Session.Tables): Return the tables registered with AddTable too.
7265    
7266            * test/test_session.py (TestSessionSimple.test_add_table): New.
7267            Test case for the AddTable method
7268    
7269    2003-05-22  Frank Koormann  <[email protected]>
7270    
7271            UI polishing updates: Place main buttons (OK, Cancel, etc) in the
7272            lower right corner, center labels for selections, initialize controls
7273            in reasonable order for keyboard navigation.
7274    
7275            * Thuban/UI/projdialog.py (ProjFrame.__init__, ProjFrame.__doLayout)
7276            (ProjFrame.__DoOnProjAvail): Determine position of current projection
7277            using the wxListBox.FindString() method. Still a problem (#1886)
7278    
7279            * Thuban/UI/classifier.py
7280            (Classifier.__init__, SelectPropertiesDialog.__init__)
7281    
7282            * Thuban/UI/classgen.py (ClassGenDialog.__init__,
7283            (ClassGenDialog.__DoOnGenTypeSelect): Moved initialization of the
7284            different classification types from here to __init__.
7285            (GenUniquePanel.__init__): Set the column width of the first field
7286            in the Field ListCtrl to the full width.
7287    
7288            * Thuban/UI/tableview.py (LayerTableFrame.__init__): Rename 'Save As'
7289            Button to 'Export'. Center Buttons in Selection Box, set Focus to
7290            Grid.
7291            (LayerTableFrame.OnKeyDown()): New, bound to the grid with EVT_KEY_DOWN,
7292            changes focus to the Selection when pressing "Alt-S".
7293    
7294            * Thuban/UI/legend.py (LegendTree.__SetVisibilityStyle): Only gray out
7295            the text if not visible. The italic font sometimes exceeds the
7296            rendering area.
7297    
7298    2003-05-21  Jonathan Coles   <[email protected]>
7299    
7300            * Thuban/UI/dock.py (DockFrame): Rename references to _OnClose
7301            to OnClose so that Thuban closes correctly.
7302    
7303            * Thuban/UI/mainwindow.py (MainWindow.OnClose): Call
7304            DockFrame.OnClose, not DockFrame._OnClose.
7305    
7306    2003-05-21  Jonathan Coles   <[email protected]>
7307    
7308            * Thuban/Model/classgen.py (ClassGenerator.GenQuantiles): Remove
7309            references to 'inf' and use new Range __init__ to pass floats
7310            directly rather than converting them to strings first.
7311            Fixes RTBug #1876.
7312    
7313            * Thuban/Model/classification.py (ClassGroupRange.SetRange):
7314            Use new Range ___init__ to pass floats.
7315    
7316            * Thuban/Model/layer.py (RasterLayer.__init__): Test if the
7317            filename is a valid image file. Throw IOError otherwise.
7318    
7319            * Thuban/Model/range.py: Brought over new Range from SciParam that
7320            is immutable and has an __init__ which can accept floats.
7321    
7322            * Thuban/UI/mainwindow.py (MainWindow.AddLayer): Move OpenShapefile
7323            into try block. AddLayer doesn't throw any exceptions anymore.
7324            (MainWindow.AddRasterLayer): Move constructor of RasterLayer into
7325            try block.
7326    
7327            * Thuban/UI/projdialog.py (GeoPanel.__init__): Put Degrees as
7328            the first item in choices. Fixes RTBug #1882.
7329    
7330            * Thuban/UI/renderer.py (MapRenderer.render_map): Check if scale
7331            has gone to 0 which is a serious problem. abort.
7332            (MapRenderer.draw_raster_layer): Catch IOError seperately and
7333            print the error from GDAL.
7334    
7335            * Thuban/UI/tableview.py (TableGrid.__init__): Call
7336            ToggleEventListeners to turn on listening.
7337            (TableGrid.ToggleEventListeners): New. Turns event listening on
7338            and off so as to prevent excessive messages.
7339            (LayerTableFrame.OnQuery): Use TableGrid.ToggleEventListeners
7340            to suppress excessive messages when selecting many rows.
7341            Fixes RTBug #1880.
7342    
7343            * Thuban/UI/view.py: Added checks against if scale == 0. This
7344            is a serious problem that can occur when an image without
7345            geo data is loading and causes the map projection bounds to
7346            go to infinity. Right now, the solution is to simply try
7347            to recover.
7348    
7349            * extensions/thuban/cpl_mfile.cpp (MFILEClose): Make sure
7350            to set the MFILEReceiver attributes even if the data is NULL.
7351    
7352            * extensions/thuban/gdalwarp.cpp: Improved the error handling
7353            and passed GDAL messages back up to the Python layer. Also
7354            tried to fix some memory leaks that were present in the original
7355            utility but didn't matter because the program aborted.
7356    
7357            * test/test_range.py: Copied over tests from SciParam. Removed
7358            tests against importing. Fixes RTBug #1867.
7359    
7360    2003-05-21  Bernhard Herzog  <[email protected]>
7361    
7362            * test/test_load.py: Remove unused imports and restructure the
7363            test code
7364            (LoadSessionTest): Split into one class for each test and turn
7365            LoadSessionTest itself into the base class for all such session
7366            tests.
7367            (ClassificationTest): New base class for load tests that test
7368            classifications
7369            (TestSingleLayer, TestLayerVisibility, TestClassification)
7370            (TestLabels, TestLayerProjection, TestRasterLayer): New classes
7371            for the individual tests
7372    
7373            * test/support.py (FileLoadTestCase.filename): New base class for
7374            file loading tests
7375    
7376    2003-05-21  Jan-Oliver Wagner <[email protected]>
7377    
7378            * Resources/Projections/defaults.proj: Renamed 'Universal Transverse
7379            Mercator' to 'UTM Zone 32' as a more convenient example.
7380            Added 'Gauss Krueger Zone 6'.
7381    
7382            * Data/iceland_sample_raster.thuban: political polygon now
7383            filled transparent to have the raster image visible at once.
7384    
7385    2003-05-21  Frank Koormann  <[email protected]>
7386    
7387            * Thuban/UI/mainwindow.py (MainWindow): Renamed _OnClose() back to
7388            OnClose() to keep in sync with extensions. Internally Thuban
7389            still uses "underscored" names.
7390    
7391    2003-05-20  Jonathan Coles   <[email protected]>
7392    
7393            This puts back Raster layer support. These layers support projections
7394            through the GDAL library. Currently, the CVS version is being used.
7395            There are no Debian packages available although this may change soon.
7396            A GDAL driver was extended to support writing to memory rather to
7397            files.
7398    
7399            There is still some work that needs to be done, such as some error
7400            handling when loading invalid images or when there is a problem
7401            projecting the image. This putback simply checks in the majority
7402            of the work.
7403    
7404            * setup.py: Add gdalwarp library extension.
7405    
7406            * Thuban/Model/layer.py (BaseLayer.HasClassification): New.
7407            Defaults to False, but can be overridden by subclasses if they
7408            support classification.
7409            (RasterLayer): New. Defines a new layer that represents an
7410            image.
7411    
7412            * Thuban/Model/load.py (SessionLoader.__init__): Add rasterlayer
7413            tag handler.
7414            (SessionLoader.start_layer): Encode the filename.
7415            (SessionLoader.start_rasterlayer, SessionLoader.end_rasterlayer):
7416            New. Supports reading a rasterlayer tag.
7417    
7418            * Thuban/Model/map.py (Map.BoundingBox): Fix typo in comment.
7419    
7420            * Thuban/Model/save.py (XMLWriter.encode): Don't assume that we
7421            get a string in Latin1. If we get such as string convert it to
7422            unicode first, otherwise leave if alone before encoding.
7423            (SessionSaver.write_layer): Add support for writing both Layers
7424            and RasterLayers.
7425    
7426            * Thuban/Model/transientdb.py (AutoTransientTable.SimpleQuery):
7427            The right argument may not be a string, it could also be a Column.
7428    
7429            * Thuban/UI/application.py (ThubanApplication.CreateMainWindow):
7430            Make initial window size 600x400. Fixes RTBug #1872.
7431    
7432            * Thuban/UI/classifier.py (Classifier.__init__): Rearrange how
7433            the dialog is constructed so that we can support layers that
7434            do not have classifications.
7435            (Classifier._OnTry): Only build a classification if the layer
7436            supports one.
7437    
7438            * Thuban/UI/legend.py: Change all checks that a layer is an
7439            instance of Layer into checks against BaseLayer.
7440            (LegendTree.__FillTreeLayer): Only add children to a branch if
7441            the layer supports classification.
7442    
7443            * Thuban/UI/mainwindow.py (MainWindow.NewSession,
7444            MainWindow.OpenSession): Don't proceed with an action if the
7445            user chooses Cancel when they are asked to save changes.
7446            (MainWindow.AddRasterLayer): New. Open a dialog to allow the
7447            user to select an image file. Create a new RasterLayer and add
7448            it to the map.
7449    
7450            * Thuban/UI/renderer.py (MapRenderer.render_map): Add support
7451            for rendering RasterLayer layers.
7452            (MapRenderer.draw_raster_layer): Actually method that calls
7453            the GDALWarp python wrapper and constructs an image from the
7454            data returned.
7455    
7456            * Thuban/UI/tableview.py (LayerTableFrame.__init__): Change the
7457            Choices symbols to match those used in the table query method.
7458            Replace deprecated method calls on table with new method names.
7459    
7460            * Thuban/UI/view.py (MapCanvas.set_view_transform): Try to limit
7461            how small the scale can get. This still needs more testing.
7462    
7463            * extensions/thuban/bmpdataset.cpp: New, but copied from GDAL.
7464            Provides a driver to output in .bmp format.
7465    
7466            * extensions/thuban/cpl_mfile.cpp, extensions/thuban/cpl_mfile.h:
7467            New. Provides IO routines which write to memory, rather than a file.
7468    
7469            * extensions/thuban/gdalwarp.cpp: New, but basically a direct copy
7470            of the gdalwarp utility provided in GDAL. Added function calls
7471            that can be accessed from python.
7472    
7473            * Data/iceland_sample_raster.thuban: New. Sample file that uses
7474            a raster layer.
7475    
7476            * Data/iceland/island.tfw, Data/iceland/island.tif: New. Raster
7477            layer image data.
7478    
7479            * Doc/thuban.dtd: Added rasterlayer attribute definition.
7480    
7481            * test/test_layer.py, test/test_load.py, test/test_save.py: Added
7482            tests associated with the raster layer code.
7483    
7484            * test/test_transientdb.py
7485            (TestTransientTable.test_auto_transient_table_query): Added a test
7486            for using a Column object as the "right" parameter to a query.
7487    
7488    2003-05-19  Frank Koormann  <[email protected]>
7489    
7490            * Thuban/version.py (get_changelog_date):
7491            Catch exceptions if ChangeLog does not exist.
7492    
7493            * Thuban/UI/view.py (MapCanvas.Export): Bugfix
7494    
7495    2003-05-19  Frank Koormann  <[email protected]>
7496    
7497            Extended version information for Thuban
7498    
7499            * Thuban/version.py: New, version information for Thuban: Last
7500            modification date and last ChangeLog entry date.
7501    
7502            * Thuban/UI/mainwindow.py (MainWindow.About()): Extended version
7503            information: Display Thuban, wxPython and Python version.
7504    
7505    2003-05-16  Bernhard Herzog  <[email protected]>
7506    
7507            * Thuban/Model/save.py: Remove some unused imports including the
7508            __future__ import for nested_scopes as Thuban relies on Python 2.2
7509            now.
7510            (XMLWriter.encode): Remove the special case for a None argument.
7511            In the saver encode is always called with a string argument.
7512    
7513    2003-05-16  Bernhard Herzog  <[email protected]>
7514    
7515            * Thuban/UI/__init__.py: Remove the work-around for the locale bug
7516            in wxPython (at least when usinvg wxGTK) prior to 2.4. The symptom
7517            of the bug was that e.g. float("1.2") would fail. Thuban now
7518            requires 2.4.x.
7519            
7520    2003-05-16  Frank Koormann   <[email protected]>
7521    
7522            Printing enhancement and WMF export (under Win32)
7523    
7524            * Thuban/UI/renderer.py (ExportRenderer): New, derived from
7525            ScreenRenderer. Renders Map, Legend and Scalebar for export.
7526            (PrinterRenderer): New, derived from ExportRenderer. Replaces the old
7527            PrintRender.
7528    
7529            * Thuban/UI/view.py (MapPrintout.__init__): Enhanced parameter set
7530            to fullfil information needed for PrinterRenderer.
7531            (MapCanvas.Export): New. Export Map (currently only to WMF on Win32).
7532            (MapCanvas.Print): Adapted to new MapPrintout.
7533            (OutputTransform): General calculations to transform from canvas
7534            coordinates to export/printing devices.
7535    
7536            * Thuban/UI/mainwindow.py (MainWindow.ExportMap()): New. Added also
7537            new method_command to call ExportMap, with platform dependency (only
7538            __WXMSW__)
7539      
7540            * Thuban/UI/scalebar.py (ScaleBar.DrawScaleBar): Position and Size
7541            of scalebar drawing area as new parameters.
7542            
7543            * Thuban/Model/scalebar.py (roundInterval): round long instead of int
7544    
7545            * Thuban/UI/legend.py (ScalebarBitmap.__SetScale):
7546            Update to extended scalebar.DrawScalebar header.
7547    
7548            * test/test_export.py: New, test Thuban.UI.view.OutputTransform()
7549    
7550            * test/test_scalebar.py: Made test executable as standalone.
7551    
7552    2003-05-16  Bernhard Herzog  <[email protected]>
7553    
7554            * Thuban/Model/table.py (Table): Remove this compatibility alias
7555            for DBFTable.
7556    
7557            * test/test_table.py: Import DBFTable as Table because that alias
7558            doesn't exist anymore.
7559    
7560            * Thuban/UI/classgen.py: Remove some unused imports
7561    
7562    2003-05-14  Jonathan Coles   <[email protected]>
7563    
7564            * Thuban/Model/classgen.py (ClassGenerator.GenSingletonsFromList):
7565            Fix docstring.
7566            (ClassGenerator.GenUniformDistribution): Fix spelling of method name.
7567            (ClassGenerator.GenQuantiles): Use the left/right brackets and min/max
7568            values of the supplied range to determine the beginning and end
7569            bounds of the generated classes.
7570    
7571            * Thuban/Model/range.py (Range.number_re): Now accepts floats that
7572            do not have a leading 0 (.5 is now accepted as well as 0.5).
7573    
7574            * Thuban/UI/classgen.py (ClassGenDialog.OnOK): Fix name of method
7575            call to ClassGenerator.GenUniformDistribution.
7576    
7577            * Thuban/UI/projdialog.py (ProjFrame.__do_layout): Fix Windows
7578            layout bug with the 'Projection' label.
7579    
7580            * test/support.py (FloatTestCase): New. Needed for the Range tests.
7581    
7582            * test/test_range.py: New. Imported from SciParam.
7583    
7584    2003-05-12  Jonathan Coles   <[email protected]>
7585    
7586            * Thuban/UI/classgen.py (GenQuantilesPanel.GetList): Replace call
7587            to table.UniqueValues() with calls that retrieve all the values
7588            from the table. This will need to be replaced by a method on table
7589            which can simply return the list (perhaps more efficiently).
7590    
7591    2003-05-12  Jonathan Coles   <[email protected]>
7592    
7593            The return value of ClassGenerator.CalculateQuantiles has changed.
7594            Refer to the documentation for details.
7595    
7596            * test/test_classgen.py: Modified Quantile tests to use the
7597            new return values.
7598    
7599            * Thuban/Model/classgen.py
7600            (ClassGenerator.GenQuantiles): Add comments describing the parameters,
7601            use new return values from CalculateQuantiles to produce the correct
7602            range bounds in the Classification.
7603            (ClassGenerator.CalculateQuantiles): Add more comments describing
7604            the return values and parameters. Make minor adjustments to improve
7605            the legibility of the code. Fix problem with adjusted not being set
7606            in most cases.
7607    
7608    2003-05-12  Frank Koormann <[email protected]>
7609            
7610            * Thuban/Model/save.py (XMLWriter.encode()): Explicite call to unicode
7611            and latin1. Fixes #1851 finally.
7612    
7613    2003-05-09  Jonathan Coles   <[email protected]>
7614    
7615            * test/test_classgen.py: New. Tests the Quantile algorithm.
7616    
7617            * Thuban/Model/classgen.py (ClassGenerator.CalculateQuantiles):
7618            Clean up debugging statement, add comments, fix a small bug in the
7619            returned adjusted percentiles.
7620            
7621    2003-05-09  Jonathan Coles   <[email protected]>
7622    
7623            Introduces Range class from SciParam into the ClassGroupRange class,
7624            and such ranges can now be saved and loaded from disk.
7625    
7626            Quantiles are now available in the Classification Generator.
7627    
7628            Initial support for building Queries on a table. Doesn't do anything
7629            but run some tests.
7630    
7631            * Thuban/Model/classification.py: Explicit imports.
7632            (ClassGroupRange): Use the Range class to store the underlying
7633            range information. The interface remains the same, except for
7634            GetRange(), and you can also supply a Range object as the min
7635            parameter to SetRange or __init__.
7636    
7637            * Thuban/Model/load.py (XMLReader.encode): New. Encodes the given
7638            string appropriately for use in Thuban. Fixes RTbug #1851.
7639            (SessionLoader.end_projection): Handle the context of the
7640            projection tag a bit better by looking at what objects are not
7641            None. There was an assumption that a projection tag for a map
7642            could occur before any layers.
7643            (SessionLoader.start_clrange): Provide backward compatibility for
7644            reading min/max values as well as the new range parameter.
7645    
7646            * Thuban/Model/map.py: Explicit imports.
7647    
7648            * Thuban/Model/resource.py: Import _.
7649            (ProjFileSaver.write): write header using projfile.dtd.
7650    
7651            * Thuban/Model/save.py: Explicit imports.
7652            (XMLWriter.encode): New. Encode the given string from a format
7653            used by Thuban into UTF-8. Fixes RTbug #1851.
7654    
7655            * Thuban/UI/classgen.py: Explicit imports.
7656            (ClassGenDialog.__init__): Clean up the code and add support
7657            for Quantiles.
7658            (ClassGenDialog.OnOK): Add support for Quantiles.
7659            (GenQuantilesPanel): New. Input panel for Quantiles.
7660            (ClassGenerator, CustomRamp, MonochromaticRamp, GreyRamp, RedRamp,
7661            GreenRamp, BlueRamp, HotToColdRamp): Move to Thuban/Model/classgen.py
7662    
7663            * Thuban/Model/classgen.py: New. Contains all the classes named above.
7664    
7665            * Thuban/UI/classifier.py: Explicit imports.
7666            (ClassTable.GetValueAsCust, ClassTable.__ParseInput,
7667            ClassTable.SetValueAsCustom): Reworked to use new Range class.
7668    
7669            * Thuban/UI/legend.py: Explicit imports.
7670    
7671            * Thuban/UI/mainwindow.py: Add support for the Join Dialog. Added
7672            a Table menu and associated method calls.
7673            (MainWindow.choose_color): Removed. No longer needed.
7674    
7675            * Thuban/UI/projdialog.py (ProjFrame.__VerifyButtons): Save button
7676            should be disabled if no projection is selected in the available
7677            list.
7678    
7679            * Thuban/UI/renderer.py: Explicit imports.
7680    
7681            * Thuban/UI/tableview.py (TableGrid.OnRangeSelect): Fix some issues
7682            with correctly selecting the rows and issuing the right events.
7683            Be sure to call Skip() to allow the grid to do some of its own
7684            handling which allows the rows to actually be selected.
7685            (LayerTableGrid.select_shapes): Rename from select_shape. Supports
7686            selecting multiple shapes.
7687            (LayerTableFrame): Support for building Queries.
7688            (LayerTableFrame.select_shapes): Allow multiple shapes to be selected.
7689    
7690            * Thuban/UI/tree.py: Explicit imports.
7691    
7692            * Thuban/UI/view.py (MapCanvas): Delegate "SelectedShapes" so the
7693            table view can call it.
7694    
7695            * test/test_classification.py: Explicit imports.
7696            (TestClassification.test_ClassGroupRange): Fix test for new
7697            Range class.
7698    
7699            * Doc/thuban.dtd: Add range parameter for clrange.
7700    
7701            * Thuban/Model/range.py: Taken from SciParam. Used as the underlying
7702            object in ClassGroupRange, and also uesd for inputting ranges in
7703            the classifer table and elsewhere.
7704    
7705            * Thuban/UI/join.py: New. Initial Join dialog. No real functionality
7706            yet.
7707    
7708    2003-05-09  Frank Koormann <[email protected]>
7709    
7710            * Thuban/UI/scalebar.py (DrawScaleBar): Draw only if interval > 0.0.
7711    
7712    2003-05-08  Frank Koormann <[email protected]>
7713    
7714            Coding style updates
7715    
7716            * test/test_scalebar.py: Replaced tab indentation by spaces.
7717    
7718            * Thuban/UI/scalebar.py: Explicit imports.
7719    
7720    2003-05-08  Frank Koormann <[email protected]>
7721    
7722            * Thuban/UI/scalebar.py
7723            (ScaleBar.DrawScalebar): Format string bug fixed.
7724    
7725    2003-05-08  Frank Koormann <[email protected]>
7726    
7727            Reorganization of scalebar component (no wx in Thuban/Model)
7728    
7729            * Thuban/Model/scalebar.py: Rendering moved to Thuban/UI/scalebar.py
7730            (deriveInterval):
7731            Calculate scalebar interval and unit which fits in width for scale.
7732            (roundInterval): Round float.
7733    
7734            * Thuban/UI/scalebar.py (ScaleBar): Scalebar rendering
7735    
7736            * test/test_scalebar.py: Test for Thuban/Model/scalebar.py methods.
7737    
7738            * Thuban/UI/legend.py: Import Thuban.UI.scalebar
7739    
7740    2003-05-08  Frank Koormann <[email protected]>
7741    
7742            * Thuban/UI/legend.py (ScalebarBitmap.SetCanvas):
7743            Initialize ScaleBar with canvas.map
7744    
7745            * Thuban/Model/scalebar.py (ScaleBar.roundInterval()): New,
7746            round intervals to display smarter lengths
7747            (ScaleBar.DrawScalebar): Draw Scalebar only if the map contains a
7748            layer. If the maps has no projection applied grey the scalebar.
7749    
7750    2003-05-07  Frank Koormann <[email protected]>
7751            
7752            Basic Scalebar features added.
7753    
7754            * Thuban/Model/scalebar.py (ScaleBar): New, scalebar rendering.
7755    
7756            * Thuban/UI/legend.py (LegendPanel): Added scalebar bitmap
7757            (ScaleBarBitmap): New, links the scalebar bitmap with view messages
7758            and the renderer.
7759    
7760            * Thuban/UI/view.py (MapCanvas.set_view_transform): Issue SCALE_CHANGED.
7761    
7762            * Thuban/UI/messages.py: SCALE_CHANGED added.
7763    
7764    2003-05-07  Bernhard Herzog  <[email protected]>
7765    
7766            * Thuban/Model/session.py (Session.__init__): New instance
7767            variable shapestores to hold a list of all open shapestore objects
7768            (Session.ShapeStores): New. Accessor method for the shapestores
7769            list.
7770            (Session._add_shapestore, Session._clean_weak_store_refs): New.
7771            Internal methods to maintain the shapestores list.
7772            (Session.Tables): New. Return all tables open in the session.
7773            (Session.OpenShapefile): Insert the new ShapeStore into the
7774            shapestores list.
7775    
7776            * test/test_session.py (TestSessionSimple.test_initial_state): Add
7777            tests for ShapeStores and Tables
7778            (TestSessionWithContent.test_shape_stores)
7779            (TestSessionWithContent.test_tables): New. Test cases for
7780            ShapeStores and Tables
7781    
7782    2003-05-07  Bernhard Herzog  <[email protected]>
7783    
7784            * Thuban/Model/transientdb.py (TransientTableBase.ReadRowAsDict):
7785            Add comments about the optimizations used.
7786            (AutoTransientTable.ReadValue, TransientTableBase.ReadValue): New.
7787            Implement the ReadValue table interface method.
7788    
7789            * test/test_transientdb.py
7790            (TestTransientTable.run_iceland_political_tests)
7791            (TestTransientTable.test_transient_joined_table): Add tests for
7792            ReadValue
7793    
7794    2003-05-07  Frank Koormann <[email protected]>
7795    
7796            * Resources/Bitmaps/fulllayerextent.xpm,
7797            Resources/Bitmaps/fullselextent.xpm: Replaced the place holders with
7798            new icons.
7799    
7800    2003-05-06  Bernhard Herzog  <[email protected]>
7801    
7802            * Thuban/Model/transientdb.py (AutoTransientTable.SimpleQuery):
7803            New. Simply delegate to the transient table's version.
7804    
7805            * test/test_transientdb.py
7806            (TestTransientTable.test_auto_transient_table_query): New. Test
7807            case for AutoTransientTable's SimpleQuery
7808    
7809    2003-05-06  Bernhard Herzog  <[email protected]>
7810    
7811            * Thuban/Model/transientdb.py (TransientTableBase.SimpleQuery):
7812            Implement a simple query method for the query dialog
7813            (TransientTableBase.create): Add an INTEGER PRIMARY KEY that holds
7814            the row index or shapeid.
7815            (TransientTable.create): Insert the right value of the row index
7816            (TransientJoinedTable.create): Copy the row index of the left
7817            table to the joined result table
7818    
7819            * test/test_transientdb.py
7820            (TestTransientTable.test_transient_table_read_twice): Fix
7821            doc-string
7822            (TestTransientTable.test_transient_table_query): New. Test for the
7823            SimpleQuery method
7824    
7825    2003-05-06  Bernhard Herzog  <[email protected]>
7826    
7827            Convert all table users to use the new table interface. This only
7828            covers Thuban itself, not GREAT-ER or other applications built on
7829            Thuban yet, so the compatibility interface stays in place for the
7830            time being but it now issues DeprecationWarnings.
7831    
7832            Finally, the new Table interface has a new method, HasColumn.
7833    
7834            * Thuban/Model/table.py (OldTableInterfaceMixin): All methods
7835            issue deprecation warnings when they're. The warnings refer to the
7836            caller of the method.
7837            (OldTableInterfaceMixin.__deprecation_warning): New. Helper method
7838            for the deprecation warnings
7839    
7840            * test/test_table.py: Ignore the deprecation warnings for the old
7841            table in the tests in this module. The purpose of the tests is to
7842            test the old interface, after all.
7843    
7844            * test/test_transientdb.py
7845            (TestTransientTable.run_iceland_political_tests): Use the
7846            constants for the types. Add a test for HasColumn
7847            (TestTransientTable.test_transient_joined_table): Adapt to new
7848            table interface. Add a test for HasColumn
7849            (TestTransientTable.test_transient_table_read_twice): Adapt to new
7850            table interface
7851    
7852            * Thuban/UI/tableview.py (DataTable.SetTable, DataTable.GetValue):
7853            Adapt to new table interface
7854    
7855            * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Adapt to
7856            new table interface
7857    
7858            * Thuban/UI/controls.py (RecordListCtrl.fill_list)
7859            (RecordTable.SetTable): Adapt to new table interface
7860    
7861            * Thuban/UI/classifier.py (Classifier.__init__)
7862            (Classifier.__init__): Adapt to new table interface
7863    
7864            * Thuban/UI/classgen.py (ClassGenDialog.__init__)
7865            (GenUniformPanel._OnRetrieve, GenUniquePanel._OnRetrieve): Adapt
7866            to new table interface
7867    
7868            * Thuban/Model/transientdb.py (TransientTableBase.HasColumn)
7869            (AutoTransientTable.HasColumn): Implement the new table interface
7870            method
7871            (AutoTransientTable.ReadRowAsDict, AutoTransientTable.ValueRange)
7872            (AutoTransientTable.UniqueValues): Adapt to new table interface
7873    
7874            * Thuban/Model/layer.py (Layer.SetShapeStore, Layer.GetFieldType):
7875            Adapt to new table interface
7876    
7877            * test/test_layer.py (TestLayer.open_shapefile): Helper method to
7878            simplify opening shapefiles a bit easier.
7879            (TestLayer.test_arc_layer, TestLayer.test_polygon_layer)
7880            (TestLayer.test_point_layer): Use the new helper method
7881            (TestLayer.test_get_field_type): New. Test for the GetFieldType
7882            method
7883    
7884            * test/test_dbf_table.py (TestDBFTable.test_has_column): Test for
7885            the new table method
7886    
7887            * test/test_memory_table.py (TestMemoryTable.test_has_column):
7888            Test for the new table method HasColumn
7889    
7890    2003-05-06  Jonathan Coles   <[email protected]>
7891    
7892            Addresses the "Selection Extent" wish of RTbug #1787.
7893    
7894            * Resources/Bitmaps/fulllayerextent.xpm,
7895            Resources/Bitmaps/fullselextent.xpm: Bitmaps for layer and selection
7896            extent. These are just place holders for the real bitmaps.
7897    
7898            * Thuban/Model/layer.py (Shape): Since a Shape is immutable only
7899            calculate the bounding box once (the first time compute_bbox() is
7900            called).
7901            (Layer.ShapesBoundingBox): New. Given a list of shape ids, return
7902            the bounding box for the shapes in lat/long coordinates.
7903    
7904            * Thuban/UI/mainwindow.py: Added new "Full selection extent" menu
7905            option.
7906            (MainWindow.has_selected_shapes): New. Returns true if there are
7907            any selected shapes.
7908            (MainWindow.FullSelectionExtent): New. Calls
7909            MapCanvas.FitSelectedToWindow() when the user selects the menu option.
7910            (_has_selected_shapes): New. Returns true if there are any
7911            selected shapes.
7912    
7913            * Thuban/UI/selection.py (Selection.HasSelectedShapes): New. Returns
7914            true if there are any selected shapes.
7915    
7916            * Thuban/UI/view.py (MapCanvas): Added delegated method
7917            HasSelectedShapes.
7918            (MapCanvas.FitSelectedToWindow): New. Centers and scales any selected
7919            shapes on the canvas using the map projection (if any).
7920    
7921            * test/test_layer.py (TestLayer.test_arc_layer): Add some tests
7922            for Layer.ShapesBoundingBox().
7923    
7924    2003-05-06  Bernhard Herzog  <[email protected]>
7925    
7926            * Resources/Projections/defaults.proj: Fix spelling of Mercator
7927    
7928    2003-05-05  Jonathan Coles   <[email protected]>
7929    
7930            Addresses the "Full Layer Extent" wish of RTbug #1787.
7931    
7932            * Resources/Projections/defaults.proj: Added UK National Grid.
7933    
7934            * Thuban/UI/mainwindow.py: Added new "Full layer extent" menu option.
7935            (MainWindow.FullLayerExtent): New. Calls MapCanvas.FitLayerToWindow()
7936            when the user selects the menu option.
7937    
7938            * Thuban/UI/view.py (MapCanvas.FitLayerToWindow): New. Centers and
7939            scales the given layer on the canvas using the map projection.
7940    
7941    2003-05-05  Bernhard Herzog  <[email protected]>
7942    
7943            Convert the table implementations to a new table interface. All
7944            tables use a common mixin class to provide backwards compatibility
7945            until all table users have been updated.
7946    
7947            * Thuban/Model/table.py (OldTableInterfaceMixin): Mixin class to
7948            provide backwards compatibility for table classes implementing the
7949            new interface
7950            (DBFTable, MemoryTable): Implement the new table interface. Use
7951            OldTableInterfaceMixin as base for compatibility
7952            (DBFColumn, MemoryColumn): New. Column description for DBFTable
7953            and MemoryTable resp.
7954    
7955            * test/test_dbf_table.py: New. Test cases for the DBFTable with
7956            the new table interface.
7957    
7958            * test/test_memory_table.py: New. Test cases for the MemoryTable
7959            with the new table interface.
7960    
7961            * test/test_table.py: Document the all tests in this file as only
7962            for backwards compatibility. The equivalent tests for the new
7963            interface are in test_memory_table.py and test_dbf_table.py
7964            (MemoryTableTest.test_read): field_info should be returning tuples
7965            with four items
7966            (MemoryTableTest.test_write): Make doc-string a more precise.
7967    
7968            * Thuban/Model/transientdb.py (TransientTableBase): Convert to new
7969            table interface. Derive from from OldTableInterfaceMixin for
7970            compatibility.
7971            (TransientTableBase.create): New intance variable column_map to
7972            map from names and indices to column objects
7973            (TransientTable.create): Use the new table interface of the input
7974            table
7975            (AutoTransientTable): Convert to new table interface. Derive from
7976            from OldTableInterfaceMixin for compatibility.
7977            (AutoTransientTable.write_record): Removed. It's not implemented
7978            yet and we still have to decide how to handle writing with the new
7979            table and data framework.
7980    
7981            * test/test_transientdb.py
7982            (TestTransientTable.run_iceland_political_tests)
7983            (TestTransientTable.test_transient_joined_table): Use the new
7984            table interface
7985    
7986    2003-05-05  Jonathan Coles   <[email protected]>
7987    
7988            This is namely a collection of UI updates to improve user interactivity.
7989            Tabbing between controls now exists and you can use ESC to close dialog
7990            boxes; ENTER will active the default button.
7991    
7992            * Thuban/UI/classgen.py (ClassGenDialog.__init__): Rearrange the
7993            order that the controls are created so that tabbing works correctly.
7994            (ClassGenDialog.OnOK): Renamed from _OnGenerate() so that the
7995            wxDialog can handle the default button correctly.
7996            (ClassGenDialog.OnCancel): Renamed from _OnCloseBtn() for the
7997            same reasons as for OnOK.
7998            (GenUniformPanel._OnRetrieve): Call wxBeginBusyCursor/wxEndBusyCursor
7999            when we ask the table for the maximum/minimum values of a field
8000            which could take a very long time.
8001    
8002            * Thuban/UI/classifier.py (Classifier.__init__): Rearrange the
8003            order that the controls are created so that tabbing works correctly.
8004            (SelectPropertiesDialog.__init__): Rearrange the order that the
8005            controls are created so that tabbing works correctly.
8006    
8007            * Thuban/UI/dialogs.py: Copied NonModalDialog box and changed it
8008            to derive from a wxDialog but behave like the original implementation
8009            which was derived from a wxFrame. wxDialog provides useful key
8010            handling functionality like ESC calling OnCancel and ENTER calling
8011            OnOK which is lost with wxFrame.
8012    
8013            * Thuban/UI/mainwindow.py: Add "..." to menu items that will open
8014            new dialogs.
8015    
8016            * Thuban/UI/projdialog.py (ProjFrame.__init__): Rearrange the
8017            order that the controls are created so that tabbing works correctly.
8018            (ProjFrame.OnApply): Renamed from _OnTry() to use wxDialog behaviour.
8019            (ProjFrame.OnOK): Renamed from _OnOK() to use wxDialog behaviour.
8020            (ProjFrame.OnCancel): Renamed from _OnClose() to use wxDialog behaviour.
8021            (ProjPanel.__init__): Add "Airy" to the list of ellipsoids so we
8022            can provide the "UK National Grid" as a default projection.
8023            (UTMPanel.__init__): Rearrange the order that the controls are
8024            created so that tabbing works correctly.
8025    
8026    2003-05-05  Bernhard Herzog  <[email protected]>
8027    
8028            * extensions/thuban/wxproj.cpp: Fix some of the comments.
8029            (project_point): If a map projection but no layer projection is
8030            given, convert degrees to radians before applying the map
8031            projection.
8032    
8033            * Thuban/UI/tableview.py (TableGrid.disallow_messages)
8034            (TableGrid.allow_messages): New methods to make it possible to
8035            inhibit message sending.
8036            (TableGrid.issue): Only send the message if not inhibited.
8037            (LayerTableGrid.select_shape): Use the new methods to make sure
8038            that no ROW_SELECTED message is sent while we're updating the
8039            selected rows to match the selected shapes.
8040    
8041    2003-05-02  Jan-Oliver Wagner <[email protected]>
8042    
8043            Implementation of MemoryTable.
8044    
8045            * Thuban/Model/table.py (MemoryTable): New. Quite simple table
8046            implementation that operates on a list of tuples. All of the data
8047            are kept in the memory.
8048    
8049            * test/test_table.py (MemoryTableTest): New.
8050    
8051            * test/test_transientdb.py (SimpleTable): Removed.
8052            (TestTransientTable.test_transient_joined_table,
8053            (TestTransientTable.test_transient_table_read_twice): Replaced
8054            SimpleTable by MemoryTable.
8055    
8056    2003-04-30  Jonathan Coles   <[email protected]>
8057    
8058            * Data/iceland_sample.thuban: Now contains correct projections
8059            for each of the layers.
8060    
8061            * Resources/Projections/defaults.proj: Geographic projection
8062            contains unit conversion parameter.
8063    
8064    2003-04-30  Jonathan Coles   <[email protected]>
8065    
8066            The most important part of this putback is the projection changes.
8067            It should now be possible to specify the projection that a layer
8068            is in and then specify a different projection for the map. The
8069            projection dialog has an extra parameter for a geographic projection
8070            which lets the user select if the input is in degrees or radians.
8071    
8072            * Thuban/Model/layer.py (Layer.ShapesInRegion): Fix docstring
8073            to say that the parameter is a tuple of unprojected
8074            points (which is what the callers to this method were assuming).
8075            Also, since the points are unprojected we need to projected them.
8076    
8077            * Thuban/UI/legend.py (LegendTree.MoveCurrentItemUp,
8078            LegendTree.MoveCurrentItemDown): If the layer or any of the layer's
8079            groups are selected, move the layer up/down. Fixes RTbug #1833.
8080    
8081            * Thuban/UI/mainwindow.py: Move menu item map_rename up.
8082    
8083            * Thuban/UI/projdialog.py (ProjFrame._OnSave): Add missing
8084            parameter in call to SetClientData.
8085            (GeoPanel): Add support for selecting the units that the
8086            source data is in (Radians or Degrees).
8087    
8088            * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Optimize
8089            the rendering loop by reducing the number of if's, removing the
8090            unnecessary try/except block, and checking if the old group
8091            is the same as the new one (which happens a lot if there is
8092            no classification, or lots of shapes are in the same group).
8093    
8094            * Thuban/UI/view.py (MapCanvas.OnPaint): Add a try/except block
8095            around the redraw routine to try to catch problems that the user
8096            may create by selecting invalid projections for the data set and
8097            map. Clears the display if there are any problems and prints the
8098            error.
8099            (MapCanvas.do_redraw): Use DC.Clear() instead of drawing a filled
8100            rectangle.
8101    
8102            * extensions/thuban/wxproj.cpp (project_point): First invert the
8103            supplied point (which should be in projected coordinates) using
8104            the layer's projection and then project the point using the
8105            map's projection.
8106            (project_points): Use project_point() to project each point.
8107    
8108    2003-04-30  Jan-Oliver Wagner <[email protected]>
8109    
8110            * Thuban/Model/layer.py (Layer.SetShapeStore): Fixed a bug:
8111            don't set the Classification to None if the classfication field
8112            is None (ie only a DEFAULT).
8113    
8114    2003-04-30  Bernhard Herzog  <[email protected]>
8115    
8116            * Thuban/UI/view.py: Fix some typos.
8117    
8118            * Thuban/UI/mainwindow.py (MainWindow.identify_view_on_demand): Do
8119            not pop up the dialog if the selection becomes empty (this could
8120            happen if e.g. a new selection is opened while the identify tool
8121            is active and dialog had been closed)
8122    
8123    2003-04-30  Bernhard Herzog  <[email protected]>
8124    
8125            * Thuban/Model/transientdb.py (TransientTableBase.__init__): New
8126            instance variable read_record_last_result
8127            (TransientTableBase.read_record): Make sure reading the same
8128            record twice works. The implementation uses the new instance
8129            variable read_record_last_result
8130    
8131            * test/test_transientdb.py
8132            (TestTransientTable.test_transient_table_read_twice): New test
8133            case for the above bug-fix.
8134    
8135    2003-04-29  Jonathan Coles   <[email protected]>
8136    
8137            * Thuban/common.py: Removed. No longer needed Str2Num. RTbug #1832.
8138    
8139            * Thuban/UI/classgen.py: Remove all uses of Str2Num.
8140    
8141            * Thuban/UI/classifier.py: Remove all uses of Str2Num.
8142            (ClassTable.SetValueAsCustom): Rename keyword argument in
8143            ClassGroup* constructors to match argument name.
8144    
8145    2003-04-29  Bernhard Herzog  <[email protected]>
8146    
8147            * Thuban/Model/session.py (Session.Destroy): Explicitly close the
8148            transient DB if it exists to make sure it doesn't leave a journal
8149            file in the temp directory.
8150    
8151            * Thuban/Model/transientdb.py (TransientDatabase.close): Set
8152            self.conn to None after closing the connection to make sure it's
8153            not closed twice
8154    
8155    2003-04-29  Jonathan Coles   <[email protected]>
8156    
8157            Add a visible parameter in the layer XML tag. The default value is
8158            "true". If anything other than "false" is specified we also assume
8159            "true". Addresses RTbug #1025.
8160    
8161            * Doc/thuban.dtd: Add visible parameter to a layer.
8162    
8163            * Thuban/Model/layer.py (BaseLayer.__init__): Change default value
8164            of visible from 1 to True.
8165            (Layer.__init__): Change default value of visible from 1 to True.
8166    
8167            * Thuban/Model/load.py (SessionLoader.start_layer): Read visible
8168            parameter.
8169    
8170            * Thuban/Model/save.py (SessionSaver.write_layer): Save visible
8171            parameter.
8172    
8173            * test/test_load.py: Add new test data contents_test_visible.
8174            (LoadSessionTest.setUp): save test data.
8175            (LoadSessionTest.testLayerVisibility): Test if the visible flag
8176            is loaded correctly.
8177    
8178            * test/test_save.py (SaveSessionTest.testSingleLayer): Add test
8179            for saving an invisible layer.
8180    
8181    2003-04-29  Jonathan Coles   <[email protected]>
8182    
8183            * Thuban/UI/mainwindow.py (MainWindow.SetMap): Look up the
8184            legend dialog box and tell it to change its map to the one
8185            supplied to SetMap(). Fixes RTbug #1770.
8186    
8187    2003-04-29  Bernhard Herzog  <[email protected]>
8188    
8189            Next step of table implementation. Introduce a transient database
8190            using SQLite that some of the data is copied to on demand. This
8191            allows us to do joins and other operations that require an index
8192            for good performance with reasonable efficiency. Thuban now needs
8193            SQLite 2.8.0 and pysqlite 0.4.1. Older versions may work but I
8194            haven't tested that.
8195            
8196            * Thuban/Model/transientdb.py: New. Transient database
8197            implementation.
8198    
8199            * test/test_transientdb.py: New. Tests for the transient DB
8200            classes.
8201    
8202            * Thuban/Model/session.py (AutoRemoveFile, AutoRemoveDir): New
8203            classes to help automatically remove temporary files and
8204            directories.
8205            (Session.__init__): New instance variables temp_dir for the
8206            temporary directory and transient_db for the SQLite database
8207            (Session.temp_directory): New. Create a temporary directory if not
8208            yet done and return its name. Use AutoRemoveDir to have it
8209            automatically deleted
8210            (Session.TransientDB): Instantiate the transient database if not
8211            done yet and return it.
8212    
8213            * Thuban/Model/data.py (ShapefileStore.__init__): Use an
8214            AutoTransientTable so that data is copied to the transient DB on
8215            demand.
8216            (SimpleStore): New class that simply combines a table and a
8217            shapefile
8218    
8219            * Thuban/Model/table.py (Table, DBFTable): Rename Table into
8220            DBFTable and update its doc-string to reflect the fact that this
8221            is only the table interface to a DBF file. Table is now an alias
8222            for DBFTable for temporary backwards compatibility.
8223    
8224            * Thuban/UI/application.py (ThubanApplication.OnExit): Make sure
8225            the last reference to the session goes away so that the temporary
8226            files are removed properly.
8227    
8228            * test/test_load.py (LoadSessionTest.tearDown): Remove the
8229            reference to the session to make sure the temporary files are
8230            removed.
8231    
8232    2003-04-29  Bernhard Herzog  <[email protected]>
8233    
8234            * Thuban/Model/load.py (XMLReader.__init__, XMLReader.read): Turn
8235            the __parser instance variable into a normal local variable in
8236            read. It's only used there and read will never be called more than
8237            once. Plus it introduces a reference cycle that keeps can keep the
8238            session object alive for a long time.
8239    
8240    2003-04-29  Jonathan Coles   <[email protected]>
8241    
8242            * Thuban/Model/proj.py (Projection): Removed Set*() methods to make
8243            Projection an immutable item. Fixes RTbug #1825.
8244            (Projection.__init__): Initialize instance variables here.
8245            (ProjFile.Replace): New. Replace the given projection object with
8246            the new projection object. This solves the problem of needing the
8247            mutator Projection.SetProjection() in the ProjFrame class and
8248            allows a projection to change parameters without changing its
8249            location in the file.
8250    
8251            * Thuban/UI/mainwindow.py (MainWindow.SaveSessionAs): Dialog should
8252            be of type wxSAVE and should verify overwriting a file.
8253    
8254            * Thuban/UI/projdialog.py (ProjFrame._OnSave): Use the new
8255            ProjFile.Replace() method instead of the mutator
8256            Projection.SetProjection(). Also requires that we reassign the
8257            client data to the new projection.
8258    
8259            * test/test_proj.py (TestProjection.test): Test GetName() and
8260            GetAllParameters()
8261            (TestProjFile.test): Remove tests for Set*() methods. Add tests
8262            for Replace().
8263    
8264    2003-04-25  Jonathan Coles   <[email protected]>
8265    
8266            * Thuban/Model/save.py (SessionSaver.write_projection): Make sure
8267            to save the name of the projection.
8268    
8269            * test/test_save.py (SaveSessionTest.testLayerProjection): New
8270            test to verify layer projections are saved correctly.
8271    
8272    2003-04-25  Jonathan Coles   <[email protected]>
8273    
8274            * Thuban/Model/proj.py (Projection.SetName): Set the name
8275            to "Unknown" if name is None.
8276            (Projection.SetAllParameters): New. Set the projection's
8277            parameter list to the one supplied.
8278            (Projection.SetProjection): New. Set the projection's
8279            properties to those of the supplied Projection.
8280    
8281            * Thuban/UI/mainwindow.py (MainWindow.MapProjection): Set
8282            the dialog title to include the map's title.
8283            (MainWindow.LayerProjection): Set the dialog title to include
8284            the layer's title.
8285    
8286            * Thuban/UI/projdialog.py (ProjFrame.__ShowError): Consolidate
8287            error dialogs into a single method call.
8288            (ProjFrame.__VerifyButtons): Add more states to check.
8289            (ProjFrame.__GetProjection): Return the current state of an
8290            edited projection or None.
8291            (ProjFrame.__FillAvailList): Remove checks for states that
8292            shouldn't exist.
8293            (ProjFrame._OnNew): Clear all selected items and supply
8294            a projection panel if necessary.
8295    
8296            * test/test_proj.py (TestProjFile.test): Add tests for
8297            ProjFile.SetAllParameters, ProjFile.SetProjection,
8298            ProjFile.SetName.
8299    
8300    2003-04-25  Jonathan Coles   <[email protected]>
8301    
8302            * Thuban/UI/projdialog.py (ProjFrame.__FillAvailList): Now
8303            takes an optional argument to select the current projection.
8304            This does not guarantee that the item is visible due to
8305            limited wxWindows functionality. Fixes RTBug #1821.
8306    
8307    2003-04-25  Jonathan Coles   <[email protected]>
8308    
8309            * Thuban/Model/load.py (SessionLoader.start_projection): Remember
8310            the projection name and use it when constructing the Projection
8311            object.
8312    
8313            * Thuban/Model/proj.py (Projection.__init__): Change the default
8314            value for 'name' to None and then test if name is equal to None
8315            in the body of the constructor. This way the caller doesn't have to
8316            know what the default value should be. Namely, useful in load.py
8317            where we have to pick a default value if the 'name' parameter
8318            doesn't exist in the XML file.
8319    
8320            * test/test_load.py (LoadSessionTest.testLayerProjection): New.
8321            Tests a file where a layer has a projection.
8322    
8323    2003-04-25  Jonathan Coles   <[email protected]>
8324    
8325            * Thuban/Model/layer.py (Layer.TreeInfo): Add an item to the
8326            tree for projection information.
8327    
8328            * Thuban/Model/load.py (XMLReader.GetFilename): Renamed from
8329            XMLReader.GetFileName.
8330            (SessionLoader): Added support for loading projection tags that
8331            appear inside a layer.
8332    
8333            * Thuban/Model/proj.py (ProjFile): Document the class. Move
8334            back to using a list because the order of the projections in
8335            the file is important to maintain. Fixes RTbug #1817.
8336    
8337            * Thuban/Model/resource.py: Rename calls to ProjFile.GetFileName
8338            to ProjFile.GetFilename.
8339    
8340            * Thuban/Model/save.py (SessionSaver.write_layer): Save projection
8341            information.
8342    
8343            * Thuban/UI/projdialog.py (ProjFrame._OnAddToList): Renamed from
8344            ProjFrame._OnSaveAs. Removed old dead code from previous
8345            implementation.
8346            (ProjFrame._OnExport): Add support for exporting more than one
8347            projection to a single file.
8348            (ProjFrame.__FillAvailList): use string formatting (% operator)
8349            to build strings that are (partly) translated. Fixes RTbug #1818.
8350    
8351            * test/test_proj.py (TestProjFile.test): New. Tests the base ProjFile
8352            class.
8353    
8354    2003-04-24  Bernhard Herzog  <[email protected]>
8355    
8356            * po/es.po: Updated Spanish translation by Daniel Calvelo Aros
8357    
8358            * po/fr.po: New. French translation by Daniel Calvelo Aros
8359    
8360            * Thuban/UI/projdialog.py (ProjFrame._OnSaveAs): Don't translate
8361            empty strings.
8362    
8363    2003-04-24  Jonathan Coles   <[email protected]>
8364    
8365            * Thuban/Model/layer.py (Layer.GetProjection): New. Needed to
8366            implement the interface that the ProjFrame dialog expects.
8367    
8368            * Thuban/Model/proj.py (Projection.SetName): New. Allows the
8369            name of the projection to be changed.
8370            (ProjFile): Use a dictionary instead of a list so that removing
8371            projections is easier and we are sure about uniqueness.
8372            (ProjFile.Remove): Remove the given projection object.
8373    
8374            * Thuban/Model/resource.py (GetSystemProjFiles, GetUserProjFiles):
8375            Return a list with only one projection file instead of searching for
8376            any projection file. This simplifies many things if the user can
8377            only have one system file and one user file.
8378    
8379            * Thuban/UI/classgen.py: Change all references to
8380            genCombo to genChoice.
8381    
8382            * Thuban/UI/mainwindow.py: Add a Projection option under the
8383            layer menu.
8384            (MainWindow.LayerProjection): New. Open up a projection window
8385            for a layer.
8386    
8387            * Thuban/UI/projdialog.py: Large changes to how the dialog is
8388            laid out. Use three panels instead of one. One for the list of
8389            projections, one for the edit controls, and one for the buttons.
8390            Fixed resizing problems so that the dialog resizes correctly
8391            when the projection panel changes. Added import/export, save, and
8392            new buttons/functionality.
8393    
8394    2003-04-24  Bernhard Herzog  <[email protected]>
8395    
8396            First step towards table management. Introduce a simple data
8397            abstraction so that we replace the data a layer uses more easily
8398            in the next step.
8399    
8400            * Thuban/Model/data.py: New file with a simple data abstraction
8401            that bundles shapefile and dbffile into one object.
8402    
8403            * Thuban/Model/session.py (Session.OpenShapefile): New method to
8404            open shapefiles and return a shape store object
8405    
8406            * Thuban/Model/layer.py (Layer.__init__): Pass the data as a store
8407            object instead of a shapefile filename. This introduces a new
8408            instance variable store holding the datastore. For intermediate
8409            backwards compatibility keep the old instance variables.
8410            (open_shapefile): Removed. No longer needed with the shape store.
8411            (Layer.SetShapeStore, Layer.ShapeStore): New methods to set and
8412            get the shape store used by a layer.
8413            (Layer.Destroy): No need to explicitly destroy the shapefile or
8414            table anymore.
8415    
8416            * Thuban/UI/mainwindow.py (MainWindow.AddLayer)
8417            (MainWindow.AddLayer): Use the session's OpenShapefile method to
8418            open shapefiles
8419    
8420            * Thuban/Model/load.py (ProcessSession.start_layer): Use the
8421            session's OpenShapefile method to open shapefiles
8422    
8423            * test/test_classification.py
8424            (TestClassification.test_classification): Use the session's
8425            OpenShapefile method to open shapefiles and build the filename in
8426            a more platform independed way
8427    
8428            * test/test_layer.py (TestLayer.setUp, TestLayer.tearDown):
8429            Implement to have a session to use in the tests
8430            (TestLayer.test_arc_layer, TestLayer.test_polygon_layer)
8431            (TestLayer.test_point_layer, TestLayer.test_empty_layer): Use the
8432            session's OpenShapefile method to open shapefiles
8433            (TestLayerLegend.setUp): Instantiate a session so that we can use
8434            it to open shapefiles.
8435            (TestLayerLegend.tearDown): Make sure that all references to
8436            layers and session are removed otherwise we may get a resource
8437            leak
8438    
8439            * test/test_map.py (TestMapAddLayer.test_add_layer)
8440            (TestMapWithContents.setUp): Instantiate a session so that we can
8441            use it to open shapefiles.
8442            (TestMapWithContents.tearDown): Make sure that all references to
8443            layers, maps and sessions are removed otherwise we may get a
8444            resource leak
8445            ("__main__"): use support.run_tests() so that more info about
8446            uncollected garbage is printed
8447    
8448            * test/test_save.py (SaveSessionTest.testSingleLayer): Use the
8449            session's OpenShapefile method to open shapefiles
8450            ("__main__"): use support.run_tests() so that more info about
8451            uncollected garbage is printed
8452    
8453            * test/test_selection.py (TestSelection.tearDown): Make sure that
8454            all references to the session and the selection are removed
8455            otherwise we may get a resource leak
8456            (TestSelection.get_layer): Instantiate a session so that we can
8457            use it to open shapefiles.
8458            ("__main__"): use support.run_tests() so that more info about
8459            uncollected garbage is printed
8460    
8461            * test/test_session.py (TestSessionBase.tearDown)
8462            (TestSessionWithContent.tearDown): Make sure that all references
8463            to the session and layers are removed otherwise we may get a
8464            resource leak
8465            (TestSessionWithContent.setUp): Use the session's OpenShapefile
8466            method to open shapefiles
8467    
8468    2003-04-24  Jonathan Coles   <[email protected]>
8469    
8470            * Thuban/Model/load.py (XMLReader.read): Should have been checking
8471            if the file_or_filename object had the 'read' attribute.
8472    
8473    2003-04-23  Jonathan Coles   <[email protected]>
8474    
8475            * Thuban/Model/resource.py: Fixes RTbug #1813.
8476            (ReadProjFile): Add documentation about which exceptions are raised.
8477            Always pass the exceptions up to the caller.
8478            (GetProjFiles): If the directory can't be read return an empty list.
8479            If any of the proj files can't be read skip that file and go
8480            on to the next one.
8481    
8482            * test/test_proj.py: Added test cases to handle nonexistent files,
8483            unreadable files, and files that don't parse correctly.
8484    
8485    2003-04-23  Jonathan Coles   <[email protected]>
8486    
8487            Projection dialog. Allows the user to select from a list
8488            of projection templates and optionally edit them and save new ones.
8489    
8490            * Thuban/UI/projdialog.py (ProjFrame): New. Main dialog.
8491            (ProjPanel): Base class for projection specific panels.
8492            (TMPanel): Projection panel for Transverse Mercartor.
8493            (UTMPanel): Projection panel for Universal Transverse Mercartor.
8494            (LCCPanel): Projection panel for Lambert Conic Conformal.
8495            (GeoPanel): Projetion panel for Geographic Projection.
8496    
8497    2003-04-23  Jonathan Coles   <[email protected]>
8498    
8499            * Thuban/Model/load.py (XMLReader): Renamed from XMLProcessor to
8500            promote symmetry. There now exists XMLReader and XMLWriter.
8501            (XMLReader.read): New. Call to read the given file descriptor or
8502            filename.
8503            (XMLReader.close): New. Make sure the file is closed.
8504            (XMLReader.GetFileName): New. Return just the file name that is being
8505            read from.
8506            (XMLReader.GetDirectory): New. Return just the directory of the file
8507            that is being read.
8508            (XMLReader.AddDispatchers): New. Take a dictionary which contains
8509            the names of functions to call as the XML tree is parsed.
8510            (XMLReader.startElementNS): Updated to use new dispatcher dictionary.
8511            (XMLReader.endElementNS): Updated to use new dispatcher dictionary.
8512            (SessionLoader): Removed class variables start_dispatcher and
8513            end_dispatcher since this functionality is now part of a class
8514            instance. Fixes RTbug #1808.
8515            (SessionLoader.__init__): Add dispatcher functions.
8516            (load_xmlfile): Code was moved into the XMLReader.read().
8517            (load_session): Use modified SessionLoader.
8518    
8519            * Thuban/Model/map.py (Map.GetProjection): New. Returns the
8520            map's projection.
8521    
8522            * Thuban/Model/proj.py (Projection.GetParameters): Renamed to
8523            GetAllParameters.
8524            (Projection.GetParameter): Returns the value for the given parameter.
8525    
8526            * Thuban/Model/resource.py: Use XMLReader and XMLWriter.
8527            (GetProjFiles): Renamed from GetProjections. Now returns a list
8528            of ProjFile objects.
8529            (GetSystemProjFiles): Renamed from GetSuppliedProjections. Returns
8530            a list of ProjFile objects whose files are not user defined.
8531            (GetUserProjFiles): Renamed from GetUserProjections. Returns a
8532            list of ProjFile objects whose files are user defined.
8533            (ProjFileReader): Extend new XMLReader.
8534    
8535            * Thuban/Model/save.py (XMLWriter): Renamed from XMLSaver to
8536            promote symmetry.
8537    
8538            * Thuban/UI/classgen.py (ClassGenDialog.__init__): Use a wxChoice
8539            control instead of a wxComboBox. wxChoice controls do not generate
8540            events as the uses highlights possible choices which fixes problems
8541            with resizing the dialog when the use selects an option.
8542    
8543            * Thuban/UI/classifier.py (Classifier.__init__): Use a wxChoice
8544            control instead of a wxComboBox.
8545    
8546            * Thuban/UI/mainwindow.py (MainWindow.Projection): Use new projection
8547            dialog.
8548    
8549            * test/test_proj.py (TestProjection.test): New tests for GetParameter
8550            method.
8551    
8552    2003-04-22  Bernhard Herzog  <[email protected]>
8553    
8554            * Thuban/UI/mainwindow.py: Remove some unused imports and global
8555            constants
8556    
8557            * Thuban/UI/identifyview.py (IdentifyListCtrl.selected_shape)
8558            (IdentifyGridCtrl.selected_shape): Use table, not shapetable.
8559    
8560    2003-04-17  Bernhard Herzog  <[email protected]>
8561    
8562            * Thuban/Model/layer.py: Don't import LAYER_LEGEND_CHANGED.
8563            (Layer): Update doc-string since LAYER_LEGEND_CHANGED is not used
8564            anymore.
8565            (Layer.BoundingBox, Layer.GetFieldType, Layer.NumShapes)
8566            (Layer.ShapeType, Layer.Shape): No need to call
8567            self.open_shapefile since it's always called in __init__
8568    
8569            * Thuban/UI/application.py (ThubanApplication.MainLoop): Removed.
8570            In wxPython 2.4 there's no need to extend MainLoop anymore since
8571            wxPython itself makes sure OnExit is called.
8572    
8573    2003-04-16  Jonathan Coles   <[email protected]>
8574    
8575            Initial putback of projection management code. Includes new
8576            classes to read and write projection files. The current load
8577            and save classes were abstracted a bit so they could be reused.
8578            The Projection class was extended to provide new methods and
8579            have a name.
8580    
8581            * Thuban/Model/load.py (XMLProcessor): New. Contains all the
8582            general XML reading methods that were part of ProcessSession.
8583    
8584            * Thuban/Model/proj.py (Projection.__init__): Accepts an optional
8585            name.
8586            (ProjFile): New. Represents a file that contains projection
8587            information.
8588    
8589            * Thuban/Model/resource.py: New. Contains general utilities
8590            for read and writing projection files.
8591    
8592            * Thuban/Model/save.py (XMLSaver): New. Contains all the
8593            general XML writing methods that were part of SessionSaver.
8594            (SessionSaver): Renamed from Saver.
8595    
8596            * test/test_proj.py: New test cases for the projection
8597            file read and write functions.
8598    
8599    2003-04-16  Jonathan Coles   <[email protected]>
8600    
8601            * Thuban/Model/classification.py: Use repr() around values
8602            in the ClassGroup*.__repr__() methods so it is clearer when
8603            a value is a string and when it is a number.
8604    
8605            * test/test_load.py: Rework the classification test to test
8606            that we can load old files.
8607            (testLabels): Test a file where the groups have labels.
8608    
8609    2003-04-16  Bernhard Herzog  <[email protected]>
8610    
8611            Safer implementation of the performance enhancements of the
8612            low-level renderer:
8613            
8614            * extensions/thuban/wxproj.cpp (extract_projection)
8615            (extract_pointer): Rename extract_projection to extract_pointer
8616            and redefine its purpose to return the pointer stored in a CObject
8617            returned by the object's cobject method. Update all callers.
8618            (s_draw_info, free_draw_info, draw_polygon_init): Implement the
8619            handling of these low-level parameters so that each s_draw_info
8620            instance is handled as a CObject at python level that also
8621            contains real references to the actual python objects which
8622            contain the values in the struct. Add free_draw_info as the
8623            destructor.
8624            (draw_polygon_shape): Add the py_draw_info parameter which must a
8625            cobject containing an s_draw_info pointer.
8626    
8627            * Thuban/UI/renderer.py (MapRenderer.polygon_render_param): New
8628            method to instantiat the low-level render parameter
8629            (MapRenderer.draw_shape_layer): Use the new method. Remove some
8630            commented out code.
8631            (MapRenderer.draw_polygon_shape): Make the first parameter not the
8632            layer but the low-level render parameter
8633            (ScreenRenderer.draw_shape_layer): Use the low-level render
8634            parameter.
8635    
8636    2003-04-15  Jonathan Coles   <[email protected]>
8637    
8638            * Thuban/Model/classification.py: Implemented __repr__ for
8639            the ClassGroup* classes to make debugging a bit easier.
8640            (ClassGroup.SetLabel): Check that the string is an instance
8641            of StringTypes not StringType. Accounts for Unicode strings.
8642    
8643            * Thuban/Model/color.py: Implemented __repr__ to make
8644            debugging a bit easier.
8645    
8646            * Thuban/Model/save.py (Saver.write_classification): Need to
8647            save the group label.
8648    
8649            * test/test_load.py (testClassification): New. Loads the
8650            iceland_sample_test.thuban file and checks if it was loaded
8651            correctly.
8652    
8653    2003-04-15  Jonathan Coles   <[email protected]>
8654    
8655            * extensions/thuban/wxproj.cpp (draw_polygon_init): New. Used
8656            to improve rendering performance by initializing the variables
8657            that are not change each time draw_polygon_shape() is called.
8658            The values are stored in a global struct draw_info.
8659            (draw_polygon_shape): Removed initialization code that is
8660            now in draw_polygon_init().
8661    
8662            * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Make
8663            drawing initialization call to draw_polygon_init()
8664            (MapRenderer.draw_polygon_shape): Use new signature of
8665            draw_polygon_shape.
8666    
8667            * Thuban/UI/classgen.py (GenUniformPanel): Fix spin control
8668            weirdness by setting the range to (1, maxint).
8669    
8670            * Thuban/Model/classification.py (ClassGroupProperties): Make
8671            instance variables private and optimize comparison operator
8672            by first checking if the color references are the same.
8673            (ClassGroupSingleton): Make instance variables private.
8674            (ClassGroupRange): Make instance variables private.
8675    
8676            * HOWTO-Release: Filled in missing steps for releasing packages.
8677    
8678    2003-04-15  Bernhard Herzog  <[email protected]>
8679    
8680            First stab at internationalized messages:
8681    
8682            * Thuban/__init__.py (_): Implement the translation function for
8683            real using the python gettext module.
8684    
8685            * Thuban/UI/classifier.py (ClassTable.GetRowLabelValue): Don't
8686            translate empty strings.
8687    
8688            * Thuban/UI/application.py (ThubanApplication.read_startup_files):
8689            Add a missing space to a warning message
8690    
8691            * po/README: New. Notes about the management of the translation
8692            files.
8693    
8694            * po/Makefile: New. Makefile to help manage the translation files.
8695    
8696            * po/es.po: New. Spanish translation by Daniel Calvelo Aros
8697    
8698            * MANIFEST.in: Include the *.mo files in Resources/Locale and the
8699            translations and support files in po/
8700    
8701            * setup.py (data_files): Add the *.mo files to the data_files too
8702    
8703            * README: Add note about the translations when building from CVS
8704    
8705    2003-04-14  Jonathan Coles   <[email protected]>
8706    
8707            * Thuban/UI/dock.py: Fixes some window resizing problems most
8708            noticable under windows. Always assume the button bitmaps will
8709            be there. Code clean up.
8710            (DockabelWindow.Dock, DockableWindow.UnDock): Force all the
8711            images for the dock/undock button to the same images.
8712            Work around for RTbug #1801.
8713    
8714            * Thuban/UI/legend.py (LegendPanel.__init__): The toolbar should
8715            be allowed to grow within the sizer. Fixes a bug under Windows
8716            where the toolbar wasn't being drawn.
8717    
8718    2003-04-14  Frank Koormann   <[email protected]>
8719    
8720            * Resources/Bitmaps/dock_12.xpm, Resources/Bitmaps/undock_12.xpm:
8721            Updated design to try to make the button functionality more
8722            transparent.
8723    
8724    2003-04-14  Jonathan Coles   <[email protected]>
8725    
8726            * Thuban/UI/legend.py (LegendPanel.__init__): Call Create() to
8727            finalize the intialization of the panel.
8728    
8729            * Thuban/UI/dock.py (DockPanel.Create): New. Finalizes the
8730            creation of the panel. Should be the last thing called in the
8731            initializer of a subclass.
8732    
8733            * Thuban/UI/classgen.py (ClassGenDialog.__init__): Actively
8734            set the current selections in the combo boxes. This is needed
8735            under Windows.
8736    
8737            * Thuban/UI/classifier.py (Classifier.__init__): Add a top
8738            level panel to the dialog so that the background colors are
8739            consistent under Windows.
8740    
8741    2003-04-11  Jonathan Coles   <[email protected]>
8742    
8743            * Thuban/UI/classgen.py: Change color ramps to start at white
8744            not black.
8745    
8746            * Thuban/UI/legend.py: Enable/disable the legend buttons when
8747            the legend changes. Fixes RTbug #1793.
8748    
8749            * test/test_classification.py: Added test for copying of
8750            classifications.
8751    
8752    2003-04-11  Jonathan Coles   <[email protected]>
8753    
8754            * Thuban/UI/resource.py: New. Centralize the loading of resources
8755            such as bitmaps.
8756    
8757            * Thuban/UI/classgen.py (GenUniquePanel.__init__): Reordered buttons,
8758            added images to the move buttons, added 'reverse' button.
8759            (CustomRampPanel.__init__): Added images to the move buttons.
8760            (GreyRamp): New. Generates a ramp from white to black.
8761            (HotToColdRamp): New. Generates a ramp from cold to hot colors.
8762    
8763            * Thuban/UI/classifier.py: Refactored ID's from ID_CLASSIFY_* to
8764            ID_PROPERTY_*.
8765            (Classifier.__init__): Minor changes to the layout.
8766            (Classifier._OnTitleChanged): Listen for when the user edits the
8767            title and update the dialog's title and the layer's title.
8768    
8769            * Thuban/UI/dock.py: Use new bitmaps for the control buttons.
8770    
8771            * Thuban/UI/legend.py: Use new bitmaps for the control buttons.
8772            (LegendTree._OnMsgLayerTitleChanged): Change the displayed title
8773            if the layer's title changes.
8774    
8775            * Thuban/UI/mainwindow.py: Added new menu item and associated code
8776            to open a dialog to rename the map.
8777            (MainWindow): Use new resource class to import bitmaps.
8778    
8779    2003-04-11  Jonathan Coles   <[email protected]>
8780    
8781            * Resources/Bitmaps/close_12.xpm, Resources/Bitmaps/dock_12.xpm,
8782            Resources/Bitmaps/group_use.xpm, Resources/Bitmaps/group_use_all.xpm,
8783            Resources/Bitmaps/group_use_none.xpm,
8784            Resources/Bitmaps/group_use_not.xpm,
8785            Resources/Bitmaps/hide_layer.xpm,
8786            Resources/Bitmaps/layer_properties.xpm,
8787            Resources/Bitmaps/lower_layer.xpm, Resources/Bitmaps/raise_layer.xpm,
8788            Resources/Bitmaps/show_layer.xpm, Resources/Bitmaps/undock_12.xpm:
8789            New.
8790    
8791    2003-04-10  Jonathan Coles   <[email protected]>
8792    
8793            * Thuban/Model/classification.py: (ClassGroupRange.__init__):
8794            Should pass group to ClassGroup constructor.
8795    
8796    2003-04-10  Jonathan Coles   <[email protected]>
8797    
8798            * Thuban/Model/classification.py: (ClassGroup): Move all the common
8799            methods of the derived classes ([Set|Get]Properties(), __eq__, __ne__)
8800            here. Implement SetVisible(), IsVisible().
8801            (ClassGroup.__init__): Add group parameter which acts as a copy
8802            constructor.
8803    
8804            * Thuban/UI/classifier.py (ClassTable): Add a new column for the
8805            "Visible" check boxes.
8806            (Classifier): Rename the buttons and refactor the code to match
8807            the new labels.
8808    
8809            * Thuban/UI/legend.py: Classify button is now called "Properties".
8810            Refactored the code to change variable names.
8811            (LegendTree.__FillTreeLayer): Only list a group if it is visible.
8812    
8813            * Thuban/UI/mainwindow.py: MainWindow.OpenClassifier renamed to
8814            MainWindow.OpenLayerProperties. MainWindow.LayerEditProperties
8815            renamed to MainWindow.LayerEditProperties.
8816            (MainWindow.ToggleLegend): Don't include map name in legend title.
8817            (MainWindow.SetMap): Added the map name to the window title.
8818            (MainWindow.LayerFillColor, MainWindow.LayerTransparentFill,
8819            MainWindow.LayerOutlineColor, MainWindow.LayerNoOutline): Removed.
8820            Functionality is found in the layer properties dialog.
8821    
8822            * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Only
8823            draw visible groups.
8824    
8825    2003-04-09  Jonathan Coles   <[email protected]>
8826    
8827            * Thuban/UI/classgen.py: Modifications to allow simple
8828            addition and selection of new color schemes.
8829            (MonochromaticRamp): New. Generates a ramp between two colors.
8830            (RedRamp): New. Generates a ramp of all red.
8831            (GreenRamp): New. Generates a ramp of all green.
8832            (BlueRamp): New. Generates a ramp of all blue.
8833    
8834    2003-04-09  Jonathan Coles   <[email protected]>
8835    
8836            * Thuban/Model/classification.py (Classification.__deepcopy__):
8837            Need to copy over field and fieldType attributes.
8838    
8839            * Thuban/Model/table.py (Table.field_range): New. Retrive the
8840            maximum and minimum values over the entire table for a given
8841            field.
8842            (Table.GetUniqueValues): New. Retrieve all the unique values
8843            in the table for a given field.
8844    
8845            * Thuban/UI/classgen.py: Renamed GenRangePanel to GenUniformPanel.
8846            (GenUniquePanel): New. Controls to allow the user to select
8847            which unique field values they would like in the classification.
8848            (CustomRampPanel): Code that was in ClassGenDialog that allows
8849            the user to select the properties for a custom ramp.
8850            (ClassGenerator.GenUniformDistribution): Was called GenerateRanges.
8851    
8852            * Thuban/UI/classifier.py: Removed a lot of debugging code.
8853            (Classifier._SetClassification): Callback method so that the
8854            class generator can set the classification in the grid.
8855            (ClassGroupPropertiesCtrl): New. Encapsulates the drawing and
8856            editing of a group properties class into a wxWindows control.
8857    
8858            * Thuban/UI/dock.py: It was decided that if the user closes
8859            a dockable window the window should simply hide itself. That
8860            way if the user wants to show the dock again it appears in the
8861            same place as it was when it was closed.
8862            (DockableWindow.Destroy): Call renamed method OnDockDestroy().
8863            (DockableWindow._OnButtonClose): Hide the window instead of
8864            destroying it.
8865            (DockableWindow._OnClose): Hide the window instead of
8866            destroying it.
8867    
8868            * Thuban/UI/legend.py (LegendTree): Use a private method to
8869            consistently set the font and style of the text. Fixes RTbug #1786.
8870    
8871            * Thuban/UI/mainwindow.py: Import just the Classifier class.
8872    
8873    2003-04-07  Bernhard Herzog  <[email protected]>
8874    
8875            * Thuban/UI/mainwindow.py (main_menu): Move the toggle_legend item
8876            to the map module
8877    
8878    2003-04-07  Bernhard Herzog  <[email protected]>
8879    
8880            * Thuban/UI/mainwindow.py (MainWindow.ShowSessionTree): Removed in
8881            favor of ToggleSessionTree
8882            (MainWindow.ToggleSessionTree): New method to toggle visibility of
8883            the session tree.
8884            (MainWindow.SessionTreeShown): New method to return whether the
8885            session tree is currently shown.
8886            (MainWindow.ToggleLegend): New method to toggle visibility of the
8887            legend
8888            (MainWindow.ShowLegend): Implement in terms of ToggleLegend and
8889            LegendShown
8890            (MainWindow.LegendShown): New method to return whether the legend
8891            is currently shown.
8892            (_method_command): Add checked parameter so we can define check
8893            menu items
8894            (_has_tree_window_shown, _has_legend_shown): Use the appropriate
8895            mainwindow methods.
8896            (show_session_tree, show_legend commands): Removed.
8897            (toggle_session_tree, toggle_legend commands): New commands to
8898            toggle the visibility of the dialogs
8899    
8900    2003-04-07  Jonathan Coles   <[email protected]>
8901    
8902            * Thuban/UI/classgen.py: Fix Windows problem.
8903    
8904            * Thuban/UI/dock.py: Fix Windows problem.
8905    
8906            * Thuban/UI/mainwindow.py: Use False instead of false.
8907            (MainWindow.ShowLegend): Remove unnecessary switch parameter.
8908    
8909    2003-04-07  Jonathan Coles   <[email protected]>
8910    
8911            Since we now say that the order of the groups in a classification
8912            matters, it makes sense to be able to manipulate that order. Most
8913            of the changes to Thuban/Model/classification.py are to that end.
8914    
8915            * Thuban/Model/classification.py (Classification.AppendGroup,
8916            Classification.InsertGroup, Classification.ReplaceGroup,
8917            Classification.RemoveGroup, Classification.GetGroup): Do as the
8918            names imply.
8919            (Classification.FindGroup): This was called GetGroup, but GetGroup
8920            takes an index, while FindGroup takes a value.
8921            (Classification.__deepcopy__): Copy all the groups, BUT NOT THE LAYER
8922            REFERENCE. Currently there is a cyclic reference between the layer
8923            and its classification. If the classification doesn't need to know
8924            its owning layer we can change this, since it may make sense to be
8925            able to use the same classification with different layers.
8926    
8927            * Thuban/Model/load.py: Use Classification.AppendGroup(), not AddGroup()
8928    
8929            * Thuban/UI/classgen.py: Use Classification.AppendGroup(),
8930            not AddGroup()
8931    
8932            * Thuban/UI/classifier.py: Now that we can depend on the order in
8933            a Classification and have methods to manipulate that order we don't
8934            need to use our own data structures in the grid. We can simply make
8935            the grid/table access the information they need from a copy of
8936            the classification object.
8937            (Classifier._OnCloseBtn): Event handler for when the user clicks
8938            'Close'. This is needed so if the user applies changes and then
8939            continues to change the table the user has the option of discarding
8940            the most recent changes and keeping what they applied.
8941    
8942            * Thuban/UI/mainwindow.py: Put "Show Legend" and "Show Session Tree"
8943            into the same group.
8944    
8945            * extensions/thuban/wxproj.cpp (check_version): If Thuban is compiled
8946            with a really old version of proj, PJ_VERSION won't even be defined.
8947            If it isn't defined then just compile so that the function always
8948            returns Py_False.
8949    
8950            * test/test_classification.py: Fix tests to use the renamed methods.
8951            Still need to write tests for the new methods.
8952    
8953    2003-04-04  Jonathan Coles   <[email protected]>
8954    
8955            * Thuban/UI/classifier.py (Classifier.__SelectField): Move the
8956            call to SetSelection out of the method and before the call
8957            to __SelectField in __init__. This prevents a recursion of events
8958            when _OnFieldSelect is triggered by the user.
8959    
8960    2003-04-04  Jonathan Coles   <[email protected]>
8961    
8962            * Thuban/Model/classification.py: Rename Color.None to
8963            Color.Transparent.
8964            (ClassGroupProperties.SetLineColori, ClassGroupProperties.SetFill):
8965            Don't bother copying the color, since Colors are immutable.
8966    
8967            * Thuban/Model/color.py, Thuban/Model/layer.py, Thuban/Model/load.py,
8968            Thuban/UI/classifier.py, Thuban/UI/mainwindow.py,
8969            Thuban/UI/renderer.py, Thuban/UI/view.py:
8970            Rename Color.None to Color.Transparent.
8971        
8972            * test/test_classification.py, test/test_load.py: Rename Color.None
8973            to Color.Transparent.
8974    
8975    2003-04-04  Jonathan Coles   <[email protected]>
8976    
8977            * Thuban/Model/classification.py: Fix assert calls.
8978            (ClassGroupProperties.SetLineColor, ClassGroupProperties.SetFill):
8979            Copy the color parameter rather than hold onto a reference.
8980    
8981            * Thuban/Model/color.py (Color.__copy__, Color.__deepcopy): Copy
8982            the color object.
8983            (NoColor.__copy__, NoColor.__deepcopy): Return 'self' so that we
8984            are sure there exists only one refernce to Color.None in the system.
8985            This allows us to use 'is' rather than the comparision functions.
8986            
8987            * Thuban/Model/save.py: Fix assert calls.
8988            
8989            * Thuban/UI/classifier.py: Fix assert calls.
8990            (ClassGrid._OnCellDClick): Call up to the classifier to open the
8991            dialog to edit the groups properties.
8992            (ClassGrid._OnCellResize): Make sure that the scollbars are drawn
8993            correctly if a cell is resized.
8994            (ClassTable.SetClassification): New. Changes the classification
8995            that is in the table.
8996            (ClassTable.__SetRow): Allow groups to be prepended.
8997            (Classifier): New code for opening the EditProperties and
8998            GenerateRanges dialogs.
8999            (SelectPropertiesDialog.__GetColor): Only set the color in the
9000            color dialog if the current color is not None.
9001            
9002            * Thuban/UI/dock.py: Fix assert calls.
9003            
9004            * Thuban/UI/legend.py: Fix assert calls.
9005            
9006            * Thuban/UI/renderer.py: Fix assert calls.
9007            
9008            * Thuban/UI/classgen.py (ClassGenDialog): Dialog for generating
9009            classifications.
9010            (GenRangePanel): Panel specific to range generation.
9011            (GenSingletonPanel): Panel specific to singleton generation.
9012            (ClassGenerator): Class responsible for actually generating
9013            the classification from the data gathered in the dialog box.
9014            (PropertyRamp): Generates properties whose values range from
9015            a starting property to an ending property.
9016    
9017    2003-04-03  Bernhard Herzog  <[email protected]>
9018    
9019            * test/support.py (print_garbage_information): New function that
9020            prints information about still connected messages and memory
9021            leaks.
9022            (run_suite): Removed.
9023            (run_tests): New function for use as a replacement of
9024            unittest.main in the test_* files. This one calls
9025            print_garbage_information at the end.
9026    
9027            * test/runtests.py (main): Use support.print_garbage_information
9028    
9029            * test/test_layer.py: Use support.run_tests instead of
9030            unittest.main so we get memory leak information
9031            (TestLayer.test_arc_layer, TestLayer.test_polygon_layer)
9032            (TestLayer.test_point_layer, TestLayer.test_empty_layer)
9033            (TestLayerLegend.test_visibility): Call the layer's Destroy method
9034            to fix a memory leak.
9035    
9036            * test/test_classification.py: Use support.run_tests instead of
9037            unittest.main so we get memory leak information
9038            (TestClassification.test_classification): Call the layer's Destroy
9039            method to fix a memory leak.
9040    
9041    2003-04-02  Bernhard Herzog  <[email protected]>
9042    
9043            * extensions/thuban/wxproj.cpp (check_version, check_version_gtk):
9044            Handle the reference counts of the return value and errors in
9045            PyArg_ParseTuple correctly.
9046    
9047            * Thuban/UI/application.py (ThubanApplication.OpenSession): Make
9048            sure the filename is absolute to avoid problems when saving the
9049            session again
9050    
9051            * Thuban/Model/table.py: Remove unnecessary import. Fix a typo.
9052    
9053    2003-04-01  Jonathan Coles   <[email protected]>
9054    
9055            *  Thuban/UI/renderer.py (MapRenderer.draw_point_shape): Check
9056            that there actually are points in the returned list of points
9057            before trying to index into the list. The list may be empty if
9058            the shape is a Null Shape.
9059    
9060    2003-04-01  Bernhard Herzog  <[email protected]>
9061    
9062            * test/test_map.py: Don't use from <module> import *
9063    
9064    2003-04-01  Jonathan Coles   <[email protected]>
9065    
9066            * Thuban/Model/session.py: Use LAYER_CHANGED instead of
9067            LAYER_LEGEND_CHANGED
9068    
9069            * Thuban/UI/dock.py (DockableWindow._OnButtonClose): Call
9070            self.Destroy() to close the window after yesterday's changes.
9071    
9072            * test/test_map.py, test/test_session.py: Fix messages that
9073            are sent from maps and layers.
9074    
9075    2003-03-31  Jonathan Coles   <[email protected]>
9076    
9077            * Thuban/UI/classifier.py: Commented out some debugging statements.
9078            (ClassDataPreviewer.Draw): Draw rectangles for polygon layers per
9079            RTbug #1769.
9080    
9081            * Thuban/UI/dock.py (DockableWindow.UnDock): Restore size and
9082            position (although position doesn't work yet under GTK).
9083            (DockableWindow.Destroy): New. Called when the window must be
9084            closed. Namely needed when the DockFrame closes and must close
9085            its children.
9086            (DockFrame): Listen for EVT_CLOSE and destroy all children.
9087    
9088            * Thuban/UI/legend.py (LegendPanel.Destroy): New. Cleans up
9089            when then window is told to close.
9090            (LegendTree._OnMsgLayerChanged): Fixes a seg fault bug. See
9091            comment in source for more info.
9092    
9093            * Thuban/UI/main.py: Show the legend by default when Thuban starts.
9094    
9095            * Thuban/UI/mainwindow.py: Renamed OnClose to _OnClose for
9096            symmetry with other such methods.
9097            (MainWindow.ShowLegend): Show the legend docked by default.
9098    
9099    2003-03-28  Jonathan Coles   <[email protected]>
9100    
9101            * Thuban/UI/classifier.py: Support for highlighting a specific
9102            group within the grid when the classification dialog is opened.
9103            Also contains a lot of debugging printouts which will later
9104            be removed.
9105    
9106            * Thuban/UI/dock.py: Complete rework on the dock code so that
9107            that it is fairly removed from the rest of the Thuban application.
9108            It is easy to add new docks which the rest of the program having
9109            to be aware of them.
9110    
9111            * Thuban/UI/legend.py: Modifications to support selecting a
9112            specific group in the classification dialog. Changed how layers
9113            are drawn when the layer is visible/invisible.
9114    
9115            * Thuban/UI/mainwindow.py: Removed legend specific code and
9116            replaced it with calls to the new dock code.
9117    
9118            * Thuban/UI/renderer.py (MapRenderer.__init__): Added assert
9119            to check if scale > 0. Trying to track down a divide by zero.
9120    
9121    2003-03-26  Jonathan Coles   <[email protected]>
9122    
9123            * Thuban/UI/legend.py: Removed unnecessary LegendDialog class.
9124            (LegendPanel): Removed _OnDock()/_OnUnDock() methods which are
9125            now part of DockableWindow.
9126            (LegendPanel.DoOnSelChanged): Select the current layer in the
9127            map.
9128            (LegendTree._OnSelChanged): Call LegendPanel.DoOnSelChanged()
9129            with the selected layer and/or group.
9130    
9131    2003-03-26  Jonathan Coles   <[email protected]>
9132    
9133            This putback contains the code for dockable windows. There is
9134            no support in wxWindows as of this date for windows that can
9135            attach themselves to other windows.
9136    
9137            The current model contains a DockableWindow which has a parent
9138            window for when it is detached and a dock window that it puts
9139            its contents in when it is docked. The contents of a DockableWindow
9140            must be a DockPanel. DockPanel itself derives from wxPanel.
9141    
9142            * Thuban/Model/layer.py (Layer.ClassChanged): Send a LAYER_CHANGED
9143            message, not a LAYER_LEGEND_CHANGED message.
9144    
9145            * Thuban/Model/map.py (Map): Forward LAYER_CHANGED messages.
9146    
9147            * Thuban/UI/classifier.py (Classifier.__init__): Use wxADJUST_MINSIZE
9148            as one of the style properties for the fieldTypeText item to
9149            be sure that its size is correct when the text changes.
9150    
9151            * Thuban/UI/dock.py: New. Classes for the DockPanel and
9152            DockableWindow.
9153    
9154            * Thuban/UI/legend.py: Added some more buttons and made the
9155            LegendPanel a DockPanel.
9156    
9157            * Thuban/UI/mainwindow.py: Added sash windows to the main window
9158            and supporting functions for manipulating the sashes.
9159            (MainWindow.ShowLegend): Create a DockableWindow with the
9160            LegendPanel as the contents.
9161    
9162            * Thuban/UI/messages.py: Added DOCKABLE_* messages
9163    
9164            * Thuban/UI/view.py (MapCanves.SetMap): Listen for LAYER_CHANGED,
9165            not LAYER_LEGEND_CHANGED, messages.
9166    
9167    2003-03-25  Jonathan Coles   <[email protected]>
9168    
9169            * setup.py: Added custom script bdist_rpm_build_script so that
9170            when the rpm is built the path to wx-config is correct.
9171    
9172            * setup.cfg: Added line saying to use the custom build script
9173    
9174    2003-03-20  Jonathan Coles   <[email protected]>
9175    
9176            Initial implementation of the Legend.
9177    
9178            * Thuban/UI/legend.py: New. Creates a window that shows the map's
9179            Legend information and allows the user to add/modify classifications
9180            and how the layers are drawn on the map.
9181    
9182            * setup.py: New command 'build_docs' which currently uses
9183            happydoc to generate html documentation for Thuban.
9184    
9185            * Thuban/Model/classification.py (ClassGroup.GetDisplayText): New.
9186            Returns a string which is appropriately describes the group.
9187    
9188            * Thuban/Model/layer.py (Layer.SetClassification): Generate a
9189            LAYER_CHANGED event instead of a LAYER_LEGEND_CHANGED event.
9190    
9191            * Thuban/Model/map.py (Map): Rename messages and use new, more
9192            specific, messages.
9193    
9194            * Thuban/Model/messages.py: New message to indicate that a layer's
9195            data has changed (LAYER_CHANGED). New map messages to indicate
9196            when layers have been added/removed/changed or if the stacking order
9197            of the layers has changed.
9198    
9199            * Thuban/Model/session.py: Rename and use new messages.
9200    
9201            * Thuban/UI/classifier.py: Remember if any changes have actually
9202            been applied so that if the dialog is cancelled without an application
9203            of changes we don't have to set a new classification.
9204            (ClassDataPreviewer): Pulled out the window specific code and put it
9205            ClassDataPreviewWindow. ClassDataPreviewer can then be used to draw
9206            symbols on any DC.
9207            
9208            * Thuban/UI/mainwindow.py: New code to open the legend.
9209    
9210            * Thuban/UI/view.py: Use new message names.
9211    
9212    2003-03-19  Jonathan Coles   <[email protected]>
9213    
9214            * Thuban/UI/main.py (verify_versions): New. Checks the versions
9215            of Python, wxPython, and some other libraries.
9216    
9217            * extensions/thuban/wxproj.cpp (check_version): Checks the given
9218            version against what wxproj was compiled with.
9219            (check_version_gtk): If wxproj was compiled with gtk then check
9220            the given version against the version of the gtk library
9221            currently being used.
9222    
9223    2003-03-14  Bernhard Herzog  <[email protected]>
9224    
9225            * test/test_command.py: Run the tests when the module is run as a
9226            script
9227    
9228    2003-03-14  Bernhard Herzog  <[email protected]>
9229    
9230            Implement selection of multiple selected shapes in the same layer:
9231    
9232            - Introduce a new class to hold the selection. This basically
9233              replaces the interactor which was nothing more than the
9234              selection anyway. A major difference is of course that the new
9235              selection class supports multiple selected shapes in one layer
9236            
9237            - Move the object that represents the selection from the
9238              application to the canvas. The canvas is a better place than the
9239              application because the selection represents which shapes and
9240              layer of the map displayed by the canvas are selected and
9241              affects how the map is drawn.
9242    
9243            - Make the selection and its messages publicly available through
9244              the mainwindow.
9245    
9246            - The non-modal dialogs do not get a reference to the interactor
9247              anymore as they can simply refer to their parent, the
9248              mainwindow, for the what the interactor had to offer.
9249    
9250            * Thuban/UI/selection.py: New module with a class to represent the
9251            selection.
9252    
9253            * Thuban/UI/messages.py (SELECTED_TABLE, SELECTED_MAP): Remove
9254            these unused messages
9255    
9256            * Thuban/UI/application.py (ThubanApplication.OnInit)
9257            (ThubanApplication.OnExit, ThubanApplication.SetSession): The
9258            interactor is gone now.
9259            (ThubanApplication.CreateMainWindow): There is no interactor
9260            anymore so we pass None as the interactor argument for now for
9261            compatibility.
9262    
9263            * Thuban/UI/view.py (MapCanvas.delegated_messages)
9264            (MapCanvas.Subscribe, MapCanvas.Unsubscribe): In Subscribe and
9265            Unsubscribe, delegate messages according to the delegated_messages
9266            class variable.
9267            (MapCanvas.__getattr__, MapCanvas.delegated_methods): Get some
9268            attributes from instance variables as described with the
9269            delegated_methods class variable.
9270            (MapCanvas.__init__): New instance variable selection holding the
9271            current selection
9272            (MapCanvas.do_redraw): Deal with multiple selected shapes. Simply
9273            pass them on to the renderer
9274            (MapCanvas.SetMap): Clear the selection when a different map is
9275            selected.
9276            (MapCanvas.shape_selected): Simple force a complete redraw. The
9277            selection class now takes care of only issueing SHAPES_SELECTED
9278            messages when the set of selected shapes actually does change.
9279            (MapCanvas.SelectShapeAt): The selection is now managed in
9280            self.selection
9281    
9282            * Thuban/UI/mainwindow.py (MainWindow.delegated_messages)
9283            (MainWindow.Subscribe, MainWindow.Unsubscribe): In Subscribe and
9284            Unsubscribe, delegate messages according to the delegated_messages
9285            class variable.
9286            (MainWindow.delegated_methods, MainWindow.__getattr__): Get some
9287            attributes from instance variables as described with the
9288            delegated_methods class variable.
9289            (MainWindow.__init__): The interactor as ivar is gone. The
9290            parameter is still there for compatibility. The selection messages
9291            now come from the canvas.
9292            (MainWindow.current_layer, MainWindow.has_selected_layer):
9293            Delegate to the the canvas.
9294            (MainWindow.LayerShowTable, MainWindow.Classify)
9295            (MainWindow.identify_view_on_demand): The dialogs don't need the
9296            interactor parameter anymore.
9297    
9298            * Thuban/UI/tableview.py (TableFrame.__init__)
9299            (LayerTableFrame.__init__, LayerTableFrame.OnClose)
9300            (LayerTableFrame.row_selected): The interactor is gone. It's job
9301            from the dialog's point of view is now done by the mainwindow,
9302            i.e. the parent. Subscribe to SHAPES_SELECTED instead
9303            of SELECTED_SHAPE
9304            
9305            * Thuban/UI/dialogs.py (NonModalDialog.__init__): The interactor
9306            is gone. It's job from the dialog's point of view is now done by
9307            the mainwindow, i.e. the parent.
9308            
9309            * Thuban/UI/classifier.py (Classifier.__init__): The interactor is
9310            gone. It's job from the dialog's point of view is now done by the
9311            mainwindow, i.e. the parent.
9312    
9313            * Thuban/UI/tree.py (SessionTreeView.__init__): The interactor is
9314            gone. It's job from the dialog's point of view is now done by the
9315            mainwindow, i.e. the parent.
9316            (SessionTreeCtrl.__init__): New parameter mainwindow which is
9317            stored as self.mainwindow. The mainwindow is need so that the tree
9318            can still subscribe to the selection messages.
9319            (SessionTreeCtrl.__init__, SessionTreeCtrl.unsubscribe_all)
9320            (SessionTreeCtrl.update_tree, SessionTreeCtrl.OnSelChanged): The
9321            selection is now accessible through the mainwindow. Subscribe to
9322            SHAPES_SELECTED instead of SELECTED_SHAPE
9323    
9324            * Thuban/UI/identifyview.py (IdentifyView.__init__): Use the
9325            SHAPES_SELECTED message now.
9326            (IdentifyView.selected_shape): Now subscribed to SHAPES_SELECTED,
9327            so deal with multiple shapes
9328            (IdentifyView.__init__, IdentifyView.OnClose): The interactor is
9329            gone. It's job from the dialog's point of view is now done by the
9330            mainwindow, i.e. the parent.
9331    
9332            * Thuban/UI/controls.py (RecordListCtrl.fill_list): The second
9333            parameter is now a list of shape ids.
9334            (RecordTable.SetTable): The second parameter is now a list of
9335            indices.
9336    
9337            * Thuban/UI/renderer.py (ScreenRenderer.RenderMap): Rename the
9338            selected_shape parameter and ivar to selected_shapes. It's now a
9339            list of shape ids.
9340            (MapRenderer.draw_label_layer): Deal with multiple selected
9341            shapes. Rearrange the code a bit so that the setup and shape type
9342            distinctions are only executed once.
9343    
9344            * test/test_selection.py: Test cases for the selection class
9345    
9346    2003-03-11  Jonathan Coles   <[email protected]>
9347    
9348            * Thuban/Model/load.py: Temporary fix so that the xml reader
9349            doesn't cause Thuban to crash.
9350    
9351            * Thuban/Model/layer.py: Handle the cyclic references between
9352            a layer and its classification better, and be sure to disconnect
9353            the classification from the layer when the layer is destroyed
9354            so that we don't maintain a cyclic reference that may not be
9355            garbage collected.
9356    
9357            * Thuban/Model/classification.py: See comment for layer.py.
9358    
9359    2003-03-12  Jan-Oliver Wagner <[email protected]>
9360    
9361            * HOWTO-Release: New. Information on the steps for releasing
9362            a new version of Thuban.
9363    
9364    2003-03-11  Jonathan Coles   <[email protected]>
9365    
9366            * Thuban/UI/classifier.py: Add normal border to SelectPropertiesDialog.
9367            Use True instead of true.
9368            (Classifier): Should have a single panel in which all the controls lie.
9369    
9370            * Thuban/UI/proj4dialog.py: Add normal border.
9371    
9372            * Thuban/UI/tree.py: Fixed problem with bad item images under Windows.
9373    
9374            * Thuban/UI/mainwindow.py: Use True instead of true.
9375    
9376            * setup.py: Update some definitions to use wxWindows2.4 files
9377    
9378            * Data/iceland_sample_class.thuban: Fixed file so that the
9379            field_type information is present.
9380    
9381    2003-03-10  Jonathan Coles   <[email protected]>
9382    
9383            * Thuban/UI/classifier.py (Classifier.__init__): Make the
9384            field type label grow so that when the text changes the
9385            size is updated correctly. This may be a wxWindows bug.
9386    
9387    2003-03-10  Jonathan Coles   <[email protected]>
9388    
9389            * Thuban/UI/application.py: Changed SESSION_CHANGED to
9390            SESSION_REPLACED.
9391    
9392            * Thuban/UI/classifier.py: Wrap text with _().
9393            (ClassGrid.CreateTable): Set dimensions and size hints here,
9394            instead of in Reset, so we only set the size once.
9395    
9396            * Thuban/UI/dialogs.py: Don't need Shutdown(); just use Close()!
9397    
9398            * Thuban/UI/mainwindow.py (MainWindow.prepare_new_session):
9399            Call Close() instead of Shutdown().
9400    
9401            * Thuban/UI/messages.py: Changed SESSION_CHANGED to SESSION_REPLACED.
9402    
9403            * Thuban/UI/tree.py: Changed SESSION_CHANGED to SESSION_REPLACED.
9404            Go back to using OnClose() instead of Shutdown().
9405    
9406    2003-03-10  Jonathan Coles   <[email protected]>
9407    
9408            * Thuban/UI/classifier.py (Classifier): SelectField() needed
9409            to know the old field index as well as the new one.
9410    
9411    2003-03-10  Jonathan Coles   <[email protected]>
9412    
9413            * Thuban/UI/classifier.py (Classifier): Use __SelectField()
9414            to correctly set the table information and call this from
9415            __init__ and from _OnFieldSelect so that all the information
9416            is up to date when the dialog opens and when a field is changed.
9417    
9418    2003-03-10  Jonathan Coles   <[email protected]>
9419    
9420            * Thuban/Model/classification.py (Classification): Don't use
9421            layer's message function directly, use the ClassChanged() method
9422            when then classification changes. SetField/SetFieldType/SetLayer
9423            must keep the information about field name and field type in
9424            sync when an owning layer is set or removed.
9425    
9426            * Thuban/Model/layer.py: Added ClassChanged() so that the
9427            classification can tell the layer when its data has changed.
9428            (Layer.SetClassification): Accepts None as an arguement to
9429            remove the current classification and correctly handles
9430            adding a new classification.
9431    
9432            * Thuban/Model/load.py: Comment out print statement
9433    
9434            * test/test_classification.py, test/test_save.py: New and
9435            improved tests.
9436    
9437    2003-03-07  Jonathan Coles   <[email protected]>
9438    
9439            * Thuban/Model/classification.py: Implemented __copy__ and
9440            __deepcopy__ for ClassGroup* and ClassGroupProperites so
9441            they can easily be copied by the classifier dialog.
9442            (ClassGroupProperites.__init__): The default line color should
9443            have been Color.Black.
9444    
9445            * Thuban/UI/classifier.py: Setting and Getting table values now
9446            uses a consistent set of functions.
9447            (Classifier): Now non-modal. Has field type label which changes
9448            as the field changes. Keep track of buttons in a list so that
9449            we can enable/disable the buttons when the None field is selected.
9450            (SelectPropertiesDialog): Add buttons to make the colors transparent.
9451    
9452            * Thuban/UI/dialogs.py (NonModalDialog.Shutdown): New method which
9453            does what OnClose did, but can be called by the application to
9454            close a window. Needed when a session changes, and we have to
9455            close the classifier windows.
9456    
9457            * Thuban/UI/mainwindow.py (MainWindow.prepare_new_session):
9458            Shuts down open dialogs. Used when a new session is created
9459            or a session is opened.
9460            (MainWindow.SaveSession): Should only call application.SaveSession()
9461            if we don't call SaveSessionAs first.
9462            (MainWindow.Classify): Allow different classifier dialogs for
9463            different layers.
9464    
9465            * Thuban/UI/tree.py (SessionTreeView): Remove OnClose and let
9466            the parent class handle it. Add Shutdown() to unsubscibe from
9467            event notification and call the parent Shutdown(). This was
9468            necessary so the application can close the tree window.
9469    
9470    2003-03-06  Jonathan Coles   <[email protected]>
9471    
9472            * Thuban/Model/classification.py: Minor documentation changes,
9473            Addition of __eq__ and __ne__ methods.
9474            (Classification.SetLayer): prevent recursion between this method
9475            and Layer.SetClassification().
9476    
9477            * Thuban/Model/color.py: Addition of __eq__ and __ne__ methods.
9478    
9479            * Thuban/Model/layer.py (SetClassification): prevent recursion
9480            between this method and Classification.SetLayer().
9481    
9482            * test/test_classification.py, test/test_load.py,
9483            test/test_session.py: Fixed and added tests for the classification
9484            classes.
9485    
9486    2003-03-06  Bernhard Herzog  <[email protected]>
9487    
9488            * Thuban/UI/classifier.py (ClassGrid.__init__)
9489            (ClassGrid.CreateTable): Move the SetSelectionMode call to
9490            CreateTable because otherwise it triggers an assertion in
9491            wxPython/wxGTK 2.4.
9492    
9493    2003-03-05  Jonathan Coles   <[email protected]>
9494    
9495            * Thuban/common.py: Move FIELDTYPE constants back to table.py.
9496    
9497            * Thuban/Model/load.py: import FIELDTYPE constants from table.
9498    
9499            * Thuban/UI/classifier.py: import FIELDTYPE constants from table.
9500    
9501            * Thuban/Model/table.py: Put FIELDTYPE constants back.
9502    
9503    2003-03-05  Jonathan Coles   <[email protected]>
9504    
9505            * Thuban/UI/classifier.py: Added class documentation.
9506            Fixed RTbug #1713, #1714. Added Move[Up|Down] buttons.
9507            Store just the groups in the table and generate the other
9508            column information when it is requested. Add "None" field
9509            to pull-down to select no classification.
9510    
9511            * Thuban/common.py: Moved FIELDTYPE constants from table.py
9512            (Str2Num): Only catch ValueError exceptions.
9513    
9514            * Thuban/Model/classification.py: Class documentation. Renaming
9515            of methods with Stroke to Line. Groups are stored in a single
9516            list with the default as the first element. Groups are searched
9517            in the order they appear in the list.
9518    
9519            * Thuban/Model/color.py: Documentation.
9520    
9521            * Thuban/Model/layer.py (Layer): Add GetFieldType to retreive
9522            the kind of data represented by a field.
9523    
9524            * Thuban/Model/load.py (ProcessSession): Use proper string
9525            conversion function; fixes RTbug #1713.
9526    
9527            * Thuban/Model/save.py (Saver): Store field type information.
9528    
9529            * Thuban/Model/table.py: Put FIELDTYPE constants in common.py.
9530            (Table): Add field_info_by_name() to retrieve field information
9531            by specifying the field name, not the number.
9532    
9533            * Thuban/UI/mainwindow.py: Function name changes.
9534    
9535            * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Only
9536            get the layer classification once. Don't try to classify
9537            values when the field is None: just use the default properties.
9538    
9539            * Thuban/UI/view.py: Function name changes.
9540    
9541            * Doc/thuban.dtd: Add field_type attribute to a classification.
9542    
9543    2003-03-04  Bernhard Herzog  <[email protected]>
9544    
9545            * Doc/thuban.dtd: Use correct syntax for optional attributes. Make
9546            the fill and stroke layer attributes optional with suitable
9547            default values. Add the stroke_width layer attribute. Use correct
9548            syntax for empty elements. Make the attribute list for labels
9549            refer to the label element.
9550    
9551    2003-03-04  Bernhard Herzog  <[email protected]>
9552    
9553            * setup.py (thuban_build_py.build): Add a comment about distutils in
9554            Python 2.3 containing some of the functionality we implement in
9555            setup.py ourselves.
9556    
9557            * Thuban/UI/classifier.py (ClassGrid.__init__): Set the table
9558            before the selection mode. Doing it the other way round triggers
9559            an assertion in wxWindows.
9560    
9561            * Thuban/Model/save.py (escape): Fix typo in doc-string
9562    
9563            * Thuban/Model/classification.py: Remove unnecessary wxPython
9564            import
9565    
9566    2003-03-04  Jonathan Coles   <[email protected]>
9567    
9568            * Thuban/Model/classification.py (ClassGroupRange.GetProperties):
9569            Parameter 'value' should default to None.
9570    
9571            * Thuban/UI/mainwindow.py: Use Layer.GetClassification() since
9572            the class attribute __classification is now private.
9573    
9574            * Thuban/UI/classifier.py (ClassGrid): Moved OnCellDClick() from
9575            Classifier to ClassGrid. Added support for removing selected rows,
9576            which including code for keeping track of when cells are selected,
9577            and deselected.
9578            (ClassTable): Support for added/removing rows. Fixed a problem
9579            with __ParseInput whereby it would not allow strings (only numbers)
9580            to be entered.
9581            (Classifier): Added button and supporting code for removing
9582            selected rows.
9583    
9584    2003-02-27  Jonathan Coles   <[email protected]>
9585    
9586            * Thuban/common.py: Moved color conversion functions into
9587            Thuban/UI/common.py.
9588            (Str2Num): Now converts the float (not the string) to a long/int
9589            so that an exception isn't thrown.
9590    
9591            * Thuban/UI/common.py: Common functions used in several UI modules
9592    
9593            * Thuban/Model/classification.py: Changed the class hierarchy
9594            so that a Classification consists of Groups which return
9595            Properties when a value matches a Group.
9596    
9597            * Thuban/Model/layer.py: Fixed name resolution problem.
9598    
9599            * Thuban/Model/load.py: Use new Classification and Group functions.
9600    
9601            * Thuban/Model/save.py (Saver.write_attribs): Fixes a test case
9602            failure.
9603            (Saver.write_classification): Use new Classification and Group
9604            functions.
9605    
9606            * Thuban/UI/classifier.py: Changes to use new Classification and Group
9607            functions. Fix to create a tuple with a single value instead of
9608            simply returning the value.
9609    
9610            * Thuban/UI/renderer.py: Use new Classification and Group functions.
9611            Use common.py functions.
9612    
9613            * Thuban/UI/tree.py: Use common.py functions.
9614            
9615            * test/test_classification.py: Use new Classification and Group
9616            classes.
9617    
9618    2003-02-24  Jonathan Coles   <[email protected]>
9619    
9620            * Thuban/common.py (Color2wxColour, wxColour2Color): Conversion
9621            functions from Thuban color objects to wxWindow colour objects.
9622    
9623            * Thuban/Model/classification.py (Classification): Renamed
9624            GetProperties() to GetClassData(). Used the new iterator
9625            in TreeInfo().
9626            (ClassIterator): Iterator implementation to iterate over the
9627            ClassData objects in a classification object.
9628    
9629            * Thuban/Model/save.py (Saver.write_classificaton): Uses
9630            the new iterator to save the classification information.
9631    
9632            * Thuban/UI/classifier.py (SelectPropertiesDialog): Support
9633            for changing the stroke and fill colors and previewing the
9634            changes.
9635    
9636            * Thuban/UI/mainwindow.py (MainWindow.OpenSession,
9637            MainWindow.SaveSessionAs): Text string changes so the dialogs
9638            have more meaningful titles.
9639    
9640            * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Change
9641            Classification method name from GetProperties to GetClassData.
9642    
9643            * Thuban/UI/view.py (MapCanvas.find_shape_at): Use method calls
9644            instead of accessing now non-existent class variables.
9645    
9646    2003-02-24  Bernhard Herzog  <[email protected]>
9647    
9648            * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Remove
9649            unneeded Shape() call. Rendering is substantially faster without
9650            it and it avoids some problems with broken shape files.
9651    
9652    2003-02-20  Frank Koormann   <[email protected]>
9653    
9654            Force minimal size of identify and label dialogs. The autosizing
9655            looked too ugly.
9656    
9657            * Thuban/UI/controls.py (RecordListCtrl): Set minimal width for columns.
9658            * Thuban/UI/labeldialog.py (LabelDialog.dialog_layout):
9659            Set size of listctrl.
9660            * Thuban/UI/identifyview.py (IdentifyView.__init__):
9661            Set size of dialog.
9662    
9663    2003-02-19  Jonathan Coles   <[email protected]>
9664    
9665            * test/test_classification.py, test/test_layer.py,
9666            test/test_load.py, test/test_map.py, test/test_session.py:
9667            Updated the tests to use the new functions that are in the
9668            respective classes.
9669    
9670            * Thuban/Model/classification.py (Classification):
9671            Uses the new ClassData* classes. Modification messages are
9672            passed up to the parent layer (if it exists).
9673            (ClassData): New class to encapsulate the common data in each
9674            classification property.
9675            (ClassDataDefault): Represents the Default class. data.
9676            (ClassDataPoint): Represents a single class. data point
9677            (ClassDataRange): Represents a class. range
9678            (ClassDataMap): Represents a class. map (unused).
9679    
9680            * Thuban/Model/color.py: Added Color.None to represent something
9681            with no color. Color.Black represents the color black.
9682            (NoColor): Helper class derived from Color to represent something
9683            with no color.
9684    
9685            * Thuban/Model/layer.py (Layer): Removed references to fill, stroke,
9686            stroke_width attributes. Made the 'classification' attribute private.
9687            New methods for setting/getting the classification.
9688    
9689            * Thuban/Model/load.py (ProcessSession): Use new methods on Layer
9690            to get the classifcation and use the new ClassData* classes to
9691            hold the classification data. Use Str2Num to convert numbers
9692            properly.
9693    
9694            * Thuban/Model/save.py (Saver): Use new Color and Classification
9695            methods
9696    
9697            * Thuban/UI/classifier.py (ClassGrid): New class to represent a
9698            custom grid.
9699            (ClassTable): Support for editing Values and Labels and for
9700            changing what type (point or range) of data is stored in each
9701            property based on how the user enters the data.
9702            (Classifier): Support for saving the new classifications and
9703            launching the dialog to edit a property.
9704            (SelectPropertiesDialog): New class for editing the visual
9705            properties of a classification (stroke color, width, and fill color)
9706            (ClassPreviewer): Took the Draw method from ClassRenderer and
9707            made most of it into this new class. Intend to use this class in
9708            the SelectPropertiesDialog for previewing changes.
9709    
9710            * Thuban/UI/renderer.py: Use new Color and Classification methods.
9711    
9712            * Thuban/UI/tree.py: Formatting changes.
9713    
9714            * Doc/thuban.dtd: Add 'label' element
9715    
9716            * Thuban/common.py: New. Contains common routines used throughout
9717            the code.
9718            (Str2Num): Takes a string and converts it to the "best" type of
9719            number.
9720    
9721    2003-02-14  Bernhard Herzog  <[email protected]>
9722    
9723            * Thuban/UI/view.py (MapCanvas.OnLeftUp): Make sure that the
9724            dragging flag is always set to 0 even when the tool implementation
9725            raises an exception
9726    
9727    2003-02-11  Bernhard Herzog  <[email protected]>
9728    
9729            * Thuban/UI/application.py (ThubanApplication.splash_screen): New
9730            method to create a splash screen.
9731            (ThubanApplication.ShowMainWindow): New. Show the main window.
9732            Needed so the splash screen can display the mainwindow
9733            (ThubanApplication.OnInit): Call the
9734            new splash_screen method to determine whether the application
9735            should display a splash screen. If it displays a splash screen do
9736            not immediately show the main window.
9737    
9738    2003-02-11  Jonathan Coles  <[email protected]>
9739    
9740            * Thuban/Model/classification.py: Added import line to fix
9741            feature conflicts between running on python2.2 and python2.1.
9742    
9743            * Thuban/UI/classifier.py (ClassTable): Didn't need to hang
9744            onto the clinfo parameter, so removed the deepcopy().
9745    
9746    2003-02-10  Jonathan Coles  <[email protected]>
9747    
9748            * Thuban/Model/save.py (Saver.open_element, Saver.close_element):
9749            Added element_open variable to track opening and closing of tags
9750            so that tags that don't span more than one line are closed with
9751            /> instead of </tag_name>. Use the GetDefault*() methods of
9752            the Classification class.
9753    
9754            * Thuban/Model/classification.py (Classificaton): Added set and
9755            get methods for the default data. The class also takes a layer
9756            reference so that modification messages can be sent. Fixed the
9757            methods to use the new ClassData class.
9758            (ClassData): New class to encapsulate the classification data
9759    
9760            * Thuban/Model/layer.py (Layer): Remove the
9761            Set[Fill|Stroke|StrokeWidth]() methods. Code should call the
9762            SetDefault*() methods on the layer's classification object.
9763            (Layer.__init__): Use the new SetDefault*() methods in the
9764            Classification class.
9765    
9766            * Thuban/Model/load.py (ProcessSession): Use the new ClassData
9767            object instead of a dictionary.
9768    
9769            * Thuban/UI/classifier.py (ClassRenderer): New class to
9770            draw the classifications in the dialog box's table.
9771            (Classifier): Modified to use the ClassRenderer class.
9772    
9773            * Thuban/UI/mainwindow.py (MainWindow): Use the SetDefault*()
9774            methods of the Classification class.
9775    
9776            * Thuban/UI/renderer.py (MapRenderer): Use the Get*() methods
9777            of the ClassData class.
9778    
9779            * test/test_classification.py, test/test_layer.py,
9780            test/test_map.py, test/test_session.py: Fix the tests to work
9781            with the above code changes.
9782    
9783    2003-02-03  Jonathan Coles  <[email protected]>
9784    
9785            * Thuban/Model/classification.py (Classification): Added getNull()
9786            to return the NullData reference
9787    
9788            * Thuban/Model/layer.py (Layer.SetFill, Layer.SetStroke,
9789            Layer.SetStrokeWidth): Modified these functions to change the
9790            null data in the classification rather than keep these values
9791            directly in the Layer class. Menu options to change these values
9792            work again.
9793    
9794    2003-01-28  Jonathan Coles  <[email protected]>
9795    
9796            * Thuban/UI/classifier.py (Classifier): Resolved merging conflicts.
9797            Fixed crashing problem on some systems. Dialog box shows
9798            classification data.
9799    
9800            * Thuban/UI/tree.py (SessionTreeCtrl.add_items): Handle drawing
9801            Colors in the tree view.
9802    
9803            * Thuban/Model/layer.py (Layer.TreeInfo): Added a call to build
9804            the tree info for classifications. Commented out unnecessary lines.
9805    
9806            * Thuban/Model/classification.py (Classification.TreeInfo): New
9807            function to add information about the classification into the
9808            tree view.
9809    
9810    2003-01-27  Jan-Oliver Wagner <[email protected]>
9811    
9812            * Thuban/__init__.py (_): New.
9813    
9814            * Thuban/Model/classification.py, Thuban/Model/extension.py,
9815            Thuban/Model/layer.py, Thuban/Model/load.py, Thuban/Model/map.py,
9816            Thuban/Model/session.py, Thuban/UI/application.py,
9817            Thuban/UI/classifier.py, Thuban/UI/context.py, Thuban/UI/controls.py,
9818            Thuban/UI/identifyview.py, Thuban/UI/labeldialog.py,
9819            Thuban/UI/mainwindow.py, Thuban/UI/menu.py, Thuban/UI/proj4dialog.py,
9820            Thuban/UI/renderer.py, Thuban/UI/tree.py, Thuban/Lib/connector.py,
9821            Thuban/Lib/fileutil.py: Replace user string by _() for i18n.
9822    
9823    2003-01-27  Jonathan Coles  <[email protected]>
9824    
9825            * Thuban/Model/layer.py: Classification initialization calls.
9826    
9827            * Thuban/Model/classification.py: Created class to encapsulate
9828            a layer classification. Supports specific data points and
9829            ranges.
9830    
9831            * Thuban/Model/load.py: Added support for loading classification
9832            information.
9833    
9834            * Thuban/Model/save.py: Added support for saving classification
9835            information.
9836    
9837            * Thuban/UI/classifier.py: Initial class for a dialog box for
9838            specifying classification information.
9839    
9840            * Thuban/UI/mainwindows.py: Support for opening the classifier
9841            dialog.
9842    
9843            * Thuban/UI/renderer.py: Support for drawing a layer with the
9844            classification information.
9845    
9846            * Data/iceland_sample_class.thuban: iceland_sample with
9847            classification data.
9848    
9849            * test/test_classification: Tests for the Classification class.
9850    
9851    2002-12-09  Bernhard Herzog  <[email protected]>
9852    
9853            * test/test_command.py: New. Tests for the command classes.
9854    
9855            * Thuban/UI/command.py (ToolCommand): New class for tool commands.
9856            (Command.IsTool): New method to distinguish between command
9857            switching tools and other commands.
9858    
9859            * Thuban/UI/view.py (MapCanvas.SelectTool): New method to select
9860            the tool to avoid direct assignments to instance variables
9861            (MapCanvas.ZoomInTool, MapCanvas.ZoomOutTool, MapCanvas.PanTool)
9862            (MapCanvas.IdentifyTool, MapCanvas.LabelTool): Use SelectTool to
9863            change the tool
9864    
9865            * Thuban/UI/mainwindow.py (MainWindow.update_command_ui): If an
9866            active tool's command turns insensitive, disable the tool.
9867            (_tool_command): Use the new ToolCommand class
9868    
9869            * Examples/simple_extensions/simple_tool.py (simple_tool): Use the
9870            SelectTool method to change the tool
9871            (iconfile): Use the ToolCommand class
9872    
9873    2002-12-03  Bernhard Herzog  <[email protected]>
9874    
9875            * Thuban/UI/tree.py (SessionTreeCtrl.normalize_selection): Handle
9876            the case of selected items that are not children of Layers or Maps
9877            properly. Previously this bug would trigger an assertion in
9878            wxWindows.
9879    
9880    2002-11-06  Frank Koormann  <[email protected]>
9881    
9882            * Thuban/UI/mainwindow.py: Altered the order of tools in the
9883            toolbar: First now are all navigation tools (Zoom In/Out, Pan,
9884            Full Extent).
9885    
9886    2002-10-23  Bernhard Herzog  <[email protected]>
9887    
9888            * setup.py (setup call): version now 0.1.3
9889    
9890            * MANIFEST.in: Add the files in test/
9891    
9892            * test/README: Add note about tests requiring the iceland data
9893    
9894            * Thuban/UI/mainwindow.py (MainWindow.About): Add 2002 to
9895            copyright notice.
9896    
9897    2002-10-18  Bernhard Herzog  <[email protected]>
9898    
9899            * test/test_map.py
9900            (TestMapWithContents.test_projected_bounding_box): Use an explicit
9901            epsilon.
9902    
9903            * test/support.py (FloatComparisonMixin.assertFloatEqual)
9904            (FloatComparisonMixin.assertFloatSeqEqual): give a more useful
9905            message if the assertion fails and don't return the return value
9906            of self.assert_. In assertFloatSeqEqual the return meant that not
9907            all items of the sequence were compared.
9908    
9909    2002-09-20  Bernhard Herzog  <[email protected]>
9910    
9911            * test/test_fileutil.py: New. Test cases for Thuban.Lib.fileutil
9912    
9913            * Thuban/Lib/fileutil.py: Fixup some whitespace and typos
9914    
9915            * test/test_map.py (TestMapWithContents.test_tree_info): Create
9916            the string with the bounding box on the fly because of platform
9917            differences in the way %g is handled.
9918    
9919            * test/test_layer.py (TestLayer.test_empty_layer): Create an empty
9920            DBFfile too because Thuban layers can't yet cope missing DBF
9921            files.
9922    
9923    2002-09-20  Bernhard Herzog  <[email protected]>
9924    
9925            * test/test_menu.py: Use initthuban instead of
9926            add_thuban_dir_to_path to initialize Thuban.
9927    
9928            * test/support.py (FloatComparisonMixin.assertFloatEqual): New.
9929            Mixin class for float comparisons
9930            (SubscriberMixin): New. Mixin class to test messages sent through
9931            the Connector class
9932    
9933            * test/README: Fix a typo and add the -v flag to the command for
9934            individual tests
9935    
9936            * test/test_session.py: New. Test cases for Thuban.Model.session
9937    
9938            * test/test_proj.py: New. Test cases for Thuban.Model.proj
9939    
9940            * test/test_map.py: New. Test cases for Thuban.Model.map
9941    
9942            * test/test_layer.py: New. Test cases for Thuban.Model.layer
9943    
9944            * test/test_label.py: New. Test cases for Thuban.Model.label
9945    
9946            * test/test_connector.py: New. Test cases for Thuban.Lib.connector
9947    
9948            * test/test_color.py: New. Test cases for Thuban.Model.color
9949    
9950            * test/test_base.py: New. Test cases for Thuban.Model.base
9951    
9952    2002-09-13  Bernhard Herzog  <[email protected]>
9953    
9954            * Thuban/Model/session.py (Session.forwarded_channels): Forward
9955            the CHANGED channel too.
9956    
9957            * Thuban/Model/map.py (Map.forwarded_channels): Forward the
9958            CHANGED channel too.
9959            (Map.__init__): Call the Modifiable constructor as well.
9960    
9961            * Thuban/Model/base.py (Modifiable.UnsetModified): Issue a CHANGED
9962            event if the modified flag changes.
9963            (Modifiable.changed): Tweak the doc-string.
9964    
9965            * Thuban/UI/mainwindow.py (MainWindow.view_position_changed)
9966            (MainWindow.set_position_text): Put the code that puts the text
9967            with the mouse position into the status bar into the new method
9968            set_position_text so that it can overwritten in derived classes.
9969    
9970    2002-09-12  Bernhard Herzog  <[email protected]>
9971    
9972            * Thuban/UI/mainwindow.py (MainWindow.RunMessageBox): Center the
9973            message box on the main window.
9974    
9975    2002-09-11  Bernhard Herzog  <[email protected]>
9976    
9977            * Thuban/UI/mainwindow.py: Underline the 'x' in "Exit" instead of
9978            the 'E' because it's less likely to interfere with other menu
9979            entries.
9980            (MainWindow.build_menu): remove an incorrect comment.
9981    
9982  2002-09-10  Bernhard Herzog  <[email protected]>  2002-09-10  Bernhard Herzog  <[email protected]>
9983    
9984          * Thuban/UI/mainwindow.py (MainWindow.Map): New.          * Thuban/UI/mainwindow.py (MainWindow.Map): New.
# Line 12  Line 9993 
9993          * Thuban/UI/mainwindow.py (MainWindow.OnClose): Unsubscribe          * Thuban/UI/mainwindow.py (MainWindow.OnClose): Unsubscribe
9994          VIEW_POSITION          VIEW_POSITION
9995    
9996  2002-09-04  Frank Koormann   <[email protected]>  2002-09-04  Frank Koormann  <[email protected]>
9997    
9998          * Resources/Bitmaps/fullextent.xpm: Updated Icon (removed "potatoe")          * Resources/Bitmaps/fullextent.xpm: Updated Icon (removed "potatoe")
9999    
# Line 99  Line 10080 
10080    
10081          * Thuban/Model/table.py (Table.write_record): New method to write          * Thuban/Model/table.py (Table.write_record): New method to write
10082          records.          records.
10083          (Table.__init__): Open the DBF file for writing too.          (Table.__init__): Open the DBF file for writing too.
10084    
10085          * Thuban/UI/controls.py (RecordTable.SetValue): Write the value          * Thuban/UI/controls.py (RecordTable.SetValue): Write the value
10086          into the underlying table.          into the underlying table.
# Line 137  Line 10118 
10118          * setup.py (ThubanInstall.run): Don't repr install_lib_orig          * setup.py (ThubanInstall.run): Don't repr install_lib_orig
10119          because thubaninit_contents will do it for us.          because thubaninit_contents will do it for us.
10120    
10121  2002-08-16      Jan-Oliver Wagner <[email protected]>  2002-08-16  Jan-Oliver Wagner <[email protected]>
10122    
10123          * Thuban/UI/mainwindow.py: menu item 'show session tree' now disable if          * Thuban/UI/mainwindow.py: menu item 'show session tree' now disable if
10124          tree window already open          tree window already open
# Line 265  Line 10246 
10246          * Thuban/UI/tree.py: We can now simply subscribe to the session's          * Thuban/UI/tree.py: We can now simply subscribe to the session's
10247          CHANGED channel to be informed of changes.          CHANGED channel to be informed of changes.
10248          (SessionTreeCtrl.session_channels): Not needed any longer.          (SessionTreeCtrl.session_channels): Not needed any longer.
10249          (SessionTreeCtrl.unsubscribe_all, SessionTreeCtrl.session_changed):          (SessionTreeCtrl.unsubscribe_all, SessionTreeCtrl.session_changed):
10250          Only have to (un)subscribe CHANGED          Only have to (un)subscribe CHANGED
10251    
10252          * Thuban/Model/map.py (Map.TreeInfo): Deal better with empty maps.          * Thuban/Model/map.py (Map.TreeInfo): Deal better with empty maps.
# Line 326  Line 10307 
10307          * Thuban/Model/layer.py (Layer.TreeInfo),          * Thuban/Model/layer.py (Layer.TreeInfo),
10308          Thuban/Model/extension.py (Extension.TreeInfo),          Thuban/Model/extension.py (Extension.TreeInfo),
10309          Thuban/Model/map.py (Map.TreeInfo),          Thuban/Model/map.py (Map.TreeInfo),
10310          Thuban/Model/session.py (Session.TreeInfo):          Thuban/Model/session.py (Session.TreeInfo):
10311          Add TreeInfo methods to implement the new tree view update scheme          Add TreeInfo methods to implement the new tree view update scheme
10312    
10313  2002-07-16  Bernhard Herzog  <[email protected]>  2002-07-16  Bernhard Herzog  <[email protected]>
# Line 407  Line 10388 
10388          * setup.py: In the setup call, make sure that the library          * setup.py: In the setup call, make sure that the library
10389          directories are under $prefix/lib not directly under $prefix.          directories are under $prefix/lib not directly under $prefix.
10390    
10391  2002-06-20      Jan-Oliver Wagner <[email protected]>  2002-06-20  Jan-Oliver Wagner <[email protected]>
10392    
10393          * Thuban/Model/extension.py: new module to handle extension objects.          * Thuban/Model/extension.py: new module to handle extension objects.
10394          * Thuban/Model/messages.py: new messages for extensions.          * Thuban/Model/messages.py: new messages for extensions.
# Line 636  Line 10617 
10617          * Thuban/UI/messages.py (VIEW_POSITION): New message for the          * Thuban/UI/messages.py (VIEW_POSITION): New message for the
10618          position in the statusbar          position in the statusbar
10619    
10620  2002-04-26      Frank Koormann <[email protected]>  2002-04-26  Frank Koormann <[email protected]>
10621    
10622          * Thuban/UI/mainwindow.py: AddLayer, Dialog title s/session/data          * Thuban/UI/mainwindow.py: AddLayer, Dialog title s/session/data
10623    
10624  2002-04-24      Frank Koormann <[email protected]>  2002-04-24  Frank Koormann <[email protected]>
10625            
10626          * Resources/Bitmaps/identify.xpm: shadow added          * Resources/Bitmaps/identify.xpm: shadow added
10627    
10628          * Resources/Bitmaps/fullextent.xpm: new          * Resources/Bitmaps/fullextent.xpm: new
           
 2002-04-22      Jan-Oliver Wagner <[email protected]>  
10629    
10630          * Thuban/UI/tree.py (update_tree): added test for None on map bounding box  2002-04-22  Jan-Oliver Wagner <[email protected]>
10631    
10632  2002-04-21      Jan-Oliver Wagner <[email protected]>          * Thuban/UI/tree.py (update_tree): added test for None on map bounding
10633            box
10634    
10635    2002-04-21  Jan-Oliver Wagner <[email protected]>
10636    
10637          * Thuban/UI/proj4dialog.py (UTMProposeZoneDialog): new          * Thuban/UI/proj4dialog.py (UTMProposeZoneDialog): new
10638    
10639          * Thuban/UI/tree.py (update_tree): added added map extent          * Thuban/UI/tree.py (update_tree): added added map extent
10640    
10641          * Thuban/UI/mainwindow.py (_method_command): extended by parameter          * Thuban/UI/mainwindow.py (_method_command): extended by parameter
10642          icon; added map_full_extend as tool          icon; added map_full_extend as tool
10643    
10644  2002-04-19      Jan-Oliver Wagner <[email protected]>  2002-04-19  Jan-Oliver Wagner <[email protected]>
10645    
10646          * Thuban/UI/mainwindow.py (SaveSession): launch save as dialog for          * Thuban/UI/mainwindow.py (SaveSession): launch save as dialog for
10647          saving _new_ sessions          saving _new_ sessions
# Line 761  Line 10743 
10743    
10744          * setup.py: increase version number to 0.1          * setup.py: increase version number to 0.1
10745          (data_dist): New command class for data distribution          (data_dist): New command class for data distribution
           
10746    
10747  2001-09-14  Bernhard Herzog  <[email protected]>  2001-09-14  Bernhard Herzog  <[email protected]>
10748    
10749          * Thuban/UI/identifyview.py (IdentifyListCtrl.selected_shape):          * Thuban/UI/identifyview.py (IdentifyListCtrl.selected_shape):
10750          Handle the case of no layer (i.e. layer is None) properly.          Handle the case of no layer (i.e. layer is None) properly.
10751    
10752          * Thuban/UI/proj4dialog.py (UTMDialog.__init__, Proj4Dialog.__init__):          * Thuban/UI/proj4dialog.py (UTMDialog.__init__, Proj4Dialog.__init__):
10753          Set the initial selection of the combo boxes to reflect the          Set the initial selection of the combo boxes to reflect the
10754          projection we're starting with in a way that works on windows,          projection we're starting with in a way that works on windows,
10755          too.          too.
# Line 878  Line 10859 
10859          (MainWindow.identify_view_on_demand): Store the interactor in an          (MainWindow.identify_view_on_demand): Store the interactor in an
10860          instvar and use that reference instead of going through main.app          instvar and use that reference instead of going through main.app
10861    
10862          * Thuban/UI/mainwindow.py (MainWindow.ShowSessionTree):          * Thuban/UI/mainwindow.py (MainWindow.ShowSessionTree):
10863          * Thuban/UI/application.py (ThubanApplication.OnInit):          * Thuban/UI/application.py (ThubanApplication.OnInit):
10864          * Thuban/UI/main.py (main): Create the session tree view in main          * Thuban/UI/main.py (main): Create the session tree view in main
10865          with the new mainwindow method ShowSessionTree and not directly          with the new mainwindow method ShowSessionTree and not directly
10866          the application's OnInit method          the application's OnInit method
# Line 895  Line 10876 
10876          layer to the tableview dialog.          layer to the tableview dialog.
10877    
10878          * Thuban/UI/tableview.py: Add some doc-strings          * Thuban/UI/tableview.py: Add some doc-strings
10879          (TableGrid):          (TableGrid):
10880          (TableGrid.OnRangeSelect):          (TableGrid.OnRangeSelect):
10881          (TableGrid.OnSelectCell):          (TableGrid.OnSelectCell):
10882          (TableFrame.__init__):          (TableFrame.__init__):
# Line 962  Line 10943 
10943  2001-09-05  Bernhard Herzog  <[email protected]>  2001-09-05  Bernhard Herzog  <[email protected]>
10944    
10945          * Thuban/UI/view.py (MapCanvas.__init__): New argument, interactor.          * Thuban/UI/view.py (MapCanvas.__init__): New argument, interactor.
10946            
10947          * Thuban/UI/mainwindow.py (MainWindow.__init__): New argument          * Thuban/UI/mainwindow.py (MainWindow.__init__): New argument
10948          interactor to pass through to the MapCanvas          interactor to pass through to the MapCanvas
10949            
10950          * Thuban/UI/application.py (ThubanApplication.OnInit): Use the new          * Thuban/UI/application.py (ThubanApplication.OnInit): Use the new
10951          argument to the MainWindow constructor to get rid of the ugly hack          argument to the MainWindow constructor to get rid of the ugly hack
10952          that made main.app available early just so that the mapcanvas          that made main.app available early just so that the mapcanvas
# Line 1012  Line 10993 
10993          (ThubanInstall.run): Remove the leading install root from the          (ThubanInstall.run): Remove the leading install root from the
10994          script filename if an install root was specified and use the new          script filename if an install root was specified and use the new
10995          link_file method          link_file method
10996            
10997          * Thuban/UI/mainwindow.py (MainWindow.AddLayer): Fit the map to          * Thuban/UI/mainwindow.py (MainWindow.AddLayer): Fit the map to
10998          the window when the first layer is added to the map.          the window when the first layer is added to the map.
10999    
# Line 1049  Line 11030 
11030          (InnoIconItem): Helper class for bdist_inno          (InnoIconItem): Helper class for bdist_inno
11031          (thuban_bdist_inno): Thuban specific version of bdist_inno. Added          (thuban_bdist_inno): Thuban specific version of bdist_inno. Added
11032          this together with the appropriate parameters, to the setup call.          this together with the appropriate parameters, to the setup call.
11033            
11034          * setup.cfg (bdist_inno): added new section for the inno setup          * setup.cfg (bdist_inno): added new section for the inno setup
11035          installer          installer
11036    

Legend:
Removed from v.311  
changed lines
  Added in v.2509

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26