crskit 0.8.0__tar.gz → 0.8.1__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 (387) hide show
  1. {crskit-0.8.0 → crskit-0.8.1}/PKG-INFO +20 -1
  2. {crskit-0.8.0 → crskit-0.8.1}/crskit/CoordinateTransformations/Algorithms/Geographic3DToGravityRelatedHeightEGM2008.cpp +5 -0
  3. {crskit-0.8.0 → crskit-0.8.1}/crskit/CoordinateTransformations/Algorithms/Geographic3DToGravityRelatedHeightEGM2008.h +5 -0
  4. {crskit-0.8.0 → crskit-0.8.1}/crskit/CoordinateTransformations/CoordinateOperation.h +5 -0
  5. {crskit-0.8.0 → crskit-0.8.1}/crskit/CrsKit.h +11 -0
  6. crskit-0.8.1/crskit/GridFiles.cpp +41 -0
  7. crskit-0.8.1/crskit/Positioning/GeographicBoundingBox.h +46 -0
  8. {crskit-0.8.0 → crskit-0.8.1}/crskit/SqliteProvider.h +27 -4
  9. {crskit-0.8.0 → crskit-0.8.1}/ports/crskit/portfile.cmake +1 -1
  10. {crskit-0.8.0 → crskit-0.8.1}/ports/crskit/vcpkg.json +1 -1
  11. {crskit-0.8.0 → crskit-0.8.1}/pyproject.toml +1 -1
  12. {crskit-0.8.0 → crskit-0.8.1}/python/README.md +19 -0
  13. {crskit-0.8.0 → crskit-0.8.1}/python/crskit/__init__.py +6 -0
  14. {crskit-0.8.0 → crskit-0.8.1}/python/crskit/_crskit.pyi +52 -0
  15. {crskit-0.8.0 → crskit-0.8.1}/python/examples/06_global_geoid.py +3 -12
  16. {crskit-0.8.0 → crskit-0.8.1}/python/src/module.cpp +55 -0
  17. {crskit-0.8.0 → crskit-0.8.1}/python/tests/test_crskit.py +85 -0
  18. crskit-0.8.1/tests/TestAreaOfUseBoundingBox.cpp +149 -0
  19. {crskit-0.8.0 → crskit-0.8.1}/tests/TestGridFile.cpp +77 -0
  20. {crskit-0.8.0 → crskit-0.8.1}/versions/baseline.json +1 -1
  21. {crskit-0.8.0 → crskit-0.8.1}/versions/c-/crskit.json +5 -0
  22. {crskit-0.8.0 → crskit-0.8.1}/.gitattributes +0 -0
  23. {crskit-0.8.0 → crskit-0.8.1}/.github/workflows/ci.yml +0 -0
  24. {crskit-0.8.0 → crskit-0.8.1}/.github/workflows/epsg.yml +0 -0
  25. {crskit-0.8.0 → crskit-0.8.1}/.github/workflows/wheels.yml +0 -0
  26. {crskit-0.8.0 → crskit-0.8.1}/.gitignore +0 -0
  27. {crskit-0.8.0 → crskit-0.8.1}/CMakeLists.txt +0 -0
  28. {crskit-0.8.0 → crskit-0.8.1}/CMakePresets.json +0 -0
  29. {crskit-0.8.0 → crskit-0.8.1}/LICENSE +0 -0
  30. {crskit-0.8.0 → crskit-0.8.1}/Readme.md +0 -0
  31. {crskit-0.8.0 → crskit-0.8.1}/branding/crskit-logo-128.png +0 -0
  32. {crskit-0.8.0 → crskit-0.8.1}/branding/crskit-logo-256.png +0 -0
  33. {crskit-0.8.0 → crskit-0.8.1}/branding/crskit-logo-512.png +0 -0
  34. {crskit-0.8.0 → crskit-0.8.1}/branding/crskit-logo-64.png +0 -0
  35. {crskit-0.8.0 → crskit-0.8.1}/branding/crskit-logo.svg +0 -0
  36. {crskit-0.8.0 → crskit-0.8.1}/branding/crskit.ico +0 -0
  37. {crskit-0.8.0 → crskit-0.8.1}/cmake/crskit-config.cmake.in +0 -0
  38. {crskit-0.8.0 → crskit-0.8.1}/crskit/CoordinateSystems/AngularUnit.cpp +0 -0
  39. {crskit-0.8.0 → crskit-0.8.1}/crskit/CoordinateSystems/AngularUnit.h +0 -0
  40. {crskit-0.8.0 → crskit-0.8.1}/crskit/CoordinateSystems/AxisInfo.h +0 -0
  41. {crskit-0.8.0 → crskit-0.8.1}/crskit/CoordinateSystems/AxisOrientationEnum.h +0 -0
  42. {crskit-0.8.0 → crskit-0.8.1}/crskit/CoordinateSystems/BaseInfo.h +0 -0
  43. {crskit-0.8.0 → crskit-0.8.1}/crskit/CoordinateSystems/CompoundCoordinateSystem.cpp +0 -0
  44. {crskit-0.8.0 → crskit-0.8.1}/crskit/CoordinateSystems/CompoundCoordinateSystem.h +0 -0
  45. {crskit-0.8.0 → crskit-0.8.1}/crskit/CoordinateSystems/CoordinateSystem.cpp +0 -0
  46. {crskit-0.8.0 → crskit-0.8.1}/crskit/CoordinateSystems/CoordinateSystem.h +0 -0
  47. {crskit-0.8.0 → crskit-0.8.1}/crskit/CoordinateSystems/CoordinateSystemAuthorityFactory.cpp +0 -0
  48. {crskit-0.8.0 → crskit-0.8.1}/crskit/CoordinateSystems/CoordinateSystemAuthorityFactory.h +0 -0
  49. {crskit-0.8.0 → crskit-0.8.1}/crskit/CoordinateSystems/CoordinateSystemEquivalence.cpp +0 -0
  50. {crskit-0.8.0 → crskit-0.8.1}/crskit/CoordinateSystems/CoordinateSystemFactory.cpp +0 -0
  51. {crskit-0.8.0 → crskit-0.8.1}/crskit/CoordinateSystems/CoordinateSystemFactory.h +0 -0
  52. {crskit-0.8.0 → crskit-0.8.1}/crskit/CoordinateSystems/Datum.cpp +0 -0
  53. {crskit-0.8.0 → crskit-0.8.1}/crskit/CoordinateSystems/Datum.h +0 -0
  54. {crskit-0.8.0 → crskit-0.8.1}/crskit/CoordinateSystems/DatumType.h +0 -0
  55. {crskit-0.8.0 → crskit-0.8.1}/crskit/CoordinateSystems/Ellipsoid.cpp +0 -0
  56. {crskit-0.8.0 → crskit-0.8.1}/crskit/CoordinateSystems/Ellipsoid.h +0 -0
  57. {crskit-0.8.0 → crskit-0.8.1}/crskit/CoordinateSystems/GeocentricCoordinateSystem.cpp +0 -0
  58. {crskit-0.8.0 → crskit-0.8.1}/crskit/CoordinateSystems/GeocentricCoordinateSystem.h +0 -0
  59. {crskit-0.8.0 → crskit-0.8.1}/crskit/CoordinateSystems/GeographicCoordinateSystem.cpp +0 -0
  60. {crskit-0.8.0 → crskit-0.8.1}/crskit/CoordinateSystems/GeographicCoordinateSystem.h +0 -0
  61. {crskit-0.8.0 → crskit-0.8.1}/crskit/CoordinateSystems/HorizontalCoordinateSystem.cpp +0 -0
  62. {crskit-0.8.0 → crskit-0.8.1}/crskit/CoordinateSystems/HorizontalCoordinateSystem.h +0 -0
  63. {crskit-0.8.0 → crskit-0.8.1}/crskit/CoordinateSystems/HorizontalDatum.cpp +0 -0
  64. {crskit-0.8.0 → crskit-0.8.1}/crskit/CoordinateSystems/HorizontalDatum.h +0 -0
  65. {crskit-0.8.0 → crskit-0.8.1}/crskit/CoordinateSystems/ICompoundCoordinateSystem.h +0 -0
  66. {crskit-0.8.0 → crskit-0.8.1}/crskit/CoordinateSystems/ICoordinateSystem.h +0 -0
  67. {crskit-0.8.0 → crskit-0.8.1}/crskit/CoordinateSystems/ICoordinateSystemAuthorityFactory.h +0 -0
  68. {crskit-0.8.0 → crskit-0.8.1}/crskit/CoordinateSystems/IDatum.h +0 -0
  69. {crskit-0.8.0 → crskit-0.8.1}/crskit/CoordinateSystems/IGeocentricCoordinateSystem.h +0 -0
  70. {crskit-0.8.0 → crskit-0.8.1}/crskit/CoordinateSystems/IGeographicCoordinateSystem.h +0 -0
  71. {crskit-0.8.0 → crskit-0.8.1}/crskit/CoordinateSystems/IHorizontalCoordinateSystem.h +0 -0
  72. {crskit-0.8.0 → crskit-0.8.1}/crskit/CoordinateSystems/IHorizontalDatum.h +0 -0
  73. {crskit-0.8.0 → crskit-0.8.1}/crskit/CoordinateSystems/IInfo.h +0 -0
  74. {crskit-0.8.0 → crskit-0.8.1}/crskit/CoordinateSystems/ILocalCoordinateSystem.h +0 -0
  75. {crskit-0.8.0 → crskit-0.8.1}/crskit/CoordinateSystems/ILocalDatum.h +0 -0
  76. {crskit-0.8.0 → crskit-0.8.1}/crskit/CoordinateSystems/IProjectedCoordinateSystem.h +0 -0
  77. {crskit-0.8.0 → crskit-0.8.1}/crskit/CoordinateSystems/IProjection.h +0 -0
  78. {crskit-0.8.0 → crskit-0.8.1}/crskit/CoordinateSystems/IVerticalCoordinateSystem.h +0 -0
  79. {crskit-0.8.0 → crskit-0.8.1}/crskit/CoordinateSystems/IVerticalDatum.h +0 -0
  80. {crskit-0.8.0 → crskit-0.8.1}/crskit/CoordinateSystems/LinearUnit.cpp +0 -0
  81. {crskit-0.8.0 → crskit-0.8.1}/crskit/CoordinateSystems/LinearUnit.h +0 -0
  82. {crskit-0.8.0 → crskit-0.8.1}/crskit/CoordinateSystems/LocalCoordinateSystem.cpp +0 -0
  83. {crskit-0.8.0 → crskit-0.8.1}/crskit/CoordinateSystems/LocalCoordinateSystem.h +0 -0
  84. {crskit-0.8.0 → crskit-0.8.1}/crskit/CoordinateSystems/LocalDatum.cpp +0 -0
  85. {crskit-0.8.0 → crskit-0.8.1}/crskit/CoordinateSystems/LocalDatum.h +0 -0
  86. {crskit-0.8.0 → crskit-0.8.1}/crskit/CoordinateSystems/PrimeMeridian.cpp +0 -0
  87. {crskit-0.8.0 → crskit-0.8.1}/crskit/CoordinateSystems/PrimeMeridian.h +0 -0
  88. {crskit-0.8.0 → crskit-0.8.1}/crskit/CoordinateSystems/ProjectedCoordinateSystem.cpp +0 -0
  89. {crskit-0.8.0 → crskit-0.8.1}/crskit/CoordinateSystems/ProjectedCoordinateSystem.h +0 -0
  90. {crskit-0.8.0 → crskit-0.8.1}/crskit/CoordinateSystems/Projection.cpp +0 -0
  91. {crskit-0.8.0 → crskit-0.8.1}/crskit/CoordinateSystems/Projection.h +0 -0
  92. {crskit-0.8.0 → crskit-0.8.1}/crskit/CoordinateSystems/Unit.h +0 -0
  93. {crskit-0.8.0 → crskit-0.8.1}/crskit/CoordinateSystems/VerticalCoordinateSystem.cpp +0 -0
  94. {crskit-0.8.0 → crskit-0.8.1}/crskit/CoordinateSystems/VerticalCoordinateSystem.h +0 -0
  95. {crskit-0.8.0 → crskit-0.8.1}/crskit/CoordinateSystems/VerticalDatum.cpp +0 -0
  96. {crskit-0.8.0 → crskit-0.8.1}/crskit/CoordinateSystems/VerticalDatum.h +0 -0
  97. {crskit-0.8.0 → crskit-0.8.1}/crskit/CoordinateSystems/Wgs84ConversionInfo.h +0 -0
  98. {crskit-0.8.0 → crskit-0.8.1}/crskit/CoordinateSystems/Wkt2.cpp +0 -0
  99. {crskit-0.8.0 → crskit-0.8.1}/crskit/CoordinateSystems/Wkt2.h +0 -0
  100. {crskit-0.8.0 → crskit-0.8.1}/crskit/CoordinateTransformationOptions.h +0 -0
  101. {crskit-0.8.0 → crskit-0.8.1}/crskit/CoordinateTransformations/Algorithms/Affine.cpp +0 -0
  102. {crskit-0.8.0 → crskit-0.8.1}/crskit/CoordinateTransformations/Algorithms/Afine.h +0 -0
  103. {crskit-0.8.0 → crskit-0.8.1}/crskit/CoordinateTransformations/Algorithms/AlbersConicEqualArea.cpp +0 -0
  104. {crskit-0.8.0 → crskit-0.8.1}/crskit/CoordinateTransformations/Algorithms/AlbersConicEqualArea.h +0 -0
  105. {crskit-0.8.0 → crskit-0.8.1}/crskit/CoordinateTransformations/Algorithms/AmericanPolyconic.cpp +0 -0
  106. {crskit-0.8.0 → crskit-0.8.1}/crskit/CoordinateTransformations/Algorithms/AmericanPolyconic.h +0 -0
  107. {crskit-0.8.0 → crskit-0.8.1}/crskit/CoordinateTransformations/Algorithms/Authalic.h +0 -0
  108. {crskit-0.8.0 → crskit-0.8.1}/crskit/CoordinateTransformations/Algorithms/AzimuthalProjections.cpp +0 -0
  109. {crskit-0.8.0 → crskit-0.8.1}/crskit/CoordinateTransformations/Algorithms/AzimuthalProjections.h +0 -0
  110. {crskit-0.8.0 → crskit-0.8.1}/crskit/CoordinateTransformations/Algorithms/CassiniSoldner.cpp +0 -0
  111. {crskit-0.8.0 → crskit-0.8.1}/crskit/CoordinateTransformations/Algorithms/CassiniSoldner.h +0 -0
  112. {crskit-0.8.0 → crskit-0.8.1}/crskit/CoordinateTransformations/Algorithms/CoordinateFrameRotation.cpp +0 -0
  113. {crskit-0.8.0 → crskit-0.8.1}/crskit/CoordinateTransformations/Algorithms/CoordinateFrameRotation.h +0 -0
  114. {crskit-0.8.0 → crskit-0.8.1}/crskit/CoordinateTransformations/Algorithms/CylindricalProjections.cpp +0 -0
  115. {crskit-0.8.0 → crskit-0.8.1}/crskit/CoordinateTransformations/Algorithms/CylindricalProjections.h +0 -0
  116. {crskit-0.8.0 → crskit-0.8.1}/crskit/CoordinateTransformations/Algorithms/GeocentricToTopocentric.cpp +0 -0
  117. {crskit-0.8.0 → crskit-0.8.1}/crskit/CoordinateTransformations/Algorithms/GeocentricToTopocentric.h +0 -0
  118. {crskit-0.8.0 → crskit-0.8.1}/crskit/CoordinateTransformations/Algorithms/GeocentricTranslations.cpp +0 -0
  119. {crskit-0.8.0 → crskit-0.8.1}/crskit/CoordinateTransformations/Algorithms/GeocentricTranslations.h +0 -0
  120. {crskit-0.8.0 → crskit-0.8.1}/crskit/CoordinateTransformations/Algorithms/Geodesic.h +0 -0
  121. {crskit-0.8.0 → crskit-0.8.1}/crskit/CoordinateTransformations/Algorithms/Geographic2D2Geocentric.cpp +0 -0
  122. {crskit-0.8.0 → crskit-0.8.1}/crskit/CoordinateTransformations/Algorithms/Geographic2D2Geocentric.h +0 -0
  123. {crskit-0.8.0 → crskit-0.8.1}/crskit/CoordinateTransformations/Algorithms/Geographic2D2Geographic3D.cpp +0 -0
  124. {crskit-0.8.0 → crskit-0.8.1}/crskit/CoordinateTransformations/Algorithms/Geographic2D2Geographic3D.h +0 -0
  125. {crskit-0.8.0 → crskit-0.8.1}/crskit/CoordinateTransformations/Algorithms/Geographic3DToGravityRelatedHeightEGM.cpp +0 -0
  126. {crskit-0.8.0 → crskit-0.8.1}/crskit/CoordinateTransformations/Algorithms/Geographic3DToGravityRelatedHeightEGM.h +0 -0
  127. {crskit-0.8.0 → crskit-0.8.1}/crskit/CoordinateTransformations/Algorithms/GridFiles/GridAusGeoid.cpp +0 -0
  128. {crskit-0.8.0 → crskit-0.8.1}/crskit/CoordinateTransformations/Algorithms/GridFiles/GridAusGeoid.h +0 -0
  129. {crskit-0.8.0 → crskit-0.8.1}/crskit/CoordinateTransformations/Algorithms/GridFiles/GridEGM2008.cpp +0 -0
  130. {crskit-0.8.0 → crskit-0.8.1}/crskit/CoordinateTransformations/Algorithms/GridFiles/GridEGM2008.h +0 -0
  131. {crskit-0.8.0 → crskit-0.8.1}/crskit/CoordinateTransformations/Algorithms/GridFiles/GridEGM2008Rednap.cpp +0 -0
  132. {crskit-0.8.0 → crskit-0.8.1}/crskit/CoordinateTransformations/Algorithms/GridFiles/GridEGM2008Rednap.h +0 -0
  133. {crskit-0.8.0 → crskit-0.8.1}/crskit/CoordinateTransformations/Algorithms/GridFiles/GridGtg.cpp +0 -0
  134. {crskit-0.8.0 → crskit-0.8.1}/crskit/CoordinateTransformations/Algorithms/GridFiles/GridGtg.h +0 -0
  135. {crskit-0.8.0 → crskit-0.8.1}/crskit/CoordinateTransformations/Algorithms/GridFiles/GridGtx.cpp +0 -0
  136. {crskit-0.8.0 → crskit-0.8.1}/crskit/CoordinateTransformations/Algorithms/GridFiles/GridGtx.h +0 -0
  137. {crskit-0.8.0 → crskit-0.8.1}/crskit/CoordinateTransformations/Algorithms/GridFiles/Inflate.cpp +0 -0
  138. {crskit-0.8.0 → crskit-0.8.1}/crskit/CoordinateTransformations/Algorithms/GridFiles/Inflate.h +0 -0
  139. {crskit-0.8.0 → crskit-0.8.1}/crskit/CoordinateTransformations/Algorithms/HotineObliqueMercator.cpp +0 -0
  140. {crskit-0.8.0 → crskit-0.8.1}/crskit/CoordinateTransformations/Algorithms/HotineObliqueMercator.h +0 -0
  141. {crskit-0.8.0 → crskit-0.8.1}/crskit/CoordinateTransformations/Algorithms/Krovak.cpp +0 -0
  142. {crskit-0.8.0 → crskit-0.8.1}/crskit/CoordinateTransformations/Algorithms/Krovak.h +0 -0
  143. {crskit-0.8.0 → crskit-0.8.1}/crskit/CoordinateTransformations/Algorithms/LambertAzimuthalEqualArea.cpp +0 -0
  144. {crskit-0.8.0 → crskit-0.8.1}/crskit/CoordinateTransformations/Algorithms/LambertAzimuthalEqualArea.h +0 -0
  145. {crskit-0.8.0 → crskit-0.8.1}/crskit/CoordinateTransformations/Algorithms/LambertConformalConic1SP.cpp +0 -0
  146. {crskit-0.8.0 → crskit-0.8.1}/crskit/CoordinateTransformations/Algorithms/LambertConformalConic1SP.h +0 -0
  147. {crskit-0.8.0 → crskit-0.8.1}/crskit/CoordinateTransformations/Algorithms/LambertConformalConic2SP.cpp +0 -0
  148. {crskit-0.8.0 → crskit-0.8.1}/crskit/CoordinateTransformations/Algorithms/LambertConformalConic2SP.h +0 -0
  149. {crskit-0.8.0 → crskit-0.8.1}/crskit/CoordinateTransformations/Algorithms/LambertConicConformalVariants.cpp +0 -0
  150. {crskit-0.8.0 → crskit-0.8.1}/crskit/CoordinateTransformations/Algorithms/LambertConicConformalVariants.h +0 -0
  151. {crskit-0.8.0 → crskit-0.8.1}/crskit/CoordinateTransformations/Algorithms/LongitudeRotation.cpp +0 -0
  152. {crskit-0.8.0 → crskit-0.8.1}/crskit/CoordinateTransformations/Algorithms/LongitudeRotation.h +0 -0
  153. {crskit-0.8.0 → crskit-0.8.1}/crskit/CoordinateTransformations/Algorithms/MapProjectionBase.cpp +0 -0
  154. {crskit-0.8.0 → crskit-0.8.1}/crskit/CoordinateTransformations/Algorithms/MapProjectionBase.h +0 -0
  155. {crskit-0.8.0 → crskit-0.8.1}/crskit/CoordinateTransformations/Algorithms/Mercator1Sp.cpp +0 -0
  156. {crskit-0.8.0 → crskit-0.8.1}/crskit/CoordinateTransformations/Algorithms/Mercator1Sp.h +0 -0
  157. {crskit-0.8.0 → crskit-0.8.1}/crskit/CoordinateTransformations/Algorithms/Mercator2Sp.cpp +0 -0
  158. {crskit-0.8.0 → crskit-0.8.1}/crskit/CoordinateTransformations/Algorithms/Mercator2Sp.h +0 -0
  159. {crskit-0.8.0 → crskit-0.8.1}/crskit/CoordinateTransformations/Algorithms/MolodenskyBadekas.cpp +0 -0
  160. {crskit-0.8.0 → crskit-0.8.1}/crskit/CoordinateTransformations/Algorithms/MolodenskyBadekas.h +0 -0
  161. {crskit-0.8.0 → crskit-0.8.1}/crskit/CoordinateTransformations/Algorithms/NadCon.cpp +0 -0
  162. {crskit-0.8.0 → crskit-0.8.1}/crskit/CoordinateTransformations/Algorithms/NadCon.h +0 -0
  163. {crskit-0.8.0 → crskit-0.8.1}/crskit/CoordinateTransformations/Algorithms/Ntv2.cpp +0 -0
  164. {crskit-0.8.0 → crskit-0.8.1}/crskit/CoordinateTransformations/Algorithms/Ntv2.h +0 -0
  165. {crskit-0.8.0 → crskit-0.8.1}/crskit/CoordinateTransformations/Algorithms/ObliqueMercator.cpp +0 -0
  166. {crskit-0.8.0 → crskit-0.8.1}/crskit/CoordinateTransformations/Algorithms/ObliqueMercator.h +0 -0
  167. {crskit-0.8.0 → crskit-0.8.1}/crskit/CoordinateTransformations/Algorithms/ObliqueStereographic.cpp +0 -0
  168. {crskit-0.8.0 → crskit-0.8.1}/crskit/CoordinateTransformations/Algorithms/ObliqueStereographic.h +0 -0
  169. {crskit-0.8.0 → crskit-0.8.1}/crskit/CoordinateTransformations/Algorithms/OtherProjections.cpp +0 -0
  170. {crskit-0.8.0 → crskit-0.8.1}/crskit/CoordinateTransformations/Algorithms/OtherProjections.h +0 -0
  171. {crskit-0.8.0 → crskit-0.8.1}/crskit/CoordinateTransformations/Algorithms/P6.cpp +0 -0
  172. {crskit-0.8.0 → crskit-0.8.1}/crskit/CoordinateTransformations/Algorithms/P6.h +0 -0
  173. {crskit-0.8.0 → crskit-0.8.1}/crskit/CoordinateTransformations/Algorithms/PolarStereographic.cpp +0 -0
  174. {crskit-0.8.0 → crskit-0.8.1}/crskit/CoordinateTransformations/Algorithms/PolarStereographic.h +0 -0
  175. {crskit-0.8.0 → crskit-0.8.1}/crskit/CoordinateTransformations/Algorithms/PopularVisualisationPseudoMercator.cpp +0 -0
  176. {crskit-0.8.0 → crskit-0.8.1}/crskit/CoordinateTransformations/Algorithms/PopularVisualisationPseudoMercator.h +0 -0
  177. {crskit-0.8.0 → crskit-0.8.1}/crskit/CoordinateTransformations/Algorithms/PositionVectorTransformation.cpp +0 -0
  178. {crskit-0.8.0 → crskit-0.8.1}/crskit/CoordinateTransformations/Algorithms/PositionVectorTransformation.h +0 -0
  179. {crskit-0.8.0 → crskit-0.8.1}/crskit/CoordinateTransformations/Algorithms/TransverseMercator.cpp +0 -0
  180. {crskit-0.8.0 → crskit-0.8.1}/crskit/CoordinateTransformations/Algorithms/TransverseMercator.h +0 -0
  181. {crskit-0.8.0 → crskit-0.8.1}/crskit/CoordinateTransformations/Algorithms/TransverseMercatorSouthOrientated.cpp +0 -0
  182. {crskit-0.8.0 → crskit-0.8.1}/crskit/CoordinateTransformations/Algorithms/TransverseMercatorSouthOrientated.h +0 -0
  183. {crskit-0.8.0 → crskit-0.8.1}/crskit/CoordinateTransformations/Algorithms/VerticalOffset.cpp +0 -0
  184. {crskit-0.8.0 → crskit-0.8.1}/crskit/CoordinateTransformations/Algorithms/VerticalOffset.h +0 -0
  185. {crskit-0.8.0 → crskit-0.8.1}/crskit/CoordinateTransformations/ConcatenatedTransform.cpp +0 -0
  186. {crskit-0.8.0 → crskit-0.8.1}/crskit/CoordinateTransformations/ConcatenatedTransform.h +0 -0
  187. {crskit-0.8.0 → crskit-0.8.1}/crskit/CoordinateTransformations/CoordinateTransformation.cpp +0 -0
  188. {crskit-0.8.0 → crskit-0.8.1}/crskit/CoordinateTransformations/CoordinateTransformation.h +0 -0
  189. {crskit-0.8.0 → crskit-0.8.1}/crskit/CoordinateTransformations/CoordinateTransformationAuthorityFactory.cpp +0 -0
  190. {crskit-0.8.0 → crskit-0.8.1}/crskit/CoordinateTransformations/CoordinateTransformationAuthorityFactory.h +0 -0
  191. {crskit-0.8.0 → crskit-0.8.1}/crskit/CoordinateTransformations/CoordinateTransformationFactory.cpp +0 -0
  192. {crskit-0.8.0 → crskit-0.8.1}/crskit/CoordinateTransformations/CoordinateTransformationFactory.h +0 -0
  193. {crskit-0.8.0 → crskit-0.8.1}/crskit/CoordinateTransformations/DomainFlags.h +0 -0
  194. {crskit-0.8.0 → crskit-0.8.1}/crskit/CoordinateTransformations/ICoordinateTransformation.h +0 -0
  195. {crskit-0.8.0 → crskit-0.8.1}/crskit/CoordinateTransformations/ICoordinateTransformationAuthorityFactory.h +0 -0
  196. {crskit-0.8.0 → crskit-0.8.1}/crskit/CoordinateTransformations/ICoordinateTransformationFactory.h +0 -0
  197. {crskit-0.8.0 → crskit-0.8.1}/crskit/CoordinateTransformations/IMathTransform.h +0 -0
  198. {crskit-0.8.0 → crskit-0.8.1}/crskit/CoordinateTransformations/IMathTransformFactory.h +0 -0
  199. {crskit-0.8.0 → crskit-0.8.1}/crskit/CoordinateTransformations/MathTransformBase.cpp +0 -0
  200. {crskit-0.8.0 → crskit-0.8.1}/crskit/CoordinateTransformations/MathTransformBase.h +0 -0
  201. {crskit-0.8.0 → crskit-0.8.1}/crskit/CoordinateTransformations/MathTransformFactory.cpp +0 -0
  202. {crskit-0.8.0 → crskit-0.8.1}/crskit/CoordinateTransformations/MathTransformFactory.h +0 -0
  203. {crskit-0.8.0 → crskit-0.8.1}/crskit/CoordinateTransformations/MathTransformRegistry.cpp +0 -0
  204. {crskit-0.8.0 → crskit-0.8.1}/crskit/CoordinateTransformations/MathTransformRegistry.h +0 -0
  205. {crskit-0.8.0 → crskit-0.8.1}/crskit/CoordinateTransformations/Passthrough.cpp +0 -0
  206. {crskit-0.8.0 → crskit-0.8.1}/crskit/CoordinateTransformations/Passthrough.h +0 -0
  207. {crskit-0.8.0 → crskit-0.8.1}/crskit/CoordinateTransformations/ThreeCoordinateHeightTransform.cpp +0 -0
  208. {crskit-0.8.0 → crskit-0.8.1}/crskit/CoordinateTransformations/ThreeCoordinateHeightTransform.h +0 -0
  209. {crskit-0.8.0 → crskit-0.8.1}/crskit/CoordinateTransformations/TransformType.h +0 -0
  210. {crskit-0.8.0 → crskit-0.8.1}/crskit/CoordinateTransformations/UnitsOfMeasure.h +0 -0
  211. {crskit-0.8.0 → crskit-0.8.1}/crskit/CrsAliases.cpp +0 -0
  212. {crskit-0.8.0 → crskit-0.8.1}/crskit/CrsAliases.h +0 -0
  213. {crskit-0.8.0 → crskit-0.8.1}/crskit/CrsContext.h +0 -0
  214. {crskit-0.8.0 → crskit-0.8.1}/crskit/CrsKitExport.h +0 -0
  215. {crskit-0.8.0 → crskit-0.8.1}/crskit/EsriProjectionEngine.cpp +0 -0
  216. {crskit-0.8.0 → crskit-0.8.1}/crskit/EsriProjectionEngine.h +0 -0
  217. {crskit-0.8.0 → crskit-0.8.1}/crskit/ExtensionManager.cpp +0 -0
  218. {crskit-0.8.0 → crskit-0.8.1}/crskit/ExtensionManager.h +0 -0
  219. {crskit-0.8.0 → crskit-0.8.1}/crskit/Factory.h +0 -0
  220. {crskit-0.8.0 → crskit-0.8.1}/crskit/GridFileNotFoundException.h +0 -0
  221. {crskit-0.8.0 → crskit-0.8.1}/crskit/IAuthorityProvider.h +0 -0
  222. {crskit-0.8.0 → crskit-0.8.1}/crskit/IUtilities.h +0 -0
  223. {crskit-0.8.0 → crskit-0.8.1}/crskit/Mathematics/Angles.h +0 -0
  224. {crskit-0.8.0 → crskit-0.8.1}/crskit/Mathematics/Concepts.h +0 -0
  225. {crskit-0.8.0 → crskit-0.8.1}/crskit/Mathematics/GridCell.h +0 -0
  226. {crskit-0.8.0 → crskit-0.8.1}/crskit/Mathematics/GridInterpolation.h +0 -0
  227. {crskit-0.8.0 → crskit-0.8.1}/crskit/Mathematics/Interpolation.h +0 -0
  228. {crskit-0.8.0 → crskit-0.8.1}/crskit/Mathematics/Matrix.h +0 -0
  229. {crskit-0.8.0 → crskit-0.8.1}/crskit/Mathematics/Point.h +0 -0
  230. {crskit-0.8.0 → crskit-0.8.1}/crskit/Mathematics/Window2D.h +0 -0
  231. {crskit-0.8.0 → crskit-0.8.1}/crskit/OpenGisAttributes.h +0 -0
  232. {crskit-0.8.0 → crskit-0.8.1}/crskit/OpenGisException.h +0 -0
  233. {crskit-0.8.0 → crskit-0.8.1}/crskit/Parameter.h +0 -0
  234. {crskit-0.8.0 → crskit-0.8.1}/crskit/Positioning/Envelope.h +0 -0
  235. {crskit-0.8.0 → crskit-0.8.1}/crskit/StringUtil.h +0 -0
  236. {crskit-0.8.0 → crskit-0.8.1}/crskit/TokenWkt.cpp +0 -0
  237. {crskit-0.8.0 → crskit-0.8.1}/crskit/TokenWkt.h +0 -0
  238. {crskit-0.8.0 → crskit-0.8.1}/crskit/Utilities.cpp +0 -0
  239. {crskit-0.8.0 → crskit-0.8.1}/crskit/Utilities.h +0 -0
  240. {crskit-0.8.0 → crskit-0.8.1}/crskit/WktDeserializer.cpp +0 -0
  241. {crskit-0.8.0 → crskit-0.8.1}/crskit/WktDeserializer.h +0 -0
  242. {crskit-0.8.0 → crskit-0.8.1}/crskit/app.ico +0 -0
  243. {crskit-0.8.0 → crskit-0.8.1}/crskit/pch.cpp +0 -0
  244. {crskit-0.8.0 → crskit-0.8.1}/crskit/pch.h +0 -0
  245. {crskit-0.8.0 → crskit-0.8.1}/data/grid-sources.json +0 -0
  246. {crskit-0.8.0 → crskit-0.8.1}/external/sqlite/sqlite3.c +0 -0
  247. {crskit-0.8.0 → crskit-0.8.1}/external/sqlite/sqlite3.h +0 -0
  248. {crskit-0.8.0 → crskit-0.8.1}/python/CMakeLists.txt +0 -0
  249. {crskit-0.8.0 → crskit-0.8.1}/python/TUTORIAL.de.md +0 -0
  250. {crskit-0.8.0 → crskit-0.8.1}/python/TUTORIAL.es.md +0 -0
  251. {crskit-0.8.0 → crskit-0.8.1}/python/TUTORIAL.fr.md +0 -0
  252. {crskit-0.8.0 → crskit-0.8.1}/python/TUTORIAL.it.md +0 -0
  253. {crskit-0.8.0 → crskit-0.8.1}/python/TUTORIAL.md +0 -0
  254. {crskit-0.8.0 → crskit-0.8.1}/python/crskit/py.typed +0 -0
  255. {crskit-0.8.0 → crskit-0.8.1}/python/examples/01_quickstart.py +0 -0
  256. {crskit-0.8.0 → crskit-0.8.1}/python/examples/02_wkt.py +0 -0
  257. {crskit-0.8.0 → crskit-0.8.1}/python/examples/03_point_cloud.py +0 -0
  258. {crskit-0.8.0 → crskit-0.8.1}/python/examples/04_choosing_the_operation.py +0 -0
  259. {crskit-0.8.0 → crskit-0.8.1}/python/examples/05_orthometric_heights.py +0 -0
  260. {crskit-0.8.0 → crskit-0.8.1}/python/examples/README.md +0 -0
  261. {crskit-0.8.0 → crskit-0.8.1}/python/examples/_setup.py +0 -0
  262. {crskit-0.8.0 → crskit-0.8.1}/python/tests/test_examples.py +0 -0
  263. {crskit-0.8.0 → crskit-0.8.1}/python-epsg/README.md +0 -0
  264. {crskit-0.8.0 → crskit-0.8.1}/python-epsg/crskit_epsg/EPSG-TERMS-OF-USE.md +0 -0
  265. {crskit-0.8.0 → crskit-0.8.1}/python-epsg/crskit_epsg/__init__.py +0 -0
  266. {crskit-0.8.0 → crskit-0.8.1}/python-epsg/fetch.py +0 -0
  267. {crskit-0.8.0 → crskit-0.8.1}/python-epsg/pyproject.toml +0 -0
  268. {crskit-0.8.0 → crskit-0.8.1}/tests/Gigs/Test5101Part2.cpp +0 -0
  269. {crskit-0.8.0 → crskit-0.8.1}/tests/Gigs/Test5101Part3.cpp +0 -0
  270. {crskit-0.8.0 → crskit-0.8.1}/tests/Gigs/Test5101Part4.cpp +0 -0
  271. {crskit-0.8.0 → crskit-0.8.1}/tests/Gigs/Test5102Part1.cpp +0 -0
  272. {crskit-0.8.0 → crskit-0.8.1}/tests/Gigs/Test5102Part2.cpp +0 -0
  273. {crskit-0.8.0 → crskit-0.8.1}/tests/Gigs/Test5103Part1.cpp +0 -0
  274. {crskit-0.8.0 → crskit-0.8.1}/tests/Gigs/Test5103Part2.cpp +0 -0
  275. {crskit-0.8.0 → crskit-0.8.1}/tests/Gigs/Test5103Part3.cpp +0 -0
  276. {crskit-0.8.0 → crskit-0.8.1}/tests/Gigs/Test5104Part1.cpp +0 -0
  277. {crskit-0.8.0 → crskit-0.8.1}/tests/Gigs/Test5105Part1.cpp +0 -0
  278. {crskit-0.8.0 → crskit-0.8.1}/tests/Gigs/Test5105Part2.cpp +0 -0
  279. {crskit-0.8.0 → crskit-0.8.1}/tests/Gigs/Test5106Part1.cpp +0 -0
  280. {crskit-0.8.0 → crskit-0.8.1}/tests/Gigs/Test5107Part1.cpp +0 -0
  281. {crskit-0.8.0 → crskit-0.8.1}/tests/Gigs/Test5108Part1.cpp +0 -0
  282. {crskit-0.8.0 → crskit-0.8.1}/tests/Gigs/Test5109Part1.cpp +0 -0
  283. {crskit-0.8.0 → crskit-0.8.1}/tests/Gigs/Test5110Part1.cpp +0 -0
  284. {crskit-0.8.0 → crskit-0.8.1}/tests/Gigs/Test5111Part1.cpp +0 -0
  285. {crskit-0.8.0 → crskit-0.8.1}/tests/Gigs/Test5111Part2.cpp +0 -0
  286. {crskit-0.8.0 → crskit-0.8.1}/tests/Gigs/Test5112Part1.cpp +0 -0
  287. {crskit-0.8.0 → crskit-0.8.1}/tests/Gigs/Test5113Part1.cpp +0 -0
  288. {crskit-0.8.0 → crskit-0.8.1}/tests/Gigs/Test5201Part1.cpp +0 -0
  289. {crskit-0.8.0 → crskit-0.8.1}/tests/Gigs/Test5203Part1.cpp +0 -0
  290. {crskit-0.8.0 → crskit-0.8.1}/tests/Gigs/Test5204Part1.cpp +0 -0
  291. {crskit-0.8.0 → crskit-0.8.1}/tests/Gigs/Test5205Part1.cpp +0 -0
  292. {crskit-0.8.0 → crskit-0.8.1}/tests/Gigs/Test5205Part2.cpp +0 -0
  293. {crskit-0.8.0 → crskit-0.8.1}/tests/Gigs/Test5207Part1.cpp +0 -0
  294. {crskit-0.8.0 → crskit-0.8.1}/tests/Gigs/Test5207Part2.cpp +0 -0
  295. {crskit-0.8.0 → crskit-0.8.1}/tests/Gigs/Test5208Part1.cpp +0 -0
  296. {crskit-0.8.0 → crskit-0.8.1}/tests/Gigs/Test5209Part1.cpp +0 -0
  297. {crskit-0.8.0 → crskit-0.8.1}/tests/Gigs/Test5210Part1.cpp +0 -0
  298. {crskit-0.8.0 → crskit-0.8.1}/tests/Gigs/Test5210Part10.cpp +0 -0
  299. {crskit-0.8.0 → crskit-0.8.1}/tests/Gigs/Test5210Part11.cpp +0 -0
  300. {crskit-0.8.0 → crskit-0.8.1}/tests/Gigs/Test5210Part12.cpp +0 -0
  301. {crskit-0.8.0 → crskit-0.8.1}/tests/Gigs/Test5210Part2.cpp +0 -0
  302. {crskit-0.8.0 → crskit-0.8.1}/tests/Gigs/Test5210Part3.cpp +0 -0
  303. {crskit-0.8.0 → crskit-0.8.1}/tests/Gigs/Test5210Part4.cpp +0 -0
  304. {crskit-0.8.0 → crskit-0.8.1}/tests/Gigs/Test5210Part5.cpp +0 -0
  305. {crskit-0.8.0 → crskit-0.8.1}/tests/Gigs/Test5210Part6.cpp +0 -0
  306. {crskit-0.8.0 → crskit-0.8.1}/tests/Gigs/Test5210Part7.cpp +0 -0
  307. {crskit-0.8.0 → crskit-0.8.1}/tests/Gigs/Test5210Part8.cpp +0 -0
  308. {crskit-0.8.0 → crskit-0.8.1}/tests/Gigs/Test5210Part9.cpp +0 -0
  309. {crskit-0.8.0 → crskit-0.8.1}/tests/Gigs/Test5212Part1.cpp +0 -0
  310. {crskit-0.8.0 → crskit-0.8.1}/tests/Gigs/Test5213Part1.cpp +0 -0
  311. {crskit-0.8.0 → crskit-0.8.1}/tests/GigsFactory.h +0 -0
  312. {crskit-0.8.0 → crskit-0.8.1}/tests/RoundTrip.h +0 -0
  313. {crskit-0.8.0 → crskit-0.8.1}/tests/Test5101Part1.cpp +0 -0
  314. {crskit-0.8.0 → crskit-0.8.1}/tests/TestAmericanPolyconic.cpp +0 -0
  315. {crskit-0.8.0 → crskit-0.8.1}/tests/TestAntimeridian.cpp +0 -0
  316. {crskit-0.8.0 → crskit-0.8.1}/tests/TestAzimuthalProjections.cpp +0 -0
  317. {crskit-0.8.0 → crskit-0.8.1}/tests/TestBase.h +0 -0
  318. {crskit-0.8.0 → crskit-0.8.1}/tests/TestCassiniSoldner.cpp +0 -0
  319. {crskit-0.8.0 → crskit-0.8.1}/tests/TestCatalogueSweep.cpp +0 -0
  320. {crskit-0.8.0 → crskit-0.8.1}/tests/TestCompoundFromWkt.cpp +0 -0
  321. {crskit-0.8.0 → crskit-0.8.1}/tests/TestContextEnvironment.cpp +0 -0
  322. {crskit-0.8.0 → crskit-0.8.1}/tests/TestCrsAliases.cpp +0 -0
  323. {crskit-0.8.0 → crskit-0.8.1}/tests/TestCylindricalProjections.cpp +0 -0
  324. {crskit-0.8.0 → crskit-0.8.1}/tests/TestDatabaseErrors.cpp +0 -0
  325. {crskit-0.8.0 → crskit-0.8.1}/tests/TestDatumComparison.cpp +0 -0
  326. {crskit-0.8.0 → crskit-0.8.1}/tests/TestDatumNameNormalization.cpp +0 -0
  327. {crskit-0.8.0 → crskit-0.8.1}/tests/TestDatumOfCrs.cpp +0 -0
  328. {crskit-0.8.0 → crskit-0.8.1}/tests/TestEllipsoidInFeet.cpp +0 -0
  329. {crskit-0.8.0 → crskit-0.8.1}/tests/TestEnvironment.cpp +0 -0
  330. {crskit-0.8.0 → crskit-0.8.1}/tests/TestEquivalence.cpp +0 -0
  331. {crskit-0.8.0 → crskit-0.8.1}/tests/TestEsriCompound.cpp +0 -0
  332. {crskit-0.8.0 → crskit-0.8.1}/tests/TestEsriTables.cpp +0 -0
  333. {crskit-0.8.0 → crskit-0.8.1}/tests/TestEsriTowgs84Snap.cpp +0 -0
  334. {crskit-0.8.0 → crskit-0.8.1}/tests/TestExceptions.cpp +0 -0
  335. {crskit-0.8.0 → crskit-0.8.1}/tests/TestGeocentricOperations.cpp +0 -0
  336. {crskit-0.8.0 → crskit-0.8.1}/tests/TestGeocentricWithoutEpsgCode.cpp +0 -0
  337. {crskit-0.8.0 → crskit-0.8.1}/tests/TestGeocentricWkt.cpp +0 -0
  338. {crskit-0.8.0 → crskit-0.8.1}/tests/TestGeographic2DVertical.cpp +0 -0
  339. {crskit-0.8.0 → crskit-0.8.1}/tests/TestGeographic3DDatumShift.cpp +0 -0
  340. {crskit-0.8.0 → crskit-0.8.1}/tests/TestGeographic3DTowgs84.cpp +0 -0
  341. {crskit-0.8.0 → crskit-0.8.1}/tests/TestGeographicAndGeocentric3DWithoutCodeToHorizontal.cpp +0 -0
  342. {crskit-0.8.0 → crskit-0.8.1}/tests/TestGeographicAxisOrder.cpp +0 -0
  343. {crskit-0.8.0 → crskit-0.8.1}/tests/TestGeographicToGeocentricDatumShift.cpp +0 -0
  344. {crskit-0.8.0 → crskit-0.8.1}/tests/TestGridCell.cpp +0 -0
  345. {crskit-0.8.0 → crskit-0.8.1}/tests/TestHeaderWarnings.cpp +0 -0
  346. {crskit-0.8.0 → crskit-0.8.1}/tests/TestKrovak.cpp +0 -0
  347. {crskit-0.8.0 → crskit-0.8.1}/tests/TestLambertAzimuthalEqualArea.cpp +0 -0
  348. {crskit-0.8.0 → crskit-0.8.1}/tests/TestLambertConicConformalVariants.cpp +0 -0
  349. {crskit-0.8.0 → crskit-0.8.1}/tests/TestLongitudeRotation.cpp +0 -0
  350. {crskit-0.8.0 → crskit-0.8.1}/tests/TestMolodenskyBadekas.cpp +0 -0
  351. {crskit-0.8.0 → crskit-0.8.1}/tests/TestNonNumericAuthority.cpp +0 -0
  352. {crskit-0.8.0 → crskit-0.8.1}/tests/TestObliqueMercator.cpp +0 -0
  353. {crskit-0.8.0 → crskit-0.8.1}/tests/TestOperationSelection.cpp +0 -0
  354. {crskit-0.8.0 → crskit-0.8.1}/tests/TestOtherProjections.cpp +0 -0
  355. {crskit-0.8.0 → crskit-0.8.1}/tests/TestPolarStereographic.cpp +0 -0
  356. {crskit-0.8.0 → crskit-0.8.1}/tests/TestPrimeMeridianChange.cpp +0 -0
  357. {crskit-0.8.0 → crskit-0.8.1}/tests/TestPrimeMeridianGeocentric.cpp +0 -0
  358. {crskit-0.8.0 → crskit-0.8.1}/tests/TestPrimeMeridianWkt1.cpp +0 -0
  359. {crskit-0.8.0 → crskit-0.8.1}/tests/TestProjectionEdges.cpp +0 -0
  360. {crskit-0.8.0 → crskit-0.8.1}/tests/TestProjectionParameters.cpp +0 -0
  361. {crskit-0.8.0 → crskit-0.8.1}/tests/TestRoundTripSweep.cpp +0 -0
  362. {crskit-0.8.0 → crskit-0.8.1}/tests/TestSameGeodeticFrame.cpp +0 -0
  363. {crskit-0.8.0 → crskit-0.8.1}/tests/TestSexagesimalDms.cpp +0 -0
  364. {crskit-0.8.0 → crskit-0.8.1}/tests/TestSexagesimalPrimeMeridian.cpp +0 -0
  365. {crskit-0.8.0 → crskit-0.8.1}/tests/TestThreeCoordinateUnits.cpp +0 -0
  366. {crskit-0.8.0 → crskit-0.8.1}/tests/TestThreeDimensionalCrsWithLocalHorizontalComponent.cpp +0 -0
  367. {crskit-0.8.0 → crskit-0.8.1}/tests/TestTowgs84.cpp +0 -0
  368. {crskit-0.8.0 → crskit-0.8.1}/tests/TestTransformPoints.cpp +0 -0
  369. {crskit-0.8.0 → crskit-0.8.1}/tests/TestTransformToGeocentric.cpp +0 -0
  370. {crskit-0.8.0 → crskit-0.8.1}/tests/TestTransformToGeocentricHorizontalTypes.cpp +0 -0
  371. {crskit-0.8.0 → crskit-0.8.1}/tests/TestTransformationAuthorityCode.cpp +0 -0
  372. {crskit-0.8.0 → crskit-0.8.1}/tests/TestUnknownCrs.cpp +0 -0
  373. {crskit-0.8.0 → crskit-0.8.1}/tests/TestUtilitiesContract.cpp +0 -0
  374. {crskit-0.8.0 → crskit-0.8.1}/tests/TestVerticalRoundTrip.cpp +0 -0
  375. {crskit-0.8.0 → crskit-0.8.1}/tests/TestWestSouthAxes.cpp +0 -0
  376. {crskit-0.8.0 → crskit-0.8.1}/tests/TestWgs84DatumNames.cpp +0 -0
  377. {crskit-0.8.0 → crskit-0.8.1}/tests/TestWithAxes.cpp +0 -0
  378. {crskit-0.8.0 → crskit-0.8.1}/tests/TestWkt2.cpp +0 -0
  379. {crskit-0.8.0 → crskit-0.8.1}/tests/TestWkt2AxisUnits.cpp +0 -0
  380. {crskit-0.8.0 → crskit-0.8.1}/tests/TestWktMalformed.cpp +0 -0
  381. {crskit-0.8.0 → crskit-0.8.1}/tests/TestWktQuoted.cpp +0 -0
  382. {crskit-0.8.0 → crskit-0.8.1}/tests/TestWktUnclosed.cpp +0 -0
  383. {crskit-0.8.0 → crskit-0.8.1}/tests/vcpkg.json +0 -0
  384. {crskit-0.8.0 → crskit-0.8.1}/tools/epsg-sqlite/README.md +0 -0
  385. {crskit-0.8.0 → crskit-0.8.1}/tools/epsg-sqlite/epsg_sql_to_sqlite.py +0 -0
  386. {crskit-0.8.0 → crskit-0.8.1}/tools/release.sh +0 -0
  387. {crskit-0.8.0 → crskit-0.8.1}/vcpkg.json +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: crskit
