1 |
|
2003-04-24 Jonathan Coles <[email protected]> |
2 |
|
|
3 |
|
* Thuban/Model/load.py (XMLReader.read): Should have been checking |
4 |
|
if the file_or_filename object had the 'read' attribute. |
5 |
|
|
6 |
|
2003-04-23 Jonathan Coles <[email protected]> |
7 |
|
|
8 |
|
* Thuban/Model/resource.py: Fixes RTbug #1813. |
9 |
|
(ReadProjFile): Add documentation about which exceptions are raised. |
10 |
|
Always pass the exceptions up to the caller. |
11 |
|
(GetProjFiles): If the directory can't be read return an empty list. |
12 |
|
If any of the proj files can't be read skip that file and go |
13 |
|
on to the next one. |
14 |
|
|
15 |
|
* test/test_proj.py: Added test cases to handle nonexistent files, |
16 |
|
unreadable files, and files that don't parse correctly. |
17 |
|
|
18 |
|
2003-04-23 Jonathan Coles <[email protected]> |
19 |
|
|
20 |
|
Projection dialog. Allows the user to select from a list |
21 |
|
of projection templates and optionally edit them and save new ones. |
22 |
|
|
23 |
|
* Thuban/UI/projdialog.py (ProjFrame): New. Main dialog. |
24 |
|
(ProjPanel): Base class for projection specific panels. |
25 |
|
(TMPanel): Projection panel for Transverse Mercartor. |
26 |
|
(UTMPanel): Projection panel for Universal Transverse Mercartor. |
27 |
|
(LCCPanel): Projection panel for Lambert Conic Conformal. |
28 |
|
(GeoPanel): Projetion panel for Geographic Projection. |
29 |
|
|
30 |
|
2003-04-23 Jonathan Coles <[email protected]> |
31 |
|
|
32 |
|
* Thuban/Model/load.py (XMLReader): Renamed from XMLProcessor to |
33 |
|
promote symmetry. There now exists XMLReader and XMLWriter. |
34 |
|
(XMLReader.read): New. Call to read the given file descriptor or |
35 |
|
filename. |
36 |
|
(XMLReader.close): New. Make sure the file is closed. |
37 |
|
(XMLReader.GetFileName): New. Return just the file name that is being |
38 |
|
read from. |
39 |
|
(XMLReader.GetDirectory): New. Return just the directory of the file |
40 |
|
that is being read. |
41 |
|
(XMLReader.AddDispatchers): New. Take a dictionary which contains |
42 |
|
the names of functions to call as the XML tree is parsed. |
43 |
|
(XMLReader.startElementNS): Updated to use new dispatcher dictionary. |
44 |
|
(XMLReader.endElementNS): Updated to use new dispatcher dictionary. |
45 |
|
(SessionLoader): Removed class variables start_dispatcher and |
46 |
|
end_dispatcher since this functionality is now part of a class |
47 |
|
instance. Fixes RTbug #1808. |
48 |
|
(SessionLoader.__init__): Add dispatcher functions. |
49 |
|
(load_xmlfile): Code was moved into the XMLReader.read(). |
50 |
|
(load_session): Use modified SessionLoader. |
51 |
|
|
52 |
|
* Thuban/Model/map.py (Map.GetProjection): New. Returns the |
53 |
|
map's projection. |
54 |
|
|
55 |
|
* Thuban/Model/proj.py (Projection.GetParameters): Renamed to |
56 |
|
GetAllParameters. |
57 |
|
(Projection.GetParameter): Returns the value for the given parameter. |
58 |
|
|
59 |
|
* Thuban/Model/resource.py: Use XMLReader and XMLWriter. |
60 |
|
(GetProjFiles): Renamed from GetProjections. Now returns a list |
61 |
|
of ProjFile objects. |
62 |
|
(GetSystemProjFiles): Renamed from GetSuppliedProjections. Returns |
63 |
|
a list of ProjFile objects whose files are not user defined. |
64 |
|
(GetUserProjFiles): Renamed from GetUserProjections. Returns a |
65 |
|
list of ProjFile objects whose files are user defined. |
66 |
|
(ProjFileReader): Extend new XMLReader. |
67 |
|
|
68 |
|
* Thuban/Model/save.py (XMLWriter): Renamed from XMLSaver to |
69 |
|
promote symmetry. |
70 |
|
|
71 |
|
* Thuban/UI/classgen.py (ClassGenDialog.__init__): Use a wxChoice |
72 |
|
control instead of a wxComboBox. wxChoice controls do not generate |
73 |
|
events as the uses highlights possible choices which fixes problems |
74 |
|
with resizing the dialog when the use selects an option. |
75 |
|
|
76 |
|
* Thuban/UI/classifier.py (Classifier.__init__): Use a wxChoice |
77 |
|
control instead of a wxComboBox. |
78 |
|
|
79 |
|
* Thuban/UI/mainwindow.py (MainWindow.Projection): Use new projection |
80 |
|
dialog. |
81 |
|
|
82 |
|
* test/test_proj.py (TestProjection.test): New tests for GetParameter |
83 |
|
method. |
84 |
|
|
85 |
|
2003-04-22 Bernhard Herzog <[email protected]> |
86 |
|
|
87 |
|
* Thuban/UI/mainwindow.py: Remove some unused imports and global |
88 |
|
constants |
89 |
|
|
90 |
|
* Thuban/UI/identifyview.py (IdentifyListCtrl.selected_shape) |
91 |
|
(IdentifyGridCtrl.selected_shape): Use table, not shapetable. |
92 |
|
|
93 |
2003-04-17 Bernhard Herzog <[email protected]> |
2003-04-17 Bernhard Herzog <[email protected]> |
94 |
|
|
95 |
* Thuban/Model/layer.py: Don't import LAYER_LEGEND_CHANGED. |
* Thuban/Model/layer.py: Don't import LAYER_LEGEND_CHANGED. |