Log of /branches/WIP-pyshapelib-bramz/test/test_proj.py
Parent Directory
|
Revision Log
Revision
1982 -
(
view)
(
annotate)
-
[selected]
Modified
Thu Nov 27 15:25:34 2003 UTC
(21 years, 3 months ago)
by
bh
Original Path:
trunk/thuban/test/test_proj.py
File length: 17773 byte(s)
Diff to
previous 1966
* Thuban/Model/proj.py (Projection.InverseBBox): New. Inverse
version of ForwardBBox
(Projection._transform_bbox): New. common implementation of
ForwardBBox and InverseBBox
(Projection.ForwardBBox): Use _transform_bbox.
* test/test_proj.py (TestProjection.test): Add test for
InverseBBox
Revision
1933 -
(
view)
(
annotate)
-
[select for diffs]
Modified
Tue Nov 11 16:37:53 2003 UTC
(21 years, 3 months ago)
by
bh
Original Path:
trunk/thuban/test/test_proj.py
File length: 17266 byte(s)
Diff to
previous 1888
,
to
selected 1982
* Thuban/Model/resource.py (get_system_proj_file): Add a filename
parameter so that this function can be used for all proj files in
Resource/Projections
(DEFAULT_PROJ_FILE, EPSG_PROJ_FILE): New. Predefined filenames for
get_system_proj_file
* Thuban/UI/projdialog.py (ProjFrame.__init__): Instead of one
ProjFile self.__sysProjFile use a dictionary of system ProjFile
objects self._sys_proj_files
(ProjFrame.build_dialog): Adapt to the new changes in the
ProjectionList constructor. Add a check button to toggle whether
EPSG projections are shown
(ProjFrame._OnShowEPSG): New. Handler for the epsg check button
events.
(ProjFrame.load_user_proj, ProjFrame.load_system_proj): Only show
the busy cursor if the files have not yet been loaded by the
dialog.
(ProjFrame.load_system_proj): Add a parameter for the name of the
proj file. Maintain the dictionary of system projections
self._sys_proj_files
* Thuban/UI/projlist.py (ProjectionList): Merge the system_projs,
user_projs parameters into one parameter proj_files which is a
list of proj files.
(ProjectionList._subscribe_proj_files)
(ProjectionList._unsubscribe_proj_files): New. Move
subscription/unsubscription of projfile messages to separate
methods
(ProjectionList.Destroy): The unsubscribe is now done in
_unsubscribe_proj_files
(ProjectionList.update_projections): We now have a list of proj
file objects
(ProjectionList.SetProjFiles): New method to set a new list of
proj file objects
* test/test_proj.py (ProjFileReadTests.test_get_system_proj_file):
Specify explicitly which system proj file to load.
Revision
1831 -
(
view)
(
annotate)
-
[select for diffs]
Modified
Thu Oct 16 16:36:11 2003 UTC
(21 years, 4 months ago)
by
bh
Original Path:
trunk/thuban/test/test_proj.py
File length: 16909 byte(s)
Diff to
previous 1827
,
to
selected 1982
(TestProjFile): Clarify the doc-string
(ProjFileReadTests): Update doc-string
(ProjFileReadTests.test_get_system_proj_file): Check whether the
system proj files is cached.
(ProjFileLoadTestCase): New base class for the proj file tests
derived from support.FileLoadTestCase to provide some common
behavior.
(TestLoadingProjFile)
(TestLoadingProjFileWithEmptyProjectionlist.file_contents)
(TestProjFileWithInvalidParameters.file_contents): Derive from
ProjFileLoadTestCase
(TestLoadingProjFile.test_caching): New. Test whether the cache
works
Revision
1825 -
(
view)
(
annotate)
-
[select for diffs]
Modified
Tue Oct 14 15:21:17 2003 UTC
(21 years, 4 months ago)
by
bh
Original Path:
trunk/thuban/test/test_proj.py
File length: 15910 byte(s)
Diff to
previous 1821
,
to
selected 1982
(TestProjFile.setUp): Subscribe to some of the
proj file messages
(TestProjFile.test_add_remove)
(TestProjFile.test_remove_non_existing)
(TestProjFile.test_replace)
(TestProjFile.test_replace_non_existing): Test whether the right
messages are sent
Revision
1821 -
(
view)
(
annotate)
-
[select for diffs]
Modified
Tue Oct 14 13:54:03 2003 UTC
(21 years, 4 months ago)
by
bh
Original Path:
trunk/thuban/test/test_proj.py
File length: 14910 byte(s)
Diff to
previous 1818
,
to
selected 1982
(TestProjFile.test): Refactor into several
tests
(TestProjFile.test_add_remove)
(TestProjFile.test_remove_non_existing)
(TestProjFile.test_replace)
(TestProjFile.test_replace_non_existing): Some of the new
individual test cases
(TestProjFileSimple): New class for the rest of the test cases
that came out of the refactoring
(ProjFileTest): Derive from xmlsupport.ValidationTest so that the
derived classes don't have to
Revision
1818 -
(
view)
(
annotate)
-
[select for diffs]
Modified
Mon Oct 13 15:54:14 2003 UTC
(21 years, 4 months ago)
by
bh
Original Path:
trunk/thuban/test/test_proj.py
File length: 14571 byte(s)
Diff to
previous 1813
,
to
selected 1982
(TestProjection.test_label)
(TestProjection.test_label_epsg)
(TestProjection.test_epsgcode_for_non_epsg_projection)
(TestProjection.test_epsgcode_for_real_epsg_projection): New tests
for the label and EPSGCode methods
(WriteProjFileTests.doTestWrite, WriteProjFileTests.test_write)
(WriteProjFileTests.test_write_empty_file): Create the ProjFile
objects in the test cases and put the expected contents into the
test case methods too. Update doTestWrite accordingly
(TestLoadingProjFile)
(TestLoadingProjFileWithEmptyProjectionlist): New classes with the
read tests from TestProjFile.
(TestProjFile.doTestRead, TestProjFile.testRead): Removed. These
tests are now in the new classes.
(sample_projfile, sample_projfile_data)
(sample_projfile2, sample_projfile_data2): Removed. Not used
anymore.
(TestProjFile.test_read_unreadable_file): No need to reset the
permissions at the end anymore since we use a unique filename
Revision
1813 -
(
view)
(
annotate)
-
[select for diffs]
Modified
Mon Oct 13 14:01:37 2003 UTC
(21 years, 4 months ago)
by
bh
Original Path:
trunk/thuban/test/test_proj.py
File length: 11871 byte(s)
Diff to
previous 1811
,
to
selected 1982
Some more refactoring of the test cases
(ProjFileTest): New base class for the proj file tests.
(TestProjFile): Derive from ProjFileTest
(TestProjFile.test_read_unreadable_file)
(TestProjFile.test_read_empty_file, TestProjFile.doTestRead): Use
the new filename method to get a unique filename
(TestProjFile.doTestWrite, TestProjFile.testWrite): Removed.
(WriteProjFileTests): New class for proj file write tests.
Contains the write test that were in TestProjFile originally.
Revision
1787 -
(
view)
(
annotate)
-
[select for diffs]
Modified
Wed Oct 8 10:39:18 2003 UTC
(21 years, 5 months ago)
by
bh
Original Path:
trunk/thuban/test/test_proj.py
File length: 10276 byte(s)
Diff to
previous 1756
,
to
selected 1982
(TestProjFile.doTestRead): Check the warnings.
(TestProjFileWithInvalidParameters.file_contents): New test cases
to test whether read_proj_file handles invalid projection
parameters correctly
(TestProjFile.test_get_system_proj_file): New. Simple test for
resource.get_system_proj_file
Revision
1756 -
(
view)
(
annotate)
-
[select for diffs]
Modified
Fri Sep 26 14:03:51 2003 UTC
(21 years, 5 months ago)
by
bh
Original Path:
trunk/thuban/test/test_proj.py
File length: 8271 byte(s)
Diff to
previous 1687
,
to
selected 1982
(sample_projfile, sample_projfile2): Use
'projectionlist' as the name in the document type declaration just
as it is done now in the files thuban would write
(sample_projfile, sample_projfile_data): Fix spelling of
"Mercator"
(TestProjFile.doTestWrite): Validate the written and the expected
XML data
(TestProjFile): Derive from ValidationTest so that we can run xml
validation tests
Revision
1687 -
(
view)
(
annotate)
-
[select for diffs]
Modified
Fri Aug 29 10:02:16 2003 UTC
(21 years, 6 months ago)
by
bh
Original Path:
trunk/thuban/test/test_proj.py
File length: 8115 byte(s)
Diff to
previous 1684
,
to
selected 1982
Add some missing parameters to projections. Proj complains about
them on windows but for some reason not on Linux.
* test/test_save.py (SaveSessionTest.testLayerProjection): Add
missing required projection parameters
* test/test_proj.py (TestProjFile.test): Add missing required
projection parameters
* test/test_load_0_8.py (TestLayerProjection.file_contents)
(TestLayerProjection.test): Add missing required projection
parameters and tests for them
* test/test_load.py (TestLayerProjection.file_contents)
(TestLayerProjection.test): Add missing required projection
parameters and tests for them
* test/test_layer.py (TestLayer.test_base_layer): Add missing
required projection parameters
Revision
1259 -
(
view)
(
annotate)
-
[select for diffs]
Modified
Fri Jun 20 12:31:48 2003 UTC
(21 years, 8 months ago)
by
bh
Original Path:
trunk/thuban/test/test_proj.py
File length: 8065 byte(s)
Diff to
previous 1167
,
to
selected 1982
* test/test_save.py (SaxEventLister, sax_eventlist): Removed. Use
the implementation in xmlsupport instead.
(SaveSessionTest.compare_xml): sax_eventlist is now in xmlsupport
* test/test_proj.py: Import sax_eventlist from xmlsupport instead
of test_save
This form allows you to request diffs between any two revisions of this file.
For each of the two "sides" of the diff,
enter a numeric revision.