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

Legend:
Removed from v.1822  
changed lines
  Added in v.1981

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26