3
- Version: 0.8.0
3
+ Version: 0.8.1
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>
@@ -139,6 +139,25 @@ EPSG:5040 5.0 m Portugal - mainland - onshore
139
139
  Each candidate tells you its `code`, `accuracy` in metres, `area_of_use`, `grid_files` and
140
140
  `information_source` — enough to choose by geography and not only by the smallest number.
141
141
 
142
+ `area_of_use_bounding_box` is the rectangle of the area of use in degrees, or `None` when the
143
+ operation has no extent in the catalogue or the extent lacks any of its four bounds, and
144
+ `contains(latitude_degrees, longitude_degrees)` tells whether a point lies in it, also for the
145
+ rectangles that cross the antimeridian. `crskit.missing_grid_files(operation)` lists the grid files of
146
+ the operation that are not in the data directory, searched as `crskit.transformation` searches them:
147
+
148
+ ```python
149
+ def make_operation_selector_for_point(latitude_degrees, longitude_degrees):
150
+ def select_operation(source_name, target_name, operations):
151
+ operations_containing_point_with_installed_grids = [
152
+ operation for operation in operations
153
+ if operation.area_of_use_bounding_box
154
+ and operation.area_of_use_bounding_box.contains(latitude_degrees, longitude_degrees)
155
+ and not crskit.missing_grid_files(operation)]
156
+ return min(operations_containing_point_with_installed_grids,
157
+ key=lambda operation: operation.accuracy or float("inf"))
158
+ return select_operation
159
+ ```
160
+
142
161
  ## Heights above sea level
