/[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 716 by jonathan, Wed Apr 23 08:59:19 2003 UTC revision 753 by jonathan, Fri Apr 25 14:23:41 2003 UTC
# Line 1  Line 1 
1    2003-04-25  Jonathan Coles   <[email protected]>
2    
3            * Thuban/Model/proj.py (Projection.SetName): Set the name
4            to "Unknown" if name is None.
5            (Projection.SetAllParameters): New. Set the projection's
6            parameter list to the one supplied.
7            (Projection.SetProjection): New. Set the projection's
8            properties to those of the supplied Projection.
9    
10            * Thuban/UI/mainwindow.py (MainWindow.MapProjection): Set
11            the dialog title to include the map's title.
12            (MainWindow.LayerProjection): Set the dialog title to include
13            the layer's title.
14    
15            * Thuban/UI/projdialog.py (ProjFrame.__ShowError): Consolidate
16            error dialogs into a single method call.
17            (ProjFrame.__VerifyButtons): Add more states to check.
18            (ProjFrame.__GetProjection): Return the current state of an
19            edited projection or None.
20            (ProjFrame.__FillAvailList): Remove checks for states that
21            shouldn't exist.
22            (ProjFrame._OnNew): Clear all selected items and supply
23            a projection panel if necessary.
24    
25            * test/test_proj.py (TestProjFile.test): Add tests for
26            ProjFile.SetAllParameters, ProjFile.SetProjection,
27            ProjFile.SetName.
28    
29    2003-04-25  Jonathan Coles   <[email protected]>
30    
31            * Thuban/UI/projdialog.py (ProjFrame.__FillAvailList): Now
32            takes an optional argument to select the current projection.
33            This does not guarantee that the item is visible due to
34            limited wxWindows functionality. Fixes RTBug #1821.
35    
36    2003-04-25  Jonathan Coles   <[email protected]>
37    
38            * Thuban/Model/load.py (SessionLoader.start_projection): Remember
39            the projection name and use it when constructing the Projection
40            object.
41    
42            * Thuban/Model/proj.py (Projection.__init__): Change the default
43            value for 'name' to None and then test if name is equal to None
44            in the body of the constructor. This way the caller doesn't have to
45            know what the default value should be. Namely, useful in load.py
46            where we have to pick a default value if the 'name' parameter
47            doesn't exist in the XML file.
48    
49            * test/test_load.py (LoadSessionTest.testLayerProjection): New.
50            Tests a file where a layer has a projection.
51    
52    2003-04-25  Jonathan Coles   <[email protected]>
53    
54            * Thuban/Model/layer.py (Layer.TreeInfo): Add an item to the
55            tree for projection information.
56    
57            * Thuban/Model/load.py (XMLReader.GetFilename): Renamed from
58            XMLReader.GetFileName.
59            (SessionLoader): Added support for loading projection tags that
60            appear inside a layer.
61    
62            * Thuban/Model/proj.py (ProjFile): Document the class. Move
63            back to using a list because the order of the projections in
64            the file is important to maintain. Fixes RTbug #1817.
65    
66            * Thuban/Model/resource.py: Rename calls to ProjFile.GetFileName
67            to ProjFile.GetFilename.
68    
69            * Thuban/Model/save.py (SessionSaver.write_layer): Save projection
70            information.
71    
72            * Thuban/UI/projdialog.py (ProjFrame._OnAddToList): Renamed from
73            ProjFrame._OnSaveAs. Removed old dead code from previous
74            implementation.
75            (ProjFrame._OnExport): Add support for exporting more than one
76            projection to a single file.
77            (ProjFrame.__FillAvailList): use string formatting (% operator)
78            to build strings that are (partly) translated. Fixes RTbug #1818.
79    
80            * test/test_proj.py (TestProjFile.test): New. Tests the base ProjFile
81            class.
82    
83    2003-04-24  Bernhard Herzog  <[email protected]>
84    
85            * po/es.po: Updated Spanish translation by Daniel Calvelo Aros
86    
87            * po/fr.po: New. French translation by Daniel Calvelo Aros
88    
89            * Thuban/UI/projdialog.py (ProjFrame._OnSaveAs): Don't translate
90            empty strings.
91    
92    2003-04-24  Jonathan Coles   <[email protected]>
93    
94            * Thuban/Model/layer.py (Layer.GetProjection): New. Needed to
95            implement the interface that the ProjFrame dialog expects.
96    
97            * Thuban/Model/proj.py (Projection.SetName): New. Allows the
98            name of the projection to be changed.
99            (ProjFile): Use a dictionary instead of a list so that removing
100            projections is easier and we are sure about uniqueness.
101            (ProjFile.Remove): Remove the given projection object.
102    
103            * Thuban/Model/resource.py (GetSystemProjFiles, GetUserProjFiles):
104            Return a list with only one projection file instead of searching for
105            any projection file. This simplifies many things if the user can
106            only have one system file and one user file.
107    
108            * Thuban/UI/classgen.py: Change all references to
109            genCombo to genChoice.
110    
111            * Thuban/UI/mainwindow.py: Add a Projection option under the
112            layer menu.
113            (MainWindow.LayerProjection): New. Open up a projection window
114            for a layer.
115    
116            * Thuban/UI/projdialog.py: Large changes to how the dialog is
117            laid out. Use three panels instead of one. One for the list of
118            projections, one for the edit controls, and one for the buttons.
119            Fixed resizing problems so that the dialog resizes correctly
120            when the projection panel changes. Added import/export, save, and
121            new buttons/functionality.
122    
123    2003-04-24  Bernhard Herzog  <[email protected]>
124    
125            First step towards table management. Introduce a simple data
126            abstraction so that we replace the data a layer uses more easily
127            in the next step.
128    
129            * Thuban/Model/data.py: New file with a simple data abstraction
130            that bundles shapefile and dbffile into one object.
131    
132            * Thuban/Model/session.py (Session.OpenShapefile): New method to
133            open shapefiles and return a shape store object
134    
135            * Thuban/Model/layer.py (Layer.__init__): Pass the data as a store
136            object instead of a shapefile filename. This introduces a new
137            instance variable store holding the datastore. For intermediate
138            backwards compatibility keep the old instance variables.
139            (open_shapefile): Removed. No longer needed with the shape store.
140            (Layer.SetShapeStore, Layer.ShapeStore): New methods to set and
141            get the shape store used by a layer.
142            (Layer.Destroy): No need to explicitly destroy the shapefile or
143            table anymore.
144    
145            * Thuban/UI/mainwindow.py (MainWindow.AddLayer)
146            (MainWindow.AddLayer): Use the session's OpenShapefile method to
147            open shapefiles
148    
149            * Thuban/Model/load.py (ProcessSession.start_layer): Use the
150            session's OpenShapefile method to open shapefiles
151    
152            * test/test_classification.py
153            (TestClassification.test_classification): Use the session's
154            OpenShapefile method to open shapefiles and build the filename in
155            a more platform independed way
156    
157            * test/test_layer.py (TestLayer.setUp, TestLayer.tearDown):
158            Implement to have a session to use in the tests
159            (TestLayer.test_arc_layer, TestLayer.test_polygon_layer)
160            (TestLayer.test_point_layer, TestLayer.test_empty_layer): Use the
161            session's OpenShapefile method to open shapefiles
162            (TestLayerLegend.setUp): Instantiate a session so that we can use
163            it to open shapefiles.
164            (TestLayerLegend.tearDown): Make sure that all references to
165            layers and session are removed otherwise we may get a resource
166            leak
167    
168            * test/test_map.py (TestMapAddLayer.test_add_layer)
169            (TestMapWithContents.setUp): Instantiate a session so that we can
170            use it to open shapefiles.
171            (TestMapWithContents.tearDown): Make sure that all references to
172            layers, maps and sessions are removed otherwise we may get a
173            resource leak
174            ("__main__"): use support.run_tests() so that more info about
175            uncollected garbage is printed
176    
177            * test/test_save.py (SaveSessionTest.testSingleLayer): Use the
178            session's OpenShapefile method to open shapefiles
179            ("__main__"): use support.run_tests() so that more info about
180            uncollected garbage is printed
181    
182            * test/test_selection.py (TestSelection.tearDown): Make sure that
183            all references to the session and the selection are removed
184            otherwise we may get a resource leak
185            (TestSelection.get_layer): Instantiate a session so that we can
186            use it to open shapefiles.
187            ("__main__"): use support.run_tests() so that more info about
188            uncollected garbage is printed
189    
190            * test/test_session.py (TestSessionBase.tearDown)
191            (TestSessionWithContent.tearDown): Make sure that all references
192            to the session and layers are removed otherwise we may get a
193            resource leak
194            (TestSessionWithContent.setUp): Use the session's OpenShapefile
195            method to open shapefiles
196    
197    2003-04-24  Jonathan Coles   <[email protected]>
198    
199            * Thuban/Model/load.py (XMLReader.read): Should have been checking
200            if the file_or_filename object had the 'read' attribute.
201    
202    2003-04-23  Jonathan Coles   <[email protected]>
203    
204            * Thuban/Model/resource.py: Fixes RTbug #1813.
205            (ReadProjFile): Add documentation about which exceptions are raised.
206            Always pass the exceptions up to the caller.
207            (GetProjFiles): If the directory can't be read return an empty list.
208            If any of the proj files can't be read skip that file and go
209            on to the next one.
210    
211            * test/test_proj.py: Added test cases to handle nonexistent files,
212            unreadable files, and files that don't parse correctly.
213    
214  2003-04-23  Jonathan Coles   <[email protected]>  2003-04-23  Jonathan Coles   <[email protected]>
215    
216          Projection dialog. Allows the user to select from a list          Projection dialog. Allows the user to select from a list

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

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26