/[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 1220 by bh, Mon Jun 16 17:43:09 2003 UTC revision 1239 by jonathan, Wed Jun 18 15:41:11 2003 UTC
# Line 1  Line 1 
1    2003-06-18  Jonathan Coles   <[email protected]>
2    
3            * setup.py: Fix a few problems that occured under Windows.
4    
5    2003-06-18  Jonathan Coles   <[email protected]>
6    
7            When Thuban loaded the map was redrawn twice because the
8            legend was being opened after the mainwindow was created
9            and not during its creation. This meant the map was drawn
10            initially and then had to be redrawn when the legend
11            caused the display to change. Now the legend is opened
12            in the mainwindow constructor which resolves this issue.
13    
14            Also, although we were checking for the existence of
15            gdal and gdalwarp modules, the gdalwarp extension was
16            still being compiled (which may fail if the system doesn't
17            have gdal installed). the build_ext command to setup.py
18            now accepts the flags --with-gdal and --without-gdal.
19            If --without-gdal is specified setup.py will try to
20            use the gdal parameters specified by gdal-config. Under
21            windows, those parameters have to be set in setup.py
22            as with proj4 an wxWindows.
23    
24            * setup.py: Use a list instead of seperate variables for
25            extension parameters so we can create a generic function
26            that runs an appropriate *-config script.
27            (run_cs_script): Renamed from run_wx_script and modified
28            to accept a second argument which is a list of lists to
29            be filled in by the values returned from running the command.
30            (thuban_build_ext): New. Extends the build_ext command and
31            provides the options --with-gdal/--without-gdal which then
32            optionally includes the gdalwarp extension.
33    
34            * Thuban/Model/resource.py: First check if we can import
35            the gdalwarp Thuban extension before checking for gdal.
36            Also added some comments.
37            
38            * Thuban/UI/legend.py (ScaleBarBitmap.__SetScale): Check if
39            the map is None which may be the case if none has been loaded
40            yet.
41    
42            * Thuban/UI/main.py (main): Remove call to ShowLegend.
43    
44            * Thuban/UI/mainwindow.py (MainWindow.__init__): Call ShowLegend().
45    
46            * Thuban/UI/renderer.py: Check for gdal support before importing
47            gdalwarp.
48            (MapRenderer.render_map): Only try to optimize if we have gdal
49            support otherwise nothing will get drawn.
50    
51            * Thuban/UI/view.py (MapCanvas.FitMapToWindow): This may be called
52            during startup before a map has been created. Check if map is None
53            before using it and do nothing if it is.
54    
55    2003-06-17  Jonathan Coles   <[email protected]>
56    
57            Fix the problem with raster layers under Windows that caused
58            Thuban to crash. The view should respond to layer projection
59            changed events to update the display. Changes to a projection
60            should not cause the map to be set to full extent.
61            
62            * Thuban/UI/view.py (MapCanvas.__init__): New instance variable
63            current_map_proj to remember the current map projection so that
64            when the projection changes we know what the previous projection
65            was.
66            (MapCanvas.SetMap): Unsubscribe and subscribe to
67            LAYER_PROJECTION_CHANGED events.
68            (MapCanvas.projection_changed): Split into two methods that respond
69            to map and layer projection changes.
70            (MapCanvas.map_projection_changed): New. Takes the current view and
71            projects it using the new projection. This does not cause the
72            map to be redrawn at full extent.
73            (MapCanvas.layer_projection_changed): New. Cause a redraw which
74            will draw each layer in its new projection.
75            
76            * extensions/thuban/bmpdataset.cpp (BMPDataset::Open): Call
77            VSIFClose() not VSIFCloseL() to close the file. Fixes a crash
78            under Windows.
79            
80            * extensions/thuban/gdalwarp.cpp (MFILENAME): Padding should be
81            to twice sizeof(void*) because there are two digits for each
82            hex byte.
83    
84  2003-06-16  Bernhard Herzog  <[email protected]>  2003-06-16  Bernhard Herzog  <[email protected]>
85    
86          Update to the layer interface: Direct access to the table,          Update to the layer interface: Direct access to the table,

Legend:
Removed from v.1220  
changed lines
  Added in v.1239

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26