143
162
 
144
163
  A GNSS receiver gives an *ellipsoidal* height, which is not the altitude anyone means. Turning it
@@ -310,6 +310,11 @@ namespace CrsKit::CoordinateTransformations::Algorithms
310
310
  }
311
311
  }
312
312
 
313
+ auto GetGridFileSearchNames(std::string const& gridFileName) -> std::vector<std::string>
314
+ {
315
+ return egm2008CandidateNames(gridFileName);
316
+ }
317
+
313
318
  // Locates the geoid grid reader for the given (EPSG) model-file name. Two passes: first recognise
314
319
  // the grid by its CONTENT (so a present file is accepted regardless of its exact name), then fall
315
320
  // back to recognising the FAMILY by name so an absent file is routed to its reader, which reports
@@ -10,6 +10,11 @@
10
10
 
11
11
  namespace CrsKit::CoordinateTransformations::Algorithms
12
12
  {
13
+ // Names that the Earth Gravitational Model 2008 (EGM2008) reader and IsGridFileInstalled search for in the data
14
+ // directory for gridFileName, in search order: gridFileName and, if gridFileName ends in ".gz", the name without
15
+ // ".gz". The readers of the other grid formats open only gridFileName.
16
+ [[nodiscard]] auto GetGridFileSearchNames(std::string const& gridFileName) -> std::vector<std::string>;
17
+
13
18
  struct IGridInterpolation
14
19
  {
15
20
  virtual ~IGridInterpolation() = default;
@@ -4,6 +4,8 @@
4
4
  #include <string>
5
5
  #include <vector>
6
6
 
7
+ #include "../Positioning/GeographicBoundingBox.h"
8
+
7
9
  namespace CrsKit::CoordinateTransformations
8
10
  {
9
11
  struct CoordinateOperation final
@@ -25,6 +27,9 @@ namespace CrsKit::CoordinateTransformations
25
27
  // Grid file(s) the operation needs (EPSG PARAM_VALUE_FILE_REF), empty for non-grid operations.
26
28
  // The caller can surface these so the user knows which file to obtain (e.g. an EGM2008 geoid grid).
27
29
  std::vector<std::string> GridFiles;
30
+ // Rectangle of the extent named by AreaOfUse, std::nullopt when the operation has no extent in the catalogue
31
+ // or the extent lacks any of its four bounds. See GeographicBoundingBox for extents that cross the antimeridian.
32
+ std::optional<Positioning::GeographicBoundingBox> AreaOfUseBoundingBox;
28
33
  };
29
34
 
30
35
  }
@@ -158,6 +158,17 @@ namespace CrsKit
158
158
 
159
159
  // The EPSG Geodetic Parameter Dataset version of the active database (e.g. "12.057"), "" if unknown.
160
160
  _modeCrsKit std::string GetEpsgVersion();
161
+
162
+ // True when a regular file exists in CrsContext::dataDirectory of the default context with the name gridFileName, as
163
+ // in CoordinateOperation::GridFiles, or, if gridFileName ends in ".gz", with the name without ".gz", which the reader
164
+ // of the Earth Gravitational Model 2008 (EGM2008) opens. Does not check the format of the file and does not
165
+ // decompress it: a compressed ".gz" file counts as installed.
166
+ _modeCrsKit bool IsGridFileInstalled(std::string const& gridFileName);
167
+
168
+ // The names in operation.GridFiles for which IsGridFileInstalled returns false; empty when every grid file is installed.
169
+ // For the method Norway Offshore Interpolation (code 9620 of the European Petroleum Survey Group (EPSG) catalogue),
170
+ // GridFiles holds names of coordinate operations instead of file names, so the result is empty.
171
+ _modeCrsKit std::vector<std::string> GetMissingGridFiles(CoordinateTransformations::CoordinateOperation const& operation);
161
172
  }
