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

Legend:
Removed from v.1840  
changed lines
  Added in v.2033

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26