crskit 0.7.0__tar.gz → 0.8.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (385) hide show
  1. {crskit-0.7.0 → crskit-0.8.0}/PKG-INFO +5 -4
  2. {crskit-0.7.0 → crskit-0.8.0}/crskit/CoordinateSystems/CoordinateSystemAuthorityFactory.cpp +22 -3
  3. {crskit-0.7.0 → crskit-0.8.0}/crskit/CoordinateSystems/CoordinateSystemAuthorityFactory.h +1 -0
  4. {crskit-0.7.0 → crskit-0.8.0}/crskit/CoordinateSystems/CoordinateSystemFactory.cpp +51 -22
  5. {crskit-0.7.0 → crskit-0.8.0}/crskit/CoordinateSystems/CoordinateSystemFactory.h +4 -0
  6. {crskit-0.7.0 → crskit-0.8.0}/crskit/CoordinateSystems/HorizontalDatum.cpp +33 -2
  7. {crskit-0.7.0 → crskit-0.8.0}/crskit/CoordinateSystems/ICoordinateSystemAuthorityFactory.h +3 -0
  8. {crskit-0.7.0 → crskit-0.8.0}/crskit/CoordinateSystems/LocalDatum.h +2 -1
  9. {crskit-0.7.0 → crskit-0.8.0}/crskit/CoordinateSystems/PrimeMeridian.cpp +7 -2
  10. {crskit-0.7.0 → crskit-0.8.0}/crskit/CoordinateSystems/VerticalDatum.h +2 -1
  11. {crskit-0.7.0 → crskit-0.8.0}/crskit/CoordinateSystems/Wkt2.cpp +69 -21
  12. {crskit-0.7.0 → crskit-0.8.0}/crskit/CoordinateTransformations/Algorithms/Affine.cpp +35 -0
  13. {crskit-0.7.0 → crskit-0.8.0}/crskit/CoordinateTransformations/Algorithms/Afine.h +4 -0
  14. {crskit-0.7.0 → crskit-0.8.0}/crskit/CoordinateTransformations/Algorithms/Geographic2D2Geocentric.cpp +8 -0
  15. {crskit-0.7.0 → crskit-0.8.0}/crskit/CoordinateTransformations/Algorithms/Geographic2D2Geocentric.h +3 -0
  16. {crskit-0.7.0 → crskit-0.8.0}/crskit/CoordinateTransformations/Algorithms/LongitudeRotation.cpp +3 -21
  17. {crskit-0.7.0 → crskit-0.8.0}/crskit/CoordinateTransformations/CoordinateTransformationAuthorityFactory.cpp +72 -79
  18. {crskit-0.7.0 → crskit-0.8.0}/crskit/CoordinateTransformations/CoordinateTransformationFactory.cpp +486 -146
  19. {crskit-0.7.0 → crskit-0.8.0}/crskit/CoordinateTransformations/CoordinateTransformationFactory.h +21 -0
  20. crskit-0.8.0/crskit/CoordinateTransformations/ThreeCoordinateHeightTransform.cpp +57 -0
  21. crskit-0.8.0/crskit/CoordinateTransformations/ThreeCoordinateHeightTransform.h +34 -0
  22. {crskit-0.7.0 → crskit-0.8.0}/crskit/CrsKit.h +1 -0
  23. {crskit-0.7.0 → crskit-0.8.0}/crskit/OpenGisException.h +8 -0
  24. {crskit-0.7.0 → crskit-0.8.0}/crskit/Utilities.cpp +133 -65
  25. {crskit-0.7.0 → crskit-0.8.0}/ports/crskit/portfile.cmake +3 -2
  26. {crskit-0.7.0 → crskit-0.8.0}/ports/crskit/vcpkg.json +1 -1
  27. {crskit-0.7.0 → crskit-0.8.0}/pyproject.toml +1 -1
  28. {crskit-0.7.0 → crskit-0.8.0}/python/README.md +4 -3
  29. {crskit-0.7.0 → crskit-0.8.0}/python/TUTORIAL.de.md +3 -2
  30. {crskit-0.7.0 → crskit-0.8.0}/python/TUTORIAL.es.md +3 -2
  31. {crskit-0.7.0 → crskit-0.8.0}/python/TUTORIAL.fr.md +3 -2
  32. {crskit-0.7.0 → crskit-0.8.0}/python/TUTORIAL.it.md +3 -2
  33. {crskit-0.7.0 → crskit-0.8.0}/python/TUTORIAL.md +3 -2
  34. {crskit-0.7.0 → crskit-0.8.0}/python/crskit/__init__.py +2 -0
  35. {crskit-0.7.0 → crskit-0.8.0}/python/crskit/_crskit.pyi +6 -1
  36. {crskit-0.7.0 → crskit-0.8.0}/python/src/module.cpp +2 -1
  37. {crskit-0.7.0 → crskit-0.8.0}/python/tests/test_crskit.py +8 -0
  38. crskit-0.8.0/tests/RoundTrip.h +151 -0
  39. crskit-0.8.0/tests/TestDatumComparison.cpp +79 -0
  40. crskit-0.8.0/tests/TestDatumNameNormalization.cpp +57 -0
  41. crskit-0.8.0/tests/TestDatumOfCrs.cpp +34 -0
  42. crskit-0.8.0/tests/TestEllipsoidInFeet.cpp +54 -0
  43. crskit-0.8.0/tests/TestGeocentricWithoutEpsgCode.cpp +47 -0
  44. crskit-0.8.0/tests/TestGeographic2DVertical.cpp +101 -0
  45. crskit-0.8.0/tests/TestGeographic3DDatumShift.cpp +96 -0
  46. crskit-0.8.0/tests/TestGeographic3DTowgs84.cpp +67 -0
  47. crskit-0.8.0/tests/TestGeographicAndGeocentric3DWithoutCodeToHorizontal.cpp +63 -0
  48. crskit-0.8.0/tests/TestGeographicAxisOrder.cpp +58 -0
  49. crskit-0.8.0/tests/TestGeographicToGeocentricDatumShift.cpp +218 -0
  50. crskit-0.8.0/tests/TestLongitudeRotation.cpp +32 -0
  51. crskit-0.8.0/tests/TestMolodenskyBadekas.cpp +25 -0
  52. crskit-0.8.0/tests/TestPrimeMeridianChange.cpp +44 -0
  53. crskit-0.8.0/tests/TestPrimeMeridianGeocentric.cpp +239 -0
  54. crskit-0.8.0/tests/TestPrimeMeridianWkt1.cpp +52 -0
  55. crskit-0.8.0/tests/TestRoundTripSweep.cpp +391 -0
  56. crskit-0.8.0/tests/TestSameGeodeticFrame.cpp +73 -0
  57. crskit-0.8.0/tests/TestSexagesimalPrimeMeridian.cpp +46 -0
  58. crskit-0.8.0/tests/TestThreeCoordinateUnits.cpp +116 -0
  59. crskit-0.8.0/tests/TestThreeDimensionalCrsWithLocalHorizontalComponent.cpp +68 -0
  60. {crskit-0.7.0 → crskit-0.8.0}/tests/TestTowgs84.cpp +42 -0
  61. crskit-0.8.0/tests/TestTransformToGeocentric.cpp +259 -0
  62. crskit-0.8.0/tests/TestTransformToGeocentricHorizontalTypes.cpp +80 -0
  63. crskit-0.8.0/tests/TestVerticalRoundTrip.cpp +143 -0
  64. crskit-0.8.0/tests/TestWgs84DatumNames.cpp +50 -0
  65. {crskit-0.7.0 → crskit-0.8.0}/tests/TestWkt2.cpp +83 -0
  66. crskit-0.8.0/tests/TestWkt2AxisUnits.cpp +66 -0
  67. {crskit-0.7.0 → crskit-0.8.0}/tools/release.sh +3 -2
  68. {crskit-0.7.0 → crskit-0.8.0}/versions/baseline.json +1 -1
  69. {crskit-0.7.0 → crskit-0.8.0}/versions/c-/crskit.json +10 -0
  70. crskit-0.7.0/tests/TestDatumOfCrs.cpp +0 -23
  71. {crskit-0.7.0 → crskit-0.8.0}/.gitattributes +0 -0
  72. {crskit-0.7.0 → crskit-0.8.0}/.github/workflows/ci.yml +0 -0
  73. {crskit-0.7.0 → crskit-0.8.0}/.github/workflows/epsg.yml +0 -0
  74. {crskit-0.7.0 → crskit-0.8.0}/.github/workflows/wheels.yml +0 -0
  75. {crskit-0.7.0 → crskit-0.8.0}/.gitignore +0 -0
  76. {crskit-0.7.0 → crskit-0.8.0}/CMakeLists.txt +0 -0
  77. {crskit-0.7.0 → crskit-0.8.0}/CMakePresets.json +0 -0
  78. {crskit-0.7.0 → crskit-0.8.0}/LICENSE +0 -0
  79. {crskit-0.7.0 → crskit-0.8.0}/Readme.md +0 -0
  80. {crskit-0.7.0 → crskit-0.8.0}/branding/crskit-logo-128.png +0 -0
  81. {crskit-0.7.0 → crskit-0.8.0}/branding/crskit-logo-256.png +0 -0
  82. {crskit-0.7.0 → crskit-0.8.0}/branding/crskit-logo-512.png +0 -0
  83. {crskit-0.7.0 → crskit-0.8.0}/branding/crskit-logo-64.png +0 -0
  84. {crskit-0.7.0 → crskit-0.8.0}/branding/crskit-logo.svg +0 -0
  85. {crskit-0.7.0 → crskit-0.8.0}/branding/crskit.ico +0 -0
  86. {crskit-0.7.0 → crskit-0.8.0}/cmake/crskit-config.cmake.in +0 -0
  87. {crskit-0.7.0 → crskit-0.8.0}/crskit/CoordinateSystems/AngularUnit.cpp +0 -0
  88. {crskit-0.7.0 → crskit-0.8.0}/crskit/CoordinateSystems/AngularUnit.h +0 -0
  89. {crskit-0.7.0 → crskit-0.8.0}/crskit/CoordinateSystems/AxisInfo.h +0 -0
  90. {crskit-0.7.0 → crskit-0.8.0}/crskit/CoordinateSystems/AxisOrientationEnum.h +0 -0
  91. {crskit-0.7.0 → crskit-0.8.0}/crskit/CoordinateSystems/BaseInfo.h +0 -0
  92. {crskit-0.7.0 → crskit-0.8.0}/crskit/CoordinateSystems/CompoundCoordinateSystem.cpp +0 -0
  93. {crskit-0.7.0 → crskit-0.8.0}/crskit/CoordinateSystems/CompoundCoordinateSystem.h +0 -0
  94. {crskit-0.7.0 → crskit-0.8.0}/crskit/CoordinateSystems/CoordinateSystem.cpp +0 -0
  95. {crskit-0.7.0 → crskit-0.8.0}/crskit/CoordinateSystems/CoordinateSystem.h +0 -0
  96. {crskit-0.7.0 → crskit-0.8.0}/crskit/CoordinateSystems/CoordinateSystemEquivalence.cpp +0 -0
  97. {crskit-0.7.0 → crskit-0.8.0}/crskit/CoordinateSystems/Datum.cpp +0 -0
  98. {crskit-0.7.0 → crskit-0.8.0}/crskit/CoordinateSystems/Datum.h +0 -0
  99. {crskit-0.7.0 → crskit-0.8.0}/crskit/CoordinateSystems/DatumType.h +0 -0
  100. {crskit-0.7.0 → crskit-0.8.0}/crskit/CoordinateSystems/Ellipsoid.cpp +0 -0
  101. {crskit-0.7.0 → crskit-0.8.0}/crskit/CoordinateSystems/Ellipsoid.h +0 -0
  102. {crskit-0.7.0 → crskit-0.8.0}/crskit/CoordinateSystems/GeocentricCoordinateSystem.cpp +0 -0
  103. {crskit-0.7.0 → crskit-0.8.0}/crskit/CoordinateSystems/GeocentricCoordinateSystem.h +0 -0
  104. {crskit-0.7.0 → crskit-0.8.0}/crskit/CoordinateSystems/GeographicCoordinateSystem.cpp +0 -0
  105. {crskit-0.7.0 → crskit-0.8.0}/crskit/CoordinateSystems/GeographicCoordinateSystem.h +0 -0
  106. {crskit-0.7.0 → crskit-0.8.0}/crskit/CoordinateSystems/HorizontalCoordinateSystem.cpp +0 -0
  107. {crskit-0.7.0 → crskit-0.8.0}/crskit/CoordinateSystems/HorizontalCoordinateSystem.h +0 -0
  108. {crskit-0.7.0 → crskit-0.8.0}/crskit/CoordinateSystems/HorizontalDatum.h +0 -0
  109. {crskit-0.7.0 → crskit-0.8.0}/crskit/CoordinateSystems/ICompoundCoordinateSystem.h +0 -0
  110. {crskit-0.7.0 → crskit-0.8.0}/crskit/CoordinateSystems/ICoordinateSystem.h +0 -0
  111. {crskit-0.7.0 → crskit-0.8.0}/crskit/CoordinateSystems/IDatum.h +0 -0
  112. {crskit-0.7.0 → crskit-0.8.0}/crskit/CoordinateSystems/IGeocentricCoordinateSystem.h +0 -0
  113. {crskit-0.7.0 → crskit-0.8.0}/crskit/CoordinateSystems/IGeographicCoordinateSystem.h +0 -0
  114. {crskit-0.7.0 → crskit-0.8.0}/crskit/CoordinateSystems/IHorizontalCoordinateSystem.h +0 -0
  115. {crskit-0.7.0 → crskit-0.8.0}/crskit/CoordinateSystems/IHorizontalDatum.h +0 -0
  116. {crskit-0.7.0 → crskit-0.8.0}/crskit/CoordinateSystems/IInfo.h +0 -0
  117. {crskit-0.7.0 → crskit-0.8.0}/crskit/CoordinateSystems/ILocalCoordinateSystem.h +0 -0
  118. {crskit-0.7.0 → crskit-0.8.0}/crskit/CoordinateSystems/ILocalDatum.h +0 -0
  119. {crskit-0.7.0 → crskit-0.8.0}/crskit/CoordinateSystems/IProjectedCoordinateSystem.h +0 -0
  120. {crskit-0.7.0 → crskit-0.8.0}/crskit/CoordinateSystems/IProjection.h +0 -0
  121. {crskit-0.7.0 → crskit-0.8.0}/crskit/CoordinateSystems/IVerticalCoordinateSystem.h +0 -0
  122. {crskit-0.7.0 → crskit-0.8.0}/crskit/CoordinateSystems/IVerticalDatum.h +0 -0
  123. {crskit-0.7.0 → crskit-0.8.0}/crskit/CoordinateSystems/LinearUnit.cpp +0 -0
  124. {crskit-0.7.0 → crskit-0.8.0}/crskit/CoordinateSystems/LinearUnit.h +0 -0
  125. {crskit-0.7.0 → crskit-0.8.0}/crskit/CoordinateSystems/LocalCoordinateSystem.cpp +0 -0
  126. {crskit-0.7.0 → crskit-0.8.0}/crskit/CoordinateSystems/LocalCoordinateSystem.h +0 -0
  127. {crskit-0.7.0 → crskit-0.8.0}/crskit/CoordinateSystems/LocalDatum.cpp +0 -0
  128. {crskit-0.7.0 → crskit-0.8.0}/crskit/CoordinateSystems/PrimeMeridian.h +0 -0
  129. {crskit-0.7.0 → crskit-0.8.0}/crskit/CoordinateSystems/ProjectedCoordinateSystem.cpp +0 -0
  130. {crskit-0.7.0 → crskit-0.8.0}/crskit/CoordinateSystems/ProjectedCoordinateSystem.h +0 -0
  131. {crskit-0.7.0 → crskit-0.8.0}/crskit/CoordinateSystems/Projection.cpp +0 -0
  132. {crskit-0.7.0 → crskit-0.8.0}/crskit/CoordinateSystems/Projection.h +0 -0
  133. {crskit-0.7.0 → crskit-0.8.0}/crskit/CoordinateSystems/Unit.h +0 -0
  134. {crskit-0.7.0 → crskit-0.8.0}/crskit/CoordinateSystems/VerticalCoordinateSystem.cpp +0 -0
  135. {crskit-0.7.0 → crskit-0.8.0}/crskit/CoordinateSystems/VerticalCoordinateSystem.h +0 -0
  136. {crskit-0.7.0 → crskit-0.8.0}/crskit/CoordinateSystems/VerticalDatum.cpp +0 -0
  137. {crskit-0.7.0 → crskit-0.8.0}/crskit/CoordinateSystems/Wgs84ConversionInfo.h +0 -0
  138. {crskit-0.7.0 → crskit-0.8.0}/crskit/CoordinateSystems/Wkt2.h +0 -0
  139. {crskit-0.7.0 → crskit-0.8.0}/crskit/CoordinateTransformationOptions.h +0 -0
  140. {crskit-0.7.0 → crskit-0.8.0}/crskit/CoordinateTransformations/Algorithms/AlbersConicEqualArea.cpp +0 -0
  141. {crskit-0.7.0 → crskit-0.8.0}/crskit/CoordinateTransformations/Algorithms/AlbersConicEqualArea.h +0 -0
  142. {crskit-0.7.0 → crskit-0.8.0}/crskit/CoordinateTransformations/Algorithms/AmericanPolyconic.cpp +0 -0
  143. {crskit-0.7.0 → crskit-0.8.0}/crskit/CoordinateTransformations/Algorithms/AmericanPolyconic.h +0 -0
  144. {crskit-0.7.0 → crskit-0.8.0}/crskit/CoordinateTransformations/Algorithms/Authalic.h +0 -0
  145. {crskit-0.7.0 → crskit-0.8.0}/crskit/CoordinateTransformations/Algorithms/AzimuthalProjections.cpp +0 -0
  146. {crskit-0.7.0 → crskit-0.8.0}/crskit/CoordinateTransformations/Algorithms/AzimuthalProjections.h +0 -0
  147. {crskit-0.7.0 → crskit-0.8.0}/crskit/CoordinateTransformations/Algorithms/CassiniSoldner.cpp +0 -0
  148. {crskit-0.7.0 → crskit-0.8.0}/crskit/CoordinateTransformations/Algorithms/CassiniSoldner.h +0 -0
  149. {crskit-0.7.0 → crskit-0.8.0}/crskit/CoordinateTransformations/Algorithms/CoordinateFrameRotation.cpp +0 -0
  150. {crskit-0.7.0 → crskit-0.8.0}/crskit/CoordinateTransformations/Algorithms/CoordinateFrameRotation.h +0 -0
  151. {crskit-0.7.0 → crskit-0.8.0}/crskit/CoordinateTransformations/Algorithms/CylindricalProjections.cpp +0 -0
  152. {crskit-0.7.0 → crskit-0.8.0}/crskit/CoordinateTransformations/Algorithms/CylindricalProjections.h +0 -0
  153. {crskit-0.7.0 → crskit-0.8.0}/crskit/CoordinateTransformations/Algorithms/GeocentricToTopocentric.cpp +0 -0
  154. {crskit-0.7.0 → crskit-0.8.0}/crskit/CoordinateTransformations/Algorithms/GeocentricToTopocentric.h +0 -0
  155. {crskit-0.7.0 → crskit-0.8.0}/crskit/CoordinateTransformations/Algorithms/GeocentricTranslations.cpp +0 -0
  156. {crskit-0.7.0 → crskit-0.8.0}/crskit/CoordinateTransformations/Algorithms/GeocentricTranslations.h +0 -0
  157. {crskit-0.7.0 → crskit-0.8.0}/crskit/CoordinateTransformations/Algorithms/Geodesic.h +0 -0
  158. {crskit-0.7.0 → crskit-0.8.0}/crskit/CoordinateTransformations/Algorithms/Geographic2D2Geographic3D.cpp +0 -0
  159. {crskit-0.7.0 → crskit-0.8.0}/crskit/CoordinateTransformations/Algorithms/Geographic2D2Geographic3D.h +0 -0
  160. {crskit-0.7.0 → crskit-0.8.0}/crskit/CoordinateTransformations/Algorithms/Geographic3DToGravityRelatedHeightEGM.cpp +0 -0
  161. {crskit-0.7.0 → crskit-0.8.0}/crskit/CoordinateTransformations/Algorithms/Geographic3DToGravityRelatedHeightEGM.h +0 -0
  162. {crskit-0.7.0 → crskit-0.8.0}/crskit/CoordinateTransformations/Algorithms/Geographic3DToGravityRelatedHeightEGM2008.cpp +0 -0
  163. {crskit-0.7.0 → crskit-0.8.0}/crskit/CoordinateTransformations/Algorithms/Geographic3DToGravityRelatedHeightEGM2008.h +0 -0
  164. {crskit-0.7.0 → crskit-0.8.0}/crskit/CoordinateTransformations/Algorithms/GridFiles/GridAusGeoid.cpp +0 -0
  165. {crskit-0.7.0 → crskit-0.8.0}/crskit/CoordinateTransformations/Algorithms/GridFiles/GridAusGeoid.h +0 -0
  166. {crskit-0.7.0 → crskit-0.8.0}/crskit/CoordinateTransformations/Algorithms/GridFiles/GridEGM2008.cpp +0 -0
  167. {crskit-0.7.0 → crskit-0.8.0}/crskit/CoordinateTransformations/Algorithms/GridFiles/GridEGM2008.h +0 -0
  168. {crskit-0.7.0 → crskit-0.8.0}/crskit/CoordinateTransformations/Algorithms/GridFiles/GridEGM2008Rednap.cpp +0 -0
  169. {crskit-0.7.0 → crskit-0.8.0}/crskit/CoordinateTransformations/Algorithms/GridFiles/GridEGM2008Rednap.h +0 -0
  170. {crskit-0.7.0 → crskit-0.8.0}/crskit/CoordinateTransformations/Algorithms/GridFiles/GridGtg.cpp +0 -0
  171. {crskit-0.7.0 → crskit-0.8.0}/crskit/CoordinateTransformations/Algorithms/GridFiles/GridGtg.h +0 -0
  172. {crskit-0.7.0 → crskit-0.8.0}/crskit/CoordinateTransformations/Algorithms/GridFiles/GridGtx.cpp +0 -0
  173. {crskit-0.7.0 → crskit-0.8.0}/crskit/CoordinateTransformations/Algorithms/GridFiles/GridGtx.h +0 -0
  174. {crskit-0.7.0 → crskit-0.8.0}/crskit/CoordinateTransformations/Algorithms/GridFiles/Inflate.cpp +0 -0
  175. {crskit-0.7.0 → crskit-0.8.0}/crskit/CoordinateTransformations/Algorithms/GridFiles/Inflate.h +0 -0
  176. {crskit-0.7.0 → crskit-0.8.0}/crskit/CoordinateTransformations/Algorithms/HotineObliqueMercator.cpp +0 -0
  177. {crskit-0.7.0 → crskit-0.8.0}/crskit/CoordinateTransformations/Algorithms/HotineObliqueMercator.h +0 -0
  178. {crskit-0.7.0 → crskit-0.8.0}/crskit/CoordinateTransformations/Algorithms/Krovak.cpp +0 -0
  179. {crskit-0.7.0 → crskit-0.8.0}/crskit/CoordinateTransformations/Algorithms/Krovak.h +0 -0
  180. {crskit-0.7.0 → crskit-0.8.0}/crskit/CoordinateTransformations/Algorithms/LambertAzimuthalEqualArea.cpp +0 -0
  181. {crskit-0.7.0 → crskit-0.8.0}/crskit/CoordinateTransformations/Algorithms/LambertAzimuthalEqualArea.h +0 -0
  182. {crskit-0.7.0 → crskit-0.8.0}/crskit/CoordinateTransformations/Algorithms/LambertConformalConic1SP.cpp +0 -0
  183. {crskit-0.7.0 → crskit-0.8.0}/crskit/CoordinateTransformations/Algorithms/LambertConformalConic1SP.h +0 -0
  184. {crskit-0.7.0 → crskit-0.8.0}/crskit/CoordinateTransformations/Algorithms/LambertConformalConic2SP.cpp +0 -0
  185. {crskit-0.7.0 → crskit-0.8.0}/crskit/CoordinateTransformations/Algorithms/LambertConformalConic2SP.h +0 -0
  186. {crskit-0.7.0 → crskit-0.8.0}/crskit/CoordinateTransformations/Algorithms/LambertConicConformalVariants.cpp +0 -0
  187. {crskit-0.7.0 → crskit-0.8.0}/crskit/CoordinateTransformations/Algorithms/LambertConicConformalVariants.h +0 -0
  188. {crskit-0.7.0 → crskit-0.8.0}/crskit/CoordinateTransformations/Algorithms/LongitudeRotation.h +0 -0
  189. {crskit-0.7.0 → crskit-0.8.0}/crskit/CoordinateTransformations/Algorithms/MapProjectionBase.cpp +0 -0
  190. {crskit-0.7.0 → crskit-0.8.0}/crskit/CoordinateTransformations/Algorithms/MapProjectionBase.h +0 -0
  191. {crskit-0.7.0 → crskit-0.8.0}/crskit/CoordinateTransformations/Algorithms/Mercator1Sp.cpp +0 -0
  192. {crskit-0.7.0 → crskit-0.8.0}/crskit/CoordinateTransformations/Algorithms/Mercator1Sp.h +0 -0
  193. {crskit-0.7.0 → crskit-0.8.0}/crskit/CoordinateTransformations/Algorithms/Mercator2Sp.cpp +0 -0
  194. {crskit-0.7.0 → crskit-0.8.0}/crskit/CoordinateTransformations/Algorithms/Mercator2Sp.h +0 -0
  195. {crskit-0.7.0 → crskit-0.8.0}/crskit/CoordinateTransformations/Algorithms/MolodenskyBadekas.cpp +0 -0
  196. {crskit-0.7.0 → crskit-0.8.0}/crskit/CoordinateTransformations/Algorithms/MolodenskyBadekas.h +0 -0
  197. {crskit-0.7.0 → crskit-0.8.0}/crskit/CoordinateTransformations/Algorithms/NadCon.cpp +0 -0
  198. {crskit-0.7.0 → crskit-0.8.0}/crskit/CoordinateTransformations/Algorithms/NadCon.h +0 -0
  199. {crskit-0.7.0 → crskit-0.8.0}/crskit/CoordinateTransformations/Algorithms/Ntv2.cpp +0 -0
  200. {crskit-0.7.0 → crskit-0.8.0}/crskit/CoordinateTransformations/Algorithms/Ntv2.h +0 -0
  201. {crskit-0.7.0 → crskit-0.8.0}/crskit/CoordinateTransformations/Algorithms/ObliqueMercator.cpp +0 -0
  202. {crskit-0.7.0 → crskit-0.8.0}/crskit/CoordinateTransformations/Algorithms/ObliqueMercator.h +0 -0
  203. {crskit-0.7.0 → crskit-0.8.0}/crskit/CoordinateTransformations/Algorithms/ObliqueStereographic.cpp +0 -0
  204. {crskit-0.7.0 → crskit-0.8.0}/crskit/CoordinateTransformations/Algorithms/ObliqueStereographic.h +0 -0
  205. {crskit-0.7.0 → crskit-0.8.0}/crskit/CoordinateTransformations/Algorithms/OtherProjections.cpp +0 -0
  206. {crskit-0.7.0 → crskit-0.8.0}/crskit/CoordinateTransformations/Algorithms/OtherProjections.h +0 -0
  207. {crskit-0.7.0 → crskit-0.8.0}/crskit/CoordinateTransformations/Algorithms/P6.cpp +0 -0
  208. {crskit-0.7.0 → crskit-0.8.0}/crskit/CoordinateTransformations/Algorithms/P6.h +0 -0
  209. {crskit-0.7.0 → crskit-0.8.0}/crskit/CoordinateTransformations/Algorithms/PolarStereographic.cpp +0 -0
  210. {crskit-0.7.0 → crskit-0.8.0}/crskit/CoordinateTransformations/Algorithms/PolarStereographic.h +0 -0
  211. {crskit-0.7.0 → crskit-0.8.0}/crskit/CoordinateTransformations/Algorithms/PopularVisualisationPseudoMercator.cpp +0 -0
  212. {crskit-0.7.0 → crskit-0.8.0}/crskit/CoordinateTransformations/Algorithms/PopularVisualisationPseudoMercator.h +0 -0
  213. {crskit-0.7.0 → crskit-0.8.0}/crskit/CoordinateTransformations/Algorithms/PositionVectorTransformation.cpp +0 -0
  214. {crskit-0.7.0 → crskit-0.8.0}/crskit/CoordinateTransformations/Algorithms/PositionVectorTransformation.h +0 -0
  215. {crskit-0.7.0 → crskit-0.8.0}/crskit/CoordinateTransformations/Algorithms/TransverseMercator.cpp +0 -0
  216. {crskit-0.7.0 → crskit-0.8.0}/crskit/CoordinateTransformations/Algorithms/TransverseMercator.h +0 -0
  217. {crskit-0.7.0 → crskit-0.8.0}/crskit/CoordinateTransformations/Algorithms/TransverseMercatorSouthOrientated.cpp +0 -0
  218. {crskit-0.7.0 → crskit-0.8.0}/crskit/CoordinateTransformations/Algorithms/TransverseMercatorSouthOrientated.h +0 -0
  219. {crskit-0.7.0 → crskit-0.8.0}/crskit/CoordinateTransformations/Algorithms/VerticalOffset.cpp +0 -0
  220. {crskit-0.7.0 → crskit-0.8.0}/crskit/CoordinateTransformations/Algorithms/VerticalOffset.h +0 -0
  221. {crskit-0.7.0 → crskit-0.8.0}/crskit/CoordinateTransformations/ConcatenatedTransform.cpp +0 -0
  222. {crskit-0.7.0 → crskit-0.8.0}/crskit/CoordinateTransformations/ConcatenatedTransform.h +0 -0
  223. {crskit-0.7.0 → crskit-0.8.0}/crskit/CoordinateTransformations/CoordinateOperation.h +0 -0
  224. {crskit-0.7.0 → crskit-0.8.0}/crskit/CoordinateTransformations/CoordinateTransformation.cpp +0 -0
  225. {crskit-0.7.0 → crskit-0.8.0}/crskit/CoordinateTransformations/CoordinateTransformation.h +0 -0
  226. {crskit-0.7.0 → crskit-0.8.0}/crskit/CoordinateTransformations/CoordinateTransformationAuthorityFactory.h +0 -0
  227. {crskit-0.7.0 → crskit-0.8.0}/crskit/CoordinateTransformations/DomainFlags.h +0 -0
  228. {crskit-0.7.0 → crskit-0.8.0}/crskit/CoordinateTransformations/ICoordinateTransformation.h +0 -0
  229. {crskit-0.7.0 → crskit-0.8.0}/crskit/CoordinateTransformations/ICoordinateTransformationAuthorityFactory.h +0 -0
  230. {crskit-0.7.0 → crskit-0.8.0}/crskit/CoordinateTransformations/ICoordinateTransformationFactory.h +0 -0
  231. {crskit-0.7.0 → crskit-0.8.0}/crskit/CoordinateTransformations/IMathTransform.h +0 -0
  232. {crskit-0.7.0 → crskit-0.8.0}/crskit/CoordinateTransformations/IMathTransformFactory.h +0 -0
  233. {crskit-0.7.0 → crskit-0.8.0}/crskit/CoordinateTransformations/MathTransformBase.cpp +0 -0
  234. {crskit-0.7.0 → crskit-0.8.0}/crskit/CoordinateTransformations/MathTransformBase.h +0 -0
  235. {crskit-0.7.0 → crskit-0.8.0}/crskit/CoordinateTransformations/MathTransformFactory.cpp +0 -0
  236. {crskit-0.7.0 → crskit-0.8.0}/crskit/CoordinateTransformations/MathTransformFactory.h +0 -0
  237. {crskit-0.7.0 → crskit-0.8.0}/crskit/CoordinateTransformations/MathTransformRegistry.cpp +0 -0
  238. {crskit-0.7.0 → crskit-0.8.0}/crskit/CoordinateTransformations/MathTransformRegistry.h +0 -0
  239. {crskit-0.7.0 → crskit-0.8.0}/crskit/CoordinateTransformations/Passthrough.cpp +0 -0
  240. {crskit-0.7.0 → crskit-0.8.0}/crskit/CoordinateTransformations/Passthrough.h +0 -0
  241. {crskit-0.7.0 → crskit-0.8.0}/crskit/CoordinateTransformations/TransformType.h +0 -0
  242. {crskit-0.7.0 → crskit-0.8.0}/crskit/CoordinateTransformations/UnitsOfMeasure.h +0 -0
  243. {crskit-0.7.0 → crskit-0.8.0}/crskit/CrsAliases.cpp +0 -0
  244. {crskit-0.7.0 → crskit-0.8.0}/crskit/CrsAliases.h +0 -0
  245. {crskit-0.7.0 → crskit-0.8.0}/crskit/CrsContext.h +0 -0
  246. {crskit-0.7.0 → crskit-0.8.0}/crskit/CrsKitExport.h +0 -0
  247. {crskit-0.7.0 → crskit-0.8.0}/crskit/EsriProjectionEngine.cpp +0 -0
  248. {crskit-0.7.0 → crskit-0.8.0}/crskit/EsriProjectionEngine.h +0 -0
  249. {crskit-0.7.0 → crskit-0.8.0}/crskit/ExtensionManager.cpp +0 -0
  250. {crskit-0.7.0 → crskit-0.8.0}/crskit/ExtensionManager.h +0 -0
  251. {crskit-0.7.0 → crskit-0.8.0}/crskit/Factory.h +0 -0
  252. {crskit-0.7.0 → crskit-0.8.0}/crskit/GridFileNotFoundException.h +0 -0
  253. {crskit-0.7.0 → crskit-0.8.0}/crskit/IAuthorityProvider.h +0 -0
  254. {crskit-0.7.0 → crskit-0.8.0}/crskit/IUtilities.h +0 -0
  255. {crskit-0.7.0 → crskit-0.8.0}/crskit/Mathematics/Angles.h +0 -0
  256. {crskit-0.7.0 → crskit-0.8.0}/crskit/Mathematics/Concepts.h +0 -0
  257. {crskit-0.7.0 → crskit-0.8.0}/crskit/Mathematics/GridCell.h +0 -0
  258. {crskit-0.7.0 → crskit-0.8.0}/crskit/Mathematics/GridInterpolation.h +0 -0
  259. {crskit-0.7.0 → crskit-0.8.0}/crskit/Mathematics/Interpolation.h +0 -0
  260. {crskit-0.7.0 → crskit-0.8.0}/crskit/Mathematics/Matrix.h +0 -0
  261. {crskit-0.7.0 → crskit-0.8.0}/crskit/Mathematics/Point.h +0 -0
  262. {crskit-0.7.0 → crskit-0.8.0}/crskit/Mathematics/Window2D.h +0 -0
  263. {crskit-0.7.0 → crskit-0.8.0}/crskit/OpenGisAttributes.h +0 -0
  264. {crskit-0.7.0 → crskit-0.8.0}/crskit/Parameter.h +0 -0
  265. {crskit-0.7.0 → crskit-0.8.0}/crskit/Positioning/Envelope.h +0 -0
  266. {crskit-0.7.0 → crskit-0.8.0}/crskit/SqliteProvider.h +0 -0
  267. {crskit-0.7.0 → crskit-0.8.0}/crskit/StringUtil.h +0 -0
  268. {crskit-0.7.0 → crskit-0.8.0}/crskit/TokenWkt.cpp +0 -0
  269. {crskit-0.7.0 → crskit-0.8.0}/crskit/TokenWkt.h +0 -0
  270. {crskit-0.7.0 → crskit-0.8.0}/crskit/Utilities.h +0 -0
  271. {crskit-0.7.0 → crskit-0.8.0}/crskit/WktDeserializer.cpp +0 -0
  272. {crskit-0.7.0 → crskit-0.8.0}/crskit/WktDeserializer.h +0 -0
  273. {crskit-0.7.0 → crskit-0.8.0}/crskit/app.ico +0 -0
  274. {crskit-0.7.0 → crskit-0.8.0}/crskit/pch.cpp +0 -0
  275. {crskit-0.7.0 → crskit-0.8.0}/crskit/pch.h +0 -0
  276. {crskit-0.7.0 → crskit-0.8.0}/data/grid-sources.json +0 -0
  277. {crskit-0.7.0 → crskit-0.8.0}/external/sqlite/sqlite3.c +0 -0
  278. {crskit-0.7.0 → crskit-0.8.0}/external/sqlite/sqlite3.h +0 -0
  279. {crskit-0.7.0 → crskit-0.8.0}/python/CMakeLists.txt +0 -0
  280. {crskit-0.7.0 → crskit-0.8.0}/python/crskit/py.typed +0 -0
  281. {crskit-0.7.0 → crskit-0.8.0}/python/examples/01_quickstart.py +0 -0
  282. {crskit-0.7.0 → crskit-0.8.0}/python/examples/02_wkt.py +0 -0
  283. {crskit-0.7.0 → crskit-0.8.0}/python/examples/03_point_cloud.py +0 -0
  284. {crskit-0.7.0 → crskit-0.8.0}/python/examples/04_choosing_the_operation.py +0 -0
  285. {crskit-0.7.0 → crskit-0.8.0}/python/examples/05_orthometric_heights.py +0 -0
  286. {crskit-0.7.0 → crskit-0.8.0}/python/examples/06_global_geoid.py +0 -0
  287. {crskit-0.7.0 → crskit-0.8.0}/python/examples/README.md +0 -0
  288. {crskit-0.7.0 → crskit-0.8.0}/python/examples/_setup.py +0 -0
  289. {crskit-0.7.0 → crskit-0.8.0}/python/tests/test_examples.py +0 -0
  290. {crskit-0.7.0 → crskit-0.8.0}/python-epsg/README.md +0 -0
  291. {crskit-0.7.0 → crskit-0.8.0}/python-epsg/crskit_epsg/EPSG-TERMS-OF-USE.md +0 -0
  292. {crskit-0.7.0 → crskit-0.8.0}/python-epsg/crskit_epsg/__init__.py +0 -0
  293. {crskit-0.7.0 → crskit-0.8.0}/python-epsg/fetch.py +0 -0
  294. {crskit-0.7.0 → crskit-0.8.0}/python-epsg/pyproject.toml +0 -0
  295. {crskit-0.7.0 → crskit-0.8.0}/tests/Gigs/Test5101Part2.cpp +0 -0
  296. {crskit-0.7.0 → crskit-0.8.0}/tests/Gigs/Test5101Part3.cpp +0 -0
  297. {crskit-0.7.0 → crskit-0.8.0}/tests/Gigs/Test5101Part4.cpp +0 -0
  298. {crskit-0.7.0 → crskit-0.8.0}/tests/Gigs/Test5102Part1.cpp +0 -0
  299. {crskit-0.7.0 → crskit-0.8.0}/tests/Gigs/Test5102Part2.cpp +0 -0
  300. {crskit-0.7.0 → crskit-0.8.0}/tests/Gigs/Test5103Part1.cpp +0 -0
  301. {crskit-0.7.0 → crskit-0.8.0}/tests/Gigs/Test5103Part2.cpp +0 -0
  302. {crskit-0.7.0 → crskit-0.8.0}/tests/Gigs/Test5103Part3.cpp +0 -0
  303. {crskit-0.7.0 → crskit-0.8.0}/tests/Gigs/Test5104Part1.cpp +0 -0
  304. {crskit-0.7.0 → crskit-0.8.0}/tests/Gigs/Test5105Part1.cpp +0 -0
  305. {crskit-0.7.0 → crskit-0.8.0}/tests/Gigs/Test5105Part2.cpp +0 -0
  306. {crskit-0.7.0 → crskit-0.8.0}/tests/Gigs/Test5106Part1.cpp +0 -0
  307. {crskit-0.7.0 → crskit-0.8.0}/tests/Gigs/Test5107Part1.cpp +0 -0
  308. {crskit-0.7.0 → crskit-0.8.0}/tests/Gigs/Test5108Part1.cpp +0 -0
  309. {crskit-0.7.0 → crskit-0.8.0}/tests/Gigs/Test5109Part1.cpp +0 -0
  310. {crskit-0.7.0 → crskit-0.8.0}/tests/Gigs/Test5110Part1.cpp +0 -0
  311. {crskit-0.7.0 → crskit-0.8.0}/tests/Gigs/Test5111Part1.cpp +0 -0
  312. {crskit-0.7.0 → crskit-0.8.0}/tests/Gigs/Test5111Part2.cpp +0 -0
  313. {crskit-0.7.0 → crskit-0.8.0}/tests/Gigs/Test5112Part1.cpp +0 -0
  314. {crskit-0.7.0 → crskit-0.8.0}/tests/Gigs/Test5113Part1.cpp +0 -0
  315. {crskit-0.7.0 → crskit-0.8.0}/tests/Gigs/Test5201Part1.cpp +0 -0
  316. {crskit-0.7.0 → crskit-0.8.0}/tests/Gigs/Test5203Part1.cpp +0 -0
  317. {crskit-0.7.0 → crskit-0.8.0}/tests/Gigs/Test5204Part1.cpp +0 -0
  318. {crskit-0.7.0 → crskit-0.8.0}/tests/Gigs/Test5205Part1.cpp +0 -0
  319. {crskit-0.7.0 → crskit-0.8.0}/tests/Gigs/Test5205Part2.cpp +0 -0
  320. {crskit-0.7.0 → crskit-0.8.0}/tests/Gigs/Test5207Part1.cpp +0 -0
  321. {crskit-0.7.0 → crskit-0.8.0}/tests/Gigs/Test5207Part2.cpp +0 -0
  322. {crskit-0.7.0 → crskit-0.8.0}/tests/Gigs/Test5208Part1.cpp +0 -0
  323. {crskit-0.7.0 → crskit-0.8.0}/tests/Gigs/Test5209Part1.cpp +0 -0
  324. {crskit-0.7.0 → crskit-0.8.0}/tests/Gigs/Test5210Part1.cpp +0 -0
  325. {crskit-0.7.0 → crskit-0.8.0}/tests/Gigs/Test5210Part10.cpp +0 -0
  326. {crskit-0.7.0 → crskit-0.8.0}/tests/Gigs/Test5210Part11.cpp +0 -0
  327. {crskit-0.7.0 → crskit-0.8.0}/tests/Gigs/Test5210Part12.cpp +0 -0
  328. {crskit-0.7.0 → crskit-0.8.0}/tests/Gigs/Test5210Part2.cpp +0 -0
  329. {crskit-0.7.0 → crskit-0.8.0}/tests/Gigs/Test5210Part3.cpp +0 -0
  330. {crskit-0.7.0 → crskit-0.8.0}/tests/Gigs/Test5210Part4.cpp +0 -0
  331. {crskit-0.7.0 → crskit-0.8.0}/tests/Gigs/Test5210Part5.cpp +0 -0
  332. {crskit-0.7.0 → crskit-0.8.0}/tests/Gigs/Test5210Part6.cpp +0 -0
  333. {crskit-0.7.0 → crskit-0.8.0}/tests/Gigs/Test5210Part7.cpp +0 -0
  334. {crskit-0.7.0 → crskit-0.8.0}/tests/Gigs/Test5210Part8.cpp +0 -0
  335. {crskit-0.7.0 → crskit-0.8.0}/tests/Gigs/Test5210Part9.cpp +0 -0
  336. {crskit-0.7.0 → crskit-0.8.0}/tests/Gigs/Test5212Part1.cpp +0 -0
  337. {crskit-0.7.0 → crskit-0.8.0}/tests/Gigs/Test5213Part1.cpp +0 -0
  338. {crskit-0.7.0 → crskit-0.8.0}/tests/GigsFactory.h +0 -0
  339. {crskit-0.7.0 → crskit-0.8.0}/tests/Test5101Part1.cpp +0 -0
  340. {crskit-0.7.0 → crskit-0.8.0}/tests/TestAmericanPolyconic.cpp +0 -0
  341. {crskit-0.7.0 → crskit-0.8.0}/tests/TestAntimeridian.cpp +0 -0
  342. {crskit-0.7.0 → crskit-0.8.0}/tests/TestAzimuthalProjections.cpp +0 -0
  343. {crskit-0.7.0 → crskit-0.8.0}/tests/TestBase.h +0 -0
  344. {crskit-0.7.0 → crskit-0.8.0}/tests/TestCassiniSoldner.cpp +0 -0
  345. {crskit-0.7.0 → crskit-0.8.0}/tests/TestCatalogueSweep.cpp +0 -0
  346. {crskit-0.7.0 → crskit-0.8.0}/tests/TestCompoundFromWkt.cpp +0 -0
  347. {crskit-0.7.0 → crskit-0.8.0}/tests/TestContextEnvironment.cpp +0 -0
  348. {crskit-0.7.0 → crskit-0.8.0}/tests/TestCrsAliases.cpp +0 -0
  349. {crskit-0.7.0 → crskit-0.8.0}/tests/TestCylindricalProjections.cpp +0 -0
  350. {crskit-0.7.0 → crskit-0.8.0}/tests/TestDatabaseErrors.cpp +0 -0
  351. {crskit-0.7.0 → crskit-0.8.0}/tests/TestEnvironment.cpp +0 -0
  352. {crskit-0.7.0 → crskit-0.8.0}/tests/TestEquivalence.cpp +0 -0
  353. {crskit-0.7.0 → crskit-0.8.0}/tests/TestEsriCompound.cpp +0 -0
  354. {crskit-0.7.0 → crskit-0.8.0}/tests/TestEsriTables.cpp +0 -0
  355. {crskit-0.7.0 → crskit-0.8.0}/tests/TestEsriTowgs84Snap.cpp +0 -0
  356. {crskit-0.7.0 → crskit-0.8.0}/tests/TestExceptions.cpp +0 -0
  357. {crskit-0.7.0 → crskit-0.8.0}/tests/TestGeocentricOperations.cpp +0 -0
  358. {crskit-0.7.0 → crskit-0.8.0}/tests/TestGeocentricWkt.cpp +0 -0
  359. {crskit-0.7.0 → crskit-0.8.0}/tests/TestGridCell.cpp +0 -0
  360. {crskit-0.7.0 → crskit-0.8.0}/tests/TestGridFile.cpp +0 -0
  361. {crskit-0.7.0 → crskit-0.8.0}/tests/TestHeaderWarnings.cpp +0 -0
  362. {crskit-0.7.0 → crskit-0.8.0}/tests/TestKrovak.cpp +0 -0
  363. {crskit-0.7.0 → crskit-0.8.0}/tests/TestLambertAzimuthalEqualArea.cpp +0 -0
  364. {crskit-0.7.0 → crskit-0.8.0}/tests/TestLambertConicConformalVariants.cpp +0 -0
  365. {crskit-0.7.0 → crskit-0.8.0}/tests/TestNonNumericAuthority.cpp +0 -0
  366. {crskit-0.7.0 → crskit-0.8.0}/tests/TestObliqueMercator.cpp +0 -0
  367. {crskit-0.7.0 → crskit-0.8.0}/tests/TestOperationSelection.cpp +0 -0
  368. {crskit-0.7.0 → crskit-0.8.0}/tests/TestOtherProjections.cpp +0 -0
  369. {crskit-0.7.0 → crskit-0.8.0}/tests/TestPolarStereographic.cpp +0 -0
  370. {crskit-0.7.0 → crskit-0.8.0}/tests/TestProjectionEdges.cpp +0 -0
  371. {crskit-0.7.0 → crskit-0.8.0}/tests/TestProjectionParameters.cpp +0 -0
  372. {crskit-0.7.0 → crskit-0.8.0}/tests/TestSexagesimalDms.cpp +0 -0
  373. {crskit-0.7.0 → crskit-0.8.0}/tests/TestTransformPoints.cpp +0 -0
  374. {crskit-0.7.0 → crskit-0.8.0}/tests/TestTransformationAuthorityCode.cpp +0 -0
  375. {crskit-0.7.0 → crskit-0.8.0}/tests/TestUnknownCrs.cpp +0 -0
  376. {crskit-0.7.0 → crskit-0.8.0}/tests/TestUtilitiesContract.cpp +0 -0
  377. {crskit-0.7.0 → crskit-0.8.0}/tests/TestWestSouthAxes.cpp +0 -0
  378. {crskit-0.7.0 → crskit-0.8.0}/tests/TestWithAxes.cpp +0 -0
  379. {crskit-0.7.0 → crskit-0.8.0}/tests/TestWktMalformed.cpp +0 -0
  380. {crskit-0.7.0 → crskit-0.8.0}/tests/TestWktQuoted.cpp +0 -0
  381. {crskit-0.7.0 → crskit-0.8.0}/tests/TestWktUnclosed.cpp +0 -0
  382. {crskit-0.7.0 → crskit-0.8.0}/tests/vcpkg.json +0 -0
  383. {crskit-0.7.0 → crskit-0.8.0}/tools/epsg-sqlite/README.md +0 -0
  384. {crskit-0.7.0 → crskit-0.8.0}/tools/epsg-sqlite/epsg_sql_to_sqlite.py +0 -0
  385. {crskit-0.7.0 → crskit-0.8.0}/vcpkg.json +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: crskit
