diff options
| author | Even Rouault <even.rouault@spatialys.com> | 2018-12-06 19:40:13 +0100 |
|---|---|---|
| committer | Even Rouault <even.rouault@spatialys.com> | 2018-12-06 19:40:13 +0100 |
| commit | 4022e2093a6773458c2453e42089c987da6efbf9 (patch) | |
| tree | 805c39dc52d4738229f926efe0447c45134daf01 /src/coordinateoperation.cpp | |
| parent | 6afbfc737384a4f58f2d5f8bc3bde69dacf9b355 (diff) | |
| download | PROJ-4022e2093a6773458c2453e42089c987da6efbf9.tar.gz PROJ-4022e2093a6773458c2453e42089c987da6efbf9.zip | |
Fix special handling of Azimuth parameter of Krovak
Diffstat (limited to 'src/coordinateoperation.cpp')
| -rw-r--r-- | src/coordinateoperation.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/coordinateoperation.cpp b/src/coordinateoperation.cpp index d187f2cc..ced0ab9f 100644 --- a/src/coordinateoperation.cpp +++ b/src/coordinateoperation.cpp @@ -5177,7 +5177,9 @@ void Conversion::_exportToPROJString( double latitudePseudoStandardParallel = parameterValueNumeric( EPSG_CODE_PARAMETER_LATITUDE_PSEUDO_STANDARD_PARALLEL, common::UnitOfMeasure::DEGREE); - if (std::fabs(colatitude - 30.28813972222222) > 1e-8) { + // 30deg 17' 17.30311'' = 30.28813975277777776 + // 30deg 17' 17.303'' = 30.288139722222223 as used in GDAL WKT1 + if (std::fabs(colatitude - 30.2881397) > 1e-7) { throw io::FormattingException( std::string("Unsupported value for ") + EPSG_NAME_PARAMETER_COLATITUDE_CONE_AXIS); |