162
173
 
163
174
  #ifdef _MSC_VER
@@ -0,0 +1,41 @@
1
+ #include "pch.h"
2
+ #include "CoordinateTransformations/Algorithms/Geographic3DToGravityRelatedHeightEGM2008.h"
3
+
4
+ #include <filesystem>
5
+ #include <string>
6
+ #include <system_error>
7
+ #include <vector>
8
+
9
+ namespace CrsKit
10
+ {
11
+ namespace
12
+ {
13
+ // Method of the European Petroleum Survey Group (EPSG) catalogue whose PARAM_VALUE_FILE_REF values are names of
14
+ // coordinate operations.
15
+ constexpr auto kNorwayOffshoreInterpolationMethodCode = 9620;
16
+ }
17
+
18
+ bool IsGridFileInstalled(std::string const& gridFileName)
19
+ {
20
+ auto const dataDirectory = GetDefaultContext()->dataDirectory;
21
+ for (auto const& candidateGridFileName : CoordinateTransformations::Algorithms::GetGridFileSearchNames(gridFileName))
22
+ {
23
+ std::error_code gridFileStatusError;
24
+ if (std::filesystem::is_regular_file(std::filesystem::path(dataDirectory + candidateGridFileName), gridFileStatusError))
25
+ return true;
26
+ }
27
+ return false;
28
+ }
29
+
30
+ std::vector<std::string> GetMissingGridFiles(CoordinateTransformations::CoordinateOperation const& operation)
31
+ {
32
+ if (operation.MethodCode == kNorwayOffshoreInterpolationMethodCode)
33
+ return {};
34
+
35
+ std::vector<std::string> missingGridFileNames;
36
+ for (auto const& gridFileName : operation.GridFiles)
37
+ if (!IsGridFileInstalled(gridFileName))
38
+ missingGridFileNames.push_back(gridFileName);
39
+ return missingGridFileNames;
40
+ }
41
+ }
@@ -0,0 +1,46 @@
1
+ #pragma once
2
+
3
+ #include <cmath>
4
+
5
+ namespace CrsKit::Positioning
6
+ {
7
+ // Rectangle of an extent of the European Petroleum Survey Group (EPSG) catalogue (columns BBOX_*_BOUND_* of
8
+ // epsg_extent), in degrees. Latitudes range from -90 to 90 degrees and longitudes from -180 to 180 degrees, both ends
9
+ // included. When WestBoundLongitudeDegrees is greater than EastBoundLongitudeDegrees, the rectangle crosses the
10
+ // antimeridian and covers the longitudes from WestBoundLongitudeDegrees to 180 and from -180 to EastBoundLongitudeDegrees.
11
+ struct GeographicBoundingBox final
12
+ {
13
+ double SouthBoundLatitudeDegrees{};
14
+ double NorthBoundLatitudeDegrees{};
15
+ double WestBoundLongitudeDegrees{};
16
+ double EastBoundLongitudeDegrees{};
17
+
18
+ [[nodiscard]] auto CrossesAntimeridian() const -> bool
19
+ {
20
+ return WestBoundLongitudeDegrees > EastBoundLongitudeDegrees;
21
+ }
22
+
23
+ // True when the point is inside the rectangle or on its boundary. The longitude is reduced to the range
24
+ // [-180, 180] before the comparison, so -190 and 170 are the same longitude. Returns false if latitudeDegrees or
25
+ // longitudeDegrees is NaN (not a number), or if longitudeDegrees is infinite.
26
+ [[nodiscard]] auto Contains(double latitudeDegrees, double longitudeDegrees) const -> bool
27
+ {
28
+ if (!(latitudeDegrees >= SouthBoundLatitudeDegrees && latitudeDegrees <= NorthBoundLatitudeDegrees) || !std::isfinite(longitudeDegrees))
29
+ return false;
30
+
31
+ auto const reducedLongitudeDegrees = std::remainder(longitudeDegrees, 360.0);
32
+ // Longitudes -180 and 180 are the same meridian.
33
+ return ContainsLongitude(reducedLongitudeDegrees) || (std::fabs(reducedLongitudeDegrees) == 180.0 && ContainsLongitude(-reducedLongitudeDegrees));
34
+ }
35
+
36
+ auto operator==(GeographicBoundingBox const&) const -> bool = default;
37
+
38
+ private:
39
+ [[nodiscard]] auto ContainsLongitude(double longitudeDegrees) const -> bool
40
+ {
41
+ if (CrossesAntimeridian())
42
+ return longitudeDegrees >= WestBoundLongitudeDegrees || longitudeDegrees <= EastBoundLongitudeDegrees;
43
+ return longitudeDegrees >= WestBoundLongitudeDegrees && longitudeDegrees <= EastBoundLongitudeDegrees;
44
+ }
45
+ };
46
+ }
@@ -645,14 +645,37 @@ namespace CrsKit::Epsg
645
645
  return files;
