/[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 1079 by bh, Wed May 28 09:07:53 2003 UTC revision 1178 by jonathan, Thu Jun 12 15:46:56 2003 UTC
# Line 1  Line 1 
1    2003-06-12  Jonathan Coles   <[email protected]>
2    
3            * Thuban/Model/classification.py: Removed assert statements that
4            tested if the variable was an instance of Color.
5    
6            * Thuban/Model/color.py (Color): Remove commented code that isn't
7            used.
8            (Transparent): Renamed from NoColor. Doesn't inherit from Color.
9            Fixes RTbug #1835.
10            (Transparent.__eq__, Transparent.__ne, Transparent.__repr): New.
11            Needed now that the class doesn't inherit from Color.
12    
13    2003-06-12  Jonathan Coles   <[email protected]>
14    
15            * test/test_save.py (XMLWriterTest.testEncode): Explicitly
16            check unicode strings.
17    
18            * test/test_layer.py: Check for existence of gdal.
19    
20    2003-06-12  Jonathan Coles   <[email protected]>
21        
22            * Thuban/Model/xmlreader.py: New. Contains the XMLReader class
23            that was in load.py
24    
25            * Thuban/Model/xmlwriter.py: New. Contains the XMLWriter class
26            that was in save.py
27    
28    2003-06-12  Jonathan Coles   <[email protected]>
29    
30            This is largely a collection of bug fixes. We also handle the
31            case where gdal is not on the system. The XMLReader and XMLWriter
32            classes were moved into there own files to resolve some circular
33            import references and because they shouldn't really be in the
34            file that is dediciated to reading/writing session files since
35            they are also used elsewhere.
36    
37            * Thuban/Model/classgen.py: Renamed functions to follow the
38            function_names_with_underscores style. Fixes RTbug #1903.
39            (calculate_quantiles): Raise ValueError if 'percents' is invalid.
40    
41            * Thuban/Model/layer.py: Import gdal only if it available.
42            (RasterLayer): Handle the case where the gdal library is unavailable.
43            Addresses RTbug #1877.
44    
45            * Thuban/Model/load.py (XMLReader): Moved into seperate file
46            xmlreader.py.
47    
48    2003-06-12  Jonathan Coles   <[email protected]>
49    
50            This is largely a collection of bug fixes. We also handle the
51            case where gdal is not on the system. The XMLReader and XMLWriter
52            classes were moved into there own files to resolve some circular
53            import references and because they shouldn't really be in the
54            file that is dediciated to reading/writing session files since
55            they are also used elsewhere.
56    
57            * Thuban/Model/classgen.py: Renamed functions to follow the
58            function_names_with_underscores style. Fixes RTbug #1903.
59            (calculate_quantiles): Raise ValueError if 'percents' is invalid.
60    
61            * Thuban/Model/layer.py: Import gdal only if it available.
62            (RasterLayer): Handle the case where the gdal library is unavailable.
63            Addresses RTbug #1877.
64    
65            * Thuban/Model/load.py (XMLReader): Moved into seperate file
66            xmlreader.py.
67    
68            * Thuban/Model/save.py (escape, XMLWriter): Moved into seperate
69            file xmlwriter.py.
70    
71            * Thuban/Model/resource.py: Renamed functions to following the
72            function_names_with_underscores style.
73            (has_gdal_support): New function that returns true if the gdal
74            library is available. Addresses RTbug #1877.
75    
76            * Thuban/UI/application.py (ThubanApplication.OpenSession):
77            Display a message box if the gdal library is not available, but
78            only if there are any layers that would use it. Addresses RTbug #1877.
79    
80            * Thuban/UI/classgen.py: Use renamed projection resource functions.
81            (GenUniformPanel.__CalcStepping): Fix a slight discrepency
82            when using integers versus floats.
83    
84            * Thuban/UI/mainwindow.py (_has_gdal_support): New. Used to
85            determine if the "Add Image Layer" menu option should be
86            greyed out or not. Addresses RTbug #1877.
87    
88            * Thuban/UI/projdialog.py: Use renamed projection resource functions.
89    
90            * Thuban/UI/renderer.py (MapRenderer.render_map): Only try to
91            optimize if a raster layer is visible. Fixes RTbug #1931.
92            Only draw the raster layer if the gdal library is available.
93            Addresses RTbug #1877.
94    
95            * test/test_classgen.py: Add tests for generate_singletons,
96            generate_uniform_distribution, generate_quantiles. Fixes RTbug #1903.
97            (test_calculate_quantiles): Fix some tests to catch the new
98            ValueError that is raised.
99    
100            * test/test_proj.py: Use renamed projection resource functions.
101    
102            * test/test_save.py (SaveSessionTest.testClassifiedLayer): New
103            test for saving classified layers. Fixes RTbug #1902.
104            (XMLWriterTest): New. Tests the XMLWriter class. Fixes RTbug #1851.
105    
106    2003-06-12  Jan-Oliver Wagner <[email protected]>
107    
108            Fix for http://intevation.de/rt/webrt?serial_num=1900.
109    
110            * Thuban/UI/multiplechoicedialog.py: New. A multiple choice dialog.
111    
112            * Thuban/UI/mainwindow.py: import wxMultipleChoiceDialog from
113            multiplechoicedialog.py rather than from the wxPython library.
114    
115    2003-06-11  Frank Koormann  <[email protected]>
116    
117            * Thuban/Lib/fileutil.py (get_application_dir): Minor stability
118            update.
119    
120    2003-06-11  Frank Koormann  <[email protected]>
121    
122            * Thuban/Lib/fileutil.py (get_application_dir): New function to
123            determine the absolute .thuban/thuban directory under
124            "posix" (os.expanduser) and "nt" (read AppData registry key).
125    
126            * Thuban/Model/resource.py: Use get_application_dir
127    
128            * Thuban/UI/application.py (ThubanApplication.read_startup_files):
129            Use get_application_dir.
130    
131    2003-06-10  Bernhard Herzog  <[email protected]>
132    
133            * Thuban/UI/tableview.py (LayerTableFrame.__init__): Subscribe to
134            the messages MAP_LAYERS_REMOVED messages
135            (LayerTableFrame.OnClose): Unsubscribe from it.
136            (LayerTableFrame.map_layers_removed): New. Receiver for
137            MAP_LAYERS_REMOVED. Close the dialog when the layer whose the
138            dialog is showing is removed.
139    
140    2003-06-10  Bernhard Herzog  <[email protected]>
141    
142            * Thuban/Lib/connector.py (Connector.Issue): Iterate over a copy
143            of the receivers list so that unsubscribing in a receiver doesn't
144            modify it while iterating over it.
145    
146            * test/test_connector.py
147            (ConnectorTest.test_disconnect_in_receiver): New. Test whether
148            unsubscribing in a receiver works correctly. See docstring for
149            details
150    
151    2003-06-10  Bernhard Herzog  <[email protected]>
152    
153            * Thuban/Model/messages.py (LAYER_SHAPESTORE_REPLACED): New
154            message.
155    
156            * Thuban/Model/layer.py (Layer.SetShapeStore): Send
157            LAYER_SHAPESTORE_REPLACED when the shapestore changes. A
158            LAYER_CHANGED will still be sent if the classification changes.
159    
160            * Thuban/UI/classifier.py (Classifier.__init__): Add the map as
161            parameter so we can subscribe to some of its messages
162            (Classifier.__init__): Subscribe to the map's MAP_LAYERS_REMOVED
163            and the layer's LAYER_SHAPESTORE_REPLACED
164            (Classifier.unsubscribe_messages): New. Unsubscribe from message
165            subscribed to in __init__
166            (Classifier.map_layers_removed)
167            (Classifier.layer_shapestore_replaced): receivers for the messages
168            subscribed to in __init__. Unsubscribe and close the dialog
169    
170            * Thuban/UI/mainwindow.py (MainWindow.OpenLayerProperties): Pass
171            the map to the Classifier dialog
172    
173            * test/test_layer.py (SetShapeStoreTests): Derive from
174            SubscriberMixin as well so we can test messages
175            (SetShapeStoreTests.setUp): Subscribe to some of the layer's
176            messages
177            (SetShapeStoreTests.tearDown): Clear the messages again
178            (SetShapeStoreTests.test_sanity): Expand the doc-string and check
179            for the modified flag too
180            (SetShapeStoreTests.test_set_shape_store_modified_flag): New test
181            to check whether SetShapeStore sets the modified flag
182            (SetShapeStoreTests.test_set_shape_store_different_field_name)
183            (SetShapeStoreTests.test_set_shape_store_same_field)
184            (SetShapeStoreTests.test_set_shape_store_same_field_different_type):
185            Add tests for the messages. This checks both the new
186            LAYER_SHAPESTORE_REPLACED and the older LAYER_CHANGED
187    
188    2003-06-06  Jan-Oliver Wagner <[email protected]>
189    
190            * Thuban/UI/mainwindow.py: Improved and partly added help texts for
191            the menu items.
192    
193    2003-06-05  Frank Koormann  <[email protected]>
194    
195            * Thuban/UI/identifyview.py (IdentifyView.__init__):
196            Layout reimplemented without panel. Make life easier to fit the list
197            in the dialog.
198    
199    2003-06-05  Frank Koormann  <[email protected]>
200    
201            * Thuban/UI/projdialog.py (ProjFrame.__init__): Fill the projchoice
202            once on initialisation (Former implementation resulted in multiple
203            entries for each projection).
204            (ProjFrame.__FillAvailList): selectProj as second optional parameter,
205            if set, select the projection found under the specified name. This
206            overwrites any other selection estimate.
207            Removed projchoice filling from this method.
208            (ProjFrame._OnSave, ProjFrame._OnAddToList):
209            Updated call of ProjFrame.__FillAvailList
210            (LCCPanel._DoLayout): Moved parameter controls in more common order.
211    
212            * Resources/Projections/defaults.proj: Extended defaults representing
213            various common European projections.
214    
215    2003-06-05  Frank Koormann  <[email protected]>
216    
217            * Thuban/UI/identifyview.py (IdentifyView.__init__):
218            Use ListCtrl instead of GridCtrl
219    
220            * Thuban/Model/resource.py:
221            Guess location of .thuban directory from tempdir parent directory.
222    
223            * Thuban/UI/application.py (ThubanApplication.read_startup_files):
224            Guess location of .thuban directory from tempdir parent directory.
225    
226    2003-06-04  Bernhard Herzog  <[email protected]>
227    
228            Do not cache the values returned by the tree widget's
229            GetFirstChild and GetNextChild methods because it led to lots of
230            segfaults. The new way requires more brute force but is more
231            reliable.
232    
233            * Thuban/UI/legend.py (LegendTree.__init__): Remove instance
234            variable layer2id
235            (LegendTree.find_layer): New method to do with brute force what
236            layer2id tried to accomplish
237            (LegendTree._OnMsgLayerChanged)
238            (LegendTree._OnMsgLayerTitleChanged, LegendTree.__ShowHideLayer):
239            Use find_layer instead of layer2id
240            (LegendTree.__RemoveLayer, LegendTree.__AddLayer): No need to
241            update layer2id anymore
242            (LegendTree._OnMsgMapLayersRemoved)
243            (LegendTree._OnMsgMapLayersAdded): Get by without layer2id.
244    
245    2003-06-03  Thomas Koester  <[email protected]>
246    
247            * Thuban/Model/classgen.py (GenQuantiles0): New function.
248    
249    2003-06-02  Bernhard Herzog  <[email protected]>
250    
251            * Thuban/UI/mainwindow.py (layer_rename command, table_rename command):
252            New commands.
253            (main_menu): Add the new commands.
254            (MainWindow.TableRename): New. Implementation of the table_rename
255            command.
256            (MainWindow.RenameLayer): New. Implementation of the layer_rename
257            command.
258    
259            * Thuban/Model/session.py (Session.AddTable): call self.changed to
260            set the modified flag
261    
262            * test/test_session.py (TestSessionSimple.test_add_table): Test
263            whether the modified flag is set properly
264    
265            * Thuban/Model/base.py (TitledObject.SetTitle): Call changed
266            instead of issue so that the modified flags get updated.
267    
268            * test/test_base.py (SomeTitledObject): Derive from Modifiable
269            instead of Publisher to reflect reality better and to accomodate
270            the fact that SetTitle now calls changed instead of issue
271    
272    2003-06-02  Bernhard Herzog  <[email protected]>
273    
274            * Thuban/UI/classgen.py (GenQuantilesPanel.GetList): Resource
275            acquisition has to happen before the try in a try-finally.
276    
277    2003-06-02  Bernhard Herzog  <[email protected]>
278    
279            * Thuban/UI/legend.py (LegendTree._OnMsgMapLayersRemoved): It's
280            possible that a layer is removed that is not currently selected in
281            the legend so don't check for this.
282    
283    2003-05-30  Bernhard Herzog  <[email protected]>
284    
285            * Thuban/Model/layer.py (Layer.Destroy): Set all instance
286            variables to None that have direct or indirect references to
287            shapefiles or dbf files to make sure that they do go away and the
288            files are closed.
289    
290    2003-05-30  Bernhard Herzog  <[email protected]>
291    
292            * Thuban/UI/legend.py (LegendTree.GetRootItem): Reset
293            availImgListIndices when a new image list is created
294            
295    2003-05-30  Bernhard Herzog  <[email protected]>
296    
297            * Thuban/UI/legend.py (LegendTree.__init__): New instance variable
298            changing_selection to indicate whether the LegendTree code itself
299            is currently changing the selection
300            (LegendTree.normalize_selection): New method to normalize the
301            selection by selecting the layer item even if the user clicked on
302            the classification.
303            (LegendTree._OnSelChanged): normalize the selection. This works
304            around a bug in wx which doesn't keep track of the selection
305            properly when subtrees are deleted.
306    
307    2003-05-30  Bernhard Herzog  <[email protected]>
308    
309            * Thuban/UI/view.py (MapCanvas.set_view_transform): Limit the
310            maximum and minimum scale factors.
311    
312            * test/test_classgen.py (ClassGenTest.test): Update to reflect the
313            changes in classgen.py
314    
315    2003-05-30  Jonathan Coles   <[email protected]>
316    
317            * Thuban/Model/classgen.py: Remove ClassGenerator class but make
318            all the methods functions. Fixes RTBug #1903.
319    
320            * Thuban/Model/map.py (Map.TopLayer, Map.BottomLayer): Renamed
321            to MoveLayerToTop and MoveLayerToBottom respectively. Fixes
322            RTBug #1907.
323    
324            * Thuban/UI/classgen.py: Use classgen functions that were part
325            of the ClassGenerator class. Put try/finally blocks around
326            code that uses wxBeginBusyCursor()/wxEndBusyCursor(). Fixes
327            RTBug #1904.
328    
329            * Thuban/UI/classifier.py: Remove unused import of ClassGenerator.
330    
331            * Thuban/UI/legend.py: The legend was cleared and repopulated any
332            time something changed which caused some state to be lost such
333            as which children were expanded or collapsed. Fixes RTBug #1901.
334            (LegendTree._OnMsgMapLayersAdded): Add only new layers.
335            (LegendTree.__OnMsgMapLayersRemoved): Remove layers that exist in
336            the legend but not in the map.
337            (LegendTree.__FillTree): Move main functionality out into smaller
338            methods that can be used by other methods.
339            (LegendTree.__FillTreeLayer): Reuse old slots in the image list
340            if they are available.
341            (LegendTree.DeleteAllItems): Renamed from __DeleteAllItems so
342            that we override the wxTreeCtrl method. Iterate over children
343            and call __RemoveLayer.
344            (LegendTree.__AddLayer): New. Add a new layer to the legend.
345            (LegendTree.__RemoveLayer): Remove a layer from the legend.
346            (LegendTree.DeleteChildren): New, overrides wxTreeCtrl method.
347            Should only be called with the id of a layer branch.
348            (LegendTree.GetRootItem): New, overrides wxTreeCtrl method.
349            Returns the root item or creates one if necessary.
350    
351            * Thuban/UI/renderer.py (MapRenderer.draw_raster_layer): Call
352            ProjectRasterFile with tuple arguments instead of strings.
353    
354            * Thuban/UI/tableview.py (QueryTableFrame.OnQuery): Wrap code
355            with try/finally. Fixes RTBug #1904.
356    
357            * Thuban/UI/view.py (MapCanvas.OnPaint): Wrap code
358            with try/finally. Fixes RTBug #1904.
359            (MapCanvas.FitSelectedToWindow): If a single point is selected
360            simply center it on the display. Fixes RTBug #1849.
361    
362            * extensions/thuban/gdalwarp.cpp: Removed code that allowed gdalwarp
363            to be compiled as a standalone app. Now the code can only be
364            called from Python which simplifies the parameter passing.
365            (ProjectRasterFile): Handle Python arguments. Remove code that
366            checks for a destination dataset. Add more clean up code.
367    
368            * test/test_map.py (TestMapWithContents.test_raise_layer_top,
369            TestMapWithContents.test_lower_layer_bottom):
370            Test Map.MoveLayerToTop() and Map.MoveLayerToBottom() respectively.
371            Fixes RTBug #1907.
372    
373            * Thuban/UI/mainwindow.py (MainWindow.ToggleLegend): Apply a full
374            extent to the map when the legend is toggled. Fixes RTBug #1881.
375    
376    2003-05-29  Jan-Oliver Wagner <[email protected]>
377    
378            * Thuban/UI/tableview.py (LayerTableFrame.OnClose): Bug-fix: Now
379            unsubscribes all that is subcribed in __init__.
380    
381    2003-05-28  Bernhard Herzog  <[email protected]>
382    
383            * Thuban/UI/mainwindow.py (MainWindow.DuplicateLayer)
384            (MainWindow.CanDuplicateLayer): New methods to implement the
385            Layer/Duplicate command.
386            (layer_duplicate command): New.
387            (main_menu): Add layer_duplicate to the Layer menu.
388    
389    2003-05-28  Bernhard Herzog  <[email protected]>
390    
391            * Thuban/UI/tableview.py (NullRenderer.Draw): New. Our own
392            renderer so that NULL/None values get displayed differently (by a
393            gray rectangle).
394            (TableGrid.__init__): Override the default renderers
395    
396    2003-05-28  Bernhard Herzog  <[email protected]>
397    
398            * Thuban/Model/layer.py (Layer.SetShapeStore): Set the
399            classification to "None" if the type of the field has changed.
400    
401            * test/test_layer.py (SetShapeStoreTests): New. Class with a few
402            test for the Layer.SetShapeStore method
403    
404    2003-05-28  Jan-Oliver Wagner <[email protected]>
405    
406            * Thuban/Model/layer.py (Layer.TreeInfo): Fixed a bug (a layer
407            does not necessarily have a filename).
408    
409    2003-05-28  Jan-Oliver Wagner <[email protected]>
410    
411            * Thuban/UI/mainwindow.py (MainWindow.TableClose, MainWindow.TableShow):
412            sort the selection list for the dialog.
413    
414    2003-05-28  Frank Koormann  <[email protected]>
415    
416            * extensions/thuban/wxproj.cpp
417            (project_point): Removed cast to int for projected point coordinates.
418            (shape_centroid): Return last point if all polygon vertices fall
419            to one point.
420    
421    2003-05-28  Bernhard Herzog  <[email protected]>
422    
423            * Thuban/UI/mainwindow.py (_can_unjoin): Add doc-string and cope
424            with layers that don't have shapestores, i.e. raster layers.
425    
426  2003-05-28  Bernhard Herzog  <[email protected]>  2003-05-28  Bernhard Herzog  <[email protected]>
427    
428          * Thuban/Model/table.py (DBFTable.__init__): Omit the extension          * Thuban/Model/table.py (DBFTable.__init__): Omit the extension

Legend:
Removed from v.1079  
changed lines
  Added in v.1178

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26