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

Legend:
Removed from v.1865  
changed lines
  Added in v.2022

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26