646
646
  }
647
647
 
648
- // Fill in each candidate operation's area of use and required grid file(s) from its code, so the
649
- // caller can present both (choose by geography, and know which file to obtain).
648
+ // Rectangle of the extent, std::nullopt when the extent does not exist or any of its four bounds is NULL.
649
+ auto GetAreaOfUseBoundingBox(int areaOfUseCode) -> std::optional<Positioning::GeographicBoundingBox>
650
+ {
651
+ auto const sql = std::format("SELECT BBOX_SOUTH_BOUND_LAT, BBOX_NORTH_BOUND_LAT, BBOX_WEST_BOUND_LON, BBOX_EAST_BOUND_LON FROM epsg_extent WHERE EXTENT_CODE={}", areaOfUseCode);
652
+
653
+ Stmt const stmt{ _db.get(), sql };
654
+ if (!stmt.Step())
655
+ return std::nullopt;
656
+
657
+ auto const data = stmt.GetData();
658
+ auto const south = TypeOrDefaultValue<double>(data.at("BBOX_SOUTH_BOUND_LAT"));
659
+ auto const north = TypeOrDefaultValue<double>(data.at("BBOX_NORTH_BOUND_LAT"));
660
+ auto const west = TypeOrDefaultValue<double>(data.at("BBOX_WEST_BOUND_LON"));
661
+ auto const east = TypeOrDefaultValue<double>(data.at("BBOX_EAST_BOUND_LON"));
662
+ if (!south || !north || !west || !east)
663
+ return std::nullopt;
664
+
665
+ return Positioning::GeographicBoundingBox{ .SouthBoundLatitudeDegrees = *south, .NorthBoundLatitudeDegrees = *north, .WestBoundLongitudeDegrees = *west, .EastBoundLongitudeDegrees = *east };
666
+ }
667
+
668
+ // Fills AreaOfUse with the extent name, AreaOfUseBoundingBox with the extent bounds and GridFiles with the required grid
669
+ // file names of each candidate operation, from its EPSG code.
650
670
  void EnrichWithAreaAndGrids(std::vector<CoordinateTransformations::CoordinateOperation>& operations)
