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

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

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

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

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

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26