1 |
|
2003-04-25 Jonathan Coles <[email protected]> |
2 |
|
|
3 |
|
* Thuban/Model/layer.py (Layer.GetProjection): New. Needed to |
4 |
|
implement the interface that the ProjFrame dialog expects. |
5 |
|
|
6 |
|
* Thuban/Model/proj.py (Projection.SetName): New. Allows the |
7 |
|
name of the projection to be changed. |
8 |
|
(ProjFile): Use a dictionary instead of a list so that removing |
9 |
|
projections is easier and we are sure about uniqueness. |
10 |
|
(ProjFile.Remove): Remove the given projection object. |
11 |
|
|
12 |
|
* Thuban/Model/resource.py (GetSystemProjFiles, GetUserProjFiles): |
13 |
|
Return a list with only one projection file instead of searching for |
14 |
|
any projection file. This simplifies many things if the user can |
15 |
|
only have one system file and one user file. |
16 |
|
|
17 |
|
* Thuban/UI/classgen.py: Change all references to |
18 |
|
genCombo to genChoice. |
19 |
|
|
20 |
|
* Thuban/UI/mainwindow.py: Add a Projection option under the |
21 |
|
layer menu. |
22 |
|
(MainWindow.LayerProjection): New. Open up a projection window |
23 |
|
for a layer. |
24 |
|
|
25 |
|
* Thuban/UI/projdialog.py: Large changes to how the dialog is |
26 |
|
laid out. Use three panels instead of one. One for the list of |
27 |
|
projections, one for the edit controls, and one for the buttons. |
28 |
|
Fixed resizing problems so that the dialog resizes correctly |
29 |
|
when the projection panel changes. Added import/export, save, and |
30 |
|
new buttons/functionality. |
31 |
|
|
32 |
|
2003-04-24 Bernhard Herzog <[email protected]> |
33 |
|
|
34 |
|
First step towards table management. Introduce a simple data |
35 |
|
abstraction so that we replace the data a layer uses more easily |
36 |
|
in the next step. |
37 |
|
|
38 |
|
* Thuban/Model/data.py: New file with a simple data abstraction |
39 |
|
that bundles shapefile and dbffile into one object. |
40 |
|
|
41 |
|
* Thuban/Model/session.py (Session.OpenShapefile): New method to |
42 |
|
open shapefiles and return a shape store object |
43 |
|
|
44 |
|
* Thuban/Model/layer.py (Layer.__init__): Pass the data as a store |
45 |
|
object instead of a shapefile filename. This introduces a new |
46 |
|
instance variable store holding the datastore. For intermediate |
47 |
|
backwards compatibility keep the old instance variables. |
48 |
|
(open_shapefile): Removed. No longer needed with the shape store. |
49 |
|
(Layer.SetShapeStore, Layer.ShapeStore): New methods to set and |
50 |
|
get the shape store used by a layer. |
51 |
|
(Layer.Destroy): No need to explicitly destroy the shapefile or |
52 |
|
table anymore. |
53 |
|
|
54 |
|
* Thuban/UI/mainwindow.py (MainWindow.AddLayer) |
55 |
|
(MainWindow.AddLayer): Use the session's OpenShapefile method to |
56 |
|
open shapefiles |
57 |
|
|
58 |
|
* Thuban/Model/load.py (ProcessSession.start_layer): Use the |
59 |
|
session's OpenShapefile method to open shapefiles |
60 |
|
|
61 |
|
* test/test_classification.py |
62 |
|
(TestClassification.test_classification): Use the session's |
63 |
|
OpenShapefile method to open shapefiles and build the filename in |
64 |
|
a more platform independed way |
65 |
|
|
66 |
|
* test/test_layer.py (TestLayer.setUp, TestLayer.tearDown): |
67 |
|
Implement to have a session to use in the tests |
68 |
|
(TestLayer.test_arc_layer, TestLayer.test_polygon_layer) |
69 |
|
(TestLayer.test_point_layer, TestLayer.test_empty_layer): Use the |
70 |
|
session's OpenShapefile method to open shapefiles |
71 |
|
(TestLayerLegend.setUp): Instantiate a session so that we can use |
72 |
|
it to open shapefiles. |
73 |
|
(TestLayerLegend.tearDown): Make sure that all references to |
74 |
|
layers and session are removed otherwise we may get a resource |
75 |
|
leak |
76 |
|
|
77 |
|
* test/test_map.py (TestMapAddLayer.test_add_layer) |
78 |
|
(TestMapWithContents.setUp): Instantiate a session so that we can |
79 |
|
use it to open shapefiles. |
80 |
|
(TestMapWithContents.tearDown): Make sure that all references to |
81 |
|
layers, maps and sessions are removed otherwise we may get a |
82 |
|
resource leak |
83 |
|
("__main__"): use support.run_tests() so that more info about |
84 |
|
uncollected garbage is printed |
85 |
|
|
86 |
|
* test/test_save.py (SaveSessionTest.testSingleLayer): Use the |
87 |
|
session's OpenShapefile method to open shapefiles |
88 |
|
("__main__"): use support.run_tests() so that more info about |
89 |
|
uncollected garbage is printed |
90 |
|
|
91 |
|
* test/test_selection.py (TestSelection.tearDown): Make sure that |
92 |
|
all references to the session and the selection are removed |
93 |
|
otherwise we may get a resource leak |
94 |
|
(TestSelection.get_layer): Instantiate a session so that we can |
95 |
|
use it to open shapefiles. |
96 |
|
("__main__"): use support.run_tests() so that more info about |
97 |
|
uncollected garbage is printed |
98 |
|
|
99 |
|
* test/test_session.py (TestSessionBase.tearDown) |
100 |
|
(TestSessionWithContent.tearDown): Make sure that all references |
101 |
|
to the session and layers are removed otherwise we may get a |
102 |
|
resource leak |
103 |
|
(TestSessionWithContent.setUp): Use the session's OpenShapefile |
104 |
|
method to open shapefiles |
105 |
|
|
106 |
2003-04-24 Jonathan Coles <[email protected]> |
2003-04-24 Jonathan Coles <[email protected]> |
107 |
|
|
108 |
* Thuban/Model/load.py (XMLReader.read): Should have been checking |
* Thuban/Model/load.py (XMLReader.read): Should have been checking |