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. |
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 ) |