/[thuban]/branches/greater-ms3/thuban/ChangeLog
ViewVC logotype

Diff of /branches/greater-ms3/thuban/ChangeLog

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 735 by jonathan, Fri Apr 25 09:11:39 2003 UTC revision 811 by bh, Mon May 5 13:09:26 2003 UTC
# Line 1  Line 1 
1    2003-05-05  Bernhard Herzog  <[email protected]>
2    
3            * extensions/thuban/wxproj.cpp: Fix some of the comments.
4            (project_point): If a map projection but no layer projection is
5            given, convert degrees to radians before applying the map
6            projection.
7    
8            * Thuban/UI/tableview.py (TableGrid.disallow_messages)
9            (TableGrid.allow_messages): New methods to make it possible to
10            inhibit message sending.
11            (TableGrid.issue): Only send the message if not inhibited.
12            (LayerTableGrid.select_shape): Use the new methods to make sure
13            that no ROW_SELECTED message is sent while we're updating the
14            selected rows to match the selected shapes.
15    
16    2003-05-02  Jan-Oliver Wagner <[email protected]>
17    
18            Implementation of MemoryTable.
19    
20            * Thuban/Model/table.py (MemoryTable): New. Quite simple table
21            implementation that operates on a list of tuples. All of the data
22            are kept in the memory.
23    
24            * test/test_table.py (MemoryTableTest): New.
25    
26            * test/test_transientdb.py (SimpleTable): Removed.
27            (TestTransientTable.test_transient_joined_table,
28            (TestTransientTable.test_transient_table_read_twice): Replaced
29            SimpleTable by MemoryTable.
30    
31    2003-04-30  Jonathan Coles   <[email protected]>
32    
33            * Data/iceland_sample.thuban: Now contains correct projections
34            for each of the layers.
35    
36            * Resources/Projections/defaults.proj: Geographic projection
37            contains unit conversion parameter.
38    
39    2003-04-30  Jonathan Coles   <[email protected]>
40    
41            The most important part of this putback is the projection changes.
42            It should now be possible to specify the projection that a layer
43            is in and then specify a different projection for the map. The
44            projection dialog has an extra parameter for a geographic projection
45            which lets the user select if the input is in degrees or radians.
46    
47            * Thuban/Model/layer.py (Layer.ShapesInRegion): Fix docstring
48            to say that the parameter is a tuple of unprojected
49            points (which is what the callers to this method were assuming).
50            Also, since the points are unprojected we need to projected them.
51    
52            * Thuban/UI/legend.py (LegendTree.MoveCurrentItemUp,
53            LegendTree.MoveCurrentItemDown): If the layer or any of the layer's
54            groups are selected, move the layer up/down. Fixes RTbug #1833.
55    
56            * Thuban/UI/mainwindow.py: Move menu item map_rename up.
57    
58            * Thuban/UI/projdialog.py (ProjFrame._OnSave): Add missing
59            parameter in call to SetClientData.
60            (GeoPanel): Add support for selecting the units that the
61            source data is in (Radians or Degrees).
62    
63            * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Optimize
64            the rendering loop by reducing the number of if's, removing the
65            unnecessary try/except block, and checking if the old group
66            is the same as the new one (which happens a lot if there is
67            no classification, or lots of shapes are in the same group).
68    
69            * Thuban/UI/view.py (MapCanvas.OnPaint): Add a try/except block
70            around the redraw routine to try to catch problems that the user
71            may create by selecting invalid projections for the data set and
72            map. Clears the display if there are any problems and prints the
73            error.
74            (MapCanvas.do_redraw): Use DC.Clear() instead of drawing a filled
75            rectangle.
76    
77            * extensions/thuban/wxproj.cpp (project_point): First invert the
78            supplied point (which should be in projected coordinates) using
79            the layer's projection and then project the point using the
80            map's projection.
81            (project_points): Use project_point() to project each point.
82    
83    2003-04-30  Jan-Oliver Wagner <[email protected]>
84    
85            * Thuban/Model/layer.py (Layer.SetShapeStore): Fixed a bug:
86            don't set the Classification to None if the classfication field
87            is None (ie only a DEFAULT).
88    
89    2003-04-30  Bernhard Herzog  <[email protected]>
90    
91            * Thuban/UI/view.py: Fix some typos.
92    
93            * Thuban/UI/mainwindow.py (MainWindow.identify_view_on_demand): Do
94            not pop up the dialog if the selection becomes empty (this could
95            happen if e.g. a new selection is opened while the identify tool
96            is active and dialog had been closed)
97    
98    2003-04-30  Bernhard Herzog  <[email protected]>
99    
100            * Thuban/Model/transientdb.py (TransientTableBase.__init__): New
101            instance variable read_record_last_result
102            (TransientTableBase.read_record): Make sure reading the same
103            record twice works. The implementation uses the new instance
104            variable read_record_last_result
105    
106            * test/test_transientdb.py
107            (TestTransientTable.test_transient_table_read_twice): New test
108            case for the above bug-fix.
109    
110    2003-04-29  Jonathan Coles   <[email protected]>
111    
112            * Thuban/common.py: Removed. No longer needed Str2Num. RTbug #1832.
113    
114            * Thuban/UI/classgen.py: Remove all uses of Str2Num.
115    
116            * Thuban/UI/classifier.py: Remove all uses of Str2Num.
117            (ClassTable.SetValueAsCustom): Rename keyword argument in
118            ClassGroup* constructors to match argument name.
119    
120    2003-04-29  Bernhard Herzog  <[email protected]>
121    
122            * Thuban/Model/session.py (Session.Destroy): Explicitly close the
123            transient DB if it exists to make sure it doesn't leave a journal
124            file in the temp directory.
125    
126            * Thuban/Model/transientdb.py (TransientDatabase.close): Set
127            self.conn to None after closing the connection to make sure it's
128            not closed twice
129    
130    2003-04-29  Jonathan Coles   <[email protected]>
131    
132            Add a visible parameter in the layer XML tag. The default value is
133            "true". If anything other than "false" is specified we also assume
134            "true". Addresses RTbug #1025.
135    
136            * Doc/thuban.dtd: Add visible parameter to a layer.
137    
138            * Thuban/Model/layer.py (BaseLayer.__init__): Change default value
139            of visible from 1 to True.
140            (Layer.__init__): Change default value of visible from 1 to True.
141    
142            * Thuban/Model/load.py (SessionLoader.start_layer): Read visible
143            parameter.
144    
145            * Thuban/Model/save.py (SessionSaver.write_layer): Save visible
146            parameter.
147    
148            * test/test_load.py: Add new test data contents_test_visible.
149            (LoadSessionTest.setUp): save test data.
150            (LoadSessionTest.testLayerVisibility): Test if the visible flag
151            is loaded correctly.
152    
153            * test/test_save.py (SaveSessionTest.testSingleLayer): Add test
154            for saving an invisible layer.
155    
156    2003-04-29  Jonathan Coles   <[email protected]>
157    
158            * Thuban/UI/mainwindow.py (MainWindow.SetMap): Look up the
159            legend dialog box and tell it to change its map to the one
160            supplied to SetMap(). Fixes RTbug #1770.
161    
162    2003-04-29  Bernhard Herzog  <[email protected]>
163    
164            Next step of table implementation. Introduce a transient database
165            using SQLite that some of the data is copied to on demand. This
166            allows us to do joins and other operations that require an index
167            for good performance with reasonable efficiency. Thuban now needs
168            SQLite 2.8.0 and pysqlite 0.4.1. Older versions may work but I
169            haven't tested that.
170            
171            * Thuban/Model/transientdb.py: New. Transient database
172            implementation.
173    
174            * test/test_transientdb.py: New. Tests for the transient DB
175            classes.
176    
177            * Thuban/Model/session.py (AutoRemoveFile, AutoRemoveDir): New
178            classes to help automatically remove temporary files and
179            directories.
180            (Session.__init__): New instance variables temp_dir for the
181            temporary directory and transient_db for the SQLite database
182            (Session.temp_directory): New. Create a temporary directory if not
183            yet done and return its name. Use AutoRemoveDir to have it
184            automatically deleted
185            (Session.TransientDB): Instantiate the transient database if not
186            done yet and return it.
187    
188            * Thuban/Model/data.py (ShapefileStore.__init__): Use an
189            AutoTransientTable so that data is copied to the transient DB on
190            demand.
191            (SimpleStore): New class that simply combines a table and a
192            shapefile
193    
194            * Thuban/Model/table.py (Table, DBFTable): Rename Table into
195            DBFTable and update its doc-string to reflect the fact that this
196            is only the table interface to a DBF file. Table is now an alias
197            for DBFTable for temporary backwards compatibility.
198    
199            * Thuban/UI/application.py (ThubanApplication.OnExit): Make sure
200            the last reference to the session goes away so that the temporary
201            files are removed properly.
202    
203            * test/test_load.py (LoadSessionTest.tearDown): Remove the
204            reference to the session to make sure the temporary files are
205            removed.
206    
207    2003-04-29  Bernhard Herzog  <[email protected]>
208    
209            * Thuban/Model/load.py (XMLReader.__init__, XMLReader.read): Turn
210            the __parser instance variable into a normal local variable in
211            read. It's only used there and read will never be called more than
212            once. Plus it introduces a reference cycle that keeps can keep the
213            session object alive for a long time.
214    
215    2003-04-29  Jonathan Coles   <[email protected]>
216    
217            * Thuban/Model/proj.py (Projection): Removed Set*() methods to make
218            Projection an immutable item. Fixes RTbug #1825.
219            (Projection.__init__): Initialize instance variables here.
220            (ProjFile.Replace): New. Replace the given projection object with
221            the new projection object. This solves the problem of needing the
222            mutator Projection.SetProjection() in the ProjFrame class and
223            allows a projection to change parameters without changing its
224            location in the file.
225    
226            * Thuban/UI/mainwindow.py (MainWindow.SaveSessionAs): Dialog should
227            be of type wxSAVE and should verify overwriting a file.
228    
229            * Thuban/UI/projdialog.py (ProjFrame._OnSave): Use the new
230            ProjFile.Replace() method instead of the mutator
231            Projection.SetProjection(). Also requires that we reassign the
232            client data to the new projection.
233    
234            * test/test_proj.py (TestProjection.test): Test GetName() and
235            GetAllParameters()
236            (TestProjFile.test): Remove tests for Set*() methods. Add tests
237            for Replace().
238    
239    2003-04-25  Jonathan Coles   <[email protected]>
240    
241            * Thuban/Model/save.py (SessionSaver.write_projection): Make sure
242            to save the name of the projection.
243    
244            * test/test_save.py (SaveSessionTest.testLayerProjection): New
245            test to verify layer projections are saved correctly.
246    
247    2003-04-25  Jonathan Coles   <[email protected]>
248    
249            * Thuban/Model/proj.py (Projection.SetName): Set the name
250            to "Unknown" if name is None.
251            (Projection.SetAllParameters): New. Set the projection's
252            parameter list to the one supplied.
253            (Projection.SetProjection): New. Set the projection's
254            properties to those of the supplied Projection.
255    
256            * Thuban/UI/mainwindow.py (MainWindow.MapProjection): Set
257            the dialog title to include the map's title.
258            (MainWindow.LayerProjection): Set the dialog title to include
259            the layer's title.
260    
261            * Thuban/UI/projdialog.py (ProjFrame.__ShowError): Consolidate
262            error dialogs into a single method call.
263            (ProjFrame.__VerifyButtons): Add more states to check.
264            (ProjFrame.__GetProjection): Return the current state of an
265            edited projection or None.
266            (ProjFrame.__FillAvailList): Remove checks for states that
267            shouldn't exist.
268            (ProjFrame._OnNew): Clear all selected items and supply
269            a projection panel if necessary.
270    
271            * test/test_proj.py (TestProjFile.test): Add tests for
272            ProjFile.SetAllParameters, ProjFile.SetProjection,
273            ProjFile.SetName.
274    
275    2003-04-25  Jonathan Coles   <[email protected]>
276    
277            * Thuban/UI/projdialog.py (ProjFrame.__FillAvailList): Now
278            takes an optional argument to select the current projection.
279            This does not guarantee that the item is visible due to
280            limited wxWindows functionality. Fixes RTBug #1821.
281    
282    2003-04-25  Jonathan Coles   <[email protected]>
283    
284            * Thuban/Model/load.py (SessionLoader.start_projection): Remember
285            the projection name and use it when constructing the Projection
286            object.
287    
288            * Thuban/Model/proj.py (Projection.__init__): Change the default
289            value for 'name' to None and then test if name is equal to None
290            in the body of the constructor. This way the caller doesn't have to
291            know what the default value should be. Namely, useful in load.py
292            where we have to pick a default value if the 'name' parameter
293            doesn't exist in the XML file.
294    
295            * test/test_load.py (LoadSessionTest.testLayerProjection): New.
296            Tests a file where a layer has a projection.
297    
298  2003-04-25  Jonathan Coles   <[email protected]>  2003-04-25  Jonathan Coles   <[email protected]>
299    
300          * Thuban/Model/layer.py (Layer.TreeInfo): Add an item to the          * Thuban/Model/layer.py (Layer.TreeInfo): Add an item to the

Legend:
Removed from v.735  
changed lines
  Added in v.811

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26