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

Legend:
Removed from v.674  
changed lines
  Added in v.734

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26