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

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

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

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

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

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26