/[thuban]/branches/WIP-pyshapelib-bramz/test/test_proj.py
ViewVC logotype

Log of /branches/WIP-pyshapelib-bramz/test/test_proj.py

Parent Directory Parent Directory | Revision Log Revision Log


Sticky Revision:
(Current path doesn't exist after revision 2835)

Revision 2734 - (view) (annotate) - [select for diffs]
Modified Thu Mar 1 12:42:59 2007 UTC (18 years ago) by bramz
File length: 18871 byte(s)
Diff to previous 2698 , to selected 2696
made a copy

Revision 2698 - (view) (annotate) - [select for diffs]
Modified Mon Sep 18 00:56:26 2006 UTC (18 years, 5 months ago) by bernhard
Original Path: trunk/thuban/test/test_proj.py
File length: 18871 byte(s)
Diff to previous 2696
Fixed behaviour with the proj bug and python >=2.4 
when decimal_point != '.'. So de_DE locales will work fine again.


Revision 2696 - (view) (annotate) - [selected]
Modified Sun Sep 17 23:19:21 2006 UTC (18 years, 5 months ago) by bernhard
Original Path: trunk/thuban/test/test_proj.py
File length: 18770 byte(s)
Diff to previous 1982
test/test_proj.py: new test_lc_numeric_robustness()


Revision 1982 - (view) (annotate) - [select for diffs]
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 , to selected 2696
* 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 1966 - (view) (annotate) - [select for diffs]
Modified Thu Nov 20 18:15:57 2003 UTC (21 years, 3 months ago) by bh
Original Path: trunk/thuban/test/test_proj.py
File length: 17368 byte(s)
Diff to previous 1933 , to selected 2696
(ProjFileReadTests.test_read_unreadable_file):
Skip this test if run under non-posix systems since it only works
there


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 2696
* 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 1888 - (view) (annotate) - [select for diffs]
Modified Thu Oct 30 09:31:56 2003 UTC (21 years, 4 months ago) by jan
Original Path: trunk/thuban/test/test_proj.py
File length: 17157 byte(s)
Diff to previous 1831 , to selected 2696
(TestProjection.test_get_projection_units_geo):
Added test for alias 'longlat'.


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 2696
(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 1827 - (view) (annotate) - [select for diffs]
Modified Tue Oct 14 16:04:35 2003 UTC (21 years, 4 months ago) by bh
Original Path: trunk/thuban/test/test_proj.py
File length: 16002 byte(s)
Diff to previous 1825 , to selected 2696
Execute support.run_tests when run as
__main__ so that missing unsubscribes are detected
(TestProjFile.tearDown): Destroy the proj_file properly


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 2696
(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 2696
(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 2696
(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 2696
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 1811 - (view) (annotate) - [select for diffs]
Modified Mon Oct 13 13:36:34 2003 UTC (21 years, 4 months ago) by bh
Original Path: trunk/thuban/test/test_proj.py
File length: 11574 byte(s)
Diff to previous 1798 , to selected 2696
(TestProjFile.testRead)
(TestProjFile.test_read_non_existing_file)
(TestProjFile.test_read_unreadable_file)
(TestProjFile.test_read_empty_file): Split into several methods.


Revision 1798 - (view) (annotate) - [select for diffs]
Modified Thu Oct 9 10:17:49 2003 UTC (21 years, 5 months ago) by bh
Original Path: trunk/thuban/test/test_proj.py
File length: 11308 byte(s)
Diff to previous 1793 , to selected 2696
(TestProjection.test_get_parameter_without_equals_sign): New. Test
whether GetParameter handles parameters without "=" sign correctly


Revision 1793 - (view) (annotate) - [select for diffs]
Modified Wed Oct 8 16:04:01 2003 UTC (21 years, 5 months ago) by bh
Original Path: trunk/thuban/test/test_proj.py
File length: 10895 byte(s)
Diff to previous 1787 , to selected 2696
(TestProjection.test_get_projection_units_geo)
(TestProjection.test_get_projection_units_normal): New. Tests for
the Projection.GetProjectedUnits method


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 2696
(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 2696
(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 2696
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 1684 - (view) (annotate) - [select for diffs]
Modified Thu Aug 28 18:55:01 2003 UTC (21 years, 6 months ago) by bh
Original Path: trunk/thuban/test/test_proj.py
File length: 8064 byte(s)
Diff to previous 1259 , to selected 2696
Import things from Thuban after calling
initthuban


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 2696
* 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


Revision 1167 - (view) (annotate) - [select for diffs]
Modified Thu Jun 12 12:42:34 2003 UTC (21 years, 8 months ago) by jonathan
Original Path: trunk/thuban/test/test_proj.py
File length: 8058 byte(s)
Diff to previous 761 , to selected 2696
Use renamed projection resource functions.


Revision 761 - (view) (annotate) - [select for diffs]
Modified Tue Apr 29 09:02:15 2003 UTC (21 years, 10 months ago) by jonathan
Original Path: trunk/thuban/test/test_proj.py
File length: 8044 byte(s)
Diff to previous 752 , to selected 2696
(TestProjection.test): Test GetName() and GetAllParameters()
(TestProjFile.test): Remove tests for Set*() methods. Add tests for Replace().


Revision 752 - (view) (annotate) - [select for diffs]
Modified Fri Apr 25 14:23:34 2003 UTC (21 years, 10 months ago) by jonathan
Original Path: trunk/thuban/test/test_proj.py
File length: 7704 byte(s)
Diff to previous 742 , to selected 2696
(TestProjFile.test): Add tests for ProjFile.SetAllParameters,
        ProjFile.SetProjection, ProjFile.SetName.


Revision 742 - (view) (annotate) - [select for diffs]
Modified Fri Apr 25 09:14:41 2003 UTC (21 years, 10 months ago) by jonathan
Original Path: trunk/thuban/test/test_proj.py
File length: 7284 byte(s)
Diff to previous 719 , to selected 2696
(TestProjFile.test): New. Tests the base ProjFile class.


Revision 719 - (view) (annotate) - [select for diffs]
Modified Wed Apr 23 10:40:00 2003 UTC (21 years, 10 months ago) by jonathan
Original Path: trunk/thuban/test/test_proj.py
File length: 5968 byte(s)
Diff to previous 714 , to selected 2696
Added test cases to handle nonexistent files, unreadable files, and
files that don't parse correctly.


Revision 714 - (view) (annotate) - [select for diffs]
Modified Wed Apr 23 08:47:05 2003 UTC (21 years, 10 months ago) by jonathan
Original Path: trunk/thuban/test/test_proj.py
File length: 5154 byte(s)
Diff to previous 698 , to selected 2696
(TestProjection.test): New tests for GetParameter method.


Revision 698 - (view) (annotate) - [select for diffs]
Modified Wed Apr 16 16:40:18 2003 UTC (21 years, 10 months ago) by jonathan
Original Path: trunk/thuban/test/test_proj.py
File length: 4910 byte(s)
Diff to previous 333 , to selected 2696
New test cases for the projection file read and write functions.


Revision 333 - (view) (annotate) - [select for diffs]
Added Fri Sep 20 15:47:07 2002 UTC (22 years, 5 months ago) by bh
Original Path: trunk/thuban/test/test_proj.py
File length: 1469 byte(s)
Diff to selected 2696
New. Test cases for Thuban.Model.proj


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.

  Diffs between and
  Type of Diff should be a

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26