1 |
2003-10-13 Bernhard Herzog <[email protected]> |
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 |
* test/test_proj.py: Some more refactoring of the test cases |
46 |
(ProjFileTest): New base class for the proj file tests. |
(ProjFileTest): New base class for the proj file tests. |
47 |
(TestProjFile): Derive from ProjFileTest |
(TestProjFile): Derive from ProjFileTest |