/[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 1773 by bh, Mon Oct 6 11:29:01 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]>  2003-10-06  Bernhard Herzog  <[email protected]>
1457    
1458          * test/test_viewport.py (MockView): New class derived from          * test/test_viewport.py (MockView): New class derived from

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

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26