651
671
  {
652
672
  for (auto& op : operations)
653
673
  {
654
- // An operation without a usage extent gets extent code 0 and an empty area name.
655
- op.AreaOfUse = GetAreaName(GetCoordinateOperationAreaOfUse(op.Code));
674
+ // For an operation without a usage extent, GetCoordinateOperationAreaOfUse returns 0, AreaOfUse is empty and
675
+ // AreaOfUseBoundingBox is std::nullopt.
676
+ auto const areaOfUseCode = GetCoordinateOperationAreaOfUse(op.Code);
677
+ op.AreaOfUse = GetAreaName(areaOfUseCode);
678
+ op.AreaOfUseBoundingBox = GetAreaOfUseBoundingBox(areaOfUseCode);
656
679
  op.GridFiles = GetCoordinateOperationGridFiles(op.Code);
657
680
  }
658
681
  }
@@ -13,7 +13,7 @@ vcpkg_from_github(
13
13
  OUT_SOURCE_PATH SOURCE_PATH
14
14
  REPO digi21/crskit
15
15
  REF "v${VERSION}"
16
- SHA512 85ca1abb07c5b9343b6dd59c9cafa74f3570a2fcdfeeea127e88655232f862e83f5b1592cb033b01ddc788d2ed8e2d5214e6ae83073960df6a82d47e8bbe48a6
16
+ SHA512 cf485820c7f11882c31302788ceabd3b0955bf1e0058be426694132e64de58832cd390245a80e64c9f96c92fa5d00fe2416ce1d8ea9d4c23ec1f150761e305d8
17
17
  HEAD_REF main
18
18
  )
