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

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

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2696 by bernhard, Sun Sep 17 23:19:21 2006 UTC revision 2698 by bernhard, Mon Sep 18 00:56:26 2006 UTC
# Line 1  Line 1 
1  # Copyright (c) 2002, 2003 by Intevation GmbH  # Copyright (c) 2002, 2003, 2006 by Intevation GmbH
2  # Authors:  # Authors:
3  # Bernhard Herzog <[email protected]>  # Bernhard Herzog <[email protected]>
4    # Bernhard Reiter <[email protected]>
5  #  #
6  # This program is free software under the GPL (>=v2)  # This program is free software under the GPL (>=v2)
7  # Read the file COPYING coming with Thuban for details.  # Read the file COPYING coming with Thuban for details.
# Line 114  class TestProjection(unittest.TestCase, Line 115  class TestProjection(unittest.TestCase,
115                      "No locale with comma as decimal_point found.")                      "No locale with comma as decimal_point found.")
116    
117          proj = Projection(params)          proj = Projection(params)
118          result1 =  proj.Forward(1,1)          #print proj.work_around_broken_proj
119            result1 =  proj.Forward(1.2,3.2)
120    
121          locale.setlocale(locale.LC_NUMERIC, "C")          locale.setlocale(locale.LC_NUMERIC, "C")
122          proj = Projection(params)          proj = Projection(params)
123          result2= proj.Forward(1,1)          result2= proj.Forward(1.2,3.2)
124    
125          locale.setlocale(locale.LC_NUMERIC, oldlocale)          locale.setlocale(locale.LC_NUMERIC, oldlocale)
126          self.assertFloatSeqEqual(result1, result2, epsilon = 1e-5 )          self.assertFloatSeqEqual(result1, result2, epsilon = 1e-5 )

Legend:
Removed from v.2696  
changed lines
  Added in v.2698

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26