/[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 1894 by bh, Thu Oct 30 18:17:17 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]>  2003-10-30  Bernhard Herzog  <[email protected]>
804    
805          * Thuban/UI/dialogs.py (ThubanFrame.__init__): Handle          * Thuban/UI/dialogs.py (ThubanFrame.__init__): Handle

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

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26