/[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 680 by jonathan, Tue Apr 15 21:54:12 2003 UTC revision 720 by jonathan, Wed Apr 23 10:40:12 2003 UTC
# Line 1  Line 1 
1    2003-04-23  Jonathan Coles   <[email protected]>
2    
3            * Thuban/Model/resource.py: Fixes RTbug #1813.
4            (ReadProjFile): Add documentation about which exceptions are raised.
5            Always pass the exceptions up to the caller.
6            (GetProjFiles): If the directory can't be read return an empty list.
7            If any of the proj files can't be read skip that file and go
8            on to the next one.
9    
10            * test/test_proj.py: Added test cases to handle nonexistent files,
11            unreadable files, and files that don't parse correctly.
12    
13    2003-04-23  Jonathan Coles   <[email protected]>
14    
15            Projection dialog. Allows the user to select from a list
16            of projection templates and optionally edit them and save new ones.
17    
18            * Thuban/UI/projdialog.py (ProjFrame): New. Main dialog.
19            (ProjPanel): Base class for projection specific panels.
20            (TMPanel): Projection panel for Transverse Mercartor.
21            (UTMPanel): Projection panel for Universal Transverse Mercartor.
22            (LCCPanel): Projection panel for Lambert Conic Conformal.
23            (GeoPanel): Projetion panel for Geographic Projection.
24    
25    2003-04-23  Jonathan Coles   <[email protected]>
26    
27            * Thuban/Model/load.py (XMLReader): Renamed from XMLProcessor to
28            promote symmetry. There now exists XMLReader and XMLWriter.
29            (XMLReader.read): New. Call to read the given file descriptor or
30            filename.
31            (XMLReader.close): New. Make sure the file is closed.
32            (XMLReader.GetFileName): New. Return just the file name that is being
33            read from.
34            (XMLReader.GetDirectory): New. Return just the directory of the file
35            that is being read.
36            (XMLReader.AddDispatchers): New. Take a dictionary which contains
37            the names of functions to call as the XML tree is parsed.
38            (XMLReader.startElementNS): Updated to use new dispatcher dictionary.
39            (XMLReader.endElementNS): Updated to use new dispatcher dictionary.
40            (SessionLoader): Removed class variables start_dispatcher and
41            end_dispatcher since this functionality is now part of a class
42            instance. Fixes RTbug #1808.
43            (SessionLoader.__init__): Add dispatcher functions.
44            (load_xmlfile): Code was moved into the XMLReader.read().
45            (load_session): Use modified SessionLoader.
46    
47            * Thuban/Model/map.py (Map.GetProjection): New. Returns the
48            map's projection.
49    
50            * Thuban/Model/proj.py (Projection.GetParameters): Renamed to
51            GetAllParameters.
52            (Projection.GetParameter): Returns the value for the given parameter.
53    
54            * Thuban/Model/resource.py: Use XMLReader and XMLWriter.
55            (GetProjFiles): Renamed from GetProjections. Now returns a list
56            of ProjFile objects.
57            (GetSystemProjFiles): Renamed from GetSuppliedProjections. Returns
58            a list of ProjFile objects whose files are not user defined.
59            (GetUserProjFiles): Renamed from GetUserProjections. Returns a
60            list of ProjFile objects whose files are user defined.
61            (ProjFileReader): Extend new XMLReader.
62    
63            * Thuban/Model/save.py (XMLWriter): Renamed from XMLSaver to
64            promote symmetry.
65    
66            * Thuban/UI/classgen.py (ClassGenDialog.__init__): Use a wxChoice
67            control instead of a wxComboBox. wxChoice controls do not generate
68            events as the uses highlights possible choices which fixes problems
69            with resizing the dialog when the use selects an option.
70    
71            * Thuban/UI/classifier.py (Classifier.__init__): Use a wxChoice
72            control instead of a wxComboBox.
73    
74            * Thuban/UI/mainwindow.py (MainWindow.Projection): Use new projection
75            dialog.
76    
77            * test/test_proj.py (TestProjection.test): New tests for GetParameter
78            method.
79    
80    2003-04-22  Bernhard Herzog  <[email protected]>
81    
82            * Thuban/UI/mainwindow.py: Remove some unused imports and global
83            constants
84    
85            * Thuban/UI/identifyview.py (IdentifyListCtrl.selected_shape)
86            (IdentifyGridCtrl.selected_shape): Use table, not shapetable.
87    
88    2003-04-17  Bernhard Herzog  <[email protected]>
89    
90            * Thuban/Model/layer.py: Don't import LAYER_LEGEND_CHANGED.
91            (Layer): Update doc-string since LAYER_LEGEND_CHANGED is not used
92            anymore.
93            (Layer.BoundingBox, Layer.GetFieldType, Layer.NumShapes)
94            (Layer.ShapeType, Layer.Shape): No need to call
95            self.open_shapefile since it's always called in __init__
96    
97            * Thuban/UI/application.py (ThubanApplication.MainLoop): Removed.
98            In wxPython 2.4 there's no need to extend MainLoop anymore since
99            wxPython itself makes sure OnExit is called.
100    
101    2003-04-16  Jonathan Coles   <[email protected]>
102    
103            Initial putback of projection management code. Includes new
104            classes to read and write projection files. The current load
105            and save classes were abstracted a bit so they could be reused.
106            The Projection class was extended to provide new methods and
107            have a name.
108    
109            * Thuban/Model/load.py (XMLProcessor): New. Contains all the
110            general XML reading methods that were part of ProcessSession.
111    
112            * Thuban/Model/proj.py (Projection.__init__): Accepts an optional
113            name.
114            (ProjFile): New. Represents a file that contains projection
115            information.
116    
117            * Thuban/Model/resource.py: New. Contains general utilities
118            for read and writing projection files.
119    
120            * Thuban/Model/save.py (XMLSaver): New. Contains all the
121            general XML writing methods that were part of SessionSaver.
122            (SessionSaver): Renamed from Saver.
123    
124            * test/test_proj.py: New test cases for the projection
125            file read and write functions.
126    
127    2003-04-16  Jonathan Coles   <[email protected]>
128    
129            * Thuban/Model/classification.py: Use repr() around values
130            in the ClassGroup*.__repr__() methods so it is clearer when
131            a value is a string and when it is a number.
132    
133            * test/test_load.py: Rework the classification test to test
134            that we can load old files.
135            (testLabels): Test a file where the groups have labels.
136    
137    2003-04-16  Bernhard Herzog  <[email protected]>
138    
139            Safer implementation of the performance enhancements of the
140            low-level renderer:
141            
142            * extensions/thuban/wxproj.cpp (extract_projection)
143            (extract_pointer): Rename extract_projection to extract_pointer
144            and redefine its purpose to return the pointer stored in a CObject
145            returned by the object's cobject method. Update all callers.
146            (s_draw_info, free_draw_info, draw_polygon_init): Implement the
147            handling of these low-level parameters so that each s_draw_info
148            instance is handled as a CObject at python level that also
149            contains real references to the actual python objects which
150            contain the values in the struct. Add free_draw_info as the
151            destructor.
152            (draw_polygon_shape): Add the py_draw_info parameter which must a
153            cobject containing an s_draw_info pointer.
154    
155            * Thuban/UI/renderer.py (MapRenderer.polygon_render_param): New
156            method to instantiat the low-level render parameter
157            (MapRenderer.draw_shape_layer): Use the new method. Remove some
158            commented out code.
159            (MapRenderer.draw_polygon_shape): Make the first parameter not the
160            layer but the low-level render parameter
161            (ScreenRenderer.draw_shape_layer): Use the low-level render
162            parameter.
163    
164  2003-04-15  Jonathan Coles   <[email protected]>  2003-04-15  Jonathan Coles   <[email protected]>
165    
166          * Thuban/Model/classification.py: Implemented __repr__ for          * Thuban/Model/classification.py: Implemented __repr__ for

Legend:
Removed from v.680  
changed lines
  Added in v.720

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26