19
19
 
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "crskit",
3
- "version": "0.8.0",
3
+ "version": "0.8.1",
4
4
  "description": "CRS toolkit: coordinate reference systems, WKT (1 and 2) parsing/emission and coordinate transformations, following the OGC Coordinate Transformation Services model.",
5
5
  "homepage": "https://github.com/digi21/crskit",
6
6
  "license": "Apache-2.0",
@@ -4,7 +4,7 @@ build-backend = "scikit_build_core.build"
4
4
 
5
5
  [project]
6
6
  name = "crskit"
7
- version = "0.8.0"
7
+ version = "0.8.1"
8
8
  description = "Coordinate reference systems and coordinate transformations (OGC Coordinate Transformation Services, EPSG, WKT 1 and WKT 2)"
9
9
  # The Python-facing page, which is what PyPI renders. The Readme.md at the root is the C++ project's
10
10
  # front page (vcpkg, CMake, the GIGS suite) and would be the wrong thing to greet a pip user with.
@@ -117,6 +117,25 @@ EPSG:5040 5.0 m Portugal - mainland - onshore
117
117
  Each candidate tells you its `code`, `accuracy` in metres, `area_of_use`, `grid_files` and
118
118
  `information_source` — enough to choose by geography and not only by the smallest number.
119
119
 
120
+ `area_of_use_bounding_box` is the rectangle of the area of use in degrees, or `None` when the
121
+ operation has no extent in the catalogue or the extent lacks any of its four bounds, and
122
+ `contains(latitude_degrees, longitude_degrees)` tells whether a point lies in it, also for the
123
+ rectangles that cross the antimeridian. `crskit.missing_grid_files(operation)` lists the grid files of
124
+ the operation that are not in the data directory, searched as `crskit.transformation` searches them:
125
+
126
+ ```python
127
+ def make_operation_selector_for_point(latitude_degrees, longitude_degrees):
128
+ def select_operation(source_name, target_name, operations):
129
+ operations_containing_point_with_installed_grids = [
130
+ operation for operation in operations
131
+ if operation.area_of_use_bounding_box
132
+ and operation.area_of_use_bounding_box.contains(latitude_degrees, longitude_degrees)
133
+ and not crskit.missing_grid_files(operation)]
134
+ return min(operations_containing_point_with_installed_grids,
135
+ key=lambda operation: operation.accuracy or float("inf"))
136
+ return select_operation
137
+ ```
138
+
120
139
  ## Heights above sea level
121
140
 
122
141
  A GNSS receiver gives an *ellipsoidal* height, which is not the altitude anyone means. Turning it
@@ -31,6 +31,7 @@ from ._crskit import (
31
31
  Crs,
32
32
  CrsError,
33
33
  DimensionMismatchError,
34
+ GeographicBoundingBox,
34
35
  GridFileNotFoundError,
35
36
  MultipleTransformationsFoundError,
36
37
  Transformation,
@@ -43,7 +44,9 @@ from ._crskit import (
43
44
  crs_from_epsg,
44
45
  crs_from_wkt,
45
46
  epsg_version,
47
+ is_grid_file_installed,
46
48
  is_initialized,
49
+ missing_grid_files,
47
50
  transformation,
48
51
  )
49
52
  from ._crskit import init as _init
@@ -86,6 +89,7 @@ __all__ = [
86
89
  "Crs",
87
90
  "CrsError",
88
91
  "DimensionMismatchError",
92
+ "GeographicBoundingBox",
89
93
  "GridFileNotFoundError",
90
94
  "MultipleTransformationsFoundError",
91
95
  "Transformation",
@@ -99,6 +103,8 @@ __all__ = [
99
103
  "crs_from_wkt",
100
104
  "epsg_version",
101
105
  "init",
106
+ "is_grid_file_installed",
102
107
  "is_initialized",
108
+ "missing_grid_files",
103
109
  "transformation",
104
110
  ]
@@ -85,6 +85,38 @@ class UnknownCrsPolicy:
85
85
  @property
86
86
  def value(self) -> int: ...
87
87
 
88
+ class GeographicBoundingBox:
89
+ """Rectangle of an extent of the European Petroleum Survey Group (EPSG) catalogue, in degrees.
90
+
91
+ When west_bound_longitude_degrees is greater than east_bound_longitude_degrees, the rectangle crosses the
92
+ antimeridian and covers the longitudes from west_bound_longitude_degrees to 180 and from -180 to
93
+ east_bound_longitude_degrees.
94
+ """
95
+
96
+ __hash__: ClassVar[None]
97
+
98
+ @property
99
+ def south_bound_latitude_degrees(self) -> float: ...
100
+ @property
101
+ def north_bound_latitude_degrees(self) -> float: ...
102
+ @property
103
+ def west_bound_longitude_degrees(self) -> float: ...
104
+ @property
105
+ def east_bound_longitude_degrees(self) -> float: ...
106
+ @property
107
+ def crosses_antimeridian(self) -> bool:
108
+ """Whether west_bound_longitude_degrees is greater than east_bound_longitude_degrees."""
109
+
110
+ def contains(self, latitude_degrees: SupportsFloat | SupportsIndex, longitude_degrees: SupportsFloat | SupportsIndex) -> bool:
111
+ """Whether the point, in degrees, is inside the rectangle or on its boundary.
112
+
113
+ contains() converts longitude_degrees to the equivalent longitude in the interval [-180, 180]
114
+ degrees, both ends included, before the comparison, so -190 and 170 are the same longitude.
115
+ """
116
+
117
+ def __eq__(self, other: object) -> bool: ...
118
+ def __repr__(self) -> str: ...
119
+
88
120
  class CoordinateOperation:
89
121
  """An EPSG coordinate operation: one of the ways to get from one system to another."""
90
122
 
@@ -104,6 +136,11 @@ class CoordinateOperation:
104
136
  def grid_files(self) -> list[str]:
105
137
  """The grid file(s) the operation needs, empty when it needs none."""
106
138
 
139
+ @property
140
+ def area_of_use_bounding_box(self) -> GeographicBoundingBox | None:
141
+ """The rectangle of the extent named by area_of_use, or None when the operation has no extent
142
+ in the catalogue or the extent lacks any of its four bounds."""
143
+
107
144
  @property
108
145
  def scope(self) -> str | None: ...
109
146
  @property
@@ -189,6 +226,21 @@ def is_initialized() -> bool:
189
226
  def epsg_version() -> str:
190
227
  """The EPSG Geodetic Parameter Dataset version of the active database (e.g. '12.057')."""
191
228
 
229
+ def is_grid_file_installed(grid_file: str) -> bool:
230
+ """Whether the grid file, named as in CoordinateOperation.grid_files, is in the data directory.
231
+
232
+ The file is searched as grid_file or, if grid_file ends in '.gz', as the name without '.gz',
233
+ which the reader of the Earth Gravitational Model 2008 (EGM2008) opens. The format of the file
234
+ is not checked: a compressed '.gz' file counts as installed.
235
+ """
236
+
237
+ def missing_grid_files(operation: CoordinateOperation) -> list[str]:
238
+ """The names in operation.grid_files for which is_grid_file_installed() returns False.
239
+
240
+ Empty when every grid file is installed. For the method Norway Offshore Interpolation (EPSG 9620),
241
+ grid_files holds names of coordinate operations instead of file names, so the result is empty.
242
+ """
243
+
192
244
  def crs_from_epsg(code: SupportsInt | SupportsIndex) -> Crs:
193
245
  """The coordinate reference system with this EPSG code."""
194
246
 
@@ -10,8 +10,6 @@ untouched and only the height changes, from ellipsoidal to orthometric.
10
10
  Needs an EGM2008 grid; see the README for where to get it, and point CRSKIT_GRIDS at the folder.
11
11
  """
12
12
 
13
- from pathlib import Path
14
-
15
13
  from _setup import initialise
16
14
 
17
15
  import crskit
@@ -32,22 +30,15 @@ def the_grid_i_have(source_name, target_name, operations):
32
30
  """Prefer the grid that is already in the data directory; fall back to the most accurate."""
33
31
  global chosen
34
32
 
35
- grids = grids_on_disk()
36
33
  for operation in sorted(operations, key=lambda o: o.accuracy or float("inf")):
37
- have = all(grid in grids for grid in operation.grid_files)
34
+ have = not crskit.missing_grid_files(operation)
38
35
  print(f" EPSG:{operation.code} {operation.accuracy} m {operation.grid_files[0]}"
39
36
  f"{' <- on disk' if have else ''}")
40
37
  if have and chosen is None:
41
38
  chosen = operation
42
39
 
43
- return chosen or min(operations, key=lambda o: o.accuracy or float("inf"))
44
-
45
-
46
- def grids_on_disk() -> set[str]:
47
- import os
48
-
49
- folder = os.environ.get("CRSKIT_GRIDS")
50
- return {path.name for path in Path(folder).iterdir()} if folder else set()
40
+ chosen = chosen or min(operations, key=lambda o: o.accuracy or float("inf"))
41
+ return chosen
51
42
 
52
43
 
53
44
  try:
@@ -14,6 +14,7 @@
14
14
  #include <vector>
15
15
 
16
16
  #include <pybind11/numpy.h>
17
+ #include <pybind11/operators.h>
17
18
  #include <pybind11/pybind11.h>
18
19
  #include <pybind11/stl.h>
19
20
  #include <pybind11/stl/filesystem.h>
@@ -27,6 +28,7 @@ using CrsKit::CoordinateSystems::CoordinateSystem;
27
28
  using CrsKit::CoordinateTransformations::CoordinateOperation;
28
29
  using CrsKit::CoordinateTransformations::ICoordinateTransformation;
29
30
  using CrsKit::CoordinateTransformations::IMathTransform;
31
+ using CrsKit::Positioning::GeographicBoundingBox;
30
32
 
31
33
  namespace
32
34
  {
@@ -259,6 +261,29 @@ PYBIND11_MODULE(_crskit, m)
259
261
  // ---------------------------------------------------------------------------------------
260
262
  // Choosing between candidate coordinate operations
261
263
  // ---------------------------------------------------------------------------------------
264
+ py::class_<GeographicBoundingBox>(m, "GeographicBoundingBox",
265
+ "Rectangle of an extent of the European Petroleum Survey Group (EPSG) catalogue, in degrees. When\n"
266
+ "west_bound_longitude_degrees is greater than east_bound_longitude_degrees, the rectangle crosses\n"
267
+ "the antimeridian and covers the longitudes from west_bound_longitude_degrees to 180 and from -180\n"
268
+ "to east_bound_longitude_degrees.")
269
+ .def_property_readonly("south_bound_latitude_degrees", [](GeographicBoundingBox const& self) { return self.SouthBoundLatitudeDegrees; })
270
+ .def_property_readonly("north_bound_latitude_degrees", [](GeographicBoundingBox const& self) { return self.NorthBoundLatitudeDegrees; })
271
+ .def_property_readonly("west_bound_longitude_degrees", [](GeographicBoundingBox const& self) { return self.WestBoundLongitudeDegrees; })
272
+ .def_property_readonly("east_bound_longitude_degrees", [](GeographicBoundingBox const& self) { return self.EastBoundLongitudeDegrees; })
273
+ .def_property_readonly("crosses_antimeridian", &GeographicBoundingBox::CrossesAntimeridian,
274
+ "Whether west_bound_longitude_degrees is greater than east_bound_longitude_degrees.")
275
+ .def("contains", &GeographicBoundingBox::Contains, py::arg("latitude_degrees"), py::arg("longitude_degrees"),
276
+ "Whether the point, in degrees, is inside the rectangle or on its boundary. contains() converts\n"
277
+ "longitude_degrees to the equivalent longitude in the interval [-180, 180] degrees, both ends\n"
278
+ "included, before the comparison, so -190 and 170 are the same longitude.")
279
+ .def(py::self == py::self)
280
+ .def("__repr__",
281
+ [](GeographicBoundingBox const& self)
282
+ {
283
+ return std::format("<GeographicBoundingBox S {} N {} W {} E {}>",
284
+ self.SouthBoundLatitudeDegrees, self.NorthBoundLatitudeDegrees, self.WestBoundLongitudeDegrees, self.EastBoundLongitudeDegrees);
285
+ });
286
+
262
287
  py::class_<CoordinateOperation>(m, "CoordinateOperation",
263
288
  "An EPSG coordinate operation: one of the ways to get from one system to another. When several\n"
264
289
  "apply, transformation() hands them to the select_operation callback so the caller can choose.")
@@ -274,6 +299,13 @@ PYBIND11_MODULE(_crskit, m)
274
299
  "The geographic extent the operation is valid in: choose by geography, not only by accuracy.")
275
300
  .def_property_readonly("grid_files", [](CoordinateOperation const& self) { return self.GridFiles; },
276
301
  "The grid file(s) the operation needs, empty when it needs none.")
302
+ .def_property_readonly("area_of_use_bounding_box",
303
+ [](CoordinateOperation const& self) -> py::object
304
+ {
305
+ return self.AreaOfUseBoundingBox ? py::cast(*self.AreaOfUseBoundingBox) : py::none();
306
+ },
307
+ "The rectangle of the extent named by area_of_use, or None when the operation has no extent in\n"
308
+ "the catalogue or the extent lacks any of its four bounds.")
277
309
  .def_property_readonly("scope",
278
310
  [](CoordinateOperation const& self) -> py::object
279
311
  {
@@ -339,6 +371,29 @@ PYBIND11_MODULE(_crskit, m)
339
371
  },
340
372
  "The EPSG Geodetic Parameter Dataset version of the active database (e.g. '12.057').");
341
373
 
374
+ m.def("is_grid_file_installed",
375
+ [](std::string const& grid_file)
376
+ {
377
+ RequireInitialized();
378
+ return CrsKit::IsGridFileInstalled(grid_file);
379
+ },
380
+ py::arg("grid_file"),
381
+ "Whether the grid file, named as in CoordinateOperation.grid_files, is in the data directory as\n"
382
+ "grid_file or, if grid_file ends in '.gz', as the name without '.gz', which the reader of the Earth\n"
383
+ "Gravitational Model 2008 (EGM2008) opens. The format of the file is not checked: a compressed\n"
384
+ "'.gz' file counts as installed.");
385
+
386
+ m.def("missing_grid_files",
387
+ [](CoordinateOperation const& operation)
388
+ {
389
+ RequireInitialized();
390
+ return CrsKit::GetMissingGridFiles(operation);
391
+ },
392
+ py::arg("operation"),
393
+ "The names in operation.grid_files for which is_grid_file_installed() returns False; empty when\n"
394
+ "every grid file is installed. For the method Norway Offshore Interpolation (EPSG 9620),\n"
395
+ "grid_files holds names of coordinate operations instead of file names, so the result is empty.");
396
+
342
397
  m.def("crs_from_epsg",
343
398
  [](int code)
344
399
  {
@@ -5,6 +5,7 @@ the crskit-epsg package when it is installed. Without either, the suite skips it
5
5
  """
6
6
 
7
7
  import os
8
+ import struct
8
9
  from pathlib import Path
9
10
 
10
11
  import pytest
@@ -170,6 +171,90 @@ def test_an_ambiguous_pair_without_select_operation_raises_multiple_transformati
170
171
  assert isinstance(exception_info.value, crskit.TransformationNotFoundError)
171
172
 
172
173
 
174
+ def _candidate_operations(source_code, target_code, chosen_code):
175
+ """The candidate operations that transformation() passes to select_operation, which returns chosen_code."""
176
+ candidates = []
177
+
178
+ def select_operation_by_code(source_name, target_name, operations):
179
+ candidates.extend(operations)
180
+ return chosen_code
181
+
182
+ try:
183
+ crskit.transformation(crskit.crs_from_epsg(source_code), crskit.crs_from_epsg(target_code), select_operation=select_operation_by_code)
184
+ except crskit.GridFileNotFoundError:
185
+ pass
186
+ return {operation.code: operation for operation in candidates}
187
+
188
+
189
+ def test_area_of_use_bounding_boxes_of_operations_1311_and_1633():
190
+ # Among the 37 datum shifts from European Datum 1950 (ED50, EPSG:4230) to World Geodetic System 1984 (WGS 84,
191
+ # EPSG:4326), the area of use of EPSG 1311 (Europe - common offshore) does not contain Madrid and the area of use of
192
+ # EPSG 1633 (Spain - mainland except northwest) does.
193
+ operations = _candidate_operations(4230, 4326, 1633)
194
+
195
+ operation_1311_bounding_box = operations[1311].area_of_use_bounding_box
196
+ assert operation_1311_bounding_box.south_bound_latitude_degrees == 47.42
197
+ assert operation_1311_bounding_box.north_bound_latitude_degrees == 63.89
198
+ assert operation_1311_bounding_box.west_bound_longitude_degrees == -16.1
199
+ assert operation_1311_bounding_box.east_bound_longitude_degrees == 10.86
200
+ assert not operation_1311_bounding_box.contains(40.41, -3.71)
201
+
202
+ operation_1633_bounding_box = operations[1633].area_of_use_bounding_box
203
+ assert operation_1633_bounding_box.contains(40.41, -3.71)
204
+ assert not operation_1633_bounding_box.crosses_antimeridian
205
+
206
+
207
+ def test_bounding_box_crossing_the_antimeridian_contains_points_on_both_sides_inside_its_bounds():
208
+ # EPSG 1254 (Pulkovo 1942 to WGS 84 (1)), one of the 13 operations from EPSG:4284 to EPSG:4326, Russia - onshore:
209
+ # from longitude 19.58 degrees eastward to -168.97 degrees, across the antimeridian.
210
+ operation_1254_bounding_box = _candidate_operations(4284, 4326, 1254)[1254].area_of_use_bounding_box
211
+
212
+ assert operation_1254_bounding_box.west_bound_longitude_degrees == 19.58
213
+ assert operation_1254_bounding_box.east_bound_longitude_degrees == -168.97
214
+ assert operation_1254_bounding_box.crosses_antimeridian
215
+ assert operation_1254_bounding_box.contains(66.0, 170.0)
216
+ assert operation_1254_bounding_box.contains(66.0, 180.0)
217
+ assert operation_1254_bounding_box.contains(66.0, -172.0)
218
+ assert not operation_1254_bounding_box.contains(66.0, -160.0)
219
+ assert not operation_1254_bounding_box.contains(66.0, 0.0)
220
+
221
+
222
+ def _write_synthetic_egm2008_grid(grid_file_path, undulation):
223
+ # 101 rows of 200 little-endian floats, each row between two 4-byte FORTRAN record markers: 81608 bytes.
224
+ grid_file_path.write_bytes(struct.pack("<202f", 0.0, *([undulation] * 200), 0.0) * 101)
225
+
226
+
227
+ def test_grid_files_are_found_with_the_search_of_the_transformation(tmp_path):
228
+ # EPSG 3859 (WGS 84 to EGM2008 height (2)) needs the 1 arc-minute EGM2008 grid, which the test writes to an empty
229
+ # data directory.
230
+ grid_file_name = "Und_min1x1_egm2008_isw=82_WGS84_TideFree"
231
+ crskit.init(EPSG_DATABASE, tmp_path)
232
+ try:
233
+ geoid_height_operation = _candidate_operations(4979, 3855, 3859)[3859]
234
+ assert geoid_height_operation.grid_files == [grid_file_name]
235
+ assert not crskit.is_grid_file_installed(grid_file_name)
236
+ assert crskit.missing_grid_files(geoid_height_operation) == [grid_file_name]
237
+
238
+ _write_synthetic_egm2008_grid(tmp_path / grid_file_name, 30.0)
239
+ assert crskit.is_grid_file_installed(grid_file_name)
240
+ assert crskit.is_grid_file_installed(grid_file_name + ".gz")
241
+ assert crskit.missing_grid_files(geoid_height_operation) == []
242
+
243
+ transformation = crskit.transformation(
244
+ crskit.crs_from_epsg(4979), crskit.crs_from_epsg(3855), select_operation=lambda source_name, target_name, operations: 3859
245
+ )
246
+ assert transformation.transform([0.0, 0.0, 100.0])[2] == pytest.approx(70.0, abs=1e-3)
247
+ finally:
248
+ crskit.init(EPSG_DATABASE)
249
+
250
+
251
+ def test_missing_grid_files_is_empty_for_norway_offshore_interpolation():
252
+ # EPSG 1450 uses the method Norway Offshore Interpolation (EPSG 9620): its grid_files are names of operations.
253
+ norway_offshore_operation = _candidate_operations(4230, 4326, 1633)[1450]
254
+ assert norway_offshore_operation.grid_files
255
+ assert crskit.missing_grid_files(norway_offshore_operation) == []
256
+
257
+
173
258
  class TestNumPy:
174
259
  """transform_points() is the bulk path: one crossing of the boundary for N points."""
175
260