/[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 687 by bh, Wed Apr 16 13:22:45 2003 UTC revision 743 by jonathan, Fri Apr 25 10:26:03 2003 UTC
# Line 1  Line 1 
1    2003-04-25  Jonathan Coles   <[email protected]>
2    
3            * Thuban/Model/load.py (SessionLoader.start_projection): Remember
4            the projection name and use it when constructing the Projection
5            object.
6    
7            * Thuban/Model/proj.py (Projection.__init__): Change the default
8            value for 'name' to None and then test if name is equal to None
9            in the body of the constructor. This way the caller doesn't have to
10            know what the default value should be. Namely, useful in load.py
11            where we have to pick a default value if the 'name' parameter
12            doesn't exist in the XML file.
13    
14            * test/test_load.py (LoadSessionTest.testLayerProjection): New.
15            Tests a file where a layer has a projection.
16    
17    2003-04-25  Jonathan Coles   <[email protected]>
18    
19            * Thuban/Model/layer.py (Layer.TreeInfo): Add an item to the
20            tree for projection information.
21    
22            * Thuban/Model/load.py (XMLReader.GetFilename): Renamed from
23            XMLReader.GetFileName.
24            (SessionLoader): Added support for loading projection tags that
25            appear inside a layer.
26    
27            * Thuban/Model/proj.py (ProjFile): Document the class. Move
28            back to using a list because the order of the projections in
29            the file is important to maintain. Fixes RTbug #1817.
30    
31            * Thuban/Model/resource.py: Rename calls to ProjFile.GetFileName
32            to ProjFile.GetFilename.
33    
34            * Thuban/Model/save.py (SessionSaver.write_layer): Save projection
35            information.
36    
37            * Thuban/UI/projdialog.py (ProjFrame._OnAddToList): Renamed from
38            ProjFrame._OnSaveAs. Removed old dead code from previous
39            implementation.
40            (ProjFrame._OnExport): Add support for exporting more than one
41            projection to a single file.
42            (ProjFrame.__FillAvailList): use string formatting (% operator)
43            to build strings that are (partly) translated. Fixes RTbug #1818.
44    
45            * test/test_proj.py (TestProjFile.test): New. Tests the base ProjFile
46            class.
47    
48    2003-04-24  Bernhard Herzog  <[email protected]>
49    
50            * po/es.po: Updated Spanish translation by Daniel Calvelo Aros
51    
52            * po/fr.po: New. French translation by Daniel Calvelo Aros
53    
54            * Thuban/UI/projdialog.py (ProjFrame._OnSaveAs): Don't translate
55            empty strings.
56    
57    2003-04-24  Jonathan Coles   <[email protected]>
58    
59            * Thuban/Model/layer.py (Layer.GetProjection): New. Needed to
60            implement the interface that the ProjFrame dialog expects.
61    
62            * Thuban/Model/proj.py (Projection.SetName): New. Allows the
63            name of the projection to be changed.
64            (ProjFile): Use a dictionary instead of a list so that removing
65            projections is easier and we are sure about uniqueness.
66            (ProjFile.Remove): Remove the given projection object.
67    
68            * Thuban/Model/resource.py (GetSystemProjFiles, GetUserProjFiles):
69            Return a list with only one projection file instead of searching for
70            any projection file. This simplifies many things if the user can
71            only have one system file and one user file.
72    
73            * Thuban/UI/classgen.py: Change all references to
74            genCombo to genChoice.
75    
76            * Thuban/UI/mainwindow.py: Add a Projection option under the
77            layer menu.
78            (MainWindow.LayerProjection): New. Open up a projection window
79            for a layer.
80    
81            * Thuban/UI/projdialog.py: Large changes to how the dialog is
82            laid out. Use three panels instead of one. One for the list of
83            projections, one for the edit controls, and one for the buttons.
84            Fixed resizing problems so that the dialog resizes correctly
85            when the projection panel changes. Added import/export, save, and
86            new buttons/functionality.
87    
88    2003-04-24  Bernhard Herzog  <[email protected]>
89    
90            First step towards table management. Introduce a simple data
91            abstraction so that we replace the data a layer uses more easily
92            in the next step.
93    
94            * Thuban/Model/data.py: New file with a simple data abstraction
95            that bundles shapefile and dbffile into one object.
96    
97            * Thuban/Model/session.py (Session.OpenShapefile): New method to
98            open shapefiles and return a shape store object
99    
100            * Thuban/Model/layer.py (Layer.__init__): Pass the data as a store
101            object instead of a shapefile filename. This introduces a new
102            instance variable store holding the datastore. For intermediate
103            backwards compatibility keep the old instance variables.
104            (open_shapefile): Removed. No longer needed with the shape store.
105            (Layer.SetShapeStore, Layer.ShapeStore): New methods to set and
106            get the shape store used by a layer.
107            (Layer.Destroy): No need to explicitly destroy the shapefile or
108            table anymore.
109    
110            * Thuban/UI/mainwindow.py (MainWindow.AddLayer)
111            (MainWindow.AddLayer): Use the session's OpenShapefile method to
112            open shapefiles
113    
114            * Thuban/Model/load.py (ProcessSession.start_layer): Use the
115            session's OpenShapefile method to open shapefiles
116    
117            * test/test_classification.py
118            (TestClassification.test_classification): Use the session's
119            OpenShapefile method to open shapefiles and build the filename in
120            a more platform independed way
121    
122            * test/test_layer.py (TestLayer.setUp, TestLayer.tearDown):
123            Implement to have a session to use in the tests
124            (TestLayer.test_arc_layer, TestLayer.test_polygon_layer)
125            (TestLayer.test_point_layer, TestLayer.test_empty_layer): Use the
126            session's OpenShapefile method to open shapefiles
127            (TestLayerLegend.setUp): Instantiate a session so that we can use
128            it to open shapefiles.
129            (TestLayerLegend.tearDown): Make sure that all references to
130            layers and session are removed otherwise we may get a resource
131            leak
132    
133            * test/test_map.py (TestMapAddLayer.test_add_layer)
134            (TestMapWithContents.setUp): Instantiate a session so that we can
135            use it to open shapefiles.
136            (TestMapWithContents.tearDown): Make sure that all references to
137            layers, maps and sessions are removed otherwise we may get a
138            resource leak
139            ("__main__"): use support.run_tests() so that more info about
140            uncollected garbage is printed
141    
142            * test/test_save.py (SaveSessionTest.testSingleLayer): Use the
143            session's OpenShapefile method to open shapefiles
144            ("__main__"): use support.run_tests() so that more info about
145            uncollected garbage is printed
146    
147            * test/test_selection.py (TestSelection.tearDown): Make sure that
148            all references to the session and the selection are removed
149            otherwise we may get a resource leak
150            (TestSelection.get_layer): Instantiate a session so that we can
151            use it to open shapefiles.
152            ("__main__"): use support.run_tests() so that more info about
153            uncollected garbage is printed
154    
155            * test/test_session.py (TestSessionBase.tearDown)
156            (TestSessionWithContent.tearDown): Make sure that all references
157            to the session and layers are removed otherwise we may get a
158            resource leak
159            (TestSessionWithContent.setUp): Use the session's OpenShapefile
160            method to open shapefiles
161    
162    2003-04-24  Jonathan Coles   <[email protected]>
163    
164            * Thuban/Model/load.py (XMLReader.read): Should have been checking
165            if the file_or_filename object had the 'read' attribute.
166    
167    2003-04-23  Jonathan Coles   <[email protected]>
168    
169            * Thuban/Model/resource.py: Fixes RTbug #1813.
170            (ReadProjFile): Add documentation about which exceptions are raised.
171            Always pass the exceptions up to the caller.
172            (GetProjFiles): If the directory can't be read return an empty list.
173            If any of the proj files can't be read skip that file and go
174            on to the next one.
175    
176            * test/test_proj.py: Added test cases to handle nonexistent files,
177            unreadable files, and files that don't parse correctly.
178    
179    2003-04-23  Jonathan Coles   <[email protected]>
180    
181            Projection dialog. Allows the user to select from a list
182            of projection templates and optionally edit them and save new ones.
183    
184            * Thuban/UI/projdialog.py (ProjFrame): New. Main dialog.
185            (ProjPanel): Base class for projection specific panels.
186            (TMPanel): Projection panel for Transverse Mercartor.
187            (UTMPanel): Projection panel for Universal Transverse Mercartor.
188            (LCCPanel): Projection panel for Lambert Conic Conformal.
189            (GeoPanel): Projetion panel for Geographic Projection.
190    
191    2003-04-23  Jonathan Coles   <[email protected]>
192    
193            * Thuban/Model/load.py (XMLReader): Renamed from XMLProcessor to
194            promote symmetry. There now exists XMLReader and XMLWriter.
195            (XMLReader.read): New. Call to read the given file descriptor or
196            filename.
197            (XMLReader.close): New. Make sure the file is closed.
198            (XMLReader.GetFileName): New. Return just the file name that is being
199            read from.
200            (XMLReader.GetDirectory): New. Return just the directory of the file
201            that is being read.
202            (XMLReader.AddDispatchers): New. Take a dictionary which contains
203            the names of functions to call as the XML tree is parsed.
204            (XMLReader.startElementNS): Updated to use new dispatcher dictionary.
205            (XMLReader.endElementNS): Updated to use new dispatcher dictionary.
206            (SessionLoader): Removed class variables start_dispatcher and
207            end_dispatcher since this functionality is now part of a class
208            instance. Fixes RTbug #1808.
209            (SessionLoader.__init__): Add dispatcher functions.
210            (load_xmlfile): Code was moved into the XMLReader.read().
211            (load_session): Use modified SessionLoader.
212    
213            * Thuban/Model/map.py (Map.GetProjection): New. Returns the
214            map's projection.
215    
216            * Thuban/Model/proj.py (Projection.GetParameters): Renamed to
217            GetAllParameters.
218            (Projection.GetParameter): Returns the value for the given parameter.
219    
220            * Thuban/Model/resource.py: Use XMLReader and XMLWriter.
221            (GetProjFiles): Renamed from GetProjections. Now returns a list
222            of ProjFile objects.
223            (GetSystemProjFiles): Renamed from GetSuppliedProjections. Returns
224            a list of ProjFile objects whose files are not user defined.
225            (GetUserProjFiles): Renamed from GetUserProjections. Returns a
226            list of ProjFile objects whose files are user defined.
227            (ProjFileReader): Extend new XMLReader.
228    
229            * Thuban/Model/save.py (XMLWriter): Renamed from XMLSaver to
230            promote symmetry.
231    
232            * Thuban/UI/classgen.py (ClassGenDialog.__init__): Use a wxChoice
233            control instead of a wxComboBox. wxChoice controls do not generate
234            events as the uses highlights possible choices which fixes problems
235            with resizing the dialog when the use selects an option.
236    
237            * Thuban/UI/classifier.py (Classifier.__init__): Use a wxChoice
238            control instead of a wxComboBox.
239    
240            * Thuban/UI/mainwindow.py (MainWindow.Projection): Use new projection
241            dialog.
242    
243            * test/test_proj.py (TestProjection.test): New tests for GetParameter
244            method.
245    
246    2003-04-22  Bernhard Herzog  <[email protected]>
247    
248            * Thuban/UI/mainwindow.py: Remove some unused imports and global
249            constants
250    
251            * Thuban/UI/identifyview.py (IdentifyListCtrl.selected_shape)
252            (IdentifyGridCtrl.selected_shape): Use table, not shapetable.
253    
254    2003-04-17  Bernhard Herzog  <[email protected]>
255    
256            * Thuban/Model/layer.py: Don't import LAYER_LEGEND_CHANGED.
257            (Layer): Update doc-string since LAYER_LEGEND_CHANGED is not used
258            anymore.
259            (Layer.BoundingBox, Layer.GetFieldType, Layer.NumShapes)
260            (Layer.ShapeType, Layer.Shape): No need to call
261            self.open_shapefile since it's always called in __init__
262    
263            * Thuban/UI/application.py (ThubanApplication.MainLoop): Removed.
264            In wxPython 2.4 there's no need to extend MainLoop anymore since
265            wxPython itself makes sure OnExit is called.
266    
267    2003-04-16  Jonathan Coles   <[email protected]>
268    
269            Initial putback of projection management code. Includes new
270            classes to read and write projection files. The current load
271            and save classes were abstracted a bit so they could be reused.
272            The Projection class was extended to provide new methods and
273            have a name.
274    
275            * Thuban/Model/load.py (XMLProcessor): New. Contains all the
276            general XML reading methods that were part of ProcessSession.
277    
278            * Thuban/Model/proj.py (Projection.__init__): Accepts an optional
279            name.
280            (ProjFile): New. Represents a file that contains projection
281            information.
282    
283            * Thuban/Model/resource.py: New. Contains general utilities
284            for read and writing projection files.
285    
286            * Thuban/Model/save.py (XMLSaver): New. Contains all the
287            general XML writing methods that were part of SessionSaver.
288            (SessionSaver): Renamed from Saver.
289    
290            * test/test_proj.py: New test cases for the projection
291            file read and write functions.
292    
293    2003-04-16  Jonathan Coles   <[email protected]>
294    
295            * Thuban/Model/classification.py: Use repr() around values
296            in the ClassGroup*.__repr__() methods so it is clearer when
297            a value is a string and when it is a number.
298    
299            * test/test_load.py: Rework the classification test to test
300            that we can load old files.
301            (testLabels): Test a file where the groups have labels.
302    
303  2003-04-16  Bernhard Herzog  <[email protected]>  2003-04-16  Bernhard Herzog  <[email protected]>
304    
305          Safer implementation of the performance enhancements of the          Safer implementation of the performance enhancements of the

Legend:
Removed from v.687  
changed lines
  Added in v.743

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26