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

Legend:
Removed from v.848  
changed lines
  Added in v.2543

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26