3
- Version: 0.7.0
3
+ Version: 0.8.0
4
4
  Summary: Coordinate reference systems and coordinate transformations (OGC Coordinate Transformation Services, EPSG, WKT 1 and WKT 2)
5
5
  Keywords: EPSG,CRS,WKT,coordinate,transformation,projection,geodesy,GIS
6
6
  Author-Email: José Ángel Martínez Torres <joseangelmt@outlook.com>
@@ -113,7 +113,8 @@ True
113
113
  Between two datums there is rarely a single transformation. EPSG defines **twelve** from ED50 to
114
114
  ETRS89, differing in accuracy, in the area they are valid in, and in whether they need a grid file.
115
115
  Choosing for you would mean silently deciding how wrong your coordinates are, so an ambiguous pair
116
- raises `TransformationNotFoundError` unless you say which one to use:
116
+ causes `crskit.transformation` to raise `MultipleTransformationsFoundError`, a subclass of
117
+ `TransformationNotFoundError`, unless `select_operation` selects a coordinate operation:
117
118
 
118
119
  ```python
119
120
  def for_mainland_spain(source_name, target_name, operations):
@@ -210,8 +211,8 @@ licence; the originals live at [datos-geodesia.ign.es](https://datos-geodesia.ig
210
211
  application can offer to fetch it when `GridFileNotFoundError` is raised.
211
212
 
212
213
  Every error the library raises derives from `crskit.CrsError`, so one `except` catches them all;
213
- `AuthorityCodeNotFoundError`, `WktParseError`, `TransformationNotFoundError`,
214
- `DimensionMismatchError`, `CoordinateOutsideDomainError` and `UnsupportedFormatError` let you
214
+ `AuthorityCodeNotFoundError`, `WktParseError`, `TransformationNotFoundError` (with its subclass
215
+ `MultipleTransformationsFoundError`), `DimensionMismatchError`, `CoordinateOutsideDomainError` and `UnsupportedFormatError` let you
215
216
  discriminate when you care.
216
217
 
217
218
  ## The EPSG database
@@ -343,14 +343,26 @@ namespace CrsKit::Epsg
343
343
 
344
344
  try
345
345
  {
346
+ auto const angularUnitCode = _provider->GetMeridianAngularUnit(code);
347
+ auto angularUnit = CreateAngularUnit(angularUnitCode);
348
+ auto longitude = _provider->GetMeridianLongitude(code);
349
+
350
+ // When GetRadiansPerUnit of the unit is not finite, as for sexagesimal degrees, minutes and seconds (EPSG unit 9110),
351
+ // whose values pack degrees, minutes and seconds, CreatePrimeMeridian converts the longitude to degrees.
352
+ if (!std::isfinite(angularUnit.GetRadiansPerUnit()))
353
+ {
354
+ longitude = GetUtilities()->ToSexagesimal(angularUnitCode, angularUnit.GetRadiansPerUnit(), longitude);
355
+ angularUnit = CreateAngularUnit(MEASURE_UNIT_DEGREES);
356
+ }
357
+
346
358
  return PrimeMeridian{
347
359
  meridianName,
348
360
  "EPSG",
349
361
  code,
350
362
  _provider->GetAlias(code),
351
363
  _provider->GetMeridianInfo(code),
352
- CreateAngularUnit(_provider->GetMeridianAngularUnit(code)),
353
- _provider->GetMeridianLongitude(code)};
364
+ angularUnit,
365
+ longitude};
354
366
  }
355
367
  catch (std::exception const& e)
356
368
  {
@@ -590,7 +602,9 @@ namespace CrsKit::Epsg
590
602
 
591
603
  auto CoordinateSystemAuthorityFactory::GetCodeOfPrimeMeridianAssociatedWithCrs(int code) const -> int
592
604
  {
593
- return _provider->GetMeridianCodeForDatum(code);
605
+ // The catalogue stores the prime meridian with the geodetic datum. For a vertical coordinate reference system the catalogue
606
+ // stores no prime meridian for its datum, so GetCodeOfPrimeMeridianAssociatedWithCrs returns 0.
607
+ return _provider->GetMeridianCodeForDatum(GetCodeOfDatumAssociatedWithCrs(code));
594
608
  }
595
609
 
596
610
  auto CoordinateSystemAuthorityFactory::GetNameOfPrimeMeridian(int code) const -> std::string
@@ -603,6 +617,11 @@ namespace CrsKit::Epsg
603
617
  return _provider->GetEllipsoidCodeForDatum(code);
604
618
  }
605
619
 
620
+ auto CoordinateSystemAuthorityFactory::GetCodeOfGeographic2DSystemAssociatedWithDatum(int code) const -> int
621
+ {
622
+ return _provider->GetGeographicCrsCodeForDatum(code);
623
+ }
624
+
606
625
  auto CoordinateSystemAuthorityFactory::GetNameOfEllipsoid(int code) const->std::string
607
626
  {
608
627
  return _provider->GetEllipsoidName(code);
@@ -108,6 +108,7 @@ namespace CrsKit::Epsg
108
108
  [[nodiscard]] auto GetOriginDescriptionOfDatum(int code) const -> std::string override;
109
109
  [[nodiscard]] auto GetDescriptionAreaApplicationDatum(int code) const -> std::string override;
110
110
  [[nodiscard]] auto GetCodeOfEllipsoidAssociatedWithDatum(int code) const -> int override;
111
+ [[nodiscard]] auto GetCodeOfGeographic2DSystemAssociatedWithDatum(int code) const -> int override;
111
112
 
112
113
  [[nodiscard]] auto GetCodeOfPrimeMeridianAssociatedWithCrs(int code) const -> int override;
113
114
  [[nodiscard]] auto GetNameOfPrimeMeridian(int code) const -> std::string override;
@@ -253,23 +253,23 @@ namespace CrsKit::CoordinateSystems
253
253
  coordinateSystem->GetAxis(1).GetOrientation() == AxisOrientationEnum::North)
254
254
  return coordinateSystem;
255
255
 
256
- if (auto const geographic = dynamic_pointer_cast<GeographicCoordinateSystem>(coordinateSystem); nullptr != geographic)
256
+ if (auto const geographicCoordinateSystem = dynamic_pointer_cast<GeographicCoordinateSystem>(coordinateSystem); nullptr != geographicCoordinateSystem)
257
257
  {
258
258
  auto axis = AxesOf(*coordinateSystem);
259
259
  axis[0] = AxisInfo("Lon", AxisOrientationEnum::East);
260
260
  axis[1] = AxisInfo("Lat", AxisOrientationEnum::North);
261
261
 
262
262
  return make_shared<GeographicCoordinateSystem>(
263
- geographic->GetName(),
264
- geographic->GetAuthority(),
265
- geographic->GetAuthorityCode(),
266
- geographic->GetAlias(),
267
- geographic->GetRemarks(),
268
- geographic->GetAngularUnit(),
269
- dynamic_pointer_cast<IHorizontalDatum>(geographic->GetHorizontalDatum()),
270
- geographic->GetPrimeMeridian(),
263
+ geographicCoordinateSystem->GetName(),
264
+ geographicCoordinateSystem->GetAuthority(),
265
+ geographicCoordinateSystem->GetAuthorityCode(),
266
+ geographicCoordinateSystem->GetAlias(),
267
+ geographicCoordinateSystem->GetRemarks(),
268
+ geographicCoordinateSystem->GetAngularUnit(),
269
+ dynamic_pointer_cast<IHorizontalDatum>(geographicCoordinateSystem->GetHorizontalDatum()),
270
+ geographicCoordinateSystem->GetPrimeMeridian(),
271
271
  axis,
272
- geographic->GetUnits());
272
+ geographicCoordinateSystem->GetUnits());
273
273
  }
274
274
 
275
275
  if (auto const projected = dynamic_pointer_cast<ProjectedCoordinateSystem>(coordinateSystem); nullptr != projected)
@@ -296,24 +296,24 @@ namespace CrsKit::CoordinateSystems
296
296
  coordinateSystem->GetAxis(1).GetOrientation() == AxisOrientationEnum::East)
297
297
  return coordinateSystem;
298
298
 
299
- auto const geographic = dynamic_pointer_cast<GeographicCoordinateSystem>(coordinateSystem);
300
- if (nullptr != geographic)
299
+ auto const geographicCoordinateSystem = dynamic_pointer_cast<GeographicCoordinateSystem>(coordinateSystem);
300
+ if (nullptr != geographicCoordinateSystem)
301
301
  {
302
302
  auto axis = AxesOf(*coordinateSystem);
303
303
  axis[0] = AxisInfo("Lat", AxisOrientationEnum::North);
304
304
  axis[1] = AxisInfo("Lon", AxisOrientationEnum::East);
305
305
 
306
306
  return make_shared<GeographicCoordinateSystem>(
307
- geographic->GetName(),
308
- geographic->GetAuthority(),
309
- geographic->GetAuthorityCode(),
310
- geographic->GetAlias(),
311
- geographic->GetRemarks(),
312
- geographic->GetAngularUnit(),
313
- dynamic_pointer_cast<IHorizontalDatum>(geographic->GetHorizontalDatum()),
314
- geographic->GetPrimeMeridian(),
307
+ geographicCoordinateSystem->GetName(),
308
+ geographicCoordinateSystem->GetAuthority(),
309
+ geographicCoordinateSystem->GetAuthorityCode(),
310
+ geographicCoordinateSystem->GetAlias(),
311
+ geographicCoordinateSystem->GetRemarks(),
312
+ geographicCoordinateSystem->GetAngularUnit(),
313
+ dynamic_pointer_cast<IHorizontalDatum>(geographicCoordinateSystem->GetHorizontalDatum()),
314
+ geographicCoordinateSystem->GetPrimeMeridian(),
315
315
  axis,
316
- geographic->GetUnits());
316
+ geographicCoordinateSystem->GetUnits());
317
317
  }
318
318
 
319
319
  if (auto const projected = dynamic_pointer_cast<ProjectedCoordinateSystem>(coordinateSystem); nullptr != projected)
@@ -341,7 +341,36 @@ namespace CrsKit::CoordinateSystems
341
341
  if (coordinateSystem->GetAuthority() == "EPSG")
342
342
  return GetCoordinateSystemAuthorityFactory()->CreateGeographic2DSystemForGeographic3DSystem(coordinateSystem->GetAuthorityCode(), coordinateSystem->GetAxis(0), coordinateSystem->GetAxis(1));
343
343
 
344
- return nullptr;
344
+ auto const geographicCoordinateSystem = dynamic_pointer_cast<GeographicCoordinateSystem>(coordinateSystem);
345
+ if (nullptr == geographicCoordinateSystem)
346
+ return nullptr;
347
+
348
+ // The horizontal axes are the axes whose orientation is neither up nor down, in their order in the three-dimensional
349
+ // coordinate reference system.
350
+ vector<AxisInfo> horizontalAxes;
351
+ vector<AnyUnit> horizontalAxisUnits;
352
+ for (auto axisIndex = 0; axisIndex < geographicCoordinateSystem->GetDimension(); ++axisIndex)
353
+ {
354
+ auto const axis = geographicCoordinateSystem->GetAxis(axisIndex);
355
+ if (AxisOrientationEnum::Up == axis.GetOrientation() || AxisOrientationEnum::Down == axis.GetOrientation())
356
+ continue;
357
+ horizontalAxes.push_back(axis);
358
+ horizontalAxisUnits.push_back(geographicCoordinateSystem->GetUnits(axisIndex));
359
+ }
360
+ if (2 != horizontalAxes.size())
361
+ return nullptr;
362
+
363
+ return make_shared<GeographicCoordinateSystem>(
364
+ geographicCoordinateSystem->GetName(),
365
+ "",
366
+ 0,
367
+ geographicCoordinateSystem->GetAlias(),
368
+ geographicCoordinateSystem->GetRemarks(),
369
+ geographicCoordinateSystem->GetAngularUnit(),
370
+ geographicCoordinateSystem->GetHorizontalDatum(),
371
+ geographicCoordinateSystem->GetPrimeMeridian(),
372
+ horizontalAxes,
373
+ horizontalAxisUnits);
345
374
  }
346
375
 
347
376
  auto CoordinateSystemFactory::FindGeographicSystem3D(std::shared_ptr<GeographicCoordinateSystem> const& coordinateSystem) -> std::shared_ptr<GeographicCoordinateSystem>
@@ -122,6 +122,10 @@ namespace CrsKit::CoordinateSystems
122
122
  /// </summary>
123
123
  static auto WithAxesEastNorth(std::shared_ptr<CoordinateSystem> const& coordinateSystem) -> std::shared_ptr<CoordinateSystem>;
124
124
  static auto WithAxesNorthEast(std::shared_ptr<CoordinateSystem> const& coordinateSystem) -> std::shared_ptr<CoordinateSystem>;
125
+ // Returns the geographic 2D coordinate reference system (CRS) of a three-dimensional CRS: the CRS of the European
126
+ // Petroleum Survey Group (EPSG) catalogue for an EPSG CRS, a CRS without authority code with the two horizontal axes,
127
+ // datum and prime meridian of a geographic 3D CRS without EPSG authority that has exactly two axes whose orientation is
128
+ // neither up nor down, and nullptr otherwise.
125
129
  [[nodiscard]] static auto Create2DSystemFor3DSystem(std::shared_ptr<CoordinateSystem> const& coordinateSystem) -> std::shared_ptr<CoordinateSystem>;
126
130
  [[nodiscard]] static auto FindGeographicSystem3D(std::shared_ptr<GeographicCoordinateSystem> const& coordinateSystem) -> std::shared_ptr<GeographicCoordinateSystem>;
127
131
  [[nodiscard]] static auto CreateUnknownCompound() -> std::shared_ptr<CompoundCoordinateSystem>;
@@ -6,10 +6,39 @@
6
6
  #include "HorizontalDatum.h"
7
7
  #include "CoordinateSystemAuthorityFactory.h"
8
8
 
9
+ #include <cctype>
10
+ #include <string_view>
11
+
9
12
  using namespace std;
10
13
 
11
14
  namespace CrsKit::CoordinateSystems
12
15
  {
16
+ namespace
17
+ {
18
+ // Returns name in lower case, with each underscore replaced by a space, consecutive spaces reduced to one, leading and
19
+ // trailing spaces removed, and the suffix " ensemble" removed. The catalogue names a datum ensemble, such as
20
+ // "European Terrestrial Reference System 1989 ensemble", with the suffix " ensemble", and datum names in
21
+ // Well-Known Text version 1 can contain underscores, such as European_Terrestrial_Reference_System_1989.
22
+ auto NormalizeDatumName(std::string const& name) -> std::string
23
+ {
24
+ std::string normalizedName;
25
+ for (auto const character : name)
26
+ {
27
+ auto const normalizedCharacter = '_' == character ? ' ' : static_cast<char>(std::tolower(static_cast<unsigned char>(character)));
28
+ if (' ' == normalizedCharacter && (normalizedName.empty() || ' ' == normalizedName.back()))
29
+ continue;
30
+ normalizedName.push_back(normalizedCharacter);
31
+ }
32
+ if (!normalizedName.empty() && ' ' == normalizedName.back())
33
+ normalizedName.pop_back();
34
+
35
+ constexpr std::string_view ensembleSuffix{ " ensemble" };
36
+ if (normalizedName.ends_with(ensembleSuffix))
37
+ normalizedName.erase(normalizedName.size() - ensembleSuffix.size());
38
+ return normalizedName;
39
+ }
40
+ }
41
+
13
42
  HorizontalDatum::HorizontalDatum(std::string const& name, std::string const& authority, int code, std::string const& alias, std::string const& info, int datumType, Ellipsoid const& ellipsoid, std::shared_ptr<Wgs84ConversionInfo> const& toWgs84)
14
43
  : Datum{name, authority, code, alias, info, datumType}
15
44
  , _ellipsoid{ellipsoid}
@@ -84,7 +113,9 @@ namespace CrsKit::CoordinateSystems
84
113
  {
85
114
  auto const info = dynamic_pointer_cast<IInfo>(obj);
86
115
 
87
- if (GetAuthorityCode() != UnknownAuthorityCode)
116
+ // If either datum has UnknownAuthorityCode, CompareTo compares the names returned by NormalizeDatumName. A datum defined
117
+ // in Well-Known Text without an authority code then matches the catalogue datum of the same name in either order.
118
+ if (GetAuthorityCode() != UnknownAuthorityCode && info->GetAuthorityCode() != UnknownAuthorityCode)
88
119
  {
89
120
  if (GetAuthority() != info->GetAuthority())
90
121
  return compareNoCase(GetAuthority().c_str(), info->GetAuthority().c_str());
@@ -95,7 +126,7 @@ namespace CrsKit::CoordinateSystems
95
126
  return 0;
96
127
  }
97
128
 
98
- return compareNoCase(GetName().c_str(), info->GetName().c_str());
129
+ return NormalizeDatumName(GetName()).compare(NormalizeDatumName(info->GetName()));
99
130
  }
100
131
  #pragma endregion
101
132
  }
@@ -117,6 +117,9 @@ namespace CrsKit::CoordinateSystems
117
117
  [[nodiscard]] virtual auto GetOriginDescriptionOfDatum(int code) const -> std::string = 0;
118
118
  [[nodiscard]] virtual auto GetDescriptionAreaApplicationDatum(int code) const -> std::string = 0;
119
119
  [[nodiscard]] virtual auto GetCodeOfEllipsoidAssociatedWithDatum(int code) const -> int = 0;
120
+ // Returns the code of a geographic 2D coordinate reference system that is not deprecated and whose datum has the
121
+ // given code, or 0 when the catalogue has none.
122
+ [[nodiscard]] virtual auto GetCodeOfGeographic2DSystemAssociatedWithDatum(int code) const -> int = 0;
120
123
 
121
124
  [[nodiscard]] virtual auto GetNameOfPrimeMeridian(int code) const -> std::string = 0;
122
125
  [[nodiscard]] virtual auto GetNameOfEllipsoid(int code) const -> std::string = 0;
@@ -32,7 +32,8 @@ namespace CrsKit::CoordinateSystems
32
32
  {
33
33
  auto const info = std::dynamic_pointer_cast<IInfo>(obj);
34
34
 
35
- if (GetAuthorityCode() != UnknownAuthorityCode)
35
+ // If either datum has UnknownAuthorityCode, CompareTo compares the datum names without regard to case.
36
+ if (GetAuthorityCode() != UnknownAuthorityCode && info->GetAuthorityCode() != UnknownAuthorityCode)
36
37
  {
37
38
  if (GetAuthority() != info->GetAuthority())
38
39
  return compareNoCase(GetAuthority().c_str(), info->GetAuthority().c_str());
@@ -2,6 +2,8 @@
2
2
  #include "PrimeMeridian.h"
3
3
  #include "CoordinateSystemAuthorityFactory.h"
4
4
 
5
+ #include <numbers>
6
+
5
7
  using namespace std;
6
8
 
7
9
  namespace CrsKit::CoordinateSystems
@@ -36,15 +38,18 @@ namespace CrsKit::CoordinateSystems
36
38
 
37
39
  auto PrimeMeridian::GetWkt() const -> std::string
38
40
  {
41
+ // The longitude of PRIMEM is in degrees, the unit in which FromWkt reads it.
42
+ auto const longitudeInDegrees = _longitude * _angularUnit.GetRadiansPerUnit() * 180.0 / std::numbers::pi;
43
+
39
44
  if (!_authority.empty() && _authorityCode)
40
45
  return std::format("PRIMEM[\"{}\",{:.16g},AUTHORITY[\"{}\",\"{}\"]]",
41
46
  _name.c_str(),
42
- _longitude,
47
+ longitudeInDegrees,
43
48
  _authority.c_str(),
44
49
  _authorityCode);
45
50
 
46
51
  return std::format("PRIMEM[\"{}\",{:.16g}]",
47
52
  _name.c_str(),
48
- _longitude);
53
+ longitudeInDegrees);
49
54
  }
50
55
  }
@@ -30,7 +30,8 @@ namespace CrsKit::CoordinateSystems
30
30
  {
31
31
  auto const info = std::dynamic_pointer_cast<IInfo>(obj);
32
32
 
33
- if (GetAuthorityCode() != UnknownAuthorityCode)
33
+ // If either datum has UnknownAuthorityCode, CompareTo compares the datum names without regard to case.
34
+ if (GetAuthorityCode() != UnknownAuthorityCode && info->GetAuthorityCode() != UnknownAuthorityCode)
34
35
  {
35
36
  if (GetAuthority() != info->GetAuthority())
36
37
  return compareNoCase(GetAuthority().c_str(), info->GetAuthority().c_str());
@@ -187,28 +187,67 @@ namespace CrsKit::Wkt
187
187
  return nullptr;
188
188
  }
189
189
 
190
- auto ParseAngleUnit(TokenWkt const& container, AngularUnit const& fallback) -> AngularUnit
190
+ auto ParseAngleUnitNode(TokenWkt const& unit) -> AngularUnit
191
191
  {
192
- auto const* unit = FindChild(container, {"ANGLEUNIT", "UNIT"});
193
- if (!unit)
194
- return fallback;
192
+ std::string authority;
193
+ int code{};
194
+ ParseId(unit, authority, code);
195
+ return AngularUnit{unit.GetChild(0).GetString(), authority, code, "", "", unit.GetChild(1).GetDouble()};
196
+ }
195
197
 
198
+ auto ParseLengthUnitNode(TokenWkt const& unit) -> LinearUnit
199
+ {
196
200
  std::string authority;
197
201
  int code{};
198
- ParseId(*unit, authority, code);
199
- return AngularUnit{unit->GetChild(0).GetString(), authority, code, "", "", unit->GetChild(1).GetDouble()};
202
+ ParseId(unit, authority, code);
203
+ return LinearUnit{unit.GetChild(0).GetString(), authority, code, "", "", unit.GetChild(1).GetDouble()};
204
+ }
205
+
206
+ auto ParseAngleUnit(TokenWkt const& container, AngularUnit const& fallback) -> AngularUnit
207
+ {
208
+ auto const* unit = FindChild(container, {"ANGLEUNIT", "UNIT"});
209
+ return unit ? ParseAngleUnitNode(*unit) : fallback;
200
210
  }
201
211
 
202
212
  auto ParseLengthUnit(TokenWkt const& container, LinearUnit const& fallback) -> LinearUnit
203
213
  {
204
214
  auto const* unit = FindChild(container, {"LENGTHUNIT", "UNIT"});
205
- if (!unit)
206
- return fallback;
215
+ return unit ? ParseLengthUnitNode(*unit) : fallback;
216
+ }
207
217
 
208
- std::string authority;
209
- int code{};
210
- ParseId(*unit, authority, code);
211
- return LinearUnit{unit->GetChild(0).GetString(), authority, code, "", "", unit->GetChild(1).GetDouble()};
218
+ // Returns the unit node with one of the keywords inside the AXIS child of root at the zero-based axisIndex, or nullptr
219
+ // when root has no AXIS child at axisIndex or that AXIS node has no such unit node. A coordinate system declares the unit in each AXIS node instead of after the last one when its
220
+ // axes use different units, and the WKT2 that PROJ writes declares the unit inside each AXIS node.
221
+ auto FindAxisUnit(TokenWkt const& root, std::size_t axisIndex, std::initializer_list<const char*> keywords) -> const TokenWkt*
222
+ {
223
+ std::size_t axisCount = 0;
224
+ for (std::size_t childIndex = 0; childIndex < root.GetChildCount(); ++childIndex)
225
+ {
226
+ auto const& child = root.GetChild(childIndex);
227
+ if (0 != compareNoCase(child.GetName().c_str(), "AXIS"))
228
+ continue;
229
+ if (axisIndex == axisCount++)
230
+ return FindChild(child, keywords);
231
+ }
232
+ return nullptr;
233
+ }
234
+
235
+ // Returns the unit that root declares after its AXIS nodes; otherwise, the unit that the AXIS node at axisIndex declares;
236
+ // otherwise, fallback.
237
+ auto ParseCoordinateSystemAngleUnit(TokenWkt const& root, std::size_t axisIndex, AngularUnit const& fallback) -> AngularUnit
238
+ {
239
+ if (auto const* unit = FindChild(root, {"ANGLEUNIT", "UNIT"}))
240
+ return ParseAngleUnitNode(*unit);
241
+ auto const* unit = FindAxisUnit(root, axisIndex, {"ANGLEUNIT", "UNIT"});
242
+ return unit ? ParseAngleUnitNode(*unit) : fallback;
243
+ }
244
+
245
+ auto ParseCoordinateSystemLengthUnit(TokenWkt const& root, std::size_t axisIndex, LinearUnit const& fallback) -> LinearUnit
246
+ {
247
+ if (auto const* unit = FindChild(root, {"LENGTHUNIT", "UNIT"}))
248
+ return ParseLengthUnitNode(*unit);
249
+ auto const* unit = FindAxisUnit(root, axisIndex, {"LENGTHUNIT", "UNIT"});
250
+ return unit ? ParseLengthUnitNode(*unit) : fallback;
212
251
  }
213
252
 
214
253
  auto ParseEllipsoid(TokenWkt const& ellipsoidNode) -> Ellipsoid
@@ -240,7 +279,10 @@ namespace CrsKit::Wkt
240
279
 
241
280
  auto const name = root.GetChild(0).GetString();
242
281
 
243
- auto const* datumNode = FindChild(root, {"DATUM", "GEODETICDATUM", "TRF"});
282
+ // A geodetic datum ensemble (ETRS89, WGS 84) is represented by ENSEMBLE[name, MEMBER..., ELLIPSOID,
283
+ // ENSEMBLEACCURACY, ID] instead of DATUM[...]. The parser reads the datum name, ellipsoid and authority identifier from ENSEMBLE and ignores MEMBER and
284
+ // ENSEMBLEACCURACY.
285
+ auto const* datumNode = FindChild(root, {"DATUM", "GEODETICDATUM", "TRF", "ENSEMBLE"});
244
286
  if (!datumNode)
245
287
  throw WktParseException("DATUM");
246
288
 
@@ -257,7 +299,7 @@ namespace CrsKit::Wkt
257
299
  DatumType::HD_Geocentric, ellipsoid, nullptr);
258
300
 
259
301
  AngularUnit const degree{"degree", "EPSG", 9122, "", "", 0.0174532925199433};
260
- auto const angularUnit = ParseAngleUnit(root, degree);
302
+ auto const angularUnit = ParseCoordinateSystemAngleUnit(root, 0, degree);
261
303
 
262
304
  PrimeMeridian primeMeridian{"Greenwich", "EPSG", 8901, "", "", angularUnit, 0.0};
263
305
  if (auto const* primemNode = FindChild(root, {"PRIMEM", "PRIMEMERIDIAN"}))
@@ -284,7 +326,13 @@ namespace CrsKit::Wkt
284
326
  units[0] = angularUnit;
285
327
  units[1] = angularUnit;
286
328
  if (axes.size() == 3)
287
- units[2] = ParseLengthUnit(root, LinearUnit{"metre", 1.0});
329
+ {
330
+ // Only the third AXIS node or a LENGTHUNIT node after the axes can declare the unit of the ellipsoidal height.
331
+ auto const* heightUnit = FindAxisUnit(root, 2, {"LENGTHUNIT", "UNIT"});
332
+ if (nullptr == heightUnit)
333
+ heightUnit = FindChild(root, {"LENGTHUNIT"});
334
+ units[2] = heightUnit ? ParseLengthUnitNode(*heightUnit) : LinearUnit{"metre", 1.0};
335
+ }
288
336
 
289
337
  std::string authority;
290
338
  int code{};
@@ -734,7 +782,7 @@ namespace CrsKit::Wkt
734
782
  }
735
783
 
736
784
  auto const projection = std::make_shared<Projection>(std::string(method->ogcClass), parameters);
737
- auto const linearUnit = ParseLengthUnit(root, LinearUnit{"metre", 1.0});
785
+ auto const linearUnit = ParseCoordinateSystemLengthUnit(root, 0, LinearUnit{"metre", 1.0});
738
786
 
739
787
  auto axes = AxisInfo::FromWkt(root);
740
788
  if (axes.size() < 2)
@@ -759,7 +807,7 @@ namespace CrsKit::Wkt
759
807
 
760
808
  auto const name = root.GetChild(0).GetString();
761
809
 
762
- auto const* datumNode = FindChild(root, {"DATUM", "GEODETICDATUM", "TRF"});
810
+ auto const* datumNode = FindChild(root, {"DATUM", "GEODETICDATUM", "TRF", "ENSEMBLE"});
763
811
  if (!datumNode)
764
812
  throw WktParseException("DATUM");
765
813
  auto const* ellipsoidNode = FindChild(*datumNode, {"ELLIPSOID", "SPHEROID"});
@@ -785,7 +833,7 @@ namespace CrsKit::Wkt
785
833
  ParseAngleUnit(*primemNode, degree), primemNode->GetChild(1).GetDouble()};
786
834
  }
787
835
 
788
- auto const linearUnit = ParseLengthUnit(root, LinearUnit{"metre", 1.0});
836
+ auto const linearUnit = ParseCoordinateSystemLengthUnit(root, 0, LinearUnit{"metre", 1.0});
789
837
 
790
838
  auto axes = AxisInfo::FromWkt(root);
791
839
  if (axes.size() < 3)
@@ -811,7 +859,7 @@ namespace CrsKit::Wkt
811
859
 
812
860
  auto const name = root.GetChild(0).GetString();
813
861
 
814
- auto const* datumNode = FindChild(root, {"VDATUM", "VERTICALDATUM", "VERT_DATUM"});
862
+ auto const* datumNode = FindChild(root, {"VDATUM", "VERTICALDATUM", "VERT_DATUM", "ENSEMBLE"});
815
863
  if (!datumNode)
816
864
  throw WktParseException("VDATUM");
817
865
  std::string datumAuthority;
@@ -821,7 +869,7 @@ namespace CrsKit::Wkt
821
869
  datumNode->GetChild(0).GetString(), datumAuthority, datumCode, "", "",
822
870
  DatumType::VD_GeoidModelDerived);
823
871
 
824
- auto const linearUnit = ParseLengthUnit(root, LinearUnit{"metre", 1.0});
872
+ auto const linearUnit = ParseCoordinateSystemLengthUnit(root, 0, LinearUnit{"metre", 1.0});
825
873
 
826
874
  auto axes = AxisInfo::FromWkt(root);
827
875
  if (axes.empty())
@@ -851,7 +899,7 @@ namespace CrsKit::Wkt
851
899
  auto const datum = std::make_shared<LocalDatum>(
852
900
  datumNode->GetChild(0).GetString(), DatumType::LD_Min, datumAuthority, datumCode);
853
901
 
854
- auto const linearUnit = ParseLengthUnit(root, LinearUnit{"metre", 1.0});
902
+ auto const linearUnit = ParseCoordinateSystemLengthUnit(root, 0, LinearUnit{"metre", 1.0});
855
903
 
856
904
  auto axes = AxisInfo::FromWkt(root);
857
905
  if (axes.empty())
@@ -63,6 +63,28 @@ namespace CrsKit::CoordinateTransformations::Algorithms
63
63
  return make_shared<Affine>(make_shared<Projection>("affine", parameters), false);
64
64
  }
65
65
 
66
+ auto Affine::AffineMainDiagonalTransform(std::vector<double> const& diagonal) -> std::shared_ptr<Affine>
67
+ {
68
+ auto const matrixRowAndColumnCount = diagonal.size() + 1;
69
+
70
+ std::vector<Parameter> parameters;
71
+ parameters.push_back(Parameter("num_row", static_cast<double>(matrixRowAndColumnCount)));
72
+ parameters.push_back(Parameter("num_col", static_cast<double>(matrixRowAndColumnCount)));
73
+
74
+ for (auto row = 0u; row < matrixRowAndColumnCount; row++)
75
+ {
76
+ for (auto column = 0u; column < matrixRowAndColumnCount; column++)
77
+ {
78
+ auto value = 0.0;
79
+ if (row == column)
80
+ value = row < diagonal.size() ? diagonal[row] : 1.0;
81
+ parameters.push_back(Parameter(std::format("elt_{}_{}", row, column), value));
82
+ }
83
+ }
84
+
85
+ return make_shared<Affine>(make_shared<Projection>("affine", parameters), false);
86
+ }
87
+
66
88
  auto Affine::Affine2DTo3DTransform() -> std::shared_ptr<Affine>
67
89
  {
68
90
  return make_shared<Affine>(CreateAffine2DTo3DParameters(), false);
@@ -475,6 +497,19 @@ namespace CrsKit::CoordinateTransformations::Algorithms
475
497
  { "elt_2_0", 0.0 }, { "elt_2_1", 0.0 }, { "elt_2_2", 1.0 } };
476
498
  return make_shared<Affine>(make_shared<Projection>("affine", parameters), false);
477
499
  }
500
+
501
+ auto Affine::CreateRotationAboutZAxis(double angleInRadians) -> std::shared_ptr<Affine>
502
+ {
503
+ auto const cosine = cos(angleInRadians);
504
+ auto const sine = sin(angleInRadians);
505
+ std::vector<Parameter> parameters{
506
+ { "num_row", 4.0 }, { "num_col", 4.0 },
507
+ { "elt_0_0", cosine }, { "elt_0_1", -sine }, { "elt_0_2", 0.0 }, { "elt_0_3", 0.0 },
508
+ { "elt_1_0", sine }, { "elt_1_1", cosine }, { "elt_1_2", 0.0 }, { "elt_1_3", 0.0 },
509
+ { "elt_2_0", 0.0 }, { "elt_2_1", 0.0 }, { "elt_2_2", 1.0 }, { "elt_2_3", 0.0 },
510
+ { "elt_3_0", 0.0 }, { "elt_3_1", 0.0 }, { "elt_3_2", 0.0 }, { "elt_3_3", 1.0 } };
511
+ return make_shared<Affine>(make_shared<Projection>("affine", parameters), false);
512
+ }
478
513
  #pragma endregion
479
514
 
480
515
  auto Affine::GetWkt() const -> std::string
@@ -36,10 +36,14 @@ namespace CrsKit::CoordinateTransformations::Algorithms
36
36
  static auto TransformXyzToYxz() -> std::shared_ptr<Affine>;
37
37
  static auto TransformXyzToXyXyz() -> std::shared_ptr<Affine>;
38
38
  static auto AffineMainDiagonalTransform(double value, unsigned int componentes) -> std::shared_ptr<Affine>;
39
+ // (x1, ..., xn) -> (diagonal[0] x1, ..., diagonal[n - 1] xn).
40
+ static auto AffineMainDiagonalTransform(std::vector<double> const& diagonal) -> std::shared_ptr<Affine>;
39
41
 
40
42
  static auto AffineSwapAxesTransform(unsigned int componentes) -> std::shared_ptr<Affine>;
41
43
  // (x, y) -> (m00 x + m01 y, m10 x + m11 y).
42
44
  static auto Affine2D(double m00, double m01, double m10, double m11) -> std::shared_ptr<Affine>;
45
+ // (x, y, z) -> (cos(a) x - sin(a) y, sin(a) x + cos(a) y, z), with a = angleInRadians.
46
+ static auto CreateRotationAboutZAxis(double angleInRadians) -> std::shared_ptr<Affine>;
43
47
  static auto CreateAffine2DTo3DParameters() -> std::shared_ptr<CoordinateSystems::IProjection>;
44
48
  static auto Affine2DTo3DTransform() -> std::shared_ptr<Affine>;
45
49
  static auto Affine2DTo3DSwapAxesTransform() -> std::shared_ptr<Affine>;
@@ -15,6 +15,14 @@ namespace CrsKit::CoordinateTransformations::Algorithms
15
15
  ComputeConstants();
16
16
  }
17
17
 
18
+ GeographicToGeocentric::GeographicToGeocentric(Ellipsoid const& ellipsoid, bool inverse)
19
+ : GeographicToGeocentric{
20
+ ellipsoid.GetSemiMajorAxis() * ellipsoid.GetLinearUnit().GetMetersPerUnit(),
21
+ ellipsoid.GetSemiMinorAxis() * ellipsoid.GetLinearUnit().GetMetersPerUnit(),
22
+ inverse }
23
+ {
24
+ }
25
+
18
26
  GeographicToGeocentric::GeographicToGeocentric(std::shared_ptr<IProjection> const& parameters)
19
27
  : _inverse{0 == compareNoCase(parameters->GetClassName().c_str(), "Geocentric_To_Ellipsoid")}
20
28
  , _a{std::get<double>(parameters->GetParameter("semi_major").GetValue())}
@@ -4,6 +4,7 @@
4
4
  #include <string>
5
5
  #include <vector>
6
6
 
7
+ #include "../../CoordinateSystems/Ellipsoid.h"
7
8
  #include "../../CoordinateSystems/IProjection.h"
8
9
  #include "../IMathTransform.h"
9
10
 
@@ -23,6 +24,8 @@ namespace CrsKit::CoordinateTransformations::Algorithms
23
24
 
24
25
  public:
25
26
  GeographicToGeocentric(double semiMajorAxis, double semiMinorAxis, bool inverse);
27
+ // Converts the semi-axes of the ellipsoid from its linear unit to metres, so that the geocentric coordinates are in metres.
28
+ GeographicToGeocentric(CoordinateSystems::Ellipsoid const& ellipsoid, bool inverse);
26
29
  explicit GeographicToGeocentric(std::shared_ptr<CoordinateSystems::IProjection> const& parameters);
27
30
  GeographicToGeocentric(std::shared_ptr<CoordinateSystems::IProjection> const& parameters, bool inverse);
28
31
 
@@ -58,34 +58,16 @@ namespace CrsKit::CoordinateTransformations::Algorithms
58
58
  if (point.size() != this->GetSourceDimension())
59
59
  throw DimensionMismatchException(std::format("The point passed by parameters does not have {} dimensions", this->GetSourceDimension()));
60
60
 
61
- vector<double> result;
62
- result.resize(this->GetTargetDimension());
61
+ // The latitude and the coordinates after it, such as the ellipsoidal height, are copied unchanged.
62
+ auto result = point;
63
63
 
64
- auto lambda = DEGREES_TO_RADIANS(point[0]);
65
- auto const phi = DEGREES_TO_RADIANS(point[1]);
66
-
67
- // O(1) normalisation to [-pi, pi]; a while-loop hangs on huge/non-finite lambda.
68
- if (std::isfinite(lambda))
69
- lambda = std::remainder(lambda, 2 * M_PI);
70
-
71
- result[1] = point[1];
72
-
73
- if (phi < -90 || phi > 90)
74
- lambda = 0.0;
75
- else
76
- {
77
- if (_inverse)
78
- lambda -= _angle;
79
- else
80
- lambda += _angle;
81
- }
64
+ auto lambda = DEGREES_TO_RADIANS(point[0]) + (_inverse ? -_angle : _angle);
82
65
 
83
66
  // O(1) normalisation to [-pi, pi]; a while-loop hangs on huge/non-finite lambda.
84
67
  if (std::isfinite(lambda))
85
68
  lambda = std::remainder(lambda, 2 * M_PI);
86
69
 
87
70
  result[0] = RADIANS_TO_DEGREES(lambda);
88
- result[1] = RADIANS_TO_DEGREES(phi);
89
71
  return result;
90
72
  }
91
73