/[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 1829 by silke, Thu Oct 16 13:14:42 2003 UTC revision 2021 by bh, Wed Dec 3 18:57:06 2003 UTC
# Line 1  Line 1 
1    2003-12-03  Bernhard Herzog  <[email protected]>
2    
3            Fix for RT #2243
4    
5            * Thuban/UI/mainwindow.py (MainWindow.has_selected_shape_layer):
6            New. Like has_selected_layer but for shape layers only
7            (_has_selected_shape_layer): New. Like _has_selected_layer but for
8            shape layers only
9            (layer_show_table command, layer_jointable command): Use these
10            commands should only be available for shape layers
11    
12    2003-12-03  Bernhard Herzog  <[email protected]>
13    
14            * Thuban/UI/mainwindow.py (MainWindow.Unsubscribe): Deal with
15            publishers that are wx objects and may have been destroyed by wx
16            already. Fixes RT #2242.
17    
18    2003-12-03  Bernhard Herzog  <[email protected]>
19    
20            * po/ru.po: Updates from Alex Shevlakov
21    
22    2003-12-03  Silke Reimer <silkeintevation.de>
23    
24            * debian/control, debian/changelog: Added gdal-support to
25                    debian package, updated to new thuban version
26    
27    
28    2003-12-03  Bernhard Herzog  <[email protected]>
29    
30            * Thuban/Lib/version.py: New. Module for version number
31            manipulations. The version of make_tuple here also deals better
32            with more unusual version number strings, such as e.g.
33            "1.2+cvs20031111"
34    
35            * Thuban/version.py (make_tuple): Removed. It's now in
36            Thuban.Lib.version. Use that implementation instead.
37    
38            * test/test_lib_version.py: New. Tests for Thuban/Lib/version.py
39    
40    2003-12-02  Bernhard Herzog  <[email protected]>
41    
42            * MANIFEST.in: Add debian files
43    
44            * setup.py (setup call): Add packages for the Extensions so that
45            they're installed too
46            (data_files): Add READMEs and sample data from some Extensions
47    
48            * NEWS: Add note about the extensions in binary packages
49    
50    2003-12-02  Bernhard Herzog  <[email protected]>
51    
52            * Thuban/Model/save.py (SessionSaver.write_session): Save files
53            with the thuban-1.0rc1
54    
55            * Thuban/Model/load.py (SessionLoader.__init__): Recognize the
56            thuban-1.0rc1 namespace too
57    
58            * test/test_save.py (SaveSessionTest.dtd)
59            (SaveSessionTest.testEmptySession)
60            (SaveSessionTest.testSingleLayer)
61            (SaveSessionTest.testLayerProjection)
62            (SaveSessionTest.testRasterLayer)
63            (SaveSessionTest.testClassifiedLayer)
64            (SaveSessionTest.test_dbf_table)
65            (SaveSessionTest.test_joined_table)
66            (SaveSessionTest.test_save_postgis): Update to thuban-1.0rc1
67            namespace
68    
69            * test/test_load.py (LoadSessionTest.dtd): Update to thuban-1.0rc1
70            namespace
71            (TestSingleLayer.file_contents)
72            (TestNonAsciiColumnName.file_contents)
73            (TestLayerVisibility.file_contents)
74            (TestClassification.file_contents, TestLabels.file_contents)
75            (TestLayerProjection.file_contents)
76            (TestRasterLayer.file_contents, TestJoinedTable.file_contents)
77            (TestPostGISLayer.file_contents)
78            (TestPostGISLayerPassword.file_contents)
79            (TestLoadError.file_contents, TestLoadError.test): Update to
80            thuban-1.0rc1 namespace
81    
82    2003-12-01  Bernhard Herzog  <[email protected]>
83    
84            * setup.py (proj4_prefix, wx_prefix, gdal_prefix): Fix these for
85            nt to better match Intevation's current w32 setup
86    
87            * HOWTO-Release: Add note about updating MANIFEST.in
88    
89            * MANIFEST.in: Add the Extensions
90    
91            * NEWS: Update for 1.0rc1
92    
93    2003-12-01  Bernhard Herzog  <[email protected]>
94    
95            * Thuban/UI/mainwindow.py (MainWindow.AddLayer): Change the wild
96            cards for the dialog so that shapefiles ending in all uppercase
97            SHP are listed too
98    
99    2003-11-28  Bernhard Herzog  <[email protected]>
100    
101            * Thuban/version.py (longversion): Update to 1.0rc1
102    
103            * setup.py (setup call): Update version to 1.0rc1. Use the
104            [email protected] email address as author email instead of my
105            personal one.
106    
107    2003-11-28  Bernhard Herzog  <[email protected]>
108    
109            * po/de.po: Update german translation.
110    
111    2003-11-28  Bernhard Herzog  <[email protected]>
112    
113            Unify the filenames stored in .thuban files so that the .thuban
114            files are more platform independend
115    
116            * Thuban/Model/save.py (unify_filename): New. Unify filenames so
117            that they can be used on both windows and unix
118            (SessionSaver.prepare_filename): New. Handle all filename
119            transformations for filenames stored in the thuban file
120            (SessionSaver.write_data_containers, SessionSaver.write_layer):
121            Use prepare_filename
122    
123            * test/test_save.py (SaveSessionTest.testSingleLayer)
124            (SaveSessionTest.testLayerProjection)
125            (SaveSessionTest.testRasterLayer)
126            (SaveSessionTest.testClassifiedLayer)
127            (SaveSessionTest.test_dbf_table)
128            (SaveSessionTest.test_joined_table): Filenames are always stored
129            with slashes on all currently supported platforms so adapt all
130            tests to this
131    
132            * test/test_load.py (LoadSessionTest.filenames): With the new
133            filename scheme the filenames in the tests should be
134            understandable on all currently supported platforms so we turn
135            this into an empty list because we don't have to normalize them
136            anymore
137    
138    2003-11-28  Bernhard Herzog  <[email protected]>
139    
140            * test/test_layer.py (TestLayer.test_arc_layer_with_projection):
141            Add the ellipsoid to the projection since some Proj versions
142            complain if it's missing.
143    
144    2003-11-27  Bernhard Herzog  <[email protected]>
145    
146            Corect some bounding box projection problems
147    
148            * Thuban/Model/proj.py (Projection.InverseBBox): New. Inverse
149            version of ForwardBBox
150            (Projection._transform_bbox): New. common implementation of
151            ForwardBBox and InverseBBox
152            (Projection.ForwardBBox): Use _transform_bbox.
153    
154            * test/test_proj.py (TestProjection.test): Add test for
155            InverseBBox
156    
157            * Thuban/Model/layer.py (Layer.LatLongBoundingBox)
158            (Layer.ShapesBoundingBox, RasterLayer.LatLongBoundingBox): Use the
159            new InverseBBox method to determine the unprojected bounding box
160            (Layer.ShapesInRegion): Use the ForwardBBox method to project the
161            bbox.
162    
163            * test/test_layer.py (TestLayer.test_point_layer_with_projection):
164            Removed.
165            (TestLayer.test_arc_layer_with_projection): New. This test is
166            better able to test whether bounding boxes are projected correctly
167            than test_point_layer_with_projection
168    
169            * Thuban/UI/viewport.py (ViewPort.map_projection_changed): Use
170            InverseBBox to unproject bboxes
171    
172    2003-11-25  Bernhard Herzog  <[email protected]>
173    
174            * Thuban/UI/about.py (About.__init__): Make sure we have ASCII
175            source code.
176    
177    2003-11-25  Bernhard Herzog  <[email protected]>
178    
179            * Thuban/Model/layer.py (Layer.__getattr__): Removed. It was only
180            there for backwards compatibility and all code relying on that
181            should have been updated by now.
182    
183    2003-11-25  Bernhard Herzog  <[email protected]>
184    
185            * test/test_load.py (TestClassification.test): Add the missing
186            round trip test.
187            (TestClassification.file_contents): Update to the newest file
188            format
189    
190    2003-11-25  Bernhard Herzog  <[email protected]>
191    
192            Add very experimental (and possibly dangerous) extension to draw
193            polygons:
194    
195            * Extensions/drawshape/README: New. Brief installation
196            instructions
197    
198            * Extensions/drawshape/drawshape.py: New. Implementation of the
199            drawshape extensions
200    
201            * Extensions/drawshape/patch.diff: Patch to apply before the
202            extension can be used.
203    
204    2003-11-24  Bernhard Herzog  <[email protected]>
205    
206            * Thuban/Model/data.py (ShapefileStore._open_shapefile)
207            (ShapefileStore.__init__): Factor opening the shapefile into a
208            separate method (the new _open_shapefile). This makes the code a
209            bit more readable but the real reason is that it makes some evil
210            hacks easier. :-)
211    
212    2003-11-24  Bernhard Herzog  <[email protected]>
213    
214            * Thuban/Model/load.py (SessionLoader.check_attrs): If no
215            converter is specified for an attribute assume it's a string
216            containing only Latin1 characters. Update doc-string accordingly.
217            This change should fix many places where unicode objects might
218            accidentally enter Thuban.
219    
220            * test/test_load.py (TestNonAsciiColumnName): New test to check
221            what happens with column names in DBF files that contain non-ascii
222            characters
223    
224    2003-11-21  Bernhard Herzog  <[email protected]>
225    
226            Enable the experimental attribute editing again and introduce a
227            command line switch to actually activate it
228    
229            * Thuban/UI/main.py (options): New. Container for options set on
230            the commmand line
231            (main): Add the --enable-attribute-editing flag.
232    
233            * Thuban/UI/identifyview.py (IdentifyView.__init__): If attribute
234            editing is enabled use the grid ctrl which allows editing of the
235            values
236    
237            * Thuban/Model/transientdb.py (AutoTransientTable.write_record):
238            New. Just delegate this to the underlying table.
239    
240    2003-11-20  Bernhard Herzog  <[email protected]>
241    
242            * test/test_proj.py (ProjFileReadTests.test_read_unreadable_file):
243            Skip this test if run under non-posix systems since it only works
244            there
245    
246    2003-11-19  Bernhard Herzog  <[email protected]>
247    
248            * Thuban/Model/resource.py: Rework the way gdal support is
249            determined so that we can give a reason in the about why gdal is
250            not supported.
251            (gdal_support_status): New. Variable holding a string with the
252            reason for no gdal support
253    
254            * Thuban/UI/about.py (About.__init__): Add the reason why gdal is
255            not supported to the message
256    
257    2003-11-19  Bernhard Herzog  <[email protected]>
258    
259            Remove the old table interface and its test cases
260    
261            * Thuban/Model/table.py (OldTableInterfaceMixin): Removed.
262            (DBFTable, MemoryTable): Do not derive from OldTableInterfaceMixin
263            anymore
264    
265            * Thuban/Model/transientdb.py (TransientTableBase)
266            (AutoTransientTable): Do not derive from OldTableInterfaceMixin
267            anymore
268    
269            * test/test_table.py: Removed since the old interface it tests is
270            gone.
271    
272            * test/runtests.py (main): The old table interface is gone and
273            with it the deprecation warnings so remove the code that turns
274            these warnings into errors
275    
276    2003-11-19  Bernhard Herzog  <[email protected]>
277    
278            * test/test_table.py: Revert to revision 1.5 again. Changing the
279            tests to use the new table interface is completely wrong since the
280            whole purpose of the tests in this module is to test the old
281            interface.
282    
283    2003-11-18  Bernhard Herzog  <[email protected]>
284    
285            * Thuban/Model/postgisdb.py (PostGISConnection.MatchesParameters):
286            New. Test whether the connection matches a set of connection
287            parameters
288    
289            * Thuban/UI/dbdialog.py (DBFrame.conns_changed): Fix doc-string
290            (DBFrame.OnAdd): Use the new MatchesParameters method when looking
291            for existing connections with the same parameters and break out of
292            the loop correctly.
293    
294            * test/test_postgis_db.py (TestBriefDescription)
295            (TestPostGISSimple.test_brief_description): Rename
296            TestBriefDescription to TestPostGISSimple and the test method to
297            test_brief_description so that we can add more test methods.
298            (TestPostGISSimple.test_matches_parameters): New. Test the new
299            MatchesParameters method
300    
301    2003-11-18  Bernhard Herzog  <[email protected]>
302    
303            * Thuban/Lib/connector.py (Publisher): Introduce a new flag,
304            _was_destroyed, to indicate whether an publisher instance has
305            already been destroyed.
306            (Publisher.Unsubscribe): Only disconnect if the publisher has not
307            been destroyed yet.
308            (Publisher.Destroy): Set the _was_destroyed flag to true.
309    
310            * test/test_connector.py
311            (TestPublisher.test_unsubscribe_after_destroy): New. Test that
312            calling Unsubscribe after Destroy doesn't raise an exception
313    
314    2003-11-14  Bernhard Herzog  <[email protected]>
315    
316            * Thuban/UI/identifyview.py (IdentifyView.selected_shape): Fix
317            typo in doc-string
318    
319    2003-11-13  Bernhard Herzog  <[email protected]>
320    
321            Quote table and column names properly for postgis.
322    
323            * Thuban/Model/postgisdb.py (quote_identifier): New. Function to
324            quote an identifier for use in an sql statement
325            (PostGISColumn.__init__): Add the quoted_name attribute
326            (PostGISTable.__init__): New instance variable quoted_tablename
327            (PostGISTable._fetch_table_information): Use the quoted table
328            name. New isntance variable quoted_geo_col with a quoted version
329            of geometry_column
330            (PostGISTable.NumRows, PostGISTable.RowIdToOrdinal)
331            (PostGISTable.RowOrdinalToId): Use the quoted table name
332            (PostGISTable.ReadValue, PostGISTable.ValueRange)
333            (PostGISTable.UniqueValues, PostGISTable.SimpleQuery)
334            (PostGISShapeStore.BoundingBox, PostGISShapeStore.Shape)
335            (PostGISShapeStore.AllShapes, PostGISShapeStore.ShapesInRegion):
336            Use quoted table and column names
337    
338            * test/test_postgis_db.py (TestPostGISSpecialCases)
339            (TestPostGISIgnoredColumns): Rename the class to
340            TestPostGISSpecialCases because that better describes the new
341            cases
342            (TestPostGISSpecialCases.test_unsupported_types)
343            (TestPostGISSpecialCases.test): Rename the method to
344            test_unsupported_types because we need a more descriptive name now
345            that there are more methods
346            (TestPostGISSpecialCases.test_table_name_quoting)
347            (TestPostGISSpecialCases.test_column_name_quoting)
348            (TestPostGISSpecialCases.test_shapestore_name_quoting): New test
349            cases to test quoting of table and column names in PostGISTable
350            and PostGISShapeStore
351    
352            * test/postgissupport.py
353            (skip_if_addgeometrycolumn_does_not_use_quote_ident): New. Skip if
354            AddGeometryColumn desn't support table or column names with sapces
355            or double quotes
356    
357    2003-11-12  Jan-Oliver Wagner <[email protected]>
358    
359            * Extensions/wms/__init__.py: New: Init to make this
360            directory a package.
361    
362            * Extensions/wms/wms.py: New: Provide layers via OGC WMS.
363    
364    2003-11-11  Bernhard Herzog  <[email protected]>
365    
366            * Thuban/Model/resource.py (EPSG_DEPRECATED_PROJ_FILE): New.
367            Constant for the file woth deprecated epsg projections
368            (get_system_proj_file): Update doc-string
369    
370            * Thuban/UI/projdialog.py (ProjFrame.build_dialog): Add a space
371            above the EPS widgets, introduce a check box for the deprecated
372            eps projections and a label for the epsg widgets
373            (ProjFrame._OnShowEPSG): Handle the deprecated EPSG projections
374            too
375    
376    2003-11-11  Bernhard Herzog  <[email protected]>
377    
378            Avoid warnings when run under Python 2.3
379    
380            * Thuban/UI/baserenderer.py (BaseRenderer.draw_point_shape)
381            (BaseRenderer.draw_label_layer): Coordinates must be ints.
382    
383            * Thuban/UI/renderer.py (MapRenderer.make_point): Turn this into a
384            real method so that we can convert to int.
385            (MapRenderer.label_font): The font size mist be an int.
386    
387            * Thuban/UI/common.py (Color2wxColour): The color values must be
388            ints. Also, remove the unnecessary asserts.
389    
390            * test/test_load_0_8.py (TestUnicodeStrings.file_contents)
391            (TestUnicodeStrings.test): Python source code should not contain
392            non-ascii characters unless an encoding is specified in the file.
393            Therefore use \x escapes in the string literals for non-ascii
394            characters.
395    
396    2003-11-11  Bernhard Herzog  <[email protected]>
397    
398            * Thuban/Model/resource.py (get_system_proj_file): Add a filename
399            parameter so that this function can be used for all proj files in
400            Resource/Projections
401            (DEFAULT_PROJ_FILE, EPSG_PROJ_FILE): New. Predefined filenames for
402            get_system_proj_file
403    
404            * Thuban/UI/projdialog.py (ProjFrame.__init__): Instead of one
405            ProjFile self.__sysProjFile use a dictionary of system ProjFile
406            objects self._sys_proj_files
407            (ProjFrame.build_dialog): Adapt to the new changes in the
408            ProjectionList constructor. Add a check button to toggle whether
409            EPSG projections are shown
410            (ProjFrame._OnShowEPSG): New. Handler for the epsg check button
411            events.
412            (ProjFrame.load_user_proj, ProjFrame.load_system_proj): Only show
413            the busy cursor if the files have not yet been loaded by the
414            dialog.
415            (ProjFrame.load_system_proj): Add a parameter for the name of the
416            proj file. Maintain the dictionary of system projections
417            self._sys_proj_files
418    
419            * Thuban/UI/projlist.py (ProjectionList): Merge the system_projs,
420            user_projs parameters into one parameter proj_files which is a
421            list of proj files.
422            (ProjectionList._subscribe_proj_files)
423            (ProjectionList._unsubscribe_proj_files): New. Move
424            subscription/unsubscription of projfile messages to separate
425            methods
426            (ProjectionList.Destroy): The unsubscribe is now done in
427            _unsubscribe_proj_files
428            (ProjectionList.update_projections): We now have a list of proj
429            file objects
430            (ProjectionList.SetProjFiles): New method to set a new list of
431            proj file objects
432    
433            * test/test_proj.py (ProjFileReadTests.test_get_system_proj_file):
434            Specify explicitly which system proj file to load.
435    
436    2003-11-11  Bernhard Herzog  <[email protected]>
437    
438            * Thuban/Model/load.py (SessionLoader.Destroy): New. Clear all
439            instance variables to cut cyclic references. The GC would have
440            collected the loader eventually but it can happen that it doesn't
441            run at all until thuban is closed (2.3 but not 2.2 tries a bit
442            harder and forces a collection when the interpreter terminates)
443            (load_session): Call the handler's Destroy method to make sure
444            that it gets garbage collected early. Otherwise it will be
445            collected very late if at all and it holds some references to e.g.
446            shapestores and the session which can lead to leaks (of e.g. the
447            temporary files)
448    
449            * test/test_load.py (TestSingleLayer.test_leak): New. test for the
450            resource leak in load_session
451    
452    2003-11-10  Bernhard Herzog  <[email protected]>
453    
454            * Thuban/UI/baserenderer.py: Add a way to specify how layers in
455            extensions are to be rendered.
456            (_renderer_extensions): New. List with renderer for layers in
457            extensions
458            (add_renderer_extension): New. Add a renderer extension
459            (init_renderer_extensions): New. Init the renderer extensions
460            (BaseRenderer.render_map_incrementally): Search
461            _renderer_extensions for how to draw unknown layer types
462            (BaseRenderer.draw_raster_data): Add format parameter so that
463            formats other than BMP can be drawn
464            (BaseRenderer.draw_raster_layer): Pass an explicit format to
465            draw_raster_data
466    
467            * Thuban/UI/renderer.py (raster_format_map): New. Mapping form the
468            strings of the format parameter of draw_raster_data method to wx
469            constants
470            (MapRenderer.draw_raster_data): Add the format parameter and use
471            raster_format_map to map it to the right wxwindows constant for
472            wxImageFromStream
473    
474            * test/test_baserenderer.py (SimpleRenderer.draw_raster_data): Add
475            the format parameter and record it
476            (TestBaseRenderer.test_raster_no_projection): check the format
477            paramter of the draw_raster_data method
478            (TestBaseRenderer.test_renderer_extension): New. Test the renderer
479            extension facility
480    
481    2003-11-07  Bernhard Herzog  <[email protected]>
482    
483            Tweak the usage of the sqlite database to make common use cases
484            more responsive. In most cases copying the data to the sqlite
485            database takes so long that using sqlite doesn't have enough
486            advantages.
487    
488            * Thuban/Model/transientdb.py (TransientTableBase.ValueRange): Add
489            comments about performance and query the min and max in separate
490            statements because only that way will indexes be used.
491            (TransientTableBase.UniqueValues): Add some comments about
492            performance.
493            (AutoTransientTable.ValueRange, AutoTransientTable.UniqueValues):
494            Do not copy the data to the transient DB but use the transient
495            copy if it exists. See the new comments for the performance trade
496            offs
497    
498            * test/test_transientdb.py
499            (TestTransientTable.test_auto_transient_table): Make sure that the
500            data is copied to the transient database at some point.
501    
502    2003-11-03  Bernhard Herzog  <[email protected]>
503    
504            * Thuban/Model/data.py (ShapefileStore.ShapesInRegion): Bind some
505            globals to locals so that it's a bit faster
506    
507    2003-11-03  Bernhard Herzog  <[email protected]>
508    
509            * Thuban/UI/baserenderer.py
510            (BaseRenderer.draw_shape_layer_incrementally): Use the ReadValue
511            method. ReadValue is faster than ReadRowAsDict since it only reads
512            one cell especially now that the dbf file objects actually
513            implement it.
514    
515            * Thuban/Model/table.py (DBFTable.ReadValue): Use the new
516            read_attribute method of the dbf objects
517    
518    2003-11-03  Bernhard Herzog  <[email protected]>
519    
520            * Extensions/profiling/profiling.py (popup_dialog_box): New config
521            variable to indicate whether the result should be shown in a
522            dialog box
523            (profile_screen_renderer, time_screen_renderer): Only show a
524            dialog box if popup_dialog_box is true.
525            (profile_screen_renderer): Flush stdout after the printing the
526            first part of the "profiling..." message
527    
528            * Thuban/UI/baserenderer.py
529            (BaseRenderer.draw_shape_layer_incrementally): Cache the pens and
530            brushes for the groups so that they're not created over and over
531            again
532    
533            * Thuban/Model/classification.py (Classification.__getattr__)
534            (Classification._compile_classification)
535            (Classification._clear_compiled_classification): New. Methods to
536            manage a 'compiled' representation of the classification groups
537            which is created on demand
538            (Classification.InsertGroup, Classification.RemoveGroup)
539            (Classification.ReplaceGroup): reset the compiled representation
540            (Classification.FindGroup): Use the compiled representation to
541            find the matching group
542            (ClassGroupRange.GetRangeTuple): New. Return the range as a tuple
543    
544    2003-10-31  Bernhard Herzog  <[email protected]>
545    
546            * Thuban/Model/classification.py (Classification.SetDefaultGroup):
547            Send a CLASS_CHANGED message
548            (Classification.RemoveGroup): Send a CLASS_CHANGED message and do
549            not return the removed group since it wasn't used.
550    
551            * test/test_classification.py
552            (TestClassification.test_set_default_group): New. Test the
553            SetDefaultGroup method
554            (TestClassification.test_insert_group): New. Test the InsertGroup
555            method
556            (TestClassification.test_remove_group): New. Test the RemoveGroup
557            method
558            (TestClassification.test_replace_group): New. Test the
559            ReplaceGroup method
560    
561    2003-10-31  Bernhard Herzog  <[email protected]>
562    
563            * test/test_classification.py (TestClassification.setUp):
564            Subscribe to the CLASS_CHANGED messages
565            (TestClassification.tearDown): New. Destroy the classification
566            properly
567            (TestClassification.test_defaults): Add tests for the default line
568            width and whether no messages were sent yet
569            (TestClassification.test_set_default_properties): Add tests for
570            messages and setting the default line width
571            (TestClassification.test_add_singleton)
572            (TestClassification.test_add_range)
573            (TestClassification.test_multiple_groups): Add tests for messages
574    
575    2003-10-31  Bernhard Herzog  <[email protected]>
576    
577            Some more refactoring in preparation for new tests:
578    
579            * test/test_classification.py (TestClassification.setUp): New.
580            Instantiate the classification here. Update the test methods
581            accordingly.
582            (TestClassification.test_multiple_groups): Make sure that the two
583            singletons matching 1 are considered different.
584    
585    2003-10-31  Bernhard Herzog  <[email protected]>
586    
587            * test/test_classification.py (red, green, blue): New. These
588            constants were used in several cases. Update the relevant methods.
589            (TestClassification.test_defaults)
590            (TestClassification.test_set_default_properties)
591            (TestClassification.test_add_singleton)
592            (TestClassification.test_add_range)
593            (TestClassification.test_multiple_groups)
594            (TestClassification.test_deepcopy): New. These were formerly all
595            part of the single method test.
596            (TestClassification.test_deepcopy): Removed.
597            (TestClassIterator): Removed. The test case is now a method of
598            TestClassification since it tests part of the public interface of
599            Classification
600            (TestClassification.test_iterator): New. Used to be
601            TestClassIterator effectively
602    
603    2003-10-31  Jan-Oliver Wagner <[email protected]>
604    
605            GUIfied the functions of the profiling extension.
606    
607            * /Extensions/profiling/__init__.py: New: Init to make this
608            directory a package.
609    
610            * Extensions/profiling/profiling.py: Moved menu entries to
611            the Extensions menu. Applied _() for strings.
612            (profile_screen_renderer): Catch the detailed printout and present
613            it in a dialog.
614            (time_screen_renderer): Raise a dialog to present the result instead
615            of printing it to stdout.
616    
617    2003-10-31  Bernhard Herzog  <[email protected]>
618    
619            * test/test_classification.py (TestClassGroupProperties)
620            (TestClassGroup, TestClassGroupDefault, TestClassGroupRange)
621            (TestClassGroupSingleton, TestClassIterator, TestClassification):
622            Split TestClassification into several classes, one for each class
623            being tested. TestClassification itself now only tests
624            Classification. This split makes changes to the tests a bit easier
625    
626    2003-10-31  Bernhard Herzog  <[email protected]>
627    
628            * Extensions/profiling/profiling.py: New. Extension to measure
629            Thuban performance
630    
631    2003-10-31  Frank Koormann <[email protected]>
632    
633            Added two items to legend popup menu: Remove Layer and Show Layer Table
634    
635            * Thuban/UI/legend.py (LegendPanel._OnRemoveLayer,
636            LegendPanel._OnShowTable): New event handlers, call the corresponding
637            mainwindow methods.
638            (LegendTree._OnRightClick): Added items to popup menu.
639    
640    2003-10-30  Bernhard Herzog  <[email protected]>
641    
642            * Thuban/UI/dialogs.py (ThubanFrame.__init__): Handle
643            EVT_WINDOW_DESTROY
644            (ThubanFrame.OnDestroy): New. Handler for EVT_WINDOW_DESTROY. Does
645            nothing but is convenient for the derived classes.
646    
647            * Thuban/UI/tableview.py
648            (TableFrame.OnDestroy, LayerTableFrame.OnDestroy): New.
649            Unsubscribe the messages here not in OnClose because that might
650            get called multiple times. Fixes RT #2196
651            (TableFrame.OnClose, LayerTableFrame.OnClose): Removed. Not needed
652            anymore.
653    
654            * README: Update the minimum requirement for wxPython. Since we
655            now use the EVT_WINDOW_DESTROY event, we need at least 2.4.0.4,
656            the version in which that was introduced for all platforms
657    
658    2003-10-30  Frank Koormann <[email protected]>
659    
660            * Thuban/UI/join.py (JoinDialog.OnJoin): Wrapped the major parts of
661            the join process in a ThubanBeginBusyCursor, ThubanEndBusyCursor
662            frame.
663    
664    2003-10-30  Jan-Oliver Wagner <[email protected]>
665    
666            Improved APR import extension, added further EPSG definitions
667            and some cleanup regarding string class.
668    
669            * test/test_proj.py (TestProjection.test_get_projection_units_geo):
670            Added test for alias 'longlat'.
671    
672            * Resources/Projections/epsg-deprecated.proj: New. Contains
673            deprecated EPSG definitions.
674    
675            * Extensions/importAPR/odb.py (ODBBaseObject.TreeInfo): Added
676            the variable names for objects.
677    
678            * Extensions/importAPR/apr.py (APR_BLnSym, APR_BMkSym, APR_BShSym): New.
679            Copied from importAPR and provided with documentation.
680    
681            * Extensions/importAPR/importAPR.py (APR_BLnSym, APR_BMkSym, APR_BShSym):
682            Moved to apr.py.
683            (APR_View): Added object ref 'ITheme'.
684    
685            * Thuban/Lib/fileutil.py, Thuban/UI/proj4dialog.py: Replaced string
686            split function by corresponding use of the string class method.
687    
688            * Thuban/Model/xmlwriter.py: Replaced string replace function by
689            corresponding string method.
690    
691    2003-10-29  Bernhard Herzog  <[email protected]>
692    
693            * Thuban/UI/baserenderer.py
694            (BaseRenderer.draw_shape_layer_incrementally): Speed up the
695            special case of a classification that only has the default group
696    
697    2003-10-27  Bernhard Herzog  <[email protected]>
698    
699            * po/fr.po, po/es.po: Updated translations from Daniel Calvelo
700    
701            * po/de.po: Update.
702    
703            * Thuban/UI/application.py
704            (ThubanApplication.ShowExceptionDialog): Handle translation of the
705            dialog message properly
706    
707    2003-10-27  Bernhard Herzog  <[email protected]>
708    
709            Rework how localization works so that we use wx's translation
710            functions when running Thuban as a normal application but not when
711            we don't need any UI, such as in the test suite. See the comment
712            in Thuban/__init__.py for details
713    
714            * Thuban/__init__.py (_): Add one level of indirection to make the
715            translation handling more flexible and to make it possible to use
716            either wx's translation services or not.
717            (gettext_identity, translation_function_installed)
718            (install_translation_function): New function to help with this
719    
720            * Thuban/UI/__init__.py: Install the wx specific translation
721            function if it's OK to do that
722    
723            * test/support.py (initthuban): Install a dummy translation
724            function so that importing Thuban.UI doesn't install a wx specific
725            one for which would need to import wxPython
726    
727    2003-10-27  Bernhard Herzog  <[email protected]>
728    
729            * HOWTO-Release: Source archives should be created first and the
730            binary packages should be created from the source archives.
731            There's an official debian package now so there's no need to test
732            the rpm on debian anymore
733    
734    2003-10-27  Bernhard Herzog  <[email protected]>
735    
736            Several rendering changes:
737    
738             - Render the selection into a separate bitmap so that only that
739               bitmap needs to be redrawn when the selection changes
740    
741             - Render incrementally showing previews and allowing interaction
742               before rendering is complete
743    
744             - Update the renderer interface a bit. Most parameters of
745               RenderMap are now parameters of the constructor
746    
747            * Thuban/UI/baserenderer.py (BaseRenderer.__init__): Add the map
748            and the update region as parameters. Update the doc-string
749            (BaseRenderer.render_map_incrementally): New. Generator function
750            to renders the map incrementally
751            (BaseRenderer.render_map): Remove the map argument (it's now in
752            the constructor) and simply iterate over the
753            render_map_incrementally generator to draw the map.
754            (BaseRenderer.draw_shape_layer_incrementally)
755            (BaseRenderer.draw_shape_layer): Renamed to
756            draw_shape_layer_incrementally and changed into a generator that
757            yields True every 500 shapes. Used by render_map_incrementally to
758            render shape layers incrementally
759    
760            * Thuban/UI/renderer.py (ScreenRenderer.RenderMap): Removed the
761            map and region parameters which are now in the constructor
762            (ScreenRenderer.RenderMapIncrementally): New. Public frontend for
763            the inherited render_map_incrementally.
764            (BaseRenderer.draw_shape_layer): Removed.
765            (ScreenRenderer.draw_selection_incrementally): New. The selection
766            drawing part of the removed draw_shape_layer as a generator
767            (ScreenRenderer.layer_shapes): Update because of the region
768            parameter change
769            (ExportRenderer.__init__): New. Extend the inherited constructor
770            with the destination region for the drawing
771            (ExportRenderer.RenderMap): Removed the map and region parameters
772            which are now in the constructor
773    
774            * Thuban/UI/view.py (MapCanvas.PreviewBitmap): New. Return a
775            bitmap suitable for a preview in a tool
776            (CanvasPanTool.MouseMove): Use the PreviewBitmap method to get the
777            bitmap
778            (MapPrintout.draw_on_dc): Adapt to new renderer interface
779            (MapCanvas.OnPaint): Handle drawing the selection bitmap if it
780            exists
781            (MapCanvas.OnIdle): Update the logic to deal with incremental
782            rendering and the selection bitmap
783            (MapCanvas._do_redraw): Handle the instantiation of the render
784            iterator and the redraws during rendering
785            (MapCanvas._render_iterator): New. Generator to incrementally
786            redraw both bitmaps
787            (MapCanvas.Export): Adapt to new renderer interface.
788            (MapCanvas.full_redraw): Reset the selection bitmap and the
789            renderer iterator too
790            (MapCanvas.redraw_selection): New. Force a redraw of the selection
791            bitmap
792            (MapCanvas.shape_selected): Only redraw the selection bitmap
793    
794            * test/test_baserenderer.py
795            (TestBaseRenderer.test_polygon_no_projection)
796            (TestBaseRenderer.test_raster_no_projection)
797            (TestBaseRenderer.test_point_map_projection)
798            (TestBaseRenderer.test_point_layer_and_map_projection)
799            (TestBaseRenderer.test_point_layer_projection)
800            (TestBaseRenderer.test_point_with_classification): Adapt to new
801            renderer interface
802    
803    2003-10-24  Bernhard Herzog  <[email protected]>
804    
805            * libraries/thuban/wxproj.cpp (draw_polygon_shape)
806            (point_in_polygon_shape, shape_centroid): Raise an exception if
807            the shape can't be read. Previously invalid shape ids would lead
808            to a segfault.
809    
810            * test/test_wxproj.py (TestShapeCentroid.test_invalid_shape_id):
811            New. test whether an exception is raised for invalid shape ids
812    
813    2003-10-24  Jan-Oliver Wagner <[email protected]>
814    
815            * Thuban/Model/proj.py (Projection.GetProjectedUnits): Added 'longlat'
816            as alias for 'latlong'.
817    
818            * Thuban/UI/projdialog.py (ProjFrame.__init__): Added 'longlat'
819            as alias for 'latlong'.
820    
821    2003-10-24  Jan-Oliver Wagner <[email protected]>
822    
823            * Thuban/UI/projdialog.py (ProjFrame.proj_selection_changed): Set
824            the projection even for the UnknownPanel.
825            (UnknownProjPanel.__init__): Define the text and create the textctrl
826            widget.
827            (UnknownProjPanel._DoLayout): Replaced static text widget by the
828            textctrl created in __init__.
829            (UnknownProjPanel.SetProjection): Set the text for the text ctrl
830            including the parameters of the projection.
831            
832    2003-10-24  Jan-Oliver Wagner <[email protected]>
833    
834            * Resources/Projections/epsg.proj: New. This is a list of
835            EPSG codes with parameters for proj. The list has been
836            generated using devtools/create_epsg.py based on the
837            file nad/epsg of the proj 4.4.7 package. Four projection
838            definitions have been deleted as they are not accepted by proj:
839            "CH1903+ / LV95", "Bern 1898 (Bern) / LV03C", "CH1903 / LV03"
840            and "HD72 / EOV".
841    
842    2003-10-22  Bernhard Herzog  <[email protected]>
843    
844            Some more tweaks to the projection dialog which should fix RT
845            #1886.
846    
847            * Thuban/UI/projlist.py (ProjectionList.Destroy): Unsubscribe from
848            the ProjFile's messages and call the base class methods correctly
849            (ProjectionList.SelectProjection): Set the wxLIST_STATE_FOCUSED
850            flag on the newly selected item too. Otherwise some other item is
851            focused and the first time the focus is moved with the keyboard
852            the selection moves in unexpected ways.
853    
854            * Thuban/UI/projdialog.py (ProjFrame.__init__): Do not set the
855            focus on the OK button, only on the projection list. That way the
856            list really has the focus initially
857            (ProjFrame.OnClose): Call the projection list's Destroy method to
858            make it unsubscribe all messages
859    
860    2003-10-21  Bernhard Herzog  <[email protected]>
861    
862            Rework the projection dialog to fix a few bugs, including RT 2166
863            and most of 2168
864    
865            * Thuban/UI/projlist.py: New. The class ProjectionList is a
866            special wxListCtrl to show a list of projections in a more MVC
867            fashion
868    
869            * Thuban/UI/projdialog.py (ProjFrame): Substantial changes
870            throughout the class. The main change is to use the ProjectionList
871            class instead of a normal wxListBox. Also, add an explicit
872            "Unknown" projection to the projection choice control.
873            (ProjPanel.__init__): Add an "unknown" ellipsoid
874            (TMPanel.__init__, LCCPanel.__init__): Tweak the order of
875            instantiation of the panel's controls to make the tab-order more
876            natural
877    
878    2003-10-21  Bernhard Herzog  <[email protected]>
879    
880            * test/test_load.py (TestSingleLayer.file_contents)
881            (TestSingleLayer.test): Add non-ascii characters to the titles of
882            session, map and layer. This is effectively a port of the
883            TestUnicodeStrings test in test_load_0_8.py which for some reason
884            was only added there.
885    
886            * test/test_load_0_9.py (TestSingleLayer.file_contents)
887            (TestSingleLayer.test): Same as in test_load.py: add non-ascii
888            characters to the titles of session, map and layer,.
889    
890    2003-10-21  Bernhard Herzog  <[email protected]>
891    
892            Add EPSG projection handling to .thuban files
893    
894            * test/test_save.py (SaveSessionTest.dtd)
895            (SaveSessionTest.testEmptySession)
896            (SaveSessionTest.testLayerProjection)
897            (SaveSessionTest.testRasterLayer)
898            (SaveSessionTest.testClassifiedLayer)
899            (SaveSessionTest.test_dbf_table)
900            (SaveSessionTest.test_joined_table)
901            (SaveSessionTest.test_save_postgis): Update to 1.0-dev namespace
902            (SaveSessionTest.testSingleLayer): Update to 1.0-dev namespace and
903            use a and epsg projection to test saving them
904    
905            * test/test_load.py (LoadSessionTest.dtd): Update to 1.0-dev
906            namespace
907            (TestLayerVisibility.file_contents, TestLabels.file_contents)
908            (TestLayerProjection.file_contents)
909            (TestRasterLayer.file_contents, TestJoinedTable.file_contents)
910            (TestPostGISLayer.file_contents)
911            (TestPostGISLayerPassword.file_contents)
912            (TestLoadError.file_contents, TestLoadError.test): Update to use
913            1.0-dev namespace
914            (TestSingleLayer.file_contents, TestSingleLayer.test): Update to
915            use 1.0-dev namespace and use an EPSG projection to test whether
916            loading it works
917    
918            * test/test_load_0_9.py: New. Effectively a copy of test_load.py
919            as of Thuban 0.9. These are now tests to determine whether Thuban
920            can still read files generated by Thuban 0.9
921    
922            * Thuban/Model/save.py (SessionSaver.write)
923            (SessionSaver.write_session): Use the 1.0 dtd and 1.0-dev
924            namespace
925            (SessionSaver.write_projection): Write the projection's epsg
926            attribute
927    
928            * Thuban/Model/load.py (SessionLoader.__init__): Also accept the
929            thuban-1.0-dev.dtd namespace
930            (SessionLoader.check_attrs): Allow a callable object as conversion
931            too
932            (SessionLoader.start_projection, SessionLoader.end_projection)
933            (SessionLoader.start_parameter): Handle the epsg attribute and
934            rename a few instance variables to lower case
935    
936            * Resources/XML/thuban-1.0.dtd: New. Only difference to
937            thuban-0.9.dtd is the epsg attribute for projections.
938    
939    2003-10-21  Bernhard Herzog  <[email protected]>
940    
941            * test/runtests.py (main): Let the user specify which tests to run
942            on the command line
943    
944            * test/support.py (ThubanTestResult.getDescription): Override to
945            give a better short description. The description can be used as a
946            parameter to run_tests to run that particular test in isolation.
947    
948    2003-10-21  Frank Koormann   <[email protected]>
949    
950            Popup menu for legend. Scheduled for the 1.2 release this was too
951            simple to implement: The popup menu is bound to the legend tree, while
952            the events are hanlded by its anchestor, the legend panel. This
953            allows reuse of all the event handlers already implemented for the
954            legend toolbar buttons.
955    
956            * Thuban/UI/legend.py (LegendPanel.__init__): EVT_MENU macros
957            to add handlers for the events issued by the popup menu.
958            (LegendPanel._OnToggleVisibility): Handler for toggling layer
959            visibility event
960            (LegendPanel._OnProjection): Handler for layer projection event.
961            (LegendTree.__init__): Added EVT_TREE_ITEM_RIGHT_CLICK
962            (LegendTree._OnRightClick): Event handler for right click, select item
963            and pop up menu.
964            (LegendTree.ToggleVisibility): Toggle layer visibility
965            (LegendTree.LayerProjection): Raise layer projection dialog for
966            current layer.
967    
968    2003-10-21  Bernhard Herzog  <[email protected]>
969    
970            * Resources/Projections/defaults.proj: Use correct DOCTYPE
971            declaration. The top-level element is projectionlist not projfile
972    
973    2003-10-20  Bernhard Herzog  <[email protected]>
974    
975            * Thuban/UI/projdialog.py (ProjFrame.write_proj_file): New. helper
976            method to write a projfile and display a busy cursor and error
977            dialogs.
978            (ProjFrame._OnSave, ProjFrame._OnAddToList, ProjFrame._OnImport)
979            (ProjFrame._OnExport, ProjFrame._OnRemove): Use write_proj_file
980            (ProjFrame.__FillAvailList): Translate "<None>" too and display a
981            busy cursor while loading the user and system prj files.
982    
983    2003-10-16  Bernhard Herzog  <[email protected]>
984    
985            * Thuban/Model/resource.py (projfile_cache): Introduce a cache for
986            ProjFile objects
987            (clear_proj_file_cache): New function to clear the cache. Mainly
988            useful for use by the test suite
989            (read_proj_file): Use the cache.
990    
991            * test/test_proj.py (TestProjFile): Clarify the doc-string
992            (ProjFileReadTests): Update doc-string
993            (ProjFileReadTests.test_get_system_proj_file): Check whether the
994            system proj files is cached.
995            (ProjFileLoadTestCase): New base class for the proj file tests
996            derived from support.FileLoadTestCase to provide some common
997            behavior.
998            (TestLoadingProjFile)
999            (TestLoadingProjFileWithEmptyProjectionlist.file_contents)
1000            (TestProjFileWithInvalidParameters.file_contents): Derive from
1001            ProjFileLoadTestCase
1002            (TestLoadingProjFile.test_caching): New. Test whether the cache
1003            works
1004    
1005  2003-10-16      Silke Reimer    <[email protected]>  2003-10-16      Silke Reimer    <[email protected]>
1006    
1007          * debian/*: New directory with configuration files for building a thuban          * debian/*: New directory with configuration files for building a thuban

Legend:
Removed from v.1829  
changed lines
  Added in v.2021

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26