/[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 1582 by bh, Tue Aug 12 15:08:40 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]>  2003-08-12  Bernhard Herzog  <[email protected]>
4737    
4738          * po/de.po: New. German translations by Bjoern Broscheit          * po/de.po: New. German translations by Bjoern Broscheit
# Line 421  Line 5156 
5156    
5157          * Thuban/Model/range.py, Thuban/version.py: Remove the #! line as          * Thuban/Model/range.py, Thuban/version.py: Remove the #! line as
5158          it annoys lintian which warns about these files not being          it annoys lintian which warns about these files not being
5159          executable. The #1 isn't necessary here since if you absolutely          executable. The #! isn't necessary here since if you absolutely
5160          must execute them you can always say "python <filename>".          must execute them you can always say "python <filename>".
5161    
5162          * Thuban/UI/renderer.py (ScreenRenderer.draw_shape_layer): Remove          * Thuban/UI/renderer.py (ScreenRenderer.draw_shape_layer): Remove
# Line 1536  Line 6271 
6271          Fix problem of hidden properties dialog under windows after double          Fix problem of hidden properties dialog under windows after double
6272          click on layer tree:          click on layer tree:
6273          The tree control always gets an Expanded / Collapsed event after          The tree control always gets an Expanded / Collapsed event after
6274          the ItemActivated  on double click, which raises the main window again.         We add a second ItemActivated event to the queue, which simply          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.          raises the already displayed window.
6277    
6278          * Thuban/UI/legend.py (LegendTree.__init__): Instance variable          * Thuban/UI/legend.py (LegendTree.__init__): Instance variable

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

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26