/[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 1208 by bh, Fri Jun 13 18:16:15 2003 UTC revision 1235 by jonathan, Wed Jun 18 14:47:50 2003 UTC
# Line 1  Line 1 
1    2003-06-18  Jonathan Coles   <[email protected]>
2    
3            When Thuban loaded the map was redrawn twice because the
4            legend was being opened after the mainwindow was created
5            and not during its creation. This meant the map was drawn
6            initially and then had to be redrawn when the legend
7            caused the display to change. Now the legend is opened
8            in the mainwindow constructor which resolves this issue.
9    
10            Also, although we were checking for the existence of
11            gdal and gdalwarp modules, the gdalwarp extension was
12            still being compiled (which may fail if the system doesn't
13            have gdal installed). the build_ext command to setup.py
14            now accepts the flags --with-gdal and --without-gdal.
15            If --without-gdal is specified setup.py will try to
16            use the gdal parameters specified by gdal-config. Under
17            windows, those parameters have to be set in setup.py
18            as with proj4 an wxWindows.
19    
20            * setup.py: Use a list instead of seperate variables for
21            extension parameters so we can create a generic function
22            that runs an appropriate *-config script.
23            (run_cs_script): Renamed from run_wx_script and modified
24            to accept a second argument which is a list of lists to
25            be filled in by the values returned from running the command.
26            (thuban_build_ext): New. Extends the build_ext command and
27            provides the options --with-gdal/--without-gdal which then
28            optionally includes the gdalwarp extension.
29    
30            * Thuban/Model/resource.py: First check if we can import
31            the gdalwarp Thuban extension before checking for gdal.
32            Also added some comments.
33            
34            * Thuban/UI/legend.py (ScaleBarBitmap.__SetScale): Check if
35            the map is None which may be the case if none has been loaded
36            yet.
37    
38            * Thuban/UI/main.py (main): Remove call to ShowLegend.
39    
40            * Thuban/UI/mainwindow.py (MainWindow.__init__): Call ShowLegend().
41    
42            * Thuban/UI/renderer.py: Check for gdal support before importing
43            gdalwarp.
44            (MapRenderer.render_map): Only try to optimize if we have gdal
45            support otherwise nothing will get drawn.
46            (MapCanvas.FitMapToWindow): This may be called during startup
47            before a map has been created. Check if map is None before
48            using it and do nothing if it is.
49    
50    2003-06-17  Jonathan Coles   <[email protected]>
51    
52            Fix the problem with raster layers under Windows that caused
53            Thuban to crash. The view should respond to layer projection
54            changed events to update the display. Changes to a projection
55            should not cause the map to be set to full extent.
56            
57            * Thuban/UI/view.py (MapCanvas.__init__): New instance variable
58            current_map_proj to remember the current map projection so that
59            when the projection changes we know what the previous projection
60            was.
61            (MapCanvas.SetMap): Unsubscribe and subscribe to
62            LAYER_PROJECTION_CHANGED events.
63            (MapCanvas.projection_changed): Split into two methods that respond
64            to map and layer projection changes.
65            (MapCanvas.map_projection_changed): New. Takes the current view and
66            projects it using the new projection. This does not cause the
67            map to be redrawn at full extent.
68            (MapCanvas.layer_projection_changed): New. Cause a redraw which
69            will draw each layer in its new projection.
70            
71            * extensions/thuban/bmpdataset.cpp (BMPDataset::Open): Call
72            VSIFClose() not VSIFCloseL() to close the file. Fixes a crash
73            under Windows.
74            
75            * extensions/thuban/gdalwarp.cpp (MFILENAME): Padding should be
76            to twice sizeof(void*) because there are two digits for each
77            hex byte.
78    
79    2003-06-16  Bernhard Herzog  <[email protected]>
80    
81            Update to the layer interface: Direct access to the table,
82            shapetable, shapefile and filename attributes is now actively
83            deprecated by issuing deprecation warnings for all places where
84            this happens.
85    
86            * Thuban/Model/layer.py (Layer.__getattr__): New. Implement access
87            to the instance variables table, shapetable, shapefile and
88            filename via __getattr__ so that we can issue a deprecation
89            warning.
90            (Layer.SetShapeStore): Don't set the deprecated instance variables
91            any more
92            (Layer.SetShapeStore): Don't use deprecated layer instance
93            variables
94            (Layer.Destroy): No need to explicitly remove the instance
95            variables any more
96            (Layer.GetFieldType, Layer.Shape): Don't use deprecated layer
97            instance variables
98    
99            * Thuban/UI/classgen.py (ClassGenDialog.__init__)
100            (GenUniformPanel._OnRetrieve, GenUniquePanel._OnRetrieve)
101            (GenQuantilesPanel.GetList, GenQuantilesPanel.OnRetrieve): Don't
102            use deprecated layer instance variables
103    
104            * Thuban/UI/classifier.py (Classifier.__init__): Don't use
105            deprecated layer instance variables
106    
107            * Thuban/UI/identifyview.py (IdentifyListCtrl.selected_shape)
108            (IdentifyGridCtrl.selected_shape): Don't set the deprecated layer
109            instance variables
110    
111            * Thuban/UI/tableview.py (LayerTableGrid.select_shapes): Don't use
112            deprecated layer instance variables
113    
114            * Thuban/UI/mainwindow.py (MainWindow.LayerShowTable): Don't use
115            deprecated layer instance variables
116    
117            * Thuban/Model/save.py (SessionSaver.write_layer): Don't use
118            deprecated layer instance variables
119    
120            * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer)
121            (MapRenderer.polygon_render_param): Don't use deprecated layer instance
122            variables
123    
124            * test/runtests.py (main): Turn Thuban's deprecation warnings into
125            errors so that they're cought by the tests
126    
127            * test/test_load.py (TestSingleLayer.test): Don't use deprecated
128            layer instance variables
129    
130    2003-06-16  Jonathan Coles   <[email protected]>
131    
132            Fix a problem under Windows whereby if the user double-clicks on a
133            layer in the legend that tree item will expand or collapse as well
134            as open the layer properties dialog. The state of the tree item
135            should not be affected.
136    
137            * Thuban/UI/legend.py (LegendTree.__init__): Add instance variable
138            preventExpandCollapse and subscribe to expanding and collapsing
139            events.
140            (LegendTree.OnItemExpandCollapse): New. Responds to expanding and
141            collapsing events and will veto the event if it has been triggered
142            by the user double clicking on a layer.
143            (LegendTree._OnItemActivated): Set preventExpandCollapse to indicate
144            that an expanding/collapsing event should be vetoed.
145    
146  2003-06-13  Bernhard Herzog  <[email protected]>  2003-06-13  Bernhard Herzog  <[email protected]>
147    
148          * Thuban/UI/classifier.py (Classifier.OnClose)          * Thuban/UI/classifier.py (Classifier.OnClose)

Legend:
Removed from v.1208  
changed lines
  Added in v.1235

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26