/[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 1479 by frank, Thu Jul 24 17:01:43 2003 UTC revision 2048 by bh, Mon Jan 5 14:53:47 2004 UTC
# Line 1  Line 1 
1    2004-01-05  Bernhard Herzog  <[email protected]>
2    
3            * po/Makefile, po/README: Move the description of how to generate
4            the translation statistics to the README.
5    
6    2003-12-23  Bernhard Herzog  <[email protected]>
7    
8            * NEWS: Update for 1.0.0
9    
10            * po/it.po: Another update from Maurizio Napolitano
11    
12    2003-12-23  Bernhard Herzog  <[email protected]>
13    
14            * po/it.po: Updated translation from Maurizio Napolitano
15    
16    2003-12-23  Bernhard Herzog  <[email protected]>
17    
18            * Thuban/UI/join.py (JoinDialog.__init__): Mark one more string
19            for translation
20    
21            * Thuban/UI/mainwindow.py (MainWindow.TableRename)
22            (MainWindow.RenameMap, MainWindow.RenameLayer): Mark some more
23            strings for translation
24    
25            * po/de.po: Update with the newly marked strings.
26    
27    2003-12-22  Bernhard Herzog  <[email protected]>
28    
29            * HOWTO-Release: Fix the places where version numbers have to be
30            updated
31    
32    2003-12-22  Bernhard Herzog  <[email protected]>
33    
34            * setup.py (setup call): 1.0.0, yeah!
35    
36            * Thuban/version.py (longversion): 1.0.0, yeah!
37    
38            * Thuban/Model/load.py (SessionLoader.__init__): Accept the
39            1.0.0 namespace too
40    
41            * Thuban/Model/save.py (SessionSaver.write_session): Save with
42            1.0.0 namespace
43    
44            * test/test_load.py (LoadSessionTest.dtd)
45            (TestSingleLayer.file_contents)
46            (TestNonAsciiColumnName.file_contents)
47            (TestLayerVisibility.file_contents)
48            (TestClassification.file_contents, TestLabels.file_contents)
49            (TestLayerProjection.file_contents)
50            (TestRasterLayer.file_contents, TestJoinedTable.file_contents)
51            (TestLabelLayer.file_contents, TestPostGISLayer.file_contents)
52            (TestPostGISLayerPassword.file_contents)
53            (TestLoadError.file_contents, TestLoadError.test): Update for
54            1.0.0 namespace
55    
56            * test/test_save.py (SaveSessionTest.dtd)
57            (SaveSessionTest.testEmptySession)
58            (SaveSessionTest.testSingleLayer)
59            (SaveSessionTest.testLayerProjection)
60            (SaveSessionTest.testRasterLayer)
61            (SaveSessionTest.testClassifiedLayer)
62            (SaveSessionTest.test_dbf_table)
63            (SaveSessionTest.test_joined_table)
64            (SaveSessionTest.test_save_postgis): Update for 1.0.0 namespace
65    
66    2003-12-22  Bernhard Herzog  <[email protected]>
67    
68            * Thuban/Model/load.py (SessionLoader.start_label): Make sure the
69            alignment flags are byte strings not unicode and that they have
70            valid values
71    
72            * test/test_load.py (TestLabelLayer): New. Test loading (and
73            indirectly saving) of maps with labels.
74    
75    2003-12-22  Bernhard Herzog  <[email protected]>
76    
77            * Thuban/UI/tableview.py (TableGrid.OnDestroy)
78            (TableGrid.__init__): Handle EVT_WINDOW_DESTROY in the grid to
79            unsubscribe all subscribers.
80            (LayerTableFrame.OnDestroy): Do not unsubscribe any messages from
81            self.grid since it may already have been destroyed.
82            Fixes RT #2256
83    
84    2003-12-19  Bernhard Herzog  <[email protected]>
85    
86            * po/fr.po, po/es.po: Updated translations from Daniel Calvelo
87    
88    2003-12-16  Bernhard Herzog  <[email protected]>
89            
90            * debian/bitmappath.patch, debian/setup.py.patch:
91                    added to ensure compliance with FHS for debian
92            * debian/rules, debian/changelog:
93                added patches in rules to ensure compliance with FHS for debian
94    
95    2003-12-16  Bernhard Herzog  <[email protected]>
96    
97            * po/Makefile (mo): Make the output a bit nicer so that it prints
98            statistics about the translations. Add a comment how produce even
99            nicer statistics with sed.
100    
101    2003-12-09  Frank Koormann   <[email protected]>
102    
103            * Resources/Projections/defaults.proj:
104            French projection sample with correct accents (UNICODE).
105    
106    2003-12-05  Bernhard Herzog  <[email protected]>
107    
108            * MANIFEST.in: Add the devtools directory
109    
110            * setup.py (setup call): Use license instead of licence. This
111            silences a deprecation warning on Python 2.3
112    
113    2003-12-05  Frank Koormann   <[email protected]>
114    
115            Documentation synced with 1.0rc1
116    
117            * Doc/manual/thuban-manual.xml:
118            Minor formatting changes and references to database layers .
119            Introduction.Internationalization: New section on i18n.
120            MapManagement.AddingandRemovingLayers: Added item on database layers.  
121            MapManagement.TheLegend: Added section and screenshot on popup menu.
122            ProjectionManagement: Updated screenshot and sentence on EPSG.
123            Appendix.SupportedDataSources: Added PostGIS.
124            Appendix.WorkingwithPostGIS: New section.
125    
126            * Doc/manual/images/6_projection.png: Updated screenshot including
127            EPSG checkboxes.
128    
129            * Doc/manual/images/3_5_popup_menu.png: New, popup menu screenshot.
130    
131            * Doc/manual/images/app_postgis_add_layer.png,
132            Doc/manual/images/app_postgis_db_add.png,
133            Doc/manual/images/app_postgis_db_management.png:
134            New screenshots focussing on database layers
135    
136    2003-12-05  Frank Koormann   <[email protected]>
137    
138            * Thuban/UI/projdialog.py (load_user_proj): If user.proj is missing
139            write warning to stderr instead of rising a warning dialog
140    
141    2003-12-03  Bernhard Herzog  <[email protected]>
142    
143            Fix for RT #2243
144    
145            * Thuban/UI/mainwindow.py (MainWindow.has_selected_shape_layer):
146            New. Like has_selected_layer but for shape layers only
147            (_has_selected_shape_layer): New. Like _has_selected_layer but for
148            shape layers only
149            (layer_show_table command, layer_jointable command): Use these
150            commands should only be available for shape layers
151    
152    2003-12-03  Bernhard Herzog  <[email protected]>
153    
154            * Thuban/UI/mainwindow.py (MainWindow.Unsubscribe): Deal with
155            publishers that are wx objects and may have been destroyed by wx
156            already. Fixes RT #2242.
157    
158    2003-12-03  Bernhard Herzog  <[email protected]>
159    
160            * po/ru.po: Updates from Alex Shevlakov
161    
162    2003-12-03  Silke Reimer <silkeintevation.de>
163    
164            * debian/control, debian/changelog: Added gdal-support to
165                    debian package, updated to new thuban version
166    
167    
168    2003-12-03  Bernhard Herzog  <[email protected]>
169    
170            * Thuban/Lib/version.py: New. Module for version number
171            manipulations. The version of make_tuple here also deals better
172            with more unusual version number strings, such as e.g.
173            "1.2+cvs20031111"
174    
175            * Thuban/version.py (make_tuple): Removed. It's now in
176            Thuban.Lib.version. Use that implementation instead.
177    
178            * test/test_lib_version.py: New. Tests for Thuban/Lib/version.py
179    
180    2003-12-02  Bernhard Herzog  <[email protected]>
181    
182            * MANIFEST.in: Add debian files
183    
184            * setup.py (setup call): Add packages for the Extensions so that
185            they're installed too
186            (data_files): Add READMEs and sample data from some Extensions
187    
188            * NEWS: Add note about the extensions in binary packages
189    
190    2003-12-02  Bernhard Herzog  <[email protected]>
191    
192            * Thuban/Model/save.py (SessionSaver.write_session): Save files
193            with the thuban-1.0rc1
194    
195            * Thuban/Model/load.py (SessionLoader.__init__): Recognize the
196            thuban-1.0rc1 namespace too
197    
198            * test/test_save.py (SaveSessionTest.dtd)
199            (SaveSessionTest.testEmptySession)
200            (SaveSessionTest.testSingleLayer)
201            (SaveSessionTest.testLayerProjection)
202            (SaveSessionTest.testRasterLayer)
203            (SaveSessionTest.testClassifiedLayer)
204            (SaveSessionTest.test_dbf_table)
205            (SaveSessionTest.test_joined_table)
206            (SaveSessionTest.test_save_postgis): Update to thuban-1.0rc1
207            namespace
208    
209            * test/test_load.py (LoadSessionTest.dtd): Update to thuban-1.0rc1
210            namespace
211            (TestSingleLayer.file_contents)
212            (TestNonAsciiColumnName.file_contents)
213            (TestLayerVisibility.file_contents)
214            (TestClassification.file_contents, TestLabels.file_contents)
215            (TestLayerProjection.file_contents)
216            (TestRasterLayer.file_contents, TestJoinedTable.file_contents)
217            (TestPostGISLayer.file_contents)
218            (TestPostGISLayerPassword.file_contents)
219            (TestLoadError.file_contents, TestLoadError.test): Update to
220            thuban-1.0rc1 namespace
221    
222    2003-12-01  Bernhard Herzog  <[email protected]>
223    
224            * setup.py (proj4_prefix, wx_prefix, gdal_prefix): Fix these for
225            nt to better match Intevation's current w32 setup
226    
227            * HOWTO-Release: Add note about updating MANIFEST.in
228    
229            * MANIFEST.in: Add the Extensions
230    
231            * NEWS: Update for 1.0rc1
232    
233    2003-12-01  Bernhard Herzog  <[email protected]>
234    
235            * Thuban/UI/mainwindow.py (MainWindow.AddLayer): Change the wild
236            cards for the dialog so that shapefiles ending in all uppercase
237            SHP are listed too
238    
239    2003-11-28  Bernhard Herzog  <[email protected]>
240    
241            * Thuban/version.py (longversion): Update to 1.0rc1
242    
243            * setup.py (setup call): Update version to 1.0rc1. Use the
244            [email protected] email address as author email instead of my
245            personal one.
246    
247    2003-11-28  Bernhard Herzog  <[email protected]>
248    
249            * po/de.po: Update german translation.
250    
251    2003-11-28  Bernhard Herzog  <[email protected]>
252    
253            Unify the filenames stored in .thuban files so that the .thuban
254            files are more platform independend
255    
256            * Thuban/Model/save.py (unify_filename): New. Unify filenames so
257            that they can be used on both windows and unix
258            (SessionSaver.prepare_filename): New. Handle all filename
259            transformations for filenames stored in the thuban file
260            (SessionSaver.write_data_containers, SessionSaver.write_layer):
261            Use prepare_filename
262    
263            * test/test_save.py (SaveSessionTest.testSingleLayer)
264            (SaveSessionTest.testLayerProjection)
265            (SaveSessionTest.testRasterLayer)
266            (SaveSessionTest.testClassifiedLayer)
267            (SaveSessionTest.test_dbf_table)
268            (SaveSessionTest.test_joined_table): Filenames are always stored
269            with slashes on all currently supported platforms so adapt all
270            tests to this
271    
272            * test/test_load.py (LoadSessionTest.filenames): With the new
273            filename scheme the filenames in the tests should be
274            understandable on all currently supported platforms so we turn
275            this into an empty list because we don't have to normalize them
276            anymore
277    
278    2003-11-28  Bernhard Herzog  <[email protected]>
279    
280            * test/test_layer.py (TestLayer.test_arc_layer_with_projection):
281            Add the ellipsoid to the projection since some Proj versions
282            complain if it's missing.
283    
284    2003-11-27  Bernhard Herzog  <[email protected]>
285    
286            Corect some bounding box projection problems
287    
288            * Thuban/Model/proj.py (Projection.InverseBBox): New. Inverse
289            version of ForwardBBox
290            (Projection._transform_bbox): New. common implementation of
291            ForwardBBox and InverseBBox
292            (Projection.ForwardBBox): Use _transform_bbox.
293    
294            * test/test_proj.py (TestProjection.test): Add test for
295            InverseBBox
296    
297            * Thuban/Model/layer.py (Layer.LatLongBoundingBox)
298            (Layer.ShapesBoundingBox, RasterLayer.LatLongBoundingBox): Use the
299            new InverseBBox method to determine the unprojected bounding box
300            (Layer.ShapesInRegion): Use the ForwardBBox method to project the
301            bbox.
302    
303            * test/test_layer.py (TestLayer.test_point_layer_with_projection):
304            Removed.
305            (TestLayer.test_arc_layer_with_projection): New. This test is
306            better able to test whether bounding boxes are projected correctly
307            than test_point_layer_with_projection
308    
309            * Thuban/UI/viewport.py (ViewPort.map_projection_changed): Use
310            InverseBBox to unproject bboxes
311    
312    2003-11-25  Bernhard Herzog  <[email protected]>
313    
314            * Thuban/UI/about.py (About.__init__): Make sure we have ASCII
315            source code.
316    
317    2003-11-25  Bernhard Herzog  <[email protected]>
318    
319            * Thuban/Model/layer.py (Layer.__getattr__): Removed. It was only
320            there for backwards compatibility and all code relying on that
321            should have been updated by now.
322    
323    2003-11-25  Bernhard Herzog  <[email protected]>
324    
325            * test/test_load.py (TestClassification.test): Add the missing
326            round trip test.
327            (TestClassification.file_contents): Update to the newest file
328            format
329    
330    2003-11-25  Bernhard Herzog  <[email protected]>
331    
332            Add very experimental (and possibly dangerous) extension to draw
333            polygons:
334    
335            * Extensions/drawshape/README: New. Brief installation
336            instructions
337    
338            * Extensions/drawshape/drawshape.py: New. Implementation of the
339            drawshape extensions
340    
341            * Extensions/drawshape/patch.diff: Patch to apply before the
342            extension can be used.
343    
344    2003-11-24  Bernhard Herzog  <[email protected]>
345    
346            * Thuban/Model/data.py (ShapefileStore._open_shapefile)
347            (ShapefileStore.__init__): Factor opening the shapefile into a
348            separate method (the new _open_shapefile). This makes the code a
349            bit more readable but the real reason is that it makes some evil
350            hacks easier. :-)
351    
352    2003-11-24  Bernhard Herzog  <[email protected]>
353    
354            * Thuban/Model/load.py (SessionLoader.check_attrs): If no
355            converter is specified for an attribute assume it's a string
356            containing only Latin1 characters. Update doc-string accordingly.
357            This change should fix many places where unicode objects might
358            accidentally enter Thuban.
359    
360            * test/test_load.py (TestNonAsciiColumnName): New test to check
361            what happens with column names in DBF files that contain non-ascii
362            characters
363    
364    2003-11-21  Bernhard Herzog  <[email protected]>
365    
366            Enable the experimental attribute editing again and introduce a
367            command line switch to actually activate it
368    
369            * Thuban/UI/main.py (options): New. Container for options set on
370            the commmand line
371            (main): Add the --enable-attribute-editing flag.
372    
373            * Thuban/UI/identifyview.py (IdentifyView.__init__): If attribute
374            editing is enabled use the grid ctrl which allows editing of the
375            values
376    
377            * Thuban/Model/transientdb.py (AutoTransientTable.write_record):
378            New. Just delegate this to the underlying table.
379    
380    2003-11-20  Bernhard Herzog  <[email protected]>
381    
382            * test/test_proj.py (ProjFileReadTests.test_read_unreadable_file):
383            Skip this test if run under non-posix systems since it only works
384            there
385    
386    2003-11-19  Bernhard Herzog  <[email protected]>
387    
388            * Thuban/Model/resource.py: Rework the way gdal support is
389            determined so that we can give a reason in the about why gdal is
390            not supported.
391            (gdal_support_status): New. Variable holding a string with the
392            reason for no gdal support
393    
394            * Thuban/UI/about.py (About.__init__): Add the reason why gdal is
395            not supported to the message
396    
397    2003-11-19  Bernhard Herzog  <[email protected]>
398    
399            Remove the old table interface and its test cases
400    
401            * Thuban/Model/table.py (OldTableInterfaceMixin): Removed.
402            (DBFTable, MemoryTable): Do not derive from OldTableInterfaceMixin
403            anymore
404    
405            * Thuban/Model/transientdb.py (TransientTableBase)
406            (AutoTransientTable): Do not derive from OldTableInterfaceMixin
407            anymore
408    
409            * test/test_table.py: Removed since the old interface it tests is
410            gone.
411    
412            * test/runtests.py (main): The old table interface is gone and
413            with it the deprecation warnings so remove the code that turns
414            these warnings into errors
415    
416    2003-11-19  Bernhard Herzog  <[email protected]>
417    
418            * test/test_table.py: Revert to revision 1.5 again. Changing the
419            tests to use the new table interface is completely wrong since the
420            whole purpose of the tests in this module is to test the old
421            interface.
422    
423    2003-11-18  Bernhard Herzog  <[email protected]>
424    
425            * Thuban/Model/postgisdb.py (PostGISConnection.MatchesParameters):
426            New. Test whether the connection matches a set of connection
427            parameters
428    
429            * Thuban/UI/dbdialog.py (DBFrame.conns_changed): Fix doc-string
430            (DBFrame.OnAdd): Use the new MatchesParameters method when looking
431            for existing connections with the same parameters and break out of
432            the loop correctly.
433    
434            * test/test_postgis_db.py (TestBriefDescription)
435            (TestPostGISSimple.test_brief_description): Rename
436            TestBriefDescription to TestPostGISSimple and the test method to
437            test_brief_description so that we can add more test methods.
438            (TestPostGISSimple.test_matches_parameters): New. Test the new
439            MatchesParameters method
440    
441    2003-11-18  Bernhard Herzog  <[email protected]>
442    
443            * Thuban/Lib/connector.py (Publisher): Introduce a new flag,
444            _was_destroyed, to indicate whether an publisher instance has
445            already been destroyed.
446            (Publisher.Unsubscribe): Only disconnect if the publisher has not
447            been destroyed yet.
448            (Publisher.Destroy): Set the _was_destroyed flag to true.
449    
450            * test/test_connector.py
451            (TestPublisher.test_unsubscribe_after_destroy): New. Test that
452            calling Unsubscribe after Destroy doesn't raise an exception
453    
454    2003-11-14  Bernhard Herzog  <[email protected]>
455    
456            * Thuban/UI/identifyview.py (IdentifyView.selected_shape): Fix
457            typo in doc-string
458    
459    2003-11-13  Bernhard Herzog  <[email protected]>
460    
461            Quote table and column names properly for postgis.
462    
463            * Thuban/Model/postgisdb.py (quote_identifier): New. Function to
464            quote an identifier for use in an sql statement
465            (PostGISColumn.__init__): Add the quoted_name attribute
466            (PostGISTable.__init__): New instance variable quoted_tablename
467            (PostGISTable._fetch_table_information): Use the quoted table
468            name. New isntance variable quoted_geo_col with a quoted version
469            of geometry_column
470            (PostGISTable.NumRows, PostGISTable.RowIdToOrdinal)
471            (PostGISTable.RowOrdinalToId): Use the quoted table name
472            (PostGISTable.ReadValue, PostGISTable.ValueRange)
473            (PostGISTable.UniqueValues, PostGISTable.SimpleQuery)
474            (PostGISShapeStore.BoundingBox, PostGISShapeStore.Shape)
475            (PostGISShapeStore.AllShapes, PostGISShapeStore.ShapesInRegion):
476            Use quoted table and column names
477    
478            * test/test_postgis_db.py (TestPostGISSpecialCases)
479            (TestPostGISIgnoredColumns): Rename the class to
480            TestPostGISSpecialCases because that better describes the new
481            cases
482            (TestPostGISSpecialCases.test_unsupported_types)
483            (TestPostGISSpecialCases.test): Rename the method to
484            test_unsupported_types because we need a more descriptive name now
485            that there are more methods
486            (TestPostGISSpecialCases.test_table_name_quoting)
487            (TestPostGISSpecialCases.test_column_name_quoting)
488            (TestPostGISSpecialCases.test_shapestore_name_quoting): New test
489            cases to test quoting of table and column names in PostGISTable
490            and PostGISShapeStore
491    
492            * test/postgissupport.py
493            (skip_if_addgeometrycolumn_does_not_use_quote_ident): New. Skip if
494            AddGeometryColumn desn't support table or column names with sapces
495            or double quotes
496    
497    2003-11-12  Jan-Oliver Wagner <[email protected]>
498    
499            * Extensions/wms/__init__.py: New: Init to make this
500            directory a package.
501    
502            * Extensions/wms/wms.py: New: Provide layers via OGC WMS.
503    
504    2003-11-11  Bernhard Herzog  <[email protected]>
505    
506            * Thuban/Model/resource.py (EPSG_DEPRECATED_PROJ_FILE): New.
507            Constant for the file woth deprecated epsg projections
508            (get_system_proj_file): Update doc-string
509    
510            * Thuban/UI/projdialog.py (ProjFrame.build_dialog): Add a space
511            above the EPS widgets, introduce a check box for the deprecated
512            eps projections and a label for the epsg widgets
513            (ProjFrame._OnShowEPSG): Handle the deprecated EPSG projections
514            too
515    
516    2003-11-11  Bernhard Herzog  <[email protected]>
517    
518            Avoid warnings when run under Python 2.3
519    
520            * Thuban/UI/baserenderer.py (BaseRenderer.draw_point_shape)
521            (BaseRenderer.draw_label_layer): Coordinates must be ints.
522    
523            * Thuban/UI/renderer.py (MapRenderer.make_point): Turn this into a
524            real method so that we can convert to int.
525            (MapRenderer.label_font): The font size mist be an int.
526    
527            * Thuban/UI/common.py (Color2wxColour): The color values must be
528            ints. Also, remove the unnecessary asserts.
529    
530            * test/test_load_0_8.py (TestUnicodeStrings.file_contents)
531            (TestUnicodeStrings.test): Python source code should not contain
532            non-ascii characters unless an encoding is specified in the file.
533            Therefore use \x escapes in the string literals for non-ascii
534            characters.
535    
536    2003-11-11  Bernhard Herzog  <[email protected]>
537    
538            * Thuban/Model/resource.py (get_system_proj_file): Add a filename
539            parameter so that this function can be used for all proj files in
540            Resource/Projections
541            (DEFAULT_PROJ_FILE, EPSG_PROJ_FILE): New. Predefined filenames for
542            get_system_proj_file
543    
544            * Thuban/UI/projdialog.py (ProjFrame.__init__): Instead of one
545            ProjFile self.__sysProjFile use a dictionary of system ProjFile
546            objects self._sys_proj_files
547            (ProjFrame.build_dialog): Adapt to the new changes in the
548            ProjectionList constructor. Add a check button to toggle whether
549            EPSG projections are shown
550            (ProjFrame._OnShowEPSG): New. Handler for the epsg check button
551            events.
552            (ProjFrame.load_user_proj, ProjFrame.load_system_proj): Only show
553            the busy cursor if the files have not yet been loaded by the
554            dialog.
555            (ProjFrame.load_system_proj): Add a parameter for the name of the
556            proj file. Maintain the dictionary of system projections
557            self._sys_proj_files
558    
559            * Thuban/UI/projlist.py (ProjectionList): Merge the system_projs,
560            user_projs parameters into one parameter proj_files which is a
561            list of proj files.
562            (ProjectionList._subscribe_proj_files)
563            (ProjectionList._unsubscribe_proj_files): New. Move
564            subscription/unsubscription of projfile messages to separate
565            methods
566            (ProjectionList.Destroy): The unsubscribe is now done in
567            _unsubscribe_proj_files
568            (ProjectionList.update_projections): We now have a list of proj
569            file objects
570            (ProjectionList.SetProjFiles): New method to set a new list of
571            proj file objects
572    
573            * test/test_proj.py (ProjFileReadTests.test_get_system_proj_file):
574            Specify explicitly which system proj file to load.
575    
576    2003-11-11  Bernhard Herzog  <[email protected]>
577    
578            * Thuban/Model/load.py (SessionLoader.Destroy): New. Clear all
579            instance variables to cut cyclic references. The GC would have
580            collected the loader eventually but it can happen that it doesn't
581            run at all until thuban is closed (2.3 but not 2.2 tries a bit
582            harder and forces a collection when the interpreter terminates)
583            (load_session): Call the handler's Destroy method to make sure
584            that it gets garbage collected early. Otherwise it will be
585            collected very late if at all and it holds some references to e.g.
586            shapestores and the session which can lead to leaks (of e.g. the
587            temporary files)
588    
589            * test/test_load.py (TestSingleLayer.test_leak): New. test for the
590            resource leak in load_session
591    
592    2003-11-10  Bernhard Herzog  <[email protected]>
593    
594            * Thuban/UI/baserenderer.py: Add a way to specify how layers in
595            extensions are to be rendered.
596            (_renderer_extensions): New. List with renderer for layers in
597            extensions
598            (add_renderer_extension): New. Add a renderer extension
599            (init_renderer_extensions): New. Init the renderer extensions
600            (BaseRenderer.render_map_incrementally): Search
601            _renderer_extensions for how to draw unknown layer types
602            (BaseRenderer.draw_raster_data): Add format parameter so that
603            formats other than BMP can be drawn
604            (BaseRenderer.draw_raster_layer): Pass an explicit format to
605            draw_raster_data
606    
607            * Thuban/UI/renderer.py (raster_format_map): New. Mapping form the
608            strings of the format parameter of draw_raster_data method to wx
609            constants
610            (MapRenderer.draw_raster_data): Add the format parameter and use
611            raster_format_map to map it to the right wxwindows constant for
612            wxImageFromStream
613    
614            * test/test_baserenderer.py (SimpleRenderer.draw_raster_data): Add
615            the format parameter and record it
616            (TestBaseRenderer.test_raster_no_projection): check the format
617            paramter of the draw_raster_data method
618            (TestBaseRenderer.test_renderer_extension): New. Test the renderer
619            extension facility
620    
621    2003-11-07  Bernhard Herzog  <[email protected]>
622    
623            Tweak the usage of the sqlite database to make common use cases
624            more responsive. In most cases copying the data to the sqlite
625            database takes so long that using sqlite doesn't have enough
626            advantages.
627    
628            * Thuban/Model/transientdb.py (TransientTableBase.ValueRange): Add
629            comments about performance and query the min and max in separate
630            statements because only that way will indexes be used.
631            (TransientTableBase.UniqueValues): Add some comments about
632            performance.
633            (AutoTransientTable.ValueRange, AutoTransientTable.UniqueValues):
634            Do not copy the data to the transient DB but use the transient
635            copy if it exists. See the new comments for the performance trade
636            offs
637    
638            * test/test_transientdb.py
639            (TestTransientTable.test_auto_transient_table): Make sure that the
640            data is copied to the transient database at some point.
641    
642    2003-11-03  Bernhard Herzog  <[email protected]>
643    
644            * Thuban/Model/data.py (ShapefileStore.ShapesInRegion): Bind some
645            globals to locals so that it's a bit faster
646    
647    2003-11-03  Bernhard Herzog  <[email protected]>
648    
649            * Thuban/UI/baserenderer.py
650            (BaseRenderer.draw_shape_layer_incrementally): Use the ReadValue
651            method. ReadValue is faster than ReadRowAsDict since it only reads
652            one cell especially now that the dbf file objects actually
653            implement it.
654    
655            * Thuban/Model/table.py (DBFTable.ReadValue): Use the new
656            read_attribute method of the dbf objects
657    
658    2003-11-03  Bernhard Herzog  <[email protected]>
659    
660            * Extensions/profiling/profiling.py (popup_dialog_box): New config
661            variable to indicate whether the result should be shown in a
662            dialog box
663            (profile_screen_renderer, time_screen_renderer): Only show a
664            dialog box if popup_dialog_box is true.
665            (profile_screen_renderer): Flush stdout after the printing the
666            first part of the "profiling..." message
667    
668            * Thuban/UI/baserenderer.py
669            (BaseRenderer.draw_shape_layer_incrementally): Cache the pens and
670            brushes for the groups so that they're not created over and over
671            again
672    
673            * Thuban/Model/classification.py (Classification.__getattr__)
674            (Classification._compile_classification)
675            (Classification._clear_compiled_classification): New. Methods to
676            manage a 'compiled' representation of the classification groups
677            which is created on demand
678            (Classification.InsertGroup, Classification.RemoveGroup)
679            (Classification.ReplaceGroup): reset the compiled representation
680            (Classification.FindGroup): Use the compiled representation to
681            find the matching group
682            (ClassGroupRange.GetRangeTuple): New. Return the range as a tuple
683    
684    2003-10-31  Bernhard Herzog  <[email protected]>
685    
686            * Thuban/Model/classification.py (Classification.SetDefaultGroup):
687            Send a CLASS_CHANGED message
688            (Classification.RemoveGroup): Send a CLASS_CHANGED message and do
689            not return the removed group since it wasn't used.
690    
691            * test/test_classification.py
692            (TestClassification.test_set_default_group): New. Test the
693            SetDefaultGroup method
694            (TestClassification.test_insert_group): New. Test the InsertGroup
695            method
696            (TestClassification.test_remove_group): New. Test the RemoveGroup
697            method
698            (TestClassification.test_replace_group): New. Test the
699            ReplaceGroup method
700    
701    2003-10-31  Bernhard Herzog  <[email protected]>
702    
703            * test/test_classification.py (TestClassification.setUp):
704            Subscribe to the CLASS_CHANGED messages
705            (TestClassification.tearDown): New. Destroy the classification
706            properly
707            (TestClassification.test_defaults): Add tests for the default line
708            width and whether no messages were sent yet
709            (TestClassification.test_set_default_properties): Add tests for
710            messages and setting the default line width
711            (TestClassification.test_add_singleton)
712            (TestClassification.test_add_range)
713            (TestClassification.test_multiple_groups): Add tests for messages
714    
715    2003-10-31  Bernhard Herzog  <[email protected]>
716    
717            Some more refactoring in preparation for new tests:
718    
719            * test/test_classification.py (TestClassification.setUp): New.
720            Instantiate the classification here. Update the test methods
721            accordingly.
722            (TestClassification.test_multiple_groups): Make sure that the two
723            singletons matching 1 are considered different.
724    
725    2003-10-31  Bernhard Herzog  <[email protected]>
726    
727            * test/test_classification.py (red, green, blue): New. These
728            constants were used in several cases. Update the relevant methods.
729            (TestClassification.test_defaults)
730            (TestClassification.test_set_default_properties)
731            (TestClassification.test_add_singleton)
732            (TestClassification.test_add_range)
733            (TestClassification.test_multiple_groups)
734            (TestClassification.test_deepcopy): New. These were formerly all
735            part of the single method test.
736            (TestClassification.test_deepcopy): Removed.
737            (TestClassIterator): Removed. The test case is now a method of
738            TestClassification since it tests part of the public interface of
739            Classification
740            (TestClassification.test_iterator): New. Used to be
741            TestClassIterator effectively
742    
743    2003-10-31  Jan-Oliver Wagner <[email protected]>
744    
745            GUIfied the functions of the profiling extension.
746    
747            * /Extensions/profiling/__init__.py: New: Init to make this
748            directory a package.
749    
750            * Extensions/profiling/profiling.py: Moved menu entries to
751            the Extensions menu. Applied _() for strings.
752            (profile_screen_renderer): Catch the detailed printout and present
753            it in a dialog.
754            (time_screen_renderer): Raise a dialog to present the result instead
755            of printing it to stdout.
756    
757    2003-10-31  Bernhard Herzog  <[email protected]>
758    
759            * test/test_classification.py (TestClassGroupProperties)
760            (TestClassGroup, TestClassGroupDefault, TestClassGroupRange)
761            (TestClassGroupSingleton, TestClassIterator, TestClassification):
762            Split TestClassification into several classes, one for each class
763            being tested. TestClassification itself now only tests
764            Classification. This split makes changes to the tests a bit easier
765    
766    2003-10-31  Bernhard Herzog  <[email protected]>
767    
768            * Extensions/profiling/profiling.py: New. Extension to measure
769            Thuban performance
770    
771    2003-10-31  Frank Koormann <[email protected]>
772    
773            Added two items to legend popup menu: Remove Layer and Show Layer Table
774    
775            * Thuban/UI/legend.py (LegendPanel._OnRemoveLayer,
776            LegendPanel._OnShowTable): New event handlers, call the corresponding
777            mainwindow methods.
778            (LegendTree._OnRightClick): Added items to popup menu.
779    
780    2003-10-30  Bernhard Herzog  <[email protected]>
781    
782            * Thuban/UI/dialogs.py (ThubanFrame.__init__): Handle
783            EVT_WINDOW_DESTROY
784            (ThubanFrame.OnDestroy): New. Handler for EVT_WINDOW_DESTROY. Does
785            nothing but is convenient for the derived classes.
786    
787            * Thuban/UI/tableview.py
788            (TableFrame.OnDestroy, LayerTableFrame.OnDestroy): New.
789            Unsubscribe the messages here not in OnClose because that might
790            get called multiple times. Fixes RT #2196
791            (TableFrame.OnClose, LayerTableFrame.OnClose): Removed. Not needed
792            anymore.
793    
794            * README: Update the minimum requirement for wxPython. Since we
795            now use the EVT_WINDOW_DESTROY event, we need at least 2.4.0.4,
796            the version in which that was introduced for all platforms
797    
798    2003-10-30  Frank Koormann <[email protected]>
799    
800            * Thuban/UI/join.py (JoinDialog.OnJoin): Wrapped the major parts of
801            the join process in a ThubanBeginBusyCursor, ThubanEndBusyCursor
802            frame.
803    
804    2003-10-30  Jan-Oliver Wagner <[email protected]>
805    
806            Improved APR import extension, added further EPSG definitions
807            and some cleanup regarding string class.
808    
809            * test/test_proj.py (TestProjection.test_get_projection_units_geo):
810            Added test for alias 'longlat'.
811    
812            * Resources/Projections/epsg-deprecated.proj: New. Contains
813            deprecated EPSG definitions.
814    
815            * Extensions/importAPR/odb.py (ODBBaseObject.TreeInfo): Added
816            the variable names for objects.
817    
818            * Extensions/importAPR/apr.py (APR_BLnSym, APR_BMkSym, APR_BShSym): New.
819            Copied from importAPR and provided with documentation.
820    
821            * Extensions/importAPR/importAPR.py (APR_BLnSym, APR_BMkSym, APR_BShSym):
822            Moved to apr.py.
823            (APR_View): Added object ref 'ITheme'.
824    
825            * Thuban/Lib/fileutil.py, Thuban/UI/proj4dialog.py: Replaced string
826            split function by corresponding use of the string class method.
827    
828            * Thuban/Model/xmlwriter.py: Replaced string replace function by
829            corresponding string method.
830    
831    2003-10-29  Bernhard Herzog  <[email protected]>
832    
833            * Thuban/UI/baserenderer.py
834            (BaseRenderer.draw_shape_layer_incrementally): Speed up the
835            special case of a classification that only has the default group
836    
837    2003-10-27  Bernhard Herzog  <[email protected]>
838    
839            * po/fr.po, po/es.po: Updated translations from Daniel Calvelo
840    
841            * po/de.po: Update.
842    
843            * Thuban/UI/application.py
844            (ThubanApplication.ShowExceptionDialog): Handle translation of the
845            dialog message properly
846    
847    2003-10-27  Bernhard Herzog  <[email protected]>
848    
849            Rework how localization works so that we use wx's translation
850            functions when running Thuban as a normal application but not when
851            we don't need any UI, such as in the test suite. See the comment
852            in Thuban/__init__.py for details
853    
854            * Thuban/__init__.py (_): Add one level of indirection to make the
855            translation handling more flexible and to make it possible to use
856            either wx's translation services or not.
857            (gettext_identity, translation_function_installed)
858            (install_translation_function): New function to help with this
859    
860            * Thuban/UI/__init__.py: Install the wx specific translation
861            function if it's OK to do that
862    
863            * test/support.py (initthuban): Install a dummy translation
864            function so that importing Thuban.UI doesn't install a wx specific
865            one for which would need to import wxPython
866    
867    2003-10-27  Bernhard Herzog  <[email protected]>
868    
869            * HOWTO-Release: Source archives should be created first and the
870            binary packages should be created from the source archives.
871            There's an official debian package now so there's no need to test
872            the rpm on debian anymore
873    
874    2003-10-27  Bernhard Herzog  <[email protected]>
875    
876            Several rendering changes:
877    
878             - Render the selection into a separate bitmap so that only that
879               bitmap needs to be redrawn when the selection changes
880    
881             - Render incrementally showing previews and allowing interaction
882               before rendering is complete
883    
884             - Update the renderer interface a bit. Most parameters of
885               RenderMap are now parameters of the constructor
886    
887            * Thuban/UI/baserenderer.py (BaseRenderer.__init__): Add the map
888            and the update region as parameters. Update the doc-string
889            (BaseRenderer.render_map_incrementally): New. Generator function
890            to renders the map incrementally
891            (BaseRenderer.render_map): Remove the map argument (it's now in
892            the constructor) and simply iterate over the
893            render_map_incrementally generator to draw the map.
894            (BaseRenderer.draw_shape_layer_incrementally)
895            (BaseRenderer.draw_shape_layer): Renamed to
896            draw_shape_layer_incrementally and changed into a generator that
897            yields True every 500 shapes. Used by render_map_incrementally to
898            render shape layers incrementally
899    
900            * Thuban/UI/renderer.py (ScreenRenderer.RenderMap): Removed the
901            map and region parameters which are now in the constructor
902            (ScreenRenderer.RenderMapIncrementally): New. Public frontend for
903            the inherited render_map_incrementally.
904            (BaseRenderer.draw_shape_layer): Removed.
905            (ScreenRenderer.draw_selection_incrementally): New. The selection
906            drawing part of the removed draw_shape_layer as a generator
907            (ScreenRenderer.layer_shapes): Update because of the region
908            parameter change
909            (ExportRenderer.__init__): New. Extend the inherited constructor
910            with the destination region for the drawing
911            (ExportRenderer.RenderMap): Removed the map and region parameters
912            which are now in the constructor
913    
914            * Thuban/UI/view.py (MapCanvas.PreviewBitmap): New. Return a
915            bitmap suitable for a preview in a tool
916            (CanvasPanTool.MouseMove): Use the PreviewBitmap method to get the
917            bitmap
918            (MapPrintout.draw_on_dc): Adapt to new renderer interface
919            (MapCanvas.OnPaint): Handle drawing the selection bitmap if it
920            exists
921            (MapCanvas.OnIdle): Update the logic to deal with incremental
922            rendering and the selection bitmap
923            (MapCanvas._do_redraw): Handle the instantiation of the render
924            iterator and the redraws during rendering
925            (MapCanvas._render_iterator): New. Generator to incrementally
926            redraw both bitmaps
927            (MapCanvas.Export): Adapt to new renderer interface.
928            (MapCanvas.full_redraw): Reset the selection bitmap and the
929            renderer iterator too
930            (MapCanvas.redraw_selection): New. Force a redraw of the selection
931            bitmap
932            (MapCanvas.shape_selected): Only redraw the selection bitmap
933    
934            * test/test_baserenderer.py
935            (TestBaseRenderer.test_polygon_no_projection)
936            (TestBaseRenderer.test_raster_no_projection)
937            (TestBaseRenderer.test_point_map_projection)
938            (TestBaseRenderer.test_point_layer_and_map_projection)
939            (TestBaseRenderer.test_point_layer_projection)
940            (TestBaseRenderer.test_point_with_classification): Adapt to new
941            renderer interface
942    
943    2003-10-24  Bernhard Herzog  <[email protected]>
944    
945            * libraries/thuban/wxproj.cpp (draw_polygon_shape)
946            (point_in_polygon_shape, shape_centroid): Raise an exception if
947            the shape can't be read. Previously invalid shape ids would lead
948            to a segfault.
949    
950            * test/test_wxproj.py (TestShapeCentroid.test_invalid_shape_id):
951            New. test whether an exception is raised for invalid shape ids
952    
953    2003-10-24  Jan-Oliver Wagner <[email protected]>
954    
955            * Thuban/Model/proj.py (Projection.GetProjectedUnits): Added 'longlat'
956            as alias for 'latlong'.
957    
958            * Thuban/UI/projdialog.py (ProjFrame.__init__): Added 'longlat'
959            as alias for 'latlong'.
960    
961    2003-10-24  Jan-Oliver Wagner <[email protected]>
962    
963            * Thuban/UI/projdialog.py (ProjFrame.proj_selection_changed): Set
964            the projection even for the UnknownPanel.
965            (UnknownProjPanel.__init__): Define the text and create the textctrl
966            widget.
967            (UnknownProjPanel._DoLayout): Replaced static text widget by the
968            textctrl created in __init__.
969            (UnknownProjPanel.SetProjection): Set the text for the text ctrl
970            including the parameters of the projection.
971            
972    2003-10-24  Jan-Oliver Wagner <[email protected]>
973    
974            * Resources/Projections/epsg.proj: New. This is a list of
975            EPSG codes with parameters for proj. The list has been
976            generated using devtools/create_epsg.py based on the
977            file nad/epsg of the proj 4.4.7 package. Four projection
978            definitions have been deleted as they are not accepted by proj:
979            "CH1903+ / LV95", "Bern 1898 (Bern) / LV03C", "CH1903 / LV03"
980            and "HD72 / EOV".
981    
982    2003-10-22  Bernhard Herzog  <[email protected]>
983    
984            Some more tweaks to the projection dialog which should fix RT
985            #1886.
986    
987            * Thuban/UI/projlist.py (ProjectionList.Destroy): Unsubscribe from
988            the ProjFile's messages and call the base class methods correctly
989            (ProjectionList.SelectProjection): Set the wxLIST_STATE_FOCUSED
990            flag on the newly selected item too. Otherwise some other item is
991            focused and the first time the focus is moved with the keyboard
992            the selection moves in unexpected ways.
993    
994            * Thuban/UI/projdialog.py (ProjFrame.__init__): Do not set the
995            focus on the OK button, only on the projection list. That way the
996            list really has the focus initially
997            (ProjFrame.OnClose): Call the projection list's Destroy method to
998            make it unsubscribe all messages
999    
1000    2003-10-21  Bernhard Herzog  <[email protected]>
1001    
1002            Rework the projection dialog to fix a few bugs, including RT 2166
1003            and most of 2168
1004    
1005            * Thuban/UI/projlist.py: New. The class ProjectionList is a
1006            special wxListCtrl to show a list of projections in a more MVC
1007            fashion
1008    
1009            * Thuban/UI/projdialog.py (ProjFrame): Substantial changes
1010            throughout the class. The main change is to use the ProjectionList
1011            class instead of a normal wxListBox. Also, add an explicit
1012            "Unknown" projection to the projection choice control.
1013            (ProjPanel.__init__): Add an "unknown" ellipsoid
1014            (TMPanel.__init__, LCCPanel.__init__): Tweak the order of
1015            instantiation of the panel's controls to make the tab-order more
1016            natural
1017    
1018    2003-10-21  Bernhard Herzog  <[email protected]>
1019    
1020            * test/test_load.py (TestSingleLayer.file_contents)
1021            (TestSingleLayer.test): Add non-ascii characters to the titles of
1022            session, map and layer. This is effectively a port of the
1023            TestUnicodeStrings test in test_load_0_8.py which for some reason
1024            was only added there.
1025    
1026            * test/test_load_0_9.py (TestSingleLayer.file_contents)
1027            (TestSingleLayer.test): Same as in test_load.py: add non-ascii
1028            characters to the titles of session, map and layer,.
1029    
1030    2003-10-21  Bernhard Herzog  <[email protected]>
1031    
1032            Add EPSG projection handling to .thuban files
1033    
1034            * test/test_save.py (SaveSessionTest.dtd)
1035            (SaveSessionTest.testEmptySession)
1036            (SaveSessionTest.testLayerProjection)
1037            (SaveSessionTest.testRasterLayer)
1038            (SaveSessionTest.testClassifiedLayer)
1039            (SaveSessionTest.test_dbf_table)
1040            (SaveSessionTest.test_joined_table)
1041            (SaveSessionTest.test_save_postgis): Update to 1.0-dev namespace
1042            (SaveSessionTest.testSingleLayer): Update to 1.0-dev namespace and
1043            use a and epsg projection to test saving them
1044    
1045            * test/test_load.py (LoadSessionTest.dtd): Update to 1.0-dev
1046            namespace
1047            (TestLayerVisibility.file_contents, TestLabels.file_contents)
1048            (TestLayerProjection.file_contents)
1049            (TestRasterLayer.file_contents, TestJoinedTable.file_contents)
1050            (TestPostGISLayer.file_contents)
1051            (TestPostGISLayerPassword.file_contents)
1052            (TestLoadError.file_contents, TestLoadError.test): Update to use
1053            1.0-dev namespace
1054            (TestSingleLayer.file_contents, TestSingleLayer.test): Update to
1055            use 1.0-dev namespace and use an EPSG projection to test whether
1056            loading it works
1057    
1058            * test/test_load_0_9.py: New. Effectively a copy of test_load.py
1059            as of Thuban 0.9. These are now tests to determine whether Thuban
1060            can still read files generated by Thuban 0.9
1061    
1062            * Thuban/Model/save.py (SessionSaver.write)
1063            (SessionSaver.write_session): Use the 1.0 dtd and 1.0-dev
1064            namespace
1065            (SessionSaver.write_projection): Write the projection's epsg
1066            attribute
1067    
1068            * Thuban/Model/load.py (SessionLoader.__init__): Also accept the
1069            thuban-1.0-dev.dtd namespace
1070            (SessionLoader.check_attrs): Allow a callable object as conversion
1071            too
1072            (SessionLoader.start_projection, SessionLoader.end_projection)
1073            (SessionLoader.start_parameter): Handle the epsg attribute and
1074            rename a few instance variables to lower case
1075    
1076            * Resources/XML/thuban-1.0.dtd: New. Only difference to
1077            thuban-0.9.dtd is the epsg attribute for projections.
1078    
1079    2003-10-21  Bernhard Herzog  <[email protected]>
1080    
1081            * test/runtests.py (main): Let the user specify which tests to run
1082            on the command line
1083    
1084            * test/support.py (ThubanTestResult.getDescription): Override to
1085            give a better short description. The description can be used as a
1086            parameter to run_tests to run that particular test in isolation.
1087    
1088    2003-10-21  Frank Koormann   <[email protected]>
1089    
1090            Popup menu for legend. Scheduled for the 1.2 release this was too
1091            simple to implement: The popup menu is bound to the legend tree, while
1092            the events are hanlded by its anchestor, the legend panel. This
1093            allows reuse of all the event handlers already implemented for the
1094            legend toolbar buttons.
1095    
1096            * Thuban/UI/legend.py (LegendPanel.__init__): EVT_MENU macros
1097            to add handlers for the events issued by the popup menu.
1098            (LegendPanel._OnToggleVisibility): Handler for toggling layer
1099            visibility event
1100            (LegendPanel._OnProjection): Handler for layer projection event.
1101            (LegendTree.__init__): Added EVT_TREE_ITEM_RIGHT_CLICK
1102            (LegendTree._OnRightClick): Event handler for right click, select item
1103            and pop up menu.
1104            (LegendTree.ToggleVisibility): Toggle layer visibility
1105            (LegendTree.LayerProjection): Raise layer projection dialog for
1106            current layer.
1107    
1108    2003-10-21  Bernhard Herzog  <[email protected]>
1109    
1110            * Resources/Projections/defaults.proj: Use correct DOCTYPE
1111            declaration. The top-level element is projectionlist not projfile
1112    
1113    2003-10-20  Bernhard Herzog  <[email protected]>
1114    
1115            * Thuban/UI/projdialog.py (ProjFrame.write_proj_file): New. helper
1116            method to write a projfile and display a busy cursor and error
1117            dialogs.
1118            (ProjFrame._OnSave, ProjFrame._OnAddToList, ProjFrame._OnImport)
1119            (ProjFrame._OnExport, ProjFrame._OnRemove): Use write_proj_file
1120            (ProjFrame.__FillAvailList): Translate "<None>" too and display a
1121            busy cursor while loading the user and system prj files.
1122    
1123    2003-10-16  Bernhard Herzog  <[email protected]>
1124    
1125            * Thuban/Model/resource.py (projfile_cache): Introduce a cache for
1126            ProjFile objects
1127            (clear_proj_file_cache): New function to clear the cache. Mainly
1128            useful for use by the test suite
1129            (read_proj_file): Use the cache.
1130    
1131            * test/test_proj.py (TestProjFile): Clarify the doc-string
1132            (ProjFileReadTests): Update doc-string
1133            (ProjFileReadTests.test_get_system_proj_file): Check whether the
1134            system proj files is cached.
1135            (ProjFileLoadTestCase): New base class for the proj file tests
1136            derived from support.FileLoadTestCase to provide some common
1137            behavior.
1138            (TestLoadingProjFile)
1139            (TestLoadingProjFileWithEmptyProjectionlist.file_contents)
1140            (TestProjFileWithInvalidParameters.file_contents): Derive from
1141            ProjFileLoadTestCase
1142            (TestLoadingProjFile.test_caching): New. Test whether the cache
1143            works
1144    
1145    2003-10-16      Silke Reimer    <[email protected]>
1146    
1147            * debian/*: New directory with configuration files for building a thuban
1148              deb-package.
1149    
1150    2003-10-14  Bernhard Herzog  <[email protected]>
1151    
1152            * test/test_proj.py: Execute support.run_tests when run as
1153            __main__ so that missing unsubscribes are detected
1154            (TestProjFile.tearDown): Destroy the proj_file properly
1155    
1156    2003-10-14  Bernhard Herzog  <[email protected]>
1157    
1158            * Thuban/Model/messages.py (PROJECTION_ADDED)
1159            (PROJECTION_REPLACED, PROJECTION_REMOVED): New message types for
1160            the ProjFile objects
1161    
1162            * Thuban/Model/proj.py (ProjFile): Derive from Publisher so we can
1163            easily send messages when the projections change
1164            (ProjFile.Add, ProjFile.Remove, ProjFile.Replace): Issue messages
1165            when the change was successful
1166    
1167            * test/test_proj.py (TestProjFile.setUp): Subscribe to some of the
1168            proj file messages
1169            (TestProjFile.test_add_remove)
1170            (TestProjFile.test_remove_non_existing)
1171            (TestProjFile.test_replace)
1172            (TestProjFile.test_replace_non_existing): Test whether the right
1173            messages are sent
1174    
1175    2003-10-14  Bernhard Herzog  <[email protected]>
1176    
1177            * test/test_proj.py (TestProjFile.test): Refactor into several
1178            tests
1179            (TestProjFile.test_add_remove)
1180            (TestProjFile.test_remove_non_existing)
1181            (TestProjFile.test_replace)
1182            (TestProjFile.test_replace_non_existing): Some of the new
1183            individual test cases
1184            (TestProjFileSimple): New class for the rest of the test cases
1185            that came out of the refactoring
1186            (ProjFileTest): Derive from xmlsupport.ValidationTest so that the
1187            derived classes don't have to
1188    
1189    2003-10-13  Bernhard Herzog  <[email protected]>
1190    
1191            Add an optional EPSG code to the projection objects and extend the
1192            .proj file format accordingly.
1193    
1194            * Resources/XML/projfile.dtd (element projection): Add epsg
1195            attribute
1196    
1197            * Thuban/Model/proj.py (Projection.__init__): New parameter and
1198            instance variable epsg. Update doc-string
1199            (Projection.EPSGCode, Projection.Label): New methods to provide
1200            access to EPSG code and a label for use in dialogs
1201    
1202            * Thuban/Model/resource.py (ProjFileReader.start_projection)
1203            (ProjFileReader.end_projection, ProjFileSaver.write_projfile):
1204            Handle the epsg code attribute when reading or writing proj files
1205    
1206            * Thuban/UI/projdialog.py (ProjFrame._OnSave)
1207            (ProjFrame._OnAddToList, ProjFrame.__DoOnProjAvail)
1208            (ProjFrame.__FillAvailList): Use the projection's Label method to
1209            get the string for the list box
1210    
1211            * test/test_proj.py (TestProjection.test_label)
1212            (TestProjection.test_label_epsg)
1213            (TestProjection.test_epsgcode_for_non_epsg_projection)
1214            (TestProjection.test_epsgcode_for_real_epsg_projection): New tests
1215            for the label and EPSGCode methods
1216            (WriteProjFileTests.doTestWrite, WriteProjFileTests.test_write)
1217            (WriteProjFileTests.test_write_empty_file): Create the ProjFile
1218            objects in the test cases and put the expected contents into the
1219            test case methods too. Update doTestWrite accordingly
1220            (TestLoadingProjFile)
1221            (TestLoadingProjFileWithEmptyProjectionlist): New classes with the
1222            read tests from TestProjFile.
1223            (TestProjFile.doTestRead, TestProjFile.testRead): Removed. These
1224            tests are now in the new classes.
1225            (sample_projfile, sample_projfile_data)
1226            (sample_projfile2, sample_projfile_data2): Removed. Not used
1227            anymore.
1228            (TestProjFile.test_read_unreadable_file): No need to reset the
1229            permissions at the end anymore since we use a unique filename
1230    
1231    2003-10-13  Bernhard Herzog  <[email protected]>
1232    
1233            * test/test_proj.py: Some more refactoring of the test cases
1234            (ProjFileTest): New base class for the proj file tests.
1235            (TestProjFile): Derive from ProjFileTest
1236            (TestProjFile.test_read_unreadable_file)
1237            (TestProjFile.test_read_empty_file, TestProjFile.doTestRead): Use
1238            the new filename method to get a unique filename
1239            (TestProjFile.doTestWrite, TestProjFile.testWrite): Removed.
1240            (WriteProjFileTests): New class for proj file write tests.
1241            Contains the write test that were in TestProjFile originally.
1242    
1243    2003-10-13  Bernhard Herzog  <[email protected]>
1244    
1245            * test/test_proj.py (TestProjFile.testRead)
1246            (TestProjFile.test_read_non_existing_file)
1247            (TestProjFile.test_read_unreadable_file)
1248            (TestProjFile.test_read_empty_file): Split into several methods.
1249    
1250    2003-10-10  Bernhard Herzog  <[email protected]>
1251    
1252            * Thuban/UI/sizers.py: New file with custom sizers.
1253    
1254            * Thuban/UI/projdialog.py (ProjFrame.build_dialog): Instantiate
1255            all projection type specific panels and put them into a
1256            NotebookLikeSizer. This way the dialog doesn't change its size
1257            when a different projection is selected
1258            (ProjFrame.__init__): Rename projection_panels
1259            projection_panel_defs and reuse projection_panels for a list of
1260            the instantiated panels.
1261            (ProjFrame._show_proj_panel, ProjFrame.__DoOnProjAvail)
1262            (ProjFrame.__DoOnProjChoice): Changes due to the new handling of
1263            the panels
1264            (UnknownProjPanel._DoLayout): Place the newlines in the message
1265            differently to make the panel narrower.
1266            (TMPanel._DoLayout): Layout the parameters in one column.
1267    
1268    2003-10-10  Bernhard Herzog  <[email protected]>
1269    
1270            * Thuban/UI/projdialog.py (ProjFrame.build_dialog): New method
1271            that contains all the setup for the dialog's widgets, layout and
1272            event handling.
1273            (__): Call build_dialog to build the dialog.
1274            (ProjFrame.__set_properties, ProjFrame.__do_layout): Removed.
1275            Their functionality is now in build_dialog
1276            (ProjFrame.__VerifyButtons, ProjFrame.__VerifyButtons)
1277            (ProjFrame.__DoOnProjAvail, ProjFrame.__DoOnProjAvail)
1278            (ProjFrame.__DoOnProjChoice): Small updates due to slightly
1279            different widget names and hierarchy introduced with build_dialog.
1280    
1281    2003-10-10  Bernhard Herzog  <[email protected]>
1282    
1283            * README: Fix typo.
1284    
1285    2003-10-09  Bernhard Herzog  <[email protected]>
1286    
1287            * Thuban/Model/proj.py (ProjFile.Add): Do not check whether the
1288            projection is already in the list. This is *a lot* faster when
1289            loading files with hundreds of projections since it saves a linear
1290            search. OTOH this will allow adding the same projection to the
1291            user.proj file multiple times in the projection dialog but we'll
1292            deal with that later
1293    
1294    2003-10-09  Jan-Oliver Wagner <[email protected]>
1295    
1296            * devtools: New. Directory for developer tools that are not intended
1297            for the regular user.
1298    
1299            * devtools/create_epsg.py: New. Convert the epsg file of proj into
1300            a python .proj file.
1301    
1302    2003-10-09  Bernhard Herzog  <[email protected]>
1303    
1304            * test/test_proj.py
1305            (TestProjection.test_get_parameter_without_equals_sign): New. Test
1306            whether GetParameter handles parameters without "=" sign correctly
1307    
1308            * Thuban/Model/proj.py (Projection.GetParameter): Handle
1309            parameters that do not contain a "=". Update the doc-string
1310    
1311    2003-10-08  Bernhard Herzog  <[email protected]>
1312    
1313            * Thuban/UI/projdialog.py (ProjFrame.__set_properties): Remove the
1314            length limit on the projname text control
1315    
1316    2003-10-08  Bernhard Herzog  <[email protected]>
1317    
1318            * test/test_proj.py (TestProjection.test_get_projection_units_geo)
1319            (TestProjection.test_get_projection_units_normal): New. Tests for
1320            the Projection.GetProjectedUnits method
1321    
1322    2003-10-08  Jan-Oliver Wagner <[email protected]>
1323    
1324            * Thuban/Model/resource.py (get_user_proj_file): small bug-fix:
1325            Added missing 'val' parameter.
1326    
1327    2003-10-08  Bernhard Herzog  <[email protected]>
1328    
1329            * Thuban/UI/projdialog.py (ProjFrame.__DoOnProjAvail): When the
1330            projection type of the currently selected projection is not known,
1331            i.e. there's no panel for it, use the UnknownProjPanel
1332            (ProjFrame.__DoOnProjChoice, ProjFrame._show_proj_panel): Split
1333            the actual replacing of the proj panel into the new method
1334            _show_proj_panel.
1335            (UnknownProjPanel): Add doc-string.
1336            (UnknownProjPanel._DoLayout): Insert a newline into the text so
1337            that the panel is not so wide.
1338    
1339    2003-10-08  Bernhard Herzog  <[email protected]>
1340    
1341            * Thuban/Model/resource.py (read_proj_file): Return the warnings
1342            too. Update the doc-string
1343            (get_proj_files): Removed. It wasn't used anywhere
1344            (get_system_proj_files, get_system_proj_file): Rename to
1345            get_system_proj_file and return the ProjFile object and not a list
1346            of ProjFile objects. Update the callers.
1347            (get_user_proj_files, get_user_proj_file): Rename to
1348            get_user_proj_file return the ProjFile object and not a list of
1349            ProjFile objects. Update the callers.
1350            (ProjFileReader.__init__): New instance variable for the warnings.
1351            Rename the __pf ivar to projfile. Update the methods referring to
1352            __pf
1353            (ProjFileReader.end_projection): Catch any errors raised when
1354            instantiating the projection and record that as an error. The
1355            projection will not be in the final ProjFile object.
1356            (ProjFileReader.GetWarnings): New method to return the warnings.
1357    
1358            * Thuban/UI/projdialog.py (ProjFrame.show_warnings): New method to
1359            show the warnings from the projfile reader
1360            (ProjFrame._OnImport): Deal with any warnings returned by
1361            read_proj_file
1362            (ProjFrame.__FillAvailList): Deal with any warnings returned by
1363            get_system_proj_file or get_user_proj_file.
1364    
1365            * test/test_proj.py (TestProjFile.doTestRead): Check the warnings.
1366            (TestProjFileWithInvalidParameters.file_contents): New test cases
1367            to test whether read_proj_file handles invalid projection
1368            parameters correctly
1369            (TestProjFile.test_get_system_proj_file): New. Simple test for
1370            resource.get_system_proj_file
1371    
1372    2003-10-07  Bernhard Herzog  <[email protected]>
1373    
1374            * test/test_derivedshapestore.py
1375            (TestDerivedShapeStoreExceptions.tearDown): Clear the session
1376            properly so that the temporary directories get deleted correctly
1377    
1378    2003-10-06  Bernhard Herzog  <[email protected]>
1379    
1380            Handle the title changes in a proper MVC way.
1381    
1382            * Thuban/UI/mainwindow.py (MainWindow.__init__): Subscribe to the
1383            canvas' TITLE_CHANGED messages
1384            (MainWindow.update_title): New. Update the main window's title
1385            (MainWindow.__SetTitle): Removed. Use update_title instead.
1386            (MainWindow.SetMap): Use update_title instead of __SetTitle
1387            (MainWindow.RenameMap): Do change the window title explicitly
1388            here. That's handled in a proper MVC way now.
1389            (MainWindow.title_changed): New. Subscriber for the TITLE_CHANGED
1390            messages
1391    
1392            * Thuban/Lib/connector.py (Conduit): New class to help classes
1393            that forward messages
1394    
1395            * Thuban/UI/viewport.py: Forward the map's TITLE_CHANGED messages
1396            (ViewPort): Derive from Conduit instead of Publisher
1397            (ViewPort.Subscribe, ViewPort.Unsubscribe): Use the new base class
1398            when calling the inherited versions
1399            (ViewPort._subscribe_map, ViewPort._unsubscribe_map): New helper
1400            methods to subscribe and unsubscribe map messages
1401            (ViewPort.SetMap, ViewPort.Destroy): Use the new helper methods to
1402            handle the map subscriptions
1403            (ViewPort.Map, ViewPort.map_projection_changed)
1404            (ViewPort.layer_projection_changed): Add or update doc-strings
1405    
1406            * test/test_connector.py (TestPublisher.test_issue_simple): Fix
1407            typo
1408            (MyConduit): Helper class for the Conduit test.
1409            (TestConduit): Test cases for Conduit
1410    
1411            * test/test_connector.py: Use support.run_tests as main.
1412    
1413            * test/test_viewport.py (ViewPortTest.setUp): Also subscribe to
1414            the TITLE_CHANGED messages
1415            (ViewPortTest.test_forwarding_title_changed): New test to check
1416            whether the viewport forwards the map's TITLE_CHANGED messages
1417            (TestViewportWithPostGIS.tearDown): Call the map's Destroy method
1418            after the port's because the latter may require a still functional
1419            map.
1420    
1421    2003-10-06  Bernhard Herzog  <[email protected]>
1422    
1423            * Thuban/UI/application.py (ThubanApplication.maps_changed): Add
1424            doc-string
1425    
1426    2003-10-06  Bernhard Herzog  <[email protected]>
1427    
1428            * test/test_viewport.py (ViewPortTest.setUp)
1429            (SimpleViewPortTest.test_init_with_size): Move the test for the
1430            initial size as a constructor parameter from ViewPortTest.setUp
1431            method to a new separate test in SimpleViewPortTest.
1432    
1433    2003-10-06  Bernhard Herzog  <[email protected]>
1434    
1435            * test/test_viewport.py (MockView): New class derived from
1436            ViewPort with a mock implementation of GetTextExtent to be used in
1437            the test cases
1438            (ViewPortTest.setUp): Use MockView instead of ViewPort
1439    
1440            * Thuban/UI/viewport.py (ViewPort.GetTextExtent): Turn this method
1441            into what would be a "pure virtual function" in C++: always raise
1442            NotImplementedError. Mock implementations for test cases don't
1443            belong into the real code
1444    
1445    2003-10-02  Bernhard Herzog  <[email protected]>
1446    
1447            * test/test_layer.py (TestLayer.test_empty_layer): Explicitly
1448            close the dbf file we create so that it's contents have been
1449            written properly.
1450    
1451            * libraries/shapelib/shptree.c, libraries/shapelib/shpopen.c,
1452            libraries/shapelib/shapefil.h, libraries/shapelib/dbfopen.c:
1453            Update to shapelib 1.2.10
1454    
1455    2003-10-01  Jan-Oliver Wagner <[email protected]>
1456    
1457            * Thuban/UI/tree.py, Thuban/UI/main.py: Remove the #! line as
1458            it annoys lintian which warns about these files not being
1459            executable. The #! isn't necessary here since if you absolutely
1460            must execute them you can always say "python <filename>".
1461    
1462    2003-09-26  Bernhard Herzog  <[email protected]>
1463    
1464            * Thuban/Model/classgen.py (GenQuantiles0): Removed since it's
1465            only used in GREAT-ER but not used in Thuban itself. When GREAT-ER
1466            is ported to a newer the import will fail, so it should be noticed
1467            immediately that this function is gone.
1468            Fixes RT#1919
1469    
1470    2003-09-26  Bernhard Herzog  <[email protected]>
1471    
1472            Add a DTD for the projection files and make thuban write valid
1473            projection files
1474    
1475            * Resources/XML/projfile.dtd: New. DTD for thuban's projection
1476            files
1477    
1478            * Thuban/Model/resource.py (ProjFileSaver.write): Use
1479            'projectionlist' as the name in the document type declaration so
1480            that it matches the element type of the root element.
1481    
1482            * test/test_proj.py (sample_projfile, sample_projfile2): Use
1483            'projectionlist' as the name in the document type declaration just
1484            as it is done now in the files thuban would write
1485            (sample_projfile, sample_projfile_data): Fix spelling of
1486            "Mercator"
1487            (TestProjFile.doTestWrite): Validate the written and the expected
1488            XML data
1489            (TestProjFile): Derive from ValidationTest so that we can run xml
1490            validation tests
1491    
1492    2003-09-24  Bernhard Herzog  <[email protected]>
1493    
1494            * Thuban/UI/renderer.py (ExportRenderer.render_legend): Do not
1495            modify the list returned by map.Layers() in place since it is the
1496            actual list of layers used by the map.
1497    
1498    2003-09-23  Jan-Oliver Wagner <[email protected]>
1499    
1500            * Doc/manual/thuban-manual.xml: Added subsection to chapter
1501            Extensions to describe the extensions coming with the Thuban
1502            standard package (gns2shp and importAPR).
1503    
1504    2003-09-23  Bernhard Herzog  <[email protected]>
1505    
1506            * libraries/thuban/wxproj.cpp (project_point): if there's an
1507            inverse but no forward projection, convert to degrees after
1508            applying the inverse projection. Fixes RT#2096
1509    
1510            * test/test_wxproj.py: New. Test cases for wxproj.so. One test
1511            implicitly tests for the fix to RT#2096
1512    
1513            * test/support.py (FloatComparisonMixin.assertFloatSeqEqual):
1514            Check that the sequences have the same lengths
1515    
1516            * Resources/Projections/defaults.proj (Geographic projection): Use
1517            a much more precise value for the to_meter attribute.
1518    
1519    2003-09-22  Bernhard Herzog  <[email protected]>
1520    
1521            * test/support.py (initthuban): Make sure to unset the LANG env.
1522            var. so that tests that compare translated strings work. Solves RT
1523            #2094
1524    
1525    2003-09-22  Jan-Oliver Wagner <[email protected]>
1526    
1527            Small improvement of APR import.
1528    
1529            * Extensions/importAPR/test/test_apr.py (aprTest.test_LClass):
1530            Added tests for text-ranges.
1531    
1532            * Extensions/importAPR/apr.py (APR_LClass.GetThubanRange): Now
1533            returns a string object if the range is based on text.
1534    
1535            * Extensions/importAPR/importAPR.py (import_apr_dialog): Unified
1536            range retrieval.
1537    
1538    2003-09-22  Jan-Oliver Wagner <[email protected]>
1539    
1540            Initial version of the importAPR extension which is in
1541            experimental state.
1542    
1543            * /Extensions/importAPR/, /Extensions/importAPR/samples/,
1544            /Extensions/importAPR/test/: New directories.
1545    
1546            * /Extensions/importAPR/samples/README: New: Howto load the samples.
1547    
1548            * /Extensions/importAPR/samples/iceland.apr: New: A sample APR
1549            file which refers to the Thuban Iceland demo data.
1550    
1551            * /Extensions/importAPR/test/README: New: Howto execute the tests.
1552    
1553            * /Extensions/importAPR/test/test_apr.py: New: Tests for APR classes.
1554    
1555            * /Extensions/importAPR/apr.py: New: Classes for ArcView Objects
1556            as in '.apr'-files.
1557    
1558            * /Extensions/importAPR/odb.py: New: Classes for generic ArcView
1559            ODB Objects as in '.apr', '.avl' and other files.
1560    
1561            * /Extensions/importAPR/__init__.py: New: Init to make this
1562            directory a package.
1563    
1564            * /Extensions/importAPR/importAPR.py: New: Import a ArcView
1565            project file (.apr) and convert it to Thuban.
1566    
1567    2003-09-22  Jan-Oliver Wagner <[email protected]>
1568    
1569            * Extensions/gns2shp.gns2shp.py: The main module of gns2shp.
1570    
1571    2003-09-19  Jan-Oliver Wagner <[email protected]>
1572    
1573            * Doc/manual/thuban-manual.xml: Extended section 'Installation'
1574            with description on RPM installation and RPM binary package
1575            creation.
1576    
1577    2003-09-18  Bernhard Herzog  <[email protected]>
1578    
1579            * setup.py (data_files): Only add the mo files if the Locales
1580            directory actually exists, so that setup.py works with a fresh CVS
1581            checkout
1582    
1583    2003-09-12  Jan-Oliver Wagner <[email protected]>
1584    
1585            * Examples/simple_extensions/simple_tool.py: bugfix: Tool is now
1586            in viewport, not anymore in view
1587    
1588    2003-09-04  Jan-Oliver Wagner <[email protected]>
1589    
1590            Introducing first Extension (gns2shp).
1591    
1592            * Extensions, Extensions/gns2shp, Extensions/gns2shp/test: New.
1593    
1594            * Extensions/__init__.py: New. init to make this dir a package.
1595    
1596            * Extensions/gns2shp/__init__.py: New. init to make this dir a package.
1597    
1598            * Extensions/gns2shp/test/README: New. some info on this test directory.
1599    
1600            * Extensions/gns2shp/test/ls.txt: New. test data set (Liechtenstein).
1601    
1602            * Extensions/gns2shp/test/test_gns2shp.py: New. Test for correct creation
1603            of Shapefile from GNS text file format
1604    
1605    2003-09-03  Jan-Oliver Wagner <[email protected]>
1606    
1607            Fix/workaround for bug #2019:
1608            https://intevation.de/rt/webrt?serial_num=2019
1609    
1610            * Thuban/UI/identifyview.py (IdentifyView.ID_STOP): New.
1611            (IdentifyView.__init__): Added another button that allows to
1612            stop the identify mode.
1613            (IdentifyView.OnStop): New. Stops the identify mode.
1614    
1615    2003-09-03  Jan-Oliver Wagner <[email protected]>
1616    
1617            Introducing a new exception dialog that allows to exit the
1618            application immediately.
1619            This fixes bug #2060: https://intevation.de/rt/webrt?serial_num=2060
1620    
1621            * Thuban/UI/exceptiondialog.py: New. A special exception dialog.
1622    
1623            * Thuban/UI/application.py (ThubanApplication.ShowExceptionDialog):
1624            Made strings available to translations. Exchanged the simple
1625            ScrolledMessageDialog by the new ExceptionDialog.
1626    
1627    2003-09-01  Bernhard Herzog  <[email protected]>
1628    
1629            * NEWS: New. Summary of changes and release notes.
1630    
1631            * MANIFEST.in: Add NEWS
1632    
1633    2003-09-01  Bernhard Herzog  <[email protected]>
1634    
1635            * MANIFEST.in: Correct the include statement for the mo-files and
1636            include the documentation too.
1637    
1638            * setup.py (data_files): Add the .mo files
1639            (setup call): Up to version 0.9.0
1640    
1641    2003-09-01  Bernhard Herzog  <[email protected]>
1642    
1643            * Thuban/UI/dbdialog.py (ChooseDBTableDialog.__init__): Change the
1644            parameter list to just parent and session
1645            (ChooseDBTableDialog.__set_properties): Removed. Setting the
1646            selection of empty list boxes is not allowed (and produces C++
1647            assertion errors) and the rest of the setup is better done in
1648            __init__ anyway.
1649            (ChooseDBTableDialog.OnCancel, ChooseDBTableDialog.OnOK)
1650            (ChooseDBTableDialog.OnLBDClick, DBDialog.OnOK): Use the Python
1651            builtins True/False for booleans to avoid warnings from wxPython
1652    
1653            * Thuban/UI/mainwindow.py (MainWindow.AddDBLayer): Adapt to new
1654            ChooseDBTableDialog constructor parameters.
1655    
1656    2003-09-01  Bernhard Herzog  <[email protected]>
1657    
1658            * Thuban/Model/postgisdb.py
1659            (PostGISTable): Extend doc-string
1660            (PostGISTable._fetch_table_information): Set the column index
1661            correctly, pretending ignored columns don't exist.
1662    
1663            * test/test_postgis_db.py (TestPostGISIgnoredColumns): New tests
1664            for postgis tables with data types not yet supported by thuban.
1665    
1666    2003-08-29  Bernhard Herzog  <[email protected]>
1667    
1668            * HOWTO-Release: Tweak item about running the tests.
1669    
1670    2003-08-29  Jan-Oliver Wagner <[email protected]>
1671    
1672            * /Doc/manual/thuban-manual.xml: updated to version 1.0pre2.
1673    
1674    2003-08-29  Bernhard Herzog  <[email protected]>
1675    
1676            Add some missing parameters to projections. Proj complains about
1677            them on windows but for some reason not on Linux.
1678    
1679            * test/test_save.py (SaveSessionTest.testLayerProjection): Add
1680            missing required projection parameters
1681    
1682            * test/test_proj.py (TestProjFile.test): Add missing required
1683            projection parameters
1684    
1685            * test/test_load_0_8.py (TestLayerProjection.file_contents)
1686            (TestLayerProjection.test): Add missing required projection
1687            parameters and tests for them
1688    
1689            * test/test_load.py (TestLayerProjection.file_contents)
1690            (TestLayerProjection.test): Add missing required projection
1691            parameters and tests for them
1692    
1693            * test/test_layer.py (TestLayer.test_base_layer): Add missing
1694            required projection parameters
1695    
1696    2003-08-29  Bernhard Herzog  <[email protected]>
1697    
1698            * libraries/pyprojection/Projection.i: Use pj_get_errno_ref to
1699            access the pj_errno because directly accessing pj_errno doesn't
1700            work on windows if the proj library is in a DLL
1701    
1702            * libraries/pyprojection/Projection_wrap.c: Update from Projection.i
1703    
1704    2003-08-28  Bernhard Herzog  <[email protected]>
1705    
1706            * test/test_proj.py: Import things from Thuban after calling
1707            initthuban
1708    
1709            * test/test_load.py (LoadSessionTest.filenames): New class
1710            variable with the filename attributes to normalize
1711            (LoadSessionTest.check_format): Pass self.filenames to
1712            sax_eventlist to normalize the filename attributes
1713    
1714            * test/xmlsupport.py: Add cvs keywords
1715            (SaxEventLister.__init__): New parameter filenames which indicates
1716            attributes that contain filenames
1717            (SaxEventLister.startElementNS): Normalize the filename attributes
1718            with os.path.normpath
1719            (sax_eventlist): New parameter filenames to pass through to
1720            SaxEventLister
1721    
1722            * test/test_derivedshapestore.py: Make this file callable as a
1723            program to execute the tests
1724            (TestDerivedShapeStoreExceptions.test_table_with_wrong_size): Bind
1725            the session to self.session so that it gets destroyed properly
1726    
1727            * test/test_layer.py (TestLayer.tearDown): Call the session's
1728            Destroy method
1729    
1730            * test/test_map.py (TestMapBase.tearDown): Destroy self.session
1731            too if it exists
1732            (TestMapAddLayer.test_add_layer): Bind the session to self.session
1733            so that it gets destroyed properly
1734    
1735            * test/postgissupport.py (reason_for_not_running_tests): Add a
1736            test for the existence of popen2.Popen4.
1737    
1738            * test/test_save.py (SaveSessionTest.tearDown): New. Provide a
1739            reliable way to destroy the sessions created in the test cases
1740            (SaveSessionTest.test_dbf_table): Bind the session to self.session
1741            so that it gets destroyed properly
1742            (SaveSessionTest.testLayerProjection): Bind the session to
1743            self.session so that it gets destroyed properly
1744    
1745            * test/test_session.py (UnreferencedTablesTests.tearDown): Make
1746            sure that the session is destroyed properly
1747    
1748            * test/test_shapefilestore.py: Make this callable as a program to
1749            execute the tests
1750    
1751            * test/test_scalebar.py: Remove unnecessary import of _ from
1752            Thuban
1753    
1754            * test/support.py (print_garbage_information): Call initthuban
1755            here because it may be called indirectly from test cases that test
1756            test support modules which do not use anything from thuban itself
1757            (ThubanTestProgram.runTests): Remove unnecessary debug print
1758    
1759    2003-08-28  Bernhard Herzog  <[email protected]>
1760    
1761            * Thuban/version.py (longversion): Update to 0.9
1762    
1763            * Thuban/UI/mainwindow.py: Remove some unused imports
1764    
1765            * README: Add section about required additional software. Add date
1766            and revision CVS keywords
1767    
1768            * HOWTO-Release: Add item about the translations. Add date and
1769            revision CVs keywords and change formatting to match README a bit
1770            better
1771    
1772            * po/de.po: Update for 0.9
1773    
1774            * test/README: Tweak the wording a little because many tests are
1775            not really unittest.
1776    
1777    2003-08-27  Bernhard Herzog  <[email protected]>
1778    
1779            As preparation for the 0.9 release, switch thuban files to a
1780            non-dev namespace
1781    
1782            * Thuban/Model/save.py (SessionSaver.write_session): Write files
1783            with the http://thuban.intevation.org/dtds/thuban-0.9.dtd
1784            namespace
1785    
1786            * Thuban/Model/load.py (SessionLoader.__init__): Accept the
1787            http://thuban.intevation.org/dtds/thuban-0.9.dtd namespace too
1788    
1789            * test/test_save.py (SaveSessionTest.dtd)
1790            (SaveSessionTest.testEmptySession)
1791            (SaveSessionTest.testSingleLayer)
1792            (SaveSessionTest.testLayerProjection)
1793            (SaveSessionTest.testRasterLayer)
1794            (SaveSessionTest.testClassifiedLayer)
1795            (SaveSessionTest.test_dbf_table)
1796            (SaveSessionTest.test_joined_table)
1797            (SaveSessionTest.test_save_postgis): Update for new namespace
1798    
1799            * test/test_load.py (LoadSessionTest.dtd, TestSingleLayer)
1800            (TestLayerVisibility.file_contents, TestLabels.file_contents)
1801            (TestLayerProjection.file_contents)
1802            (TestRasterLayer.file_contents, TestJoinedTable.file_contents)
1803            (TestPostGISLayer.file_contents)
1804            (TestPostGISLayerPassword.file_contents)
1805            (TestLoadError.file_contents, TestLoadError.test): Update for new
1806            namespace
1807    
1808    2003-08-27  Bernhard Herzog  <[email protected]>
1809    
1810            Make the table interface distinguish between row ids (an integer
1811            that uniquely identifies a row) and row ordinals (a simple row
1812            count from 0 to NumRows() - 1)
1813    
1814            * Thuban/Model/postgisdb.py (PostGISTable.RowIdToOrdinal)
1815            (PostGISTable.RowOrdinalToId): New methods to conver between row
1816            ids and row ordinals
1817            (PostGISTable.ReadRowAsDict, PostGISTable.ReadValue): New keyword
1818            parameter row_is_ordinal to indicate whether the row parameter is
1819            the row id or the ordinal
1820    
1821            * Thuban/Model/transientdb.py (TransientTableBase.RowIdToOrdinal)
1822            (TransientTableBase.RowOrdinalToId)
1823            (AutoTransientTable.RowIdToOrdinal)
1824            (AutoTransientTable.RowOrdinalToId): Same new methods as in
1825            PostGISTable.
1826            (TransientTableBase.ReadRowAsDict, TransientTableBase.ReadValue)
1827            (AutoTransientTable.ReadRowAsDict, AutoTransientTable.ReadValue):
1828            Same new parameter as in PostGISTable.
1829    
1830            * Thuban/Model/table.py (DBFTable.RowIdToOrdinal)
1831            (DBFTable.RowOrdinalToId, MemoryTable.RowIdToOrdinal)
1832            (MemoryTable.RowOrdinalToId): Same new methods as in PostGISTable.
1833            (DBFTable.ReadValue, DBFTable.ReadRowAsDict)
1834            (MemoryTable.ReadValue, MemoryTable.ReadRowAsDict): Same new
1835            parameter as in PostGISTable.
1836    
1837            * Thuban/UI/tableview.py (DataTable.RowIdToOrdinal)
1838            (DataTable.RowOrdinalToId): New methods to convert between row ids
1839            and row ordinals.
1840            (TableGrid.SelectRowById): New method to select a row based on its
1841            ID as opposed to its ordinal
1842            (DataTable.GetValue, TableGrid.OnRangeSelect)
1843            (TableGrid.OnSelectCell, LayerTableGrid.select_shapes)
1844            (QueryTableFrame.OnQuery, QueryTableFrame.get_selected)
1845            (LayerTableFrame.__init__): Convert between row ids and row
1846            ordinals as appropriate
1847    
1848            * test/postgissupport.py (PostGISDatabase.__init__): Add
1849            doc-string.
1850            (PostGISDatabase.initdb): The optional third item in a tuple in
1851            tables is now a (key, value) list with additional arguments to
1852            pass to upload_shapefile
1853            (upload_shapefile): New parameter gid_offset to allow gids that
1854            are not the same as the shapeids in the shapefile
1855            (PostgreSQLServer.get_default_static_data_db): Use the new
1856            gid_offset to make the gids in landmarks 1000 higher than the
1857            shapeids in the shapefile
1858    
1859            * test/test_viewport.py
1860            (TestViewportWithPostGIS.test_find_shape_at_point): Adapt to the
1861            new shapeids in the landmarks table
1862    
1863            * test/test_transientdb.py
1864            (TestTransientTable.run_iceland_political_tests)
1865            (TestTransientTable.test_transient_joined_table): Add tests for
1866            the new table methods and new keywords arguments.
1867    
1868            * test/test_postgis_db.py
1869            (TestPostGISTable.test_read_row_as_dict_row_count_mode)
1870            (TestPostGISTable.test_read_value_row_count_mode)
1871            (TestPostGISTable.test_row_id_to_ordinal)
1872            (TestPostGISTable.test_row_oridnal_to_id): New test for the new
1873            table methods and the new arguments
1874            (TestPostGISShapestorePoint.test_shapes_in_region)
1875            (TestPostGISShapestorePoint.test_shape_raw_data)
1876            (TestPostGISShapestorePoint.test_shape_points)
1877            (TestPostGISShapestorePoint.test_shape_shapeid)
1878            (TestPostGISShapestorePoint.test_all_shapes)
1879            (TestPostGISTable.test_simple_query)
1880            (TestPostGISTable.test_simple_query)
1881            (TestPostGISTable.test_simple_query)
1882            (TestPostGISTable.test_read_value)
1883            (TestPostGISTable.test_read_row_as_dict): Adapt to the new
1884            shapeids in the landmarks table
1885    
1886            * test/test_memory_table.py
1887            (TestMemoryTable.test_read_row_as_dict_row_count_mode)
1888            (TestMemoryTable.test_read_value_row_count_mode)
1889            (TestMemoryTable.test_row_id_to_ordinal)
1890            (TestMemoryTable.test_row_oridnal_to_id): New test for the new
1891            table methods and the new arguments
1892    
1893            * test/test_dbf_table.py
1894            (TestDBFTable.test_read_row_as_dict_row_count_mode)
1895            (TestDBFTable.test_read_value_row_count_mode)
1896            (TestDBFTable.test_row_id_to_ordinal)
1897            (TestDBFTable.test_row_oridnal_to_id): New test for the new table
1898            methods and the new arguments
1899    
1900    2003-08-26  Bernhard Herzog  <[email protected]>
1901    
1902            * Thuban/Model/postgisdb.py (PostGISShapeStore.BoundingBox): Use a
1903            more postgis specific but much faster method to get the bounding
1904            box
1905    
1906    2003-08-26  Bernhard Herzog  <[email protected]>
1907    
1908            * Thuban/Model/postgisdb.py (PostGISTable.Title)
1909            (PostGISShapeStore.AllShapes): Add these missing methods.
1910            (PostGISShapeStore.ShapesInRegion): No need to raise
1911            StopIteration. We can simply return
1912    
1913            * test/test_postgis_db.py (TestPostGISTable.test_title)
1914            (TestPostGISShapestorePoint.test_all_shapes): New tests for the
1915            new methods
1916    
1917    2003-08-25  Bernhard Herzog  <[email protected]>
1918    
1919            * Thuban/Model/postgisdb.py (shapetype_map): Add MUTLIPOLYGON.
1920    
1921            * test/test_postgis_db.py (PolygonTests): New class containing
1922            those tests from TestPostGISShapestorePolygon that can also be
1923            used to test MUTLIPOLYGON tables
1924            (TestPostGISShapestorePolygon): Most tests are now in PolygonTests
1925            so derive from that
1926            (TestPostGISShapestoreMultiPolygon): New class with tests for
1927            MUTLIPOLYGON tables
1928    
1929            * test/postgissupport.py (PostGISDatabase.initdb): Allow the
1930            tables argument to have tuples with three items to override the
1931            WKT type used.
1932            (PostgreSQLServer.get_default_static_data_db): Use the above to
1933            create a polygon table with MUTLIPOLYGONs
1934            (point_to_wkt, coords_to_point, polygon_to_wkt, coords_to_polygon)
1935            (arc_to_wkt, coords_to_multilinestring): Rename from *_to_wkt to
1936            coords_to*
1937            (coords_to_multipolygon): New. Convert to MUTLIPOLYGON
1938            (wkt_converter): New. Map WKT types to converters
1939            (upload_shapefile): New parameter force_wkt_type to use a
1940            different WKT type than the default
1941    
1942    2003-08-25  Bernhard Herzog  <[email protected]>
1943    
1944            * Thuban/UI/application.py
1945            (ThubanApplication.run_db_param_dialog): New. Suitable as a
1946            db_connection_callback. Main difference is that the dialog run
1947            from this method doesn't have a parent so it can be used even when
1948            there is no main window
1949            (ThubanApplication.OpenSession): Use self.run_db_param_dialog if
1950            no db_connection_callback was given. This way the dialog pops up
1951            even when the .thuban file was given as a command line parameter.
1952    
1953    2003-08-25  Bernhard Herzog  <[email protected]>
1954    
1955            * Thuban/UI/view.py (MapCanvas.OnLeftUp): Release the the mouse
1956            before calling MouseLeftUp. MouseLeftUp may pop up modal dialogs
1957            which leads to an effectively frozen X session because the user
1958            can only interact with the dialog but the mouse is still grabbed
1959            by the canvas.
1960            Also, call the tool's Hide method before MouseLeftUp because
1961            MouseLeftUp may change the tool's coordinates.
1962    
1963    2003-08-25  Bernhard Herzog  <[email protected]>
1964    
1965            * Thuban/UI/application.py (ThubanApplication.OpenSession): Catch
1966            LoadCancelled exceptions and handle them by returning immediately.
1967    
1968    2003-08-25  Bernhard Herzog  <[email protected]>
1969    
1970            GUI part of loading sessions with postgis connections which may
1971            require user interaction to get passwords or updated parameters
1972    
1973            * Thuban/UI/dbdialog.py (DBDialog): Reimplement to make it look a
1974            bit nucer and be more generic.
1975            (DBFrame.OnAdd): Adapt to new DBDialog interface
1976    
1977            * Thuban/UI/application.py (ThubanApplication.OpenSession): New
1978            optional parameter db_connection_callback which is passed to
1979            load_session.
1980    
1981            * Thuban/UI/mainwindow.py (MainWindow.run_db_param_dialog): New.
1982            Suitable as a db_connection_callback
1983            (MainWindow.OpenSession): Use self.run_db_param_dialog as the
1984            db_connection_callback of the application's OpenSession method
1985    
1986    
1987    2003-08-25  Bernhard Herzog  <[email protected]>
1988    
1989            Basic loading of sessions containing postgis connections:
1990    
1991            * Thuban/Model/load.py (LoadError): Add doc-string
1992            (LoadCancelled): New exception class to indicate a cancelled load
1993            (SessionLoader.__init__): Add the db_connection_callback parameter
1994            which will be used by the loader to get updated parameters and a
1995            password for a database connection
1996            (SessionLoader.__init__): Add the new XML elements to the
1997            dispatchers dictionary
1998            (SessionLoader.check_attrs): Two new conversions, ascii to convert
1999            to a byte-string object and idref as a generic id reference
2000            (SessionLoader.start_dbconnection)
2001            (SessionLoader.start_dbshapesource): New. Handlers for the new XML
2002            elements
2003            (load_session): Add the db_connection_callback to pass through the
2004            SessionLoader
2005    
2006            * test/test_load.py (TestPostGISLayer, TestPostGISLayerPassword):
2007            New classes to test loading of sessions with postgis database
2008            connections.
2009    
2010    2003-08-25  Bernhard Herzog  <[email protected]>
2011    
2012            * Thuban/UI/mainwindow.py (__ThubanVersion__): Remove this and
2013            replace it and the comment with __BuildDate__ by the Source: and
2014            Id: cvs keywords as used in the other files.
2015    
2016    2003-08-25  Bernhard Herzog  <[email protected]>
2017    
2018            * Thuban/Model/load.py (SessionLoader.check_attrs): Raise a
2019            LoadError when a required attribute is missing. The code used to
2020            be commented out for some reason, but probably should have been
2021            active.
2022    
2023            * test/test_load.py (TestLoadError.test): Test the message in the
2024            LoadError too to make sure it really is about the missing
2025            attribute
2026    
2027    2003-08-22  Bernhard Herzog  <[email protected]>
2028    
2029            * test/test_save.py (SaveSessionTest.test_dbf_table)
2030            (SaveSessionTest.test_joined_table): Add XML validation tests.
2031    
2032    2003-08-22  Bernhard Herzog  <[email protected]>
2033    
2034            Implement saving a session with a postgis connection
2035    
2036            * Resources/XML/thuban-0.9.dtd (dbconnection, dbshapesource) New
2037            elements for database connections and shapestores using db
2038            connections
2039            (session): Add the dbconnections to the content model
2040    
2041            * Thuban/Model/save.py (SessionSaver.write_db_connections): New.
2042            Write the db connections
2043            (SessionSaver.write_session): Call write_db_connections to write
2044            the connection before the data sources
2045            (SessionSaver.write_data_containers): Handle postgis shapestores
2046    
2047            * test/test_save.py (SaveSessionTest.thubanids)
2048            (SaveSessionTest.thubanidrefs): Update for new DTD
2049            (SaveSessionTest.test_save_postgis): New. Test saving a session
2050            with postgis connections
2051    
2052            * Thuban/Model/postgisdb.py (PostGISTable.DBConnection)
2053            (PostGISTable.TableName): New accessor methods for the connection
2054            and table name
2055    
2056            * test/test_postgis_db.py (TestPostGISTable.test_dbconn)
2057            (TestPostGISTable.test_dbname): New methods to test the new
2058            PostGISConnection methods
2059    
2060    2003-08-22  Bernhard Herzog  <[email protected]>
2061    
2062            * Thuban/Model/postgisdb.py (ConnectionError): New exception class
2063            for exceptions occurring when establishing a Database connection
2064            (PostGISConnection.connect): Catch psycopg.OperationalError during
2065            connects and raise ConnectionError.
2066    
2067            * test/test_postgis_db.py (TestPostgisDBExceptions): New class for
2068            tests for database exceptions
2069    
2070    2003-08-22  Bernhard Herzog  <[email protected]>
2071    
2072            Prepare the test suite for tests with required authentication
2073    
2074            * test/postgissupport.py (PostgreSQLServer.__init__): Add instance
2075            variables with two predefined users/passwords, one for the admin
2076            and one for a non-privileged user.
2077            (PostgreSQLServer.createdb): Pass the admin name to initdb and add
2078            the non-privileged user to the database and set the admin password
2079            (PostgreSQLServer.wait_for_postmaster): Use the admin user name.
2080            Better error reporting
2081            (PostgreSQLServer.connection_params)
2082            (PostgreSQLServer.connection_string): New methods to return
2083            information about how to connect to the server
2084            (PostgreSQLServer.execute_sql): New. Convenience method to execute
2085            SQL statements
2086            (PostgreSQLServer.require_authentication): Toggle whether the
2087            server requires authentication
2088            (PostgreSQLServer.create_user, PostgreSQLServer.alter_user): New.
2089            Add or alter users
2090            (PostGISDatabase.initdb): Pass the admin name one the
2091            subprocesses' command lines. Grant select rights on
2092            geometry_columns to everybody.
2093            (upload_shapefile): Use the admin name and password when
2094            connecting. Grant select rights on the new table to everybody.
2095    
2096            * test/test_viewport.py (TestViewportWithPostGIS.setUp): Use the
2097            server's new methods to get the connection parameters.
2098    
2099            * test/test_postgis_session.py (TestSessionWithPostGIS.setUp)
2100            (TestSessionWithPostGIS.test_remove_dbconn_exception): Use the
2101            server's new methods to get the connection parameters.
2102    
2103            * test/test_postgis_db.py
2104            (TestPostGISConnection.test_gis_tables_empty)
2105            (TestPostGISConnection.test_gis_tables_non_empty)
2106            (PostGISStaticTests.setUp): Use the server's new methods to get
2107            the connection parameters.
2108    
2109    2003-08-22  Bernhard Herzog  <[email protected]>
2110    
2111            * Thuban/UI/about.py (About.__init__): Add the psycopg version.
2112    
2113            * Thuban/version.py: Add psycopg version
2114    
2115            * Thuban/Model/postgisdb.py (psycopg_version): New. Return the
2116            version of the psycopg module
2117    
2118    2003-08-22  Bernhard Herzog  <[email protected]>
2119    
2120            * Thuban/UI/dbdialog.py (DBPwdDlg): Removed because it's not used.
2121            (DBFrame.OnEdit): Removed because it's not used and wouldn't work
2122            at the moment. The functionality should probably be implemented
2123            some time, though.
2124            (DBFrame.OnRemove): Display a message if the connection can't be
2125            removed because it's still in use.
2126    
2127    2003-08-22  Jan-Oliver Wagner <[email protected]>
2128    
2129            * Thuban/UI/about.py (About.__init__): split up the huge about
2130            text into elements/lists for easier translation. This fixes bug
2131            https://intevation.de/rt/webrt?serial_num=2058
2132            Also, made some forgotten string available for the i18n.
2133    
2134    2003-08-21  Bernhard Herzog  <[email protected]>
2135    
2136            Make postgis support really optional including insensitive menu
2137            items.
2138    
2139            * Thuban/Model/postgisdb.py (has_postgis_support): New. Return
2140            whether the postgis is supported.
2141    
2142            * Thuban/UI/dbdialog.py: Put the psycopg import into try..except
2143            to make postgis support optional
2144    
2145            * Thuban/UI/mainwindow.py (_has_postgis_support): New. Context
2146            version of Thuban.Model.postgisdb.has_postgis_support
2147            (database_management command): Make it only sensitive if postgis
2148            is supported.
2149    
2150    2003-08-21  Jan-Oliver Wagner <[email protected]>
2151    
2152            * Doc/manual/thuban-manual.xml: Added CVS revision for rev-history.
2153            (section Adding and Removing Layers): Added text and described
2154            multi-selection.
2155            (chapter Extensions): New.
2156    
2157    2003-08-21  Jan-Oliver Wagner <[email protected]>
2158    
2159            * Thuban/UI/mainwindow.py (MainWindow.AddLayer): Changed dialog
2160            settings to allow multiple files to load into the map.
2161            Also reduced selection to *.shp as a default.
2162    
2163    2003-08-20  Bernhard Herzog  <[email protected]>
2164    
2165            Add dialogs and commands to open database connections and add
2166            database layers.
2167    
2168            * Thuban/UI/mainwindow.py (MainWindow.DatabaseManagement): New
2169            method to open the database connection management dialog
2170            (MainWindow.AddDBLayer): New method to add a layer from a database
2171            (_has_dbconnections): New helper function to use for sensitivity
2172            (database_management command, layer_add_db command): New commands
2173            that call the above new methods.
2174            (main_menu): Add the new commands to the menu.
2175    
2176            * Thuban/Model/postgisdb.py (PostGISConnection.__init__)
2177            (PostGISConnection.connect): Establish the actual connection in a
2178            separate method and call it in __init__. This makes it easier to
2179            override the behavior in test cases
2180            (PostGISConnection.BriefDescription): New method to return a brief
2181            description for use in dialogs.
2182    
2183            * test/test_postgis_db.py (NonConnection): DB connection that
2184            doesn't actually connect
2185            (TestBriefDescription): New class with tests for the new
2186            BriefDescription method
2187    
2188    2003-08-19  Jan-Oliver Wagner <[email protected]>
2189    
2190            Moved anything from extensions to libraries.
2191    
2192            * libraries: New.
2193    
2194            * libraries/ pyprojection, pyshapelib, shapelib, thuban: New.
2195    
2196            * libraries/pyprojection/ LICENSE, MANIFEST.in, Projection.i,
2197            Projection.py, Projection_wrap.c, setup.py, swighelp.txt: These files have
2198            been moved here from thuban/extensions/pyprojection/
2199            See there in the Attic for the older history.
2200    
2201            * libraries/pyshapelib/ COPYING, ChangeLog, NEWS, README, dbflib.i,
2202            dbflib.py, dbflib_wrap.c, pyshapelib_api.h, pytest.py, setup.py,
2203            shapelib.i, shapelib.py, shapelib_wrap.c, shptreemodule.c: These files
2204            have been moved here from thuban/extensions/pyshapelib/
2205            See there in the Attic for the older history.
2206    
2207            * libraries/shapelib/ dbfopen.c, shapefil.h, shpopen.c, shptree.c: These
2208            files have been moved here from thuban/extensions/shapelib/
2209            See there in the Attic for the older history.
2210    
2211            * libraries/thuban/ bmpdataset.cpp, cpl_mfile.cpp, cpl_mfile.h,
2212            gdalwarp.cpp, wxproj.cpp: These files have been moved here from
2213            thuban/extensions/thuban/
2214            See there in the Attic for the older history.
2215    
2216            * MANIFEST.in, setup.cfg, setup.py: renamed extensions to libraries.
2217    
2218            * extensions/thuban/ bmpdataset.cpp, cpl_mfile.cpp, cpl_mfile.h,
2219            gdalwarp.cpp, wxproj.cpp: Moved to libraries/thuban.
2220    
2221            * extensions/shapelib/ dbfopen.c, shapefil.h, shpopen.c, shptree.c:
2222            Moved to libraries/shapelib.
2223    
2224            * extensions/pyshapelib/ COPYING, NEWS, dbflib.py, pytest.py,
2225            shapelib.py, README, dbflib_wrap.c, setup.py, shapelib_wrap.c,
2226            ChangeLog, dbflib.i, pyshapelib_api.h, shapelib.i, shptreemodule.c:
2227            Moved to libraries/pyshapelib.
2228    
2229            * extensions/pyprojection/ MANIFEST.in, Projection.py, setup.py,
2230            LICENSE, Projection.i, Projection_wrap.c, swighelp.txt:
2231            Moved to libraries/pyprojection.
2232    
2233            * extensions/ pyprojection, pyshapelib, shapelib, thuban: Removed.
2234    
2235            * extensions: Removed.
2236    
2237    2003-08-19  Bernhard Herzog  <[email protected]>
2238    
2239            * test/test_viewport.py (ViewPortTest): We don't use the
2240            facilities of FileTestMixin so don't derive from it.
2241            (TestViewportWithPostGIS): New class with tests for using a
2242            viewport on a map with postgis layers.
2243    
2244    2003-08-19  Bernhard Herzog  <[email protected]>
2245    
2246            Add the db connection management to the session.
2247    
2248            * Thuban/Model/session.py (Session.__init__): New instance
2249            variable db_connections
2250            (Session.AddDBConnection, Session.DBConnections)
2251            (Session.HasDBConnections, Session.CanRemoveDBConnection)
2252            (Session.RemoveDBConnection): New methods to manage and query the
2253            db connections managed by the session
2254            (Session.OpenDBShapeStore): New method to open a shapestore from a
2255            db connection
2256    
2257            * Thuban/Model/messages.py (DBCONN_REMOVED, DBCONN_ADDED): New
2258            messages for the db connection handling in the session
2259    
2260            * test/test_postgis_session.py: New. test cases for the session's
2261            db connection handling with postgis connections
2262    
2263    2003-08-19  Bernhard Herzog  <[email protected]>
2264    
2265            Add very basic postgis database support and the corresponding test
2266            cases. The test cases require a PostgreSQL + postgis installation
2267            but no existing database. The database will be created
2268            automatically by the test cases
2269    
2270            * test/README: Add note about skipped tests and the requirements
2271            of the postgis tests.
2272    
2273            * Thuban/Model/postgisdb.py: New. Basic postgis database support.
2274    
2275            * test/test_postgis_db.py: New. Test cases for the postgis
2276            support.
2277    
2278            * Thuban/Model/wellknowntext.py: New. Parser for well-known-text
2279            format
2280    
2281            * test/test_wellknowntext.py: New. Test cases for the
2282            wellknowntext parser
2283    
2284            * test/postgissupport.py: New. Support module for tests involving
2285            a postgis database.
2286    
2287            * test/support.py (execute_as_testsuite): Shut down the postmaster
2288            if it's still running after the tests
2289    
2290            * Thuban/Model/data.py (RAW_WKT): New constant for raw data in
2291            well known text format
2292    
2293    2003-08-19  Jan-Oliver Wagner <[email protected]>
2294    
2295            * Examples/simple_extensions/hello_world.py: New. Raises a Hello World
2296            message dialog.
2297    
2298    2003-08-18  Bernhard Herzog  <[email protected]>
2299    
2300            * test/support.py (ThubanTestResult.printErrors): Indent the
2301            reason for the skips in the output to make it a bit more readable.
2302            (execute_as_testsuite): New helper function to run a test suite
2303            and print some more information.
2304            (run_tests): Use execute_as_testsuite to run the tests
2305    
2306            * test/runtests.py (main): Use execute_as_testsuite to run the
2307            tests
2308    
2309    2003-08-18  Bernhard Herzog  <[email protected]>
2310    
2311            Fix some bugs in Thuban and the test suite that were uncovered by
2312            changes introduced in Python 2.3:
2313    
2314            * Thuban/Model/table.py (DBFTable.__init__): Make sure the
2315            filename is an absolute name
2316    
2317            * Thuban/Model/layer.py (RasterLayer.__init__): Make sure the
2318            filename is an absolute name
2319    
2320            * test/test_save.py (SaveSessionTest.testRasterLayer): Use a
2321            unique filename to save to and use the correct relative filename
2322            in the expected output.
2323            (SaveSessionTest.test_dbf_table): Use the correct relative
2324            filename in the expected output.
2325    
2326            * test/test_layer.py (TestLayer.test_raster_layer): Update the
2327            test to check whether the filename is absolute.
2328    
2329    2003-08-18  Jan-Oliver Wagner <[email protected]>
2330    
2331            * Thuban/UI/about.py (About.__init__): Added Silke Reimer.
2332    
2333    2003-08-15  Bernhard Herzog  <[email protected]>
2334    
2335            Change the way shapes are returned by a shape store. The
2336            ShapesInRegion method returns an iterator over actual shape
2337            objects instead of a list of shape ids.
2338    
2339            * Thuban/Model/data.py (ShapefileShape.ShapeID): New. Return shape
2340            id.
2341            (ShapefileStore.ShapesInRegion): Return an iterator over the
2342            shapes which yields shape objects instead of returning a list of
2343            shape ids
2344            (ShapefileStore.AllShapes): New. Return an iterator over all
2345            shapes in the shape store
2346            (DerivedShapeStore.AllShapes): New. Like in ShapefileStore
2347    
2348            * Thuban/Model/layer.py (Layer.ShapesInRegion): Update
2349            doc-string.
2350    
2351            * Thuban/UI/baserenderer.py
2352            (BaseRenderer.layer_ids, BaseRenderer.layer_shapes): Rename to
2353            layer_shapes and make it return an iterator containg shapes
2354            instead of a list of ids.
2355            (BaseRenderer.draw_shape_layer): Update doc-string; Adapt to
2356            layer_shapes() change
2357    
2358            * Thuban/UI/renderer.py (ScreenRenderer.layer_ids)
2359            (ScreenRenderer.layer_shapes): Rename as in BaseRenderer
2360    
2361            * Thuban/UI/viewport.py (ViewPort._find_shape_in_layer): Adapt to
2362            changes in the ShapesInRegion return value.
2363            (ViewPort._get_hit_tester): Remove commented out code
2364    
2365            * test/mockgeo.py (SimpleShapeStore.ShapesInRegion): Adapt to the
2366            new return value.
2367            (SimpleShapeStore.AllShapes): New. Implement this method too.
2368    
2369            * test/test_layer.py (TestLayer.test_arc_layer)
2370            (TestLayer.test_polygon_layer, TestLayer.test_point_layer)
2371            (TestLayer.test_point_layer_with_projection)
2372            (TestLayer.test_derived_store): Adapt to changes in the
2373            ShapesInRegion return value.
2374    
2375            * test/test_shapefilestore.py
2376            (TestShapefileStoreArc.test_shapes_in_region)
2377            (TestShapefileStorePolygon.test_shapes_in_region)
2378            (TestShapefileStorePoint.test_shapes_in_region): Adapt to changes
2379            in the ShapesInRegion return value.
2380            (TestShapefileStorePoint.test_all_shapes)
2381            (TestShapefileStoreArc.test_shape_shapeid): New tests for the new
2382            methods
2383    
2384            * test/test_derivedshapestore.py
2385            (TestDerivedShapeStore.test_shapes_in_region): Adapt to changes in
2386            the ShapesInRegion return value.
2387            (TestDerivedShapeStore.test_all_shapes)
2388            (TestDerivedShapeStore.test_shape_shapeid): New tests for the new
2389            methods
2390    
2391    2003-08-15  Bernhard Herzog  <[email protected]>
2392    
2393            Make the renderers deal correctly with raw vs. python level
2394            representation of shape geometries
2395    
2396            * Thuban/UI/baserenderer.py (BaseRenderer.low_level_renderer):
2397            Return a flag useraw in addition to the callable and the parameter
2398            to indicate whether the callable can deal with the raw shape data
2399            or uses the higher level python lists of coordinates. The callable
2400            now should accept either the raw data or the return value of the
2401            shape's Points() method.
2402            (BaseRenderer.draw_shape_layer): Adapt to the low_level_renderer
2403            change
2404            (BaseRenderer.projected_points): Instead of the shape id use the
2405            points list as parameter.
2406            (BaseRenderer.draw_polygon_shape, BaseRenderer.draw_arc_shape)
2407            (BaseRenderer.draw_point_shape): Adapt to projected_points()
2408            change and accept the points list as parameter instead of the
2409            shape id.
2410    
2411            * Thuban/UI/renderer.py (MapRenderer.low_level_renderer): Return
2412            the useraw flag as required by the BaseRenderer
2413            (ScreenRenderer.draw_shape_layer): Adapt to low-level renderer
2414            changes.
2415    
2416            * test/test_baserenderer.py
2417            (TestBaseRenderer.test_point_with_classification): New test for
2418            rendering a map with classifications.
2419    
2420    2003-08-15  Bernhard Herzog  <[email protected]>
2421    
2422            * Thuban/UI/viewport.py (ViewPort.find_shape_at)
2423            (ViewPort._find_shape_in_layer, ViewPort._find_shape_in_layer)
2424            (ViewPort._get_hit_tester, ViewPort.projected_points)
2425            (ViewPort._hit_point, ViewPort._hit_arc, ViewPort._hit_polygon)
2426            (ViewPort._find_label_at): Split the find_shape_at method into
2427            several new methods and use the functions in the hit-test module.
2428    
2429            * Thuban/UI/hittest.py: New module with Python-level hit-testing
2430            functions
2431    
2432            * test/test_hittest.py: New. Test for the new hittest module
2433    
2434    2003-08-15  Bernhard Herzog  <[email protected]>
2435    
2436            * Thuban/Model/layer.py (Layer.ShapesInRegion): Apply the layer
2437            projection to all corners of the bounding box to get a better
2438            approximation of the projected bounding box
2439    
2440            * test/test_layer.py (TestLayer.test_point_layer_with_projection):
2441            New. Test coordinate handling of a layer with a projection.
2442            Catches the bug fixed in Layer.ShapesInRegion
2443    
2444    2003-08-15  Bernhard Herzog  <[email protected]>
2445    
2446            Move some of the mock objects in test_baserenderer into their own
2447            module so they can easily be used from other tests
2448    
2449            * test/mockgeo.py: New test helper module with some mock objects
2450            for geometry related things like shapes, shapestores and
2451            projections.
2452    
2453            * test/test_mockgeo.py: New. Tests for the new helper module
2454    
2455            * test/test_baserenderer.py: Some of the mock-objects are in
2456            mockgeo now.
2457    
2458    2003-08-12  Jan-Oliver Wagner <[email protected]>
2459    
2460            * Thuban/UI/about.py (About.__init__): Added Bj�rn Broscheit.
2461    
2462    2003-08-12  Bernhard Herzog  <[email protected]>
2463    
2464            * po/de.po: New. German translations by Bjoern Broscheit
2465    
2466    2003-08-12  Bernhard Herzog  <[email protected]>
2467    
2468            * Thuban/UI/projdialog.py (UnknownProjPanel._DoLayout): Translated
2469            strings have to be one string literal.
2470    
2471    2003-08-11  Bernhard Herzog  <[email protected]>
2472    
2473            * test/support.py (FloatComparisonMixin.assertPointListEquals):
2474            New. This method was used in various derived classes, but it's
2475            better to have it here.
2476    
2477            * test/test_shapefilestore.py
2478            (ShapefileStoreTests.assertPointListEquals): Removed. It's now in
2479            FloatComparisonMixin
2480    
2481            * test/test_layer.py (TestLayer.assertPointListEquals): Removed.
2482            It's now in FloatComparisonMixin
2483    
2484            * test/test_derivedshapestore.py
2485            (TestDerivedShapeStore.assertPointListEquals): Removed. It's now
2486            in FloatComparisonMixin
2487    
2488    2003-08-11  Bernhard Herzog  <[email protected]>
2489    
2490            * Thuban/UI/join.py (JoinDialog.OnJoin): Add missing space to
2491            error message
2492    
2493    2003-08-08  Jan-Oliver Wagner <[email protected]>
2494    
2495            * Doc/manual/thuban-manual.xml: Now use authorgroup. Added revhistory
2496            with version number.
2497            Changed title to reflect version number of Thuban.
2498    
2499    2003-08-08  Jan-Oliver Wagner <[email protected]>
2500    
2501            * Thuban/UI/about.py (About.__init__): Reworked the hall of fame. Now
2502            the list corresponds to the "About" web page.
2503    
2504    2003-08-08  Bernhard Herzog  <[email protected]>
2505    
2506            * Thuban/UI/projdialog.py (UTMProposeZoneDialog.dialogLayout):
2507            Make sure translated strings are recognized as one string literal.
2508    
2509            * Thuban/UI/proj4dialog.py (UTMProposeZoneDialog.dialogLayout):
2510            Make sure translated strings are recognized as one string literal.
2511    
2512            * Thuban/UI/classgen.py (ClassGenDialog.OnOK): Make sure
2513            translated strings are recognized as one string literal.
2514    
2515            * Thuban/UI/application.py (ThubanApplication.OpenSession): Make
2516            sure translated strings are recognized as one string literal.
2517    
2518    2003-08-07  Bernhard Herzog  <[email protected]>
2519    
2520            * Thuban/Model/data.py (DerivedShapeStore.RawShapeFormat): New.
2521            Simply delegates to the original shapestore.
2522    
2523            * test/test_derivedshapestore.py
2524            (TestDerivedShapeStore.test_raw_format): New. Test case for
2525            DerivedShapeStore.RawShapeFormat
2526    
2527    2003-08-07  Bernhard Herzog  <[email protected]>
2528    
2529            Add raw data interface to shape objects.
2530    
2531            * Thuban/Model/data.py (ShapefileShape, Shape): Rname the shape
2532            class to ShapefileShape which now holds shapefile specific
2533            information.
2534            (ShapefileShape.compute_bbox): Simplified to not cache any
2535            information. The way this method is used that shouldn't matter
2536            performance wise.
2537            (ShapefileShape.RawData): New. Return the shapeid which is the raw
2538            data format for shapes from shapefiles.
2539            (ShapefileStore.RawShapeFormat): New. Return the raw datatype used
2540            in the shape objects returned by a shapestore. For a
2541            ShapefileStore this is always RAW_SHAPEFILE.
2542            (RAW_PYTHON, RAW_SHAPEFILE): Constants for the RawShapeFormat
2543            method.
2544    
2545            * test/test_shapefilestore.py
2546            (TestShapefileStore.test_raw_format): New test to test the raw
2547            format feature of shapes.
2548    
2549            * Thuban/Model/layer.py: Remove the unused import of Shape from
2550            data. It was only there for interface compatibility but it's not
2551            used inside of Thuban and the generic Shape class has gone away.
2552    
2553            * Thuban/UI/renderer.py (MapRenderer.low_level_renderer): Check
2554            the raw data format and only use an optimized version of its a
2555            shapefile.
2556    
2557    2003-08-07  Bernhard Herzog  <[email protected]>
2558    
2559            * test/test_baserenderer.py (SimpleShape): Shape class for the
2560            tests.
2561            (SimpleShapeStore.Shape): Use SimpleShape instead of
2562            Thuban.Model.data.Shape to make the tests independed of the coming
2563            changes.
2564    
2565    2003-08-07  Bernhard Herzog  <[email protected]>
2566    
2567            * test/support.py (SkipTest, ThubanTestResult, ThubanTestRunner)
2568            (ThubanTestProgram): New classes that extend the respective
2569            classes from unittest. These new version support skipping tests
2570            under certain expected conditions. In the Thuban test suite we
2571            uses this for tests that require the optional gdal support.
2572            (run_tests): Use ThubanTestProgram instead of the unittest.main()
2573    
2574            * test/runtests.py (main): Use the new ThubanTestRunner instead of
2575            the normal one from unittest
2576    
2577            * test/test_layer.py (TestLayer.test_raster_layer): If this test
2578            is not run because gdal support isn't available report this to the
2579            runner.
2580    
2581            * test/test_baserenderer.py
2582            (TestBaseRenderer.test_raster_no_projection): Do not run this test
2583            if gdal support isn't available and report this to the runner.
2584    
2585    2003-08-06  Bernhard Herzog  <[email protected]>
2586    
2587            Rearrange the renderers a bit, partly in preparation for changes
2588            required for the postgis merge, partly to make it more testable.
2589            Also make the representation of coordinates in Shapes more
2590            consistent.
2591    
2592            * Thuban/UI/renderer.py (MapRenderer): Most of the code/methods in
2593            this class is now in BaseRenderer. This class is now practically
2594            only a specialization of BaseRenderer for rendering to an actual
2595            wx DC.
2596            (ScreenRenderer.draw_shape_layer): Use self.low_level_renderer()
2597            to get the shapetype specific rendering functions.
2598    
2599            * Thuban/UI/baserenderer.py: New file with the basic rendering
2600            logic. The code in this file is completely independend of wx.
2601            (BaseRenderer): Class with the basic rendering logic
2602    
2603            * test/test_baserenderer.py: New. Test cases for BaseRenderer
2604    
2605            * Thuban/UI/view.py (MapCanvas.__init__): New instance variable
2606            error_on_redraw to guard agains endless loops and stack overflows
2607            when there's a bug in the rendering code that raises exceptions.
2608            (MapCanvas.OnIdle, MapCanvas._do_redraw): Split the actual
2609            rendering into a separate method _do_redraw so that error handling
2610            is a bit easier. When an exception occurs, set error_on_redraw to
2611            true. When it's true on entry to OnIdle do nothing and return
2612            immediately.
2613    
2614            * Thuban/Model/data.py (ShapefileStore.Shape): For consistency, a
2615            Shape object will always have the coordinates as a list of list of
2616            coordinate pairs (tuples).
2617            (Shape.compute_bbox): Adapt to new representation.
2618    
2619            * Thuban/UI/viewport.py (ViewPort.find_shape_at)
2620            (ViewPort.LabelShapeAt): Adapt to new coordinate representation in
2621            Shape objects.
2622    
2623            * test/test_shapefilestore.py
2624            (ShapefileStoreTests.assertFloatTuplesEqual)
2625            (ShapefileStoreTests.assertPointListEquals): Rename to
2626            assertPointListEquals and change purpose to checking equality of
2627            the lists returned by Shape.Points().
2628            (TestShapefileStoreArc.test_shape)
2629            (TestShapefileStorePolygon.test_shape)
2630            (TestShapefileStorePoint.test_shape): Use the new
2631            assertPointListEquals instead of assertFloatTuplesEqual
2632    
2633            * test/test_layer.py (TestLayer.assertFloatTuplesEqual)
2634            (TestLayer.assertPointListEquals): Rename to assertPointListEquals
2635            and change purpose to checking equality of the lists returned by
2636            Shape.Points().
2637            (TestLayer.test_arc_layer, TestLayer.test_arc_layer)
2638            (TestLayer.test_polygon_layer, TestLayer.test_point_layer)
2639            (TestLayer.test_derived_store): Use the new assertPointListEquals
2640            instead of assertFloatTuplesEqual
2641    
2642            * test/test_derivedshapestore.py
2643            (TestDerivedShapeStore.assertFloatTuplesEqual)
2644            (TestDerivedShapeStore.assertPointListEquals): Rename to
2645            assertPointListEquals and change purpose to checking equality of
2646            the lists returned by Shape.Points().
2647            (TestDerivedShapeStore.test_shape): Use the new
2648            assertPointListEquals instead of assertFloatTuplesEqual
2649    
2650    2003-08-06  Jan-Oliver Wagner <[email protected]>
2651    
2652            * Thuban/UI/projdialog.py (UTMPanel._OnPropose): Added test for
2653            a bounding box. A dialog is raised in case, no bounding box
2654            is found. This fixes bug #2043:
2655            https://intevation.de/rt/webrt?serial_num=2043
2656    
2657    2003-08-05  Bernhard Herzog  <[email protected]>
2658    
2659            * Thuban/Model/color.py (Color.__repr__): Make the repr of a color
2660            object look like a Color instantiation. Formerly it looked like a
2661            tuple.
2662    
2663            * test/test_color.py (TestColor.test_repr)
2664            (TestColor.test_equality, TestColor.test_inequality): New. test
2665            some more apects of the Color class
2666            (TestTransparent.test_repr, TestTransparent.test_hex)
2667            (TestTransparent.test_equality): New. Test cases for the
2668            Transparent object.
2669    
2670    2003-08-04  Jan-Oliver Wagner <[email protected]>
2671    
2672            * Doc/manual/thuban-manual.xml: a number of small improvements.
2673            The resulting file is the version submitted for GREAT-ER II.
2674    
2675    2003-08-01  Bernhard Herzog  <[email protected]>
2676    
2677            * Thuban/UI/resource.py, Thuban/UI/projdialog.py,
2678            Thuban/UI/join.py, Thuban/UI/classgen.py, Thuban/UI/about.py,
2679            Thuban/Model/resource.py: Insert cvs keywords and doc-strings.
2680    
2681            * Thuban/UI/common.py: Insert cvs keywords and doc-strings.
2682            (Color2wxColour, wxColour2Color, ThubanBeginBusyCursor)
2683            (ThubanEndBusyCursor): Add doc-strings
2684    
2685    2003-08-01  Bernhard Herzog  <[email protected]>
2686    
2687            First step towards PostGIS integration. More abstraction by movin
2688            more code from the layer to the shapestore. More methods of the
2689            layer are now simply delegated to the equivalent method of the
2690            shapestore. The SHAPETYPE_* constants are now in data not in
2691            layer.
2692    
2693            * Thuban/Model/data.py (SHAPETYPE_POLYGON, SHAPETYPE_ARC)
2694            (SHAPETYPE_POINT, Shape): Move these constants and classes from
2695            layer.py to data.py
2696            (ShapefileStore.__init__): More Initialization for the new methods
2697            and functionality.
2698            (ShapefileStore.ShapeType, ShapefileStore.NumShapes)
2699            (ShapefileStore.BoundingBox, ShapefileStore.ShapesInRegion)
2700            (ShapefileStore.Shape): New methods that were formerly implemented
2701            in the layer.
2702            (DerivedShapeStore.Shape, DerivedShapeStore.ShapesInRegion)
2703            (DerivedShapeStore.ShapeType, DerivedShapeStore.NumShapes)
2704            (DerivedShapeStore.BoundingBox): New. DerivedShapeStore
2705            equivalents of the new shape methods. These versions are simply
2706            delegated to the original shapstore.
2707    
2708            * Thuban/Model/layer.py (SHAPETYPE_POLYGON, SHAPETYPE_ARC)
2709            (SHAPETYPE_POINT, Shape): Removed. They're now in data.py
2710            (Layer.SetShapeStore): Removed the initializatin of instance
2711            variables that were needed for the stuff that's now in
2712            ShapefileStore
2713            (Layer.BoundingBox, Layer.NumShapes, Layer.ShapeType)
2714            (Layer.Shape, Layer.ShapesInRegion): Simply delegate to the
2715            shapestore.
2716    
2717            * Thuban/UI/classifier.py, Thuban/UI/renderer.py,
2718            Thuban/UI/viewport.py: Import the SHAPETYPE_* constants from data
2719            instead of layer.
2720    
2721            * test/test_shapefilestore.py: New. Tests for ShapefileStore.
2722    
2723            * test/test_derivedshapestore.py: New. Tests for DerivedShapeStore.
2724    
2725            * test/test_layer.py: Import the SHAPETYPE_* constants from data
2726            instead of layer.
2727            (TestLayer.test_derived_store): Remove the test for the exception
2728            when instantiating the DerivedShapeStore with an incompatible
2729            table which is now in test_derivedshapestore.py. Add some more
2730            tests of the layer methods to determine whether they work for a
2731            DerivedShapeStore as well.
2732    
2733    2003-07-31  Jonathan Coles   <[email protected]>
2734    
2735            * Doc/manual/thuban-manual.xml: Fix the list of required packages
2736            by just listing the name and where they can be found.
2737    
2738    2003-07-31  Frank Koormann   <[email protected]>
2739    
2740            * Doc/manual/thuban-manual.xml:
2741            Changed the screenshot elements to figure.
2742            Changed some variablelist elements to itemizedlist.
2743            Added section on GDAL formats.
2744    
2745    2003-07-31  Jonathan Coles   <[email protected]>
2746    
2747            * Doc/manual/thuban-manual.xml: Added a few sentences about
2748            the Fix Border Color option when generating classes.
2749    
2750    2003-07-30  Jonathan Coles   <[email protected]>
2751    
2752            * Thuban/Model/classgen.py: Add docstrings. Rename specific
2753            Ramp instances to use lower_case_style.
2754    
2755            * Thuban/UI/classgen.py: Use renamed Ramp instances.
2756            
2757            * Thuban/UI/classifier.py: Add docstrings.
2758    
2759            * Thuban/UI/dock.py: Add docstrings.
2760    
2761            * test/test_classgen.py: Use renamed Ramp instances.
2762    
2763    2003-07-30  Bernhard Herzog  <[email protected]>
2764    
2765            * Thuban/Lib/connector.py (QueueingPublisher): Removed. This class
2766            was never used in Thuban.
2767    
2768    2003-07-30  Bernhard Herzog  <[email protected]>
2769    
2770            * Thuban/UI/join.py (JoinDialog.__init__): Use the table's Title()
2771            method directly instead of going through the transient_table
2772            method. This faster because transient_table may force the copy of
2773            a DBF file into the transient database and setting a table's title
2774            doesnm't affect the title of the associated transient table, so
2775            this fixes RT #2042
2776    
2777            * Thuban/UI/main.py (__version__): Don't import the already
2778            removed show_exception_dialog.
2779    
2780    2003-07-29  Jonathan Coles   <[email protected]>
2781    
2782            * Thuban/UI/application.py (ThubanApplication.ShowExceptionDialog):
2783            Put back this method and remove the equivalent function since we
2784            are setting the exception hook from within this class (OnInit).
2785    
2786    2003-07-29  Jonathan Coles   <[email protected]>
2787    
2788            * Doc/manual/images/5_2_custom_ramp.png,
2789            Doc/manual/images/5_2_quantiles.png,
2790            Doc/manual/images/5_2_uniform_dist.png,
2791            Doc/manual/images/5_2_unique_values.png,
2792            Doc/manual/images/8_int_error.png: New screen shots.
2793    
2794            * Doc/manual/thuban-manual.xml: Fixed typos and wording, clarified
2795            some points, and added more screen shots.
2796    
2797    2003-07-29  Bernhard Herzog  <[email protected]>
2798    
2799            * Thuban/Model/data.py: Remove the now unused import of warnings
2800    
2801    2003-07-29  Bernhard Herzog  <[email protected]>
2802    
2803            * Thuban/Model/data.py (SimpleStore): Removed. This class has been
2804            deprecated since before the 0.8 release and isn't used in Thuban
2805            itself anymore.
2806    
2807            * Thuban/Model/transientdb.py: Remove some unnecessary imports
2808    
2809    2003-07-29  Jonathan Coles   <[email protected]>
2810    
2811            * Thuban/UI/application.py (ThubanApplication.OnInit): set the
2812            python exception hook here so that we are sure to catch any
2813            Thuban exception that happen during initialization.
2814    
2815            * Thuban/UI/main.py (main): Don't set the exception hook here,
2816            it will get set in ThubanApplication.OnInit.
2817    
2818    2003-07-29  Jonathan Coles   <[email protected]>
2819                                                                                
2820            * Thuban/UI/application.py (ThubanApplication.ShowExceptionDialog):
2821            Removed and called it show_exception_dialog() so that the exception
2822            handler can be set before the class is created.
2823                                                                                
2824            * Thuban/UI/main.py (main): Install the exception handler before
2825            a ThubanApplication is created.
2826                                                                                    
2827    2003-07-29  Bernhard Herzog  <[email protected]>
2828    
2829            * po/it.po: New. Italian translation by Maurizio Napolitano
2830    
2831            * po/ru.po: New. Russian translation by Alex Shevlakov
2832    
2833    2003-07-29  Frank Koormann   <[email protected]>
2834    
2835            * Doc/manual/thuban-manual.xml: Extended section on supported
2836            projections.
2837            
2838    2003-07-29  Frank Koormann   <[email protected]>
2839    
2840            * Doc/manual/thuban-manual.xml: gaspell-checked.
2841    
2842    2003-07-29  Jonathan Coles   <[email protected]>
2843    
2844            * Doc/manual/images/3_5_legend.png: Added border to improve look
2845            on white background.
2846    
2847    2003-07-29  Jonathan Coles   <[email protected]>
2848    
2849            * Doc/manual/thuban-manual.xml: Fixed grammar and typos. Added
2850            descriptions for the legend toolbar.
2851    
2852            * Doc/manual/images/4_2_raster_layer_properties.png: Removed
2853            cursor from dialog box.
2854    
2855    2003-07-28  Jonathan Coles   <[email protected]>
2856    
2857            * Doc/manual/thuban-manual.xml: More screenshots and more chapters.
2858    
2859            * Doc/manual/images/2_4_session_tree.png,
2860            Doc/manual/images/3_5_legend.png, Doc/manual/images/3_rename_map.png,
2861            Doc/manual/images/4_2_layer_properties.png,
2862            Doc/manual/images/4_2_raster_layer_properties.png,
2863            Doc/manual/images/5_3_genclass.png,
2864            Doc/manual/images/5_classification.png,
2865            Doc/manual/images/6_projection.png,
2866            Doc/manual/images/7_1_table_view.png,
2867            Doc/manual/images/7_2_5_join.png: New screenshots.
2868    
2869    2003-07-24  Jonathan Coles   <[email protected]>
2870    
2871            * Doc/manual/thuban-manual.xml: Chapter on Projection Management.
2872    
2873    2003-07-24  Jonathan Coles   <[email protected]>
2874    
2875            * Doc/manual/thuban-manual.xml: Added EPS images and wrote
2876            chapter on Layer Management.
2877    
2878            * Doc/manual/Makefile: New. Makefile to generate all formats for the
2879            manual and images.
2880    
2881    2003-07-24  Bernhard Herzog  <[email protected]>
2882    
2883            * Thuban/Model/range.py, Thuban/version.py: Remove the #! line as
2884            it annoys lintian which warns about these files not being
2885            executable. The #! isn't necessary here since if you absolutely
2886            must execute them you can always say "python <filename>".
2887    
2888            * Thuban/UI/renderer.py (ScreenRenderer.draw_shape_layer): Remove
2889            superfluous code to set brush and pen for point shapes
2890    
2891            * Thuban/UI/viewport.py: Remove commented out code that wouldn't
2892            belong in viewport anyway
2893    
2894  2003-07-24  Frank Koormann   <[email protected]>  2003-07-24  Frank Koormann   <[email protected]>
2895    
2896          * Doc/manual/thuban-manual.xml: Added section on table management.          * Doc/manual/thuban-manual.xml: Added section on table management.

Legend:
Removed from v.1479  
changed lines
  Added in v.2048

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26