1 |
|
2003-10-13 Bernhard Herzog <[email protected]> |
2 |
|
|
3 |
|
Add an optional EPSG code to the projection objects and extend the |
4 |
|
.proj file format accordingly. |
5 |
|
|
6 |
|
* Resources/XML/projfile.dtd (element projection): Add epsg |
7 |
|
attribute |
8 |
|
|
9 |
|
* Thuban/Model/proj.py (Projection.__init__): New parameter and |
10 |
|
instance variable epsg. Update doc-string |
11 |
|
(Projection.EPSGCode, Projection.Label): New methods to provide |
12 |
|
access to EPSG code and a label for use in dialogs |
13 |
|
|
14 |
|
* Thuban/Model/resource.py (ProjFileReader.start_projection) |
15 |
|
(ProjFileReader.end_projection, ProjFileSaver.write_projfile): |
16 |
|
Handle the epsg code attribute when reading or writing proj files |
17 |
|
|
18 |
|
* Thuban/UI/projdialog.py (ProjFrame._OnSave) |
19 |
|
(ProjFrame._OnAddToList, ProjFrame.__DoOnProjAvail) |
20 |
|
(ProjFrame.__FillAvailList): Use the projection's Label method to |
21 |
|
get the string for the list box |
22 |
|
|
23 |
|
* test/test_proj.py (TestProjection.test_label) |
24 |
|
(TestProjection.test_label_epsg) |
25 |
|
(TestProjection.test_epsgcode_for_non_epsg_projection) |
26 |
|
(TestProjection.test_epsgcode_for_real_epsg_projection): New tests |
27 |
|
for the label and EPSGCode methods |
28 |
|
(WriteProjFileTests.doTestWrite, WriteProjFileTests.test_write) |
29 |
|
(WriteProjFileTests.test_write_empty_file): Create the ProjFile |
30 |
|
objects in the test cases and put the expected contents into the |
31 |
|
test case methods too. Update doTestWrite accordingly |
32 |
|
(TestLoadingProjFile) |
33 |
|
(TestLoadingProjFileWithEmptyProjectionlist): New classes with the |
34 |
|
read tests from TestProjFile. |
35 |
|
(TestProjFile.doTestRead, TestProjFile.testRead): Removed. These |
36 |
|
tests are now in the new classes. |
37 |
|
(sample_projfile, sample_projfile_data) |
38 |
|
(sample_projfile2, sample_projfile_data2): Removed. Not used |
39 |
|
anymore. |
40 |
|
(TestProjFile.test_read_unreadable_file): No need to reset the |
41 |
|
permissions at the end anymore since we use a unique filename |
42 |
|
|
43 |
|
2003-10-13 Bernhard Herzog <[email protected]> |
44 |
|
|
45 |
|
* test/test_proj.py: Some more refactoring of the test cases |
46 |
|
(ProjFileTest): New base class for the proj file tests. |
47 |
|
(TestProjFile): Derive from ProjFileTest |
48 |
|
(TestProjFile.test_read_unreadable_file) |
49 |
|
(TestProjFile.test_read_empty_file, TestProjFile.doTestRead): Use |
50 |
|
the new filename method to get a unique filename |
51 |
|
(TestProjFile.doTestWrite, TestProjFile.testWrite): Removed. |
52 |
|
(WriteProjFileTests): New class for proj file write tests. |
53 |
|
Contains the write test that were in TestProjFile originally. |
54 |
|
|
55 |
|
2003-10-13 Bernhard Herzog <[email protected]> |
56 |
|
|
57 |
|
* test/test_proj.py (TestProjFile.testRead) |
58 |
|
(TestProjFile.test_read_non_existing_file) |
59 |
|
(TestProjFile.test_read_unreadable_file) |
60 |
|
(TestProjFile.test_read_empty_file): Split into several methods. |
61 |
|
|
62 |
|
2003-10-10 Bernhard Herzog <[email protected]> |
63 |
|
|
64 |
|
* Thuban/UI/sizers.py: New file with custom sizers. |
65 |
|
|
66 |
|
* Thuban/UI/projdialog.py (ProjFrame.build_dialog): Instantiate |
67 |
|
all projection type specific panels and put them into a |
68 |
|
NotebookLikeSizer. This way the dialog doesn't change its size |
69 |
|
when a different projection is selected |
70 |
|
(ProjFrame.__init__): Rename projection_panels |
71 |
|
projection_panel_defs and reuse projection_panels for a list of |
72 |
|
the instantiated panels. |
73 |
|
(ProjFrame._show_proj_panel, ProjFrame.__DoOnProjAvail) |
74 |
|
(ProjFrame.__DoOnProjChoice): Changes due to the new handling of |
75 |
|
the panels |
76 |
|
(UnknownProjPanel._DoLayout): Place the newlines in the message |
77 |
|
differently to make the panel narrower. |
78 |
|
(TMPanel._DoLayout): Layout the parameters in one column. |
79 |
|
|
80 |
|
2003-10-10 Bernhard Herzog <[email protected]> |
81 |
|
|
82 |
|
* Thuban/UI/projdialog.py (ProjFrame.build_dialog): New method |
83 |
|
that contains all the setup for the dialog's widgets, layout and |
84 |
|
event handling. |
85 |
|
(__): Call build_dialog to build the dialog. |
86 |
|
(ProjFrame.__set_properties, ProjFrame.__do_layout): Removed. |
87 |
|
Their functionality is now in build_dialog |
88 |
|
(ProjFrame.__VerifyButtons, ProjFrame.__VerifyButtons) |
89 |
|
(ProjFrame.__DoOnProjAvail, ProjFrame.__DoOnProjAvail) |
90 |
|
(ProjFrame.__DoOnProjChoice): Small updates due to slightly |
91 |
|
different widget names and hierarchy introduced with build_dialog. |
92 |
|
|
93 |
|
2003-10-10 Bernhard Herzog <[email protected]> |
94 |
|
|
95 |
|
* README: Fix typo. |
96 |
|
|
97 |
|
2003-10-09 Bernhard Herzog <[email protected]> |
98 |
|
|
99 |
|
* Thuban/Model/proj.py (ProjFile.Add): Do not check whether the |
100 |
|
projection is already in the list. This is *a lot* faster when |
101 |
|
loading files with hundreds of projections since it saves a linear |
102 |
|
search. OTOH this will allow adding the same projection to the |
103 |
|
user.proj file multiple times in the projection dialog but we'll |
104 |
|
deal with that later |
105 |
|
|
106 |
|
2003-10-09 Jan-Oliver Wagner <[email protected]> |
107 |
|
|
108 |
|
* devtools: New. Directory for developer tools that are not intended |
109 |
|
for the regular user. |
110 |
|
|
111 |
|
* devtools/create_epsg.py: New. Convert the epsg file of proj into |
112 |
|
a python .proj file. |
113 |
|
|
114 |
|
2003-10-09 Bernhard Herzog <[email protected]> |
115 |
|
|
116 |
|
* test/test_proj.py |
117 |
|
(TestProjection.test_get_parameter_without_equals_sign): New. Test |
118 |
|
whether GetParameter handles parameters without "=" sign correctly |
119 |
|
|
120 |
|
* Thuban/Model/proj.py (Projection.GetParameter): Handle |
121 |
|
parameters that do not contain a "=". Update the doc-string |
122 |
|
|
123 |
|
2003-10-08 Bernhard Herzog <[email protected]> |
124 |
|
|
125 |
|
* Thuban/UI/projdialog.py (ProjFrame.__set_properties): Remove the |
126 |
|
length limit on the projname text control |
127 |
|
|
128 |
|
2003-10-08 Bernhard Herzog <[email protected]> |
129 |
|
|
130 |
|
* test/test_proj.py (TestProjection.test_get_projection_units_geo) |
131 |
|
(TestProjection.test_get_projection_units_normal): New. Tests for |
132 |
|
the Projection.GetProjectedUnits method |
133 |
|
|
134 |
2003-10-08 Jan-Oliver Wagner <[email protected]> |
2003-10-08 Jan-Oliver Wagner <[email protected]> |
135 |
|
|
136 |
* Thuban/Model/resource.py (get_user_proj_file): small bug-fix: |
* Thuban/Model/resource.py (get_user_proj_file): small bug-fix: |