/[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 1248 by bh, Thu Jun 19 19:53:47 2003 UTC
# Line 1  Line 1 
1    2003-06-19  Bernhard Herzog  <[email protected]>
2    
3            Move version specific load tests to their own file.
4    
5            * test/test_load.py: Expand the doc-string to explain a bit how to
6            handle file format changes.
7            (TestClassification.test): Update the docstring as this test is
8            not about Thuban 0.2 anymore.
9    
10            * test/test_load_0_2.py: New file with the load tests for thuban
11            files created with Thuban 0.2 and earlier.
12    
13    2003-06-19  Bernhard Herzog  <[email protected]>
14    
15            Add XML validation to some of the tests. Validation will only be
16            done if pyRXP is installed (http://reportlab.com/xml/pyrxp.html).
17            To make the DTD available to the test cases it's moved into
18            Resources/XML
19    
20            * Resources/XML/thuban.dtd: New. This is now the real Thuban DTD
21            for versions up to and including 0.2. Two slight changes: added an
22            encoding specification and fixed the comment which refered to
23            GRASS, not Thuban
24    
25            * test/xmlsupport.py: New support module for tests involving XML.
26            Currently there's a mix-in class for XML validation.
27    
28            * test/test_xmlsupport.py: New. Tests for the xmlsupport module
29    
30            * test/test_save.py (SaveSessionTest): Derive from ValidationTest
31            so that we can validate the
32            (SaveSessionTest.testEmptySession)
33            (SaveSessionTest.testSingleLayer)
34            (SaveSessionTest.testSingleLayer)
35            (SaveSessionTest.testLayerProjection)
36            (SaveSessionTest.testRasterLayer)
37            (SaveSessionTest.testClassifiedLayer): Validate the generated XML
38    
39            * test/runtests.py (main): Call print_additional_summary instead
40            of print_garbage_information
41    
42            * test/support.py (resource_dir): New function to return the
43            "Resource" subdirectory
44            (print_additional_summary): New function to combine several
45            summary functions
46            (run_tests): Use print_additional_summary instead of calling
47            print_garbage_information directly
48    
49    2003-06-19  Bernhard Herzog  <[email protected]>
50    
51            * Doc/thuban.dtd (classification): Correct the content model of
52            the classification element.
53            (projection): Add the "name" attribute
54    
55    2003-06-19  Frank Koormann   <[email protected]>
56    
57            MERGE from the greater-ms3 branch.
58    
59            * Thuban/UI/scalebar.py (ScaleBar.DrawScaleBar): Apply conversion to
60            scale if projection is latlong to get better estimate.
61    
62            Fix problem of hidden properties dialog under windows after double
63            click on layer tree:
64            The tree control always gets an Expanded / Collapsed event after
65            the ItemActivated  on double click, which raises the main window again.         We add a second ItemActivated event to the queue, which simply
66            raises the already displayed window.
67    
68            * Thuban/UI/legend.py (LegendTree.__init__): Instance variable
69            raiseProperties initialized to prevent endless loops
70            (LegendTree._OnItemActivated): Depending on self.raiseProperties
71            simply raise the properties or open the dialog and issue a second
72            event.
73    
74    2003-06-18  Jonathan Coles   <[email protected]>
75    
76            * setup.py: Fix a few problems that occured under Windows.
77    
78    2003-06-18  Jonathan Coles   <[email protected]>
79    
80            When Thuban loaded the map was redrawn twice because the
81            legend was being opened after the mainwindow was created
82            and not during its creation. This meant the map was drawn
83            initially and then had to be redrawn when the legend
84            caused the display to change. Now the legend is opened
85            in the mainwindow constructor which resolves this issue.
86    
87            Also, although we were checking for the existence of
88            gdal and gdalwarp modules, the gdalwarp extension was
89            still being compiled (which may fail if the system doesn't
90            have gdal installed). the build_ext command to setup.py
91            now accepts the flags --with-gdal and --without-gdal.
92            If --without-gdal is specified setup.py will try to
93            use the gdal parameters specified by gdal-config. Under
94            windows, those parameters have to be set in setup.py
95            as with proj4 an wxWindows.
96    
97            * setup.py: Use a list instead of seperate variables for
98            extension parameters so we can create a generic function
99            that runs an appropriate *-config script.
100            (run_cs_script): Renamed from run_wx_script and modified
101            to accept a second argument which is a list of lists to
102            be filled in by the values returned from running the command.
103            (thuban_build_ext): New. Extends the build_ext command and
104            provides the options --with-gdal/--without-gdal which then
105            optionally includes the gdalwarp extension.
106    
107            * Thuban/Model/resource.py: First check if we can import
108            the gdalwarp Thuban extension before checking for gdal.
109            Also added some comments.
110            
111            * Thuban/UI/legend.py (ScaleBarBitmap.__SetScale): Check if
112            the map is None which may be the case if none has been loaded
113            yet.
114    
115            * Thuban/UI/main.py (main): Remove call to ShowLegend.
116    
117            * Thuban/UI/mainwindow.py (MainWindow.__init__): Call ShowLegend().
118    
119            * Thuban/UI/renderer.py: Check for gdal support before importing
120            gdalwarp.
121            (MapRenderer.render_map): Only try to optimize if we have gdal
122            support otherwise nothing will get drawn.
123    
124            * Thuban/UI/view.py (MapCanvas.FitMapToWindow): This may be called
125            during startup before a map has been created. Check if map is None
126            before using it and do nothing if it is.
127    
128    2003-06-17  Jonathan Coles   <[email protected]>
129    
130            Fix the problem with raster layers under Windows that caused
131            Thuban to crash. The view should respond to layer projection
132            changed events to update the display. Changes to a projection
133            should not cause the map to be set to full extent.
134            
135            * Thuban/UI/view.py (MapCanvas.__init__): New instance variable
136            current_map_proj to remember the current map projection so that
137            when the projection changes we know what the previous projection
138            was.
139            (MapCanvas.SetMap): Unsubscribe and subscribe to
140            LAYER_PROJECTION_CHANGED events.
141            (MapCanvas.projection_changed): Split into two methods that respond
142            to map and layer projection changes.
143            (MapCanvas.map_projection_changed): New. Takes the current view and
144            projects it using the new projection. This does not cause the
145            map to be redrawn at full extent.
146            (MapCanvas.layer_projection_changed): New. Cause a redraw which
147            will draw each layer in its new projection.
148            
149            * extensions/thuban/bmpdataset.cpp (BMPDataset::Open): Call
150            VSIFClose() not VSIFCloseL() to close the file. Fixes a crash
151            under Windows.
152            
153            * extensions/thuban/gdalwarp.cpp (MFILENAME): Padding should be
154            to twice sizeof(void*) because there are two digits for each
155            hex byte.
156    
157  2003-06-16  Bernhard Herzog  <[email protected]>  2003-06-16  Bernhard Herzog  <[email protected]>
158    
159          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.1248

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26