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

Legend:
Removed from v.672  
changed lines
  Added in v.716

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26