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

Legend:
Removed from v.1272  
changed lines
  Added in v.2555

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26