crskit 0.8.0__tar.gz → 0.8.2__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 (389) hide show
  1. {crskit-0.8.0 → crskit-0.8.2}/PKG-INFO +20 -1
  2. {crskit-0.8.0 → crskit-0.8.2}/crskit/CoordinateTransformations/Algorithms/Geographic3DToGravityRelatedHeightEGM.cpp +1 -1
  3. {crskit-0.8.0 → crskit-0.8.2}/crskit/CoordinateTransformations/Algorithms/Geographic3DToGravityRelatedHeightEGM2008.cpp +12 -7
  4. {crskit-0.8.0 → crskit-0.8.2}/crskit/CoordinateTransformations/Algorithms/Geographic3DToGravityRelatedHeightEGM2008.h +5 -0
  5. {crskit-0.8.0 → crskit-0.8.2}/crskit/CoordinateTransformations/Algorithms/GridFiles/GridAusGeoid.cpp +2 -2
  6. {crskit-0.8.0 → crskit-0.8.2}/crskit/CoordinateTransformations/Algorithms/GridFiles/GridEGM2008.cpp +1 -1
  7. {crskit-0.8.0 → crskit-0.8.2}/crskit/CoordinateTransformations/Algorithms/GridFiles/GridEGM2008Rednap.cpp +2 -2
  8. {crskit-0.8.0 → crskit-0.8.2}/crskit/CoordinateTransformations/Algorithms/GridFiles/GridGtg.cpp +2 -2
  9. {crskit-0.8.0 → crskit-0.8.2}/crskit/CoordinateTransformations/Algorithms/GridFiles/GridGtx.cpp +2 -2
  10. {crskit-0.8.0 → crskit-0.8.2}/crskit/CoordinateTransformations/Algorithms/NadCon.cpp +1 -1
  11. {crskit-0.8.0 → crskit-0.8.2}/crskit/CoordinateTransformations/Algorithms/Ntv2.cpp +1 -1
  12. {crskit-0.8.0 → crskit-0.8.2}/crskit/CoordinateTransformations/CoordinateOperation.h +5 -0
  13. {crskit-0.8.0 → crskit-0.8.2}/crskit/CrsContext.h +2 -2
  14. {crskit-0.8.0 → crskit-0.8.2}/crskit/CrsKit.h +12 -0
  15. {crskit-0.8.0 → crskit-0.8.2}/crskit/EsriProjectionEngine.cpp +1 -1
  16. crskit-0.8.2/crskit/GridFiles.cpp +41 -0
  17. {crskit-0.8.0 → crskit-0.8.2}/crskit/IUtilities.h +4 -0
  18. crskit-0.8.2/crskit/Positioning/GeographicBoundingBox.h +46 -0
  19. {crskit-0.8.0 → crskit-0.8.2}/crskit/SqliteProvider.h +28 -4
  20. {crskit-0.8.0 → crskit-0.8.2}/crskit/StringUtil.h +16 -0
  21. {crskit-0.8.0 → crskit-0.8.2}/crskit/Utilities.cpp +8 -8
  22. crskit-0.8.2/data/grid-sources.json +3107 -0
  23. {crskit-0.8.0 → crskit-0.8.2}/ports/crskit/portfile.cmake +1 -1
  24. {crskit-0.8.0 → crskit-0.8.2}/ports/crskit/vcpkg.json +1 -1
  25. {crskit-0.8.0 → crskit-0.8.2}/pyproject.toml +1 -1
  26. {crskit-0.8.0 → crskit-0.8.2}/python/README.md +19 -0
  27. {crskit-0.8.0 → crskit-0.8.2}/python/crskit/__init__.py +6 -0
  28. {crskit-0.8.0 → crskit-0.8.2}/python/crskit/_crskit.pyi +52 -0
  29. {crskit-0.8.0 → crskit-0.8.2}/python/examples/06_global_geoid.py +3 -12
  30. {crskit-0.8.0 → crskit-0.8.2}/python/src/module.cpp +59 -4
  31. {crskit-0.8.0 → crskit-0.8.2}/python/tests/test_crskit.py +85 -0
  32. crskit-0.8.2/tests/TestAreaOfUseBoundingBox.cpp +149 -0
  33. {crskit-0.8.0 → crskit-0.8.2}/tests/TestGridFile.cpp +77 -0
  34. crskit-0.8.2/tests/TestNonAsciiPaths.cpp +265 -0
  35. {crskit-0.8.0 → crskit-0.8.2}/versions/baseline.json +1 -1
  36. {crskit-0.8.0 → crskit-0.8.2}/versions/c-/crskit.json +10 -0
  37. crskit-0.8.0/data/grid-sources.json +0 -26
  38. {crskit-0.8.0 → crskit-0.8.2}/.gitattributes +0 -0
  39. {crskit-0.8.0 → crskit-0.8.2}/.github/workflows/ci.yml +0 -0
  40. {crskit-0.8.0 → crskit-0.8.2}/.github/workflows/epsg.yml +0 -0
  41. {crskit-0.8.0 → crskit-0.8.2}/.github/workflows/wheels.yml +0 -0
  42. {crskit-0.8.0 → crskit-0.8.2}/.gitignore +0 -0
  43. {crskit-0.8.0 → crskit-0.8.2}/CMakeLists.txt +0 -0
  44. {crskit-0.8.0 → crskit-0.8.2}/CMakePresets.json +0 -0
  45. {crskit-0.8.0 → crskit-0.8.2}/LICENSE +0 -0
  46. {crskit-0.8.0 → crskit-0.8.2}/Readme.md +0 -0
  47. {crskit-0.8.0 → crskit-0.8.2}/branding/crskit-logo-128.png +0 -0
  48. {crskit-0.8.0 → crskit-0.8.2}/branding/crskit-logo-256.png +0 -0
  49. {crskit-0.8.0 → crskit-0.8.2}/branding/crskit-logo-512.png +0 -0
  50. {crskit-0.8.0 → crskit-0.8.2}/branding/crskit-logo-64.png +0 -0
  51. {crskit-0.8.0 → crskit-0.8.2}/branding/crskit-logo.svg +0 -0
  52. {crskit-0.8.0 → crskit-0.8.2}/branding/crskit.ico +0 -0
  53. {crskit-0.8.0 → crskit-0.8.2}/cmake/crskit-config.cmake.in +0 -0
  54. {crskit-0.8.0 → crskit-0.8.2}/crskit/CoordinateSystems/AngularUnit.cpp +0 -0
  55. {crskit-0.8.0 → crskit-0.8.2}/crskit/CoordinateSystems/AngularUnit.h +0 -0
  56. {crskit-0.8.0 → crskit-0.8.2}/crskit/CoordinateSystems/AxisInfo.h +0 -0
  57. {crskit-0.8.0 → crskit-0.8.2}/crskit/CoordinateSystems/AxisOrientationEnum.h +0 -0
  58. {crskit-0.8.0 → crskit-0.8.2}/crskit/CoordinateSystems/BaseInfo.h +0 -0
  59. {crskit-0.8.0 → crskit-0.8.2}/crskit/CoordinateSystems/CompoundCoordinateSystem.cpp +0 -0
  60. {crskit-0.8.0 → crskit-0.8.2}/crskit/CoordinateSystems/CompoundCoordinateSystem.h +0 -0
  61. {crskit-0.8.0 → crskit-0.8.2}/crskit/CoordinateSystems/CoordinateSystem.cpp +0 -0
  62. {crskit-0.8.0 → crskit-0.8.2}/crskit/CoordinateSystems/CoordinateSystem.h +0 -0
  63. {crskit-0.8.0 → crskit-0.8.2}/crskit/CoordinateSystems/CoordinateSystemAuthorityFactory.cpp +0 -0
  64. {crskit-0.8.0 → crskit-0.8.2}/crskit/CoordinateSystems/CoordinateSystemAuthorityFactory.h +0 -0
  65. {crskit-0.8.0 → crskit-0.8.2}/crskit/CoordinateSystems/CoordinateSystemEquivalence.cpp +0 -0
  66. {crskit-0.8.0 → crskit-0.8.2}/crskit/CoordinateSystems/CoordinateSystemFactory.cpp +0 -0
  67. {crskit-0.8.0 → crskit-0.8.2}/crskit/CoordinateSystems/CoordinateSystemFactory.h +0 -0
  68. {crskit-0.8.0 → crskit-0.8.2}/crskit/CoordinateSystems/Datum.cpp +0 -0
  69. {crskit-0.8.0 → crskit-0.8.2}/crskit/CoordinateSystems/Datum.h +0 -0
  70. {crskit-0.8.0 → crskit-0.8.2}/crskit/CoordinateSystems/DatumType.h +0 -0
  71. {crskit-0.8.0 → crskit-0.8.2}/crskit/CoordinateSystems/Ellipsoid.cpp +0 -0
  72. {crskit-0.8.0 → crskit-0.8.2}/crskit/CoordinateSystems/Ellipsoid.h +0 -0
  73. {crskit-0.8.0 → crskit-0.8.2}/crskit/CoordinateSystems/GeocentricCoordinateSystem.cpp +0 -0
  74. {crskit-0.8.0 → crskit-0.8.2}/crskit/CoordinateSystems/GeocentricCoordinateSystem.h +0 -0
  75. {crskit-0.8.0 → crskit-0.8.2}/crskit/CoordinateSystems/GeographicCoordinateSystem.cpp +0 -0
  76. {crskit-0.8.0 → crskit-0.8.2}/crskit/CoordinateSystems/GeographicCoordinateSystem.h +0 -0
  77. {crskit-0.8.0 → crskit-0.8.2}/crskit/CoordinateSystems/HorizontalCoordinateSystem.cpp +0 -0
  78. {crskit-0.8.0 → crskit-0.8.2}/crskit/CoordinateSystems/HorizontalCoordinateSystem.h +0 -0
  79. {crskit-0.8.0 → crskit-0.8.2}/crskit/CoordinateSystems/HorizontalDatum.cpp +0 -0
  80. {crskit-0.8.0 → crskit-0.8.2}/crskit/CoordinateSystems/HorizontalDatum.h +0 -0
  81. {crskit-0.8.0 → crskit-0.8.2}/crskit/CoordinateSystems/ICompoundCoordinateSystem.h +0 -0
  82. {crskit-0.8.0 → crskit-0.8.2}/crskit/CoordinateSystems/ICoordinateSystem.h +0 -0
  83. {crskit-0.8.0 → crskit-0.8.2}/crskit/CoordinateSystems/ICoordinateSystemAuthorityFactory.h +0 -0
  84. {crskit-0.8.0 → crskit-0.8.2}/crskit/CoordinateSystems/IDatum.h +0 -0
  85. {crskit-0.8.0 → crskit-0.8.2}/crskit/CoordinateSystems/IGeocentricCoordinateSystem.h +0 -0
  86. {crskit-0.8.0 → crskit-0.8.2}/crskit/CoordinateSystems/IGeographicCoordinateSystem.h +0 -0
  87. {crskit-0.8.0 → crskit-0.8.2}/crskit/CoordinateSystems/IHorizontalCoordinateSystem.h +0 -0
  88. {crskit-0.8.0 → crskit-0.8.2}/crskit/CoordinateSystems/IHorizontalDatum.h +0 -0
  89. {crskit-0.8.0 → crskit-0.8.2}/crskit/CoordinateSystems/IInfo.h +0 -0
  90. {crskit-0.8.0 → crskit-0.8.2}/crskit/CoordinateSystems/ILocalCoordinateSystem.h +0 -0
  91. {crskit-0.8.0 → crskit-0.8.2}/crskit/CoordinateSystems/ILocalDatum.h +0 -0
  92. {crskit-0.8.0 → crskit-0.8.2}/crskit/CoordinateSystems/IProjectedCoordinateSystem.h +0 -0
  93. {crskit-0.8.0 → crskit-0.8.2}/crskit/CoordinateSystems/IProjection.h +0 -0
  94. {crskit-0.8.0 → crskit-0.8.2}/crskit/CoordinateSystems/IVerticalCoordinateSystem.h +0 -0
  95. {crskit-0.8.0 → crskit-0.8.2}/crskit/CoordinateSystems/IVerticalDatum.h +0 -0
  96. {crskit-0.8.0 → crskit-0.8.2}/crskit/CoordinateSystems/LinearUnit.cpp +0 -0
  97. {crskit-0.8.0 → crskit-0.8.2}/crskit/CoordinateSystems/LinearUnit.h +0 -0
  98. {crskit-0.8.0 → crskit-0.8.2}/crskit/CoordinateSystems/LocalCoordinateSystem.cpp +0 -0
  99. {crskit-0.8.0 → crskit-0.8.2}/crskit/CoordinateSystems/LocalCoordinateSystem.h +0 -0
  100. {crskit-0.8.0 → crskit-0.8.2}/crskit/CoordinateSystems/LocalDatum.cpp +0 -0
  101. {crskit-0.8.0 → crskit-0.8.2}/crskit/CoordinateSystems/LocalDatum.h +0 -0
  102. {crskit-0.8.0 → crskit-0.8.2}/crskit/CoordinateSystems/PrimeMeridian.cpp +0 -0
  103. {crskit-0.8.0 → crskit-0.8.2}/crskit/CoordinateSystems/PrimeMeridian.h +0 -0
  104. {crskit-0.8.0 → crskit-0.8.2}/crskit/CoordinateSystems/ProjectedCoordinateSystem.cpp +0 -0
  105. {crskit-0.8.0 → crskit-0.8.2}/crskit/CoordinateSystems/ProjectedCoordinateSystem.h +0 -0
  106. {crskit-0.8.0 → crskit-0.8.2}/crskit/CoordinateSystems/Projection.cpp +0 -0
  107. {crskit-0.8.0 → crskit-0.8.2}/crskit/CoordinateSystems/Projection.h +0 -0
  108. {crskit-0.8.0 → crskit-0.8.2}/crskit/CoordinateSystems/Unit.h +0 -0
  109. {crskit-0.8.0 → crskit-0.8.2}/crskit/CoordinateSystems/VerticalCoordinateSystem.cpp +0 -0
  110. {crskit-0.8.0 → crskit-0.8.2}/crskit/CoordinateSystems/VerticalCoordinateSystem.h +0 -0
  111. {crskit-0.8.0 → crskit-0.8.2}/crskit/CoordinateSystems/VerticalDatum.cpp +0 -0
  112. {crskit-0.8.0 → crskit-0.8.2}/crskit/CoordinateSystems/VerticalDatum.h +0 -0
  113. {crskit-0.8.0 → crskit-0.8.2}/crskit/CoordinateSystems/Wgs84ConversionInfo.h +0 -0
  114. {crskit-0.8.0 → crskit-0.8.2}/crskit/CoordinateSystems/Wkt2.cpp +0 -0
  115. {crskit-0.8.0 → crskit-0.8.2}/crskit/CoordinateSystems/Wkt2.h +0 -0
  116. {crskit-0.8.0 → crskit-0.8.2}/crskit/CoordinateTransformationOptions.h +0 -0
  117. {crskit-0.8.0 → crskit-0.8.2}/crskit/CoordinateTransformations/Algorithms/Affine.cpp +0 -0
  118. {crskit-0.8.0 → crskit-0.8.2}/crskit/CoordinateTransformations/Algorithms/Afine.h +0 -0
  119. {crskit-0.8.0 → crskit-0.8.2}/crskit/CoordinateTransformations/Algorithms/AlbersConicEqualArea.cpp +0 -0
  120. {crskit-0.8.0 → crskit-0.8.2}/crskit/CoordinateTransformations/Algorithms/AlbersConicEqualArea.h +0 -0
  121. {crskit-0.8.0 → crskit-0.8.2}/crskit/CoordinateTransformations/Algorithms/AmericanPolyconic.cpp +0 -0
  122. {crskit-0.8.0 → crskit-0.8.2}/crskit/CoordinateTransformations/Algorithms/AmericanPolyconic.h +0 -0
  123. {crskit-0.8.0 → crskit-0.8.2}/crskit/CoordinateTransformations/Algorithms/Authalic.h +0 -0
  124. {crskit-0.8.0 → crskit-0.8.2}/crskit/CoordinateTransformations/Algorithms/AzimuthalProjections.cpp +0 -0
  125. {crskit-0.8.0 → crskit-0.8.2}/crskit/CoordinateTransformations/Algorithms/AzimuthalProjections.h +0 -0
  126. {crskit-0.8.0 → crskit-0.8.2}/crskit/CoordinateTransformations/Algorithms/CassiniSoldner.cpp +0 -0
  127. {crskit-0.8.0 → crskit-0.8.2}/crskit/CoordinateTransformations/Algorithms/CassiniSoldner.h +0 -0
  128. {crskit-0.8.0 → crskit-0.8.2}/crskit/CoordinateTransformations/Algorithms/CoordinateFrameRotation.cpp +0 -0
  129. {crskit-0.8.0 → crskit-0.8.2}/crskit/CoordinateTransformations/Algorithms/CoordinateFrameRotation.h +0 -0
  130. {crskit-0.8.0 → crskit-0.8.2}/crskit/CoordinateTransformations/Algorithms/CylindricalProjections.cpp +0 -0
  131. {crskit-0.8.0 → crskit-0.8.2}/crskit/CoordinateTransformations/Algorithms/CylindricalProjections.h +0 -0
  132. {crskit-0.8.0 → crskit-0.8.2}/crskit/CoordinateTransformations/Algorithms/GeocentricToTopocentric.cpp +0 -0
  133. {crskit-0.8.0 → crskit-0.8.2}/crskit/CoordinateTransformations/Algorithms/GeocentricToTopocentric.h +0 -0
  134. {crskit-0.8.0 → crskit-0.8.2}/crskit/CoordinateTransformations/Algorithms/GeocentricTranslations.cpp +0 -0
  135. {crskit-0.8.0 → crskit-0.8.2}/crskit/CoordinateTransformations/Algorithms/GeocentricTranslations.h +0 -0
  136. {crskit-0.8.0 → crskit-0.8.2}/crskit/CoordinateTransformations/Algorithms/Geodesic.h +0 -0
  137. {crskit-0.8.0 → crskit-0.8.2}/crskit/CoordinateTransformations/Algorithms/Geographic2D2Geocentric.cpp +0 -0
  138. {crskit-0.8.0 → crskit-0.8.2}/crskit/CoordinateTransformations/Algorithms/Geographic2D2Geocentric.h +0 -0
  139. {crskit-0.8.0 → crskit-0.8.2}/crskit/CoordinateTransformations/Algorithms/Geographic2D2Geographic3D.cpp +0 -0
  140. {crskit-0.8.0 → crskit-0.8.2}/crskit/CoordinateTransformations/Algorithms/Geographic2D2Geographic3D.h +0 -0
  141. {crskit-0.8.0 → crskit-0.8.2}/crskit/CoordinateTransformations/Algorithms/Geographic3DToGravityRelatedHeightEGM.h +0 -0
  142. {crskit-0.8.0 → crskit-0.8.2}/crskit/CoordinateTransformations/Algorithms/GridFiles/GridAusGeoid.h +0 -0
  143. {crskit-0.8.0 → crskit-0.8.2}/crskit/CoordinateTransformations/Algorithms/GridFiles/GridEGM2008.h +0 -0
  144. {crskit-0.8.0 → crskit-0.8.2}/crskit/CoordinateTransformations/Algorithms/GridFiles/GridEGM2008Rednap.h +0 -0
  145. {crskit-0.8.0 → crskit-0.8.2}/crskit/CoordinateTransformations/Algorithms/GridFiles/GridGtg.h +0 -0
  146. {crskit-0.8.0 → crskit-0.8.2}/crskit/CoordinateTransformations/Algorithms/GridFiles/GridGtx.h +0 -0
  147. {crskit-0.8.0 → crskit-0.8.2}/crskit/CoordinateTransformations/Algorithms/GridFiles/Inflate.cpp +0 -0
  148. {crskit-0.8.0 → crskit-0.8.2}/crskit/CoordinateTransformations/Algorithms/GridFiles/Inflate.h +0 -0
  149. {crskit-0.8.0 → crskit-0.8.2}/crskit/CoordinateTransformations/Algorithms/HotineObliqueMercator.cpp +0 -0
  150. {crskit-0.8.0 → crskit-0.8.2}/crskit/CoordinateTransformations/Algorithms/HotineObliqueMercator.h +0 -0
  151. {crskit-0.8.0 → crskit-0.8.2}/crskit/CoordinateTransformations/Algorithms/Krovak.cpp +0 -0
  152. {crskit-0.8.0 → crskit-0.8.2}/crskit/CoordinateTransformations/Algorithms/Krovak.h +0 -0
  153. {crskit-0.8.0 → crskit-0.8.2}/crskit/CoordinateTransformations/Algorithms/LambertAzimuthalEqualArea.cpp +0 -0
  154. {crskit-0.8.0 → crskit-0.8.2}/crskit/CoordinateTransformations/Algorithms/LambertAzimuthalEqualArea.h +0 -0
  155. {crskit-0.8.0 → crskit-0.8.2}/crskit/CoordinateTransformations/Algorithms/LambertConformalConic1SP.cpp +0 -0
  156. {crskit-0.8.0 → crskit-0.8.2}/crskit/CoordinateTransformations/Algorithms/LambertConformalConic1SP.h +0 -0
  157. {crskit-0.8.0 → crskit-0.8.2}/crskit/CoordinateTransformations/Algorithms/LambertConformalConic2SP.cpp +0 -0
  158. {crskit-0.8.0 → crskit-0.8.2}/crskit/CoordinateTransformations/Algorithms/LambertConformalConic2SP.h +0 -0
  159. {crskit-0.8.0 → crskit-0.8.2}/crskit/CoordinateTransformations/Algorithms/LambertConicConformalVariants.cpp +0 -0
  160. {crskit-0.8.0 → crskit-0.8.2}/crskit/CoordinateTransformations/Algorithms/LambertConicConformalVariants.h +0 -0
  161. {crskit-0.8.0 → crskit-0.8.2}/crskit/CoordinateTransformations/Algorithms/LongitudeRotation.cpp +0 -0
  162. {crskit-0.8.0 → crskit-0.8.2}/crskit/CoordinateTransformations/Algorithms/LongitudeRotation.h +0 -0
  163. {crskit-0.8.0 → crskit-0.8.2}/crskit/CoordinateTransformations/Algorithms/MapProjectionBase.cpp +0 -0
  164. {crskit-0.8.0 → crskit-0.8.2}/crskit/CoordinateTransformations/Algorithms/MapProjectionBase.h +0 -0
  165. {crskit-0.8.0 → crskit-0.8.2}/crskit/CoordinateTransformations/Algorithms/Mercator1Sp.cpp +0 -0
  166. {crskit-0.8.0 → crskit-0.8.2}/crskit/CoordinateTransformations/Algorithms/Mercator1Sp.h +0 -0
  167. {crskit-0.8.0 → crskit-0.8.2}/crskit/CoordinateTransformations/Algorithms/Mercator2Sp.cpp +0 -0
  168. {crskit-0.8.0 → crskit-0.8.2}/crskit/CoordinateTransformations/Algorithms/Mercator2Sp.h +0 -0
  169. {crskit-0.8.0 → crskit-0.8.2}/crskit/CoordinateTransformations/Algorithms/MolodenskyBadekas.cpp +0 -0
  170. {crskit-0.8.0 → crskit-0.8.2}/crskit/CoordinateTransformations/Algorithms/MolodenskyBadekas.h +0 -0
  171. {crskit-0.8.0 → crskit-0.8.2}/crskit/CoordinateTransformations/Algorithms/NadCon.h +0 -0
  172. {crskit-0.8.0 → crskit-0.8.2}/crskit/CoordinateTransformations/Algorithms/Ntv2.h +0 -0
  173. {crskit-0.8.0 → crskit-0.8.2}/crskit/CoordinateTransformations/Algorithms/ObliqueMercator.cpp +0 -0
  174. {crskit-0.8.0 → crskit-0.8.2}/crskit/CoordinateTransformations/Algorithms/ObliqueMercator.h +0 -0
  175. {crskit-0.8.0 → crskit-0.8.2}/crskit/CoordinateTransformations/Algorithms/ObliqueStereographic.cpp +0 -0
  176. {crskit-0.8.0 → crskit-0.8.2}/crskit/CoordinateTransformations/Algorithms/ObliqueStereographic.h +0 -0
  177. {crskit-0.8.0 → crskit-0.8.2}/crskit/CoordinateTransformations/Algorithms/OtherProjections.cpp +0 -0
  178. {crskit-0.8.0 → crskit-0.8.2}/crskit/CoordinateTransformations/Algorithms/OtherProjections.h +0 -0
  179. {crskit-0.8.0 → crskit-0.8.2}/crskit/CoordinateTransformations/Algorithms/P6.cpp +0 -0
  180. {crskit-0.8.0 → crskit-0.8.2}/crskit/CoordinateTransformations/Algorithms/P6.h +0 -0
  181. {crskit-0.8.0 → crskit-0.8.2}/crskit/CoordinateTransformations/Algorithms/PolarStereographic.cpp +0 -0
  182. {crskit-0.8.0 → crskit-0.8.2}/crskit/CoordinateTransformations/Algorithms/PolarStereographic.h +0 -0
  183. {crskit-0.8.0 → crskit-0.8.2}/crskit/CoordinateTransformations/Algorithms/PopularVisualisationPseudoMercator.cpp +0 -0
  184. {crskit-0.8.0 → crskit-0.8.2}/crskit/CoordinateTransformations/Algorithms/PopularVisualisationPseudoMercator.h +0 -0
  185. {crskit-0.8.0 → crskit-0.8.2}/crskit/CoordinateTransformations/Algorithms/PositionVectorTransformation.cpp +0 -0
  186. {crskit-0.8.0 → crskit-0.8.2}/crskit/CoordinateTransformations/Algorithms/PositionVectorTransformation.h +0 -0
  187. {crskit-0.8.0 → crskit-0.8.2}/crskit/CoordinateTransformations/Algorithms/TransverseMercator.cpp +0 -0
  188. {crskit-0.8.0 → crskit-0.8.2}/crskit/CoordinateTransformations/Algorithms/TransverseMercator.h +0 -0
  189. {crskit-0.8.0 → crskit-0.8.2}/crskit/CoordinateTransformations/Algorithms/TransverseMercatorSouthOrientated.cpp +0 -0
  190. {crskit-0.8.0 → crskit-0.8.2}/crskit/CoordinateTransformations/Algorithms/TransverseMercatorSouthOrientated.h +0 -0
  191. {crskit-0.8.0 → crskit-0.8.2}/crskit/CoordinateTransformations/Algorithms/VerticalOffset.cpp +0 -0
  192. {crskit-0.8.0 → crskit-0.8.2}/crskit/CoordinateTransformations/Algorithms/VerticalOffset.h +0 -0
  193. {crskit-0.8.0 → crskit-0.8.2}/crskit/CoordinateTransformations/ConcatenatedTransform.cpp +0 -0
  194. {crskit-0.8.0 → crskit-0.8.2}/crskit/CoordinateTransformations/ConcatenatedTransform.h +0 -0
  195. {crskit-0.8.0 → crskit-0.8.2}/crskit/CoordinateTransformations/CoordinateTransformation.cpp +0 -0
  196. {crskit-0.8.0 → crskit-0.8.2}/crskit/CoordinateTransformations/CoordinateTransformation.h +0 -0
  197. {crskit-0.8.0 → crskit-0.8.2}/crskit/CoordinateTransformations/CoordinateTransformationAuthorityFactory.cpp +0 -0
  198. {crskit-0.8.0 → crskit-0.8.2}/crskit/CoordinateTransformations/CoordinateTransformationAuthorityFactory.h +0 -0
  199. {crskit-0.8.0 → crskit-0.8.2}/crskit/CoordinateTransformations/CoordinateTransformationFactory.cpp +0 -0
  200. {crskit-0.8.0 → crskit-0.8.2}/crskit/CoordinateTransformations/CoordinateTransformationFactory.h +0 -0
  201. {crskit-0.8.0 → crskit-0.8.2}/crskit/CoordinateTransformations/DomainFlags.h +0 -0
  202. {crskit-0.8.0 → crskit-0.8.2}/crskit/CoordinateTransformations/ICoordinateTransformation.h +0 -0
  203. {crskit-0.8.0 → crskit-0.8.2}/crskit/CoordinateTransformations/ICoordinateTransformationAuthorityFactory.h +0 -0
  204. {crskit-0.8.0 → crskit-0.8.2}/crskit/CoordinateTransformations/ICoordinateTransformationFactory.h +0 -0
  205. {crskit-0.8.0 → crskit-0.8.2}/crskit/CoordinateTransformations/IMathTransform.h +0 -0
  206. {crskit-0.8.0 → crskit-0.8.2}/crskit/CoordinateTransformations/IMathTransformFactory.h +0 -0
  207. {crskit-0.8.0 → crskit-0.8.2}/crskit/CoordinateTransformations/MathTransformBase.cpp +0 -0
  208. {crskit-0.8.0 → crskit-0.8.2}/crskit/CoordinateTransformations/MathTransformBase.h +0 -0
  209. {crskit-0.8.0 → crskit-0.8.2}/crskit/CoordinateTransformations/MathTransformFactory.cpp +0 -0
  210. {crskit-0.8.0 → crskit-0.8.2}/crskit/CoordinateTransformations/MathTransformFactory.h +0 -0
  211. {crskit-0.8.0 → crskit-0.8.2}/crskit/CoordinateTransformations/MathTransformRegistry.cpp +0 -0
  212. {crskit-0.8.0 → crskit-0.8.2}/crskit/CoordinateTransformations/MathTransformRegistry.h +0 -0
  213. {crskit-0.8.0 → crskit-0.8.2}/crskit/CoordinateTransformations/Passthrough.cpp +0 -0
  214. {crskit-0.8.0 → crskit-0.8.2}/crskit/CoordinateTransformations/Passthrough.h +0 -0
  215. {crskit-0.8.0 → crskit-0.8.2}/crskit/CoordinateTransformations/ThreeCoordinateHeightTransform.cpp +0 -0
  216. {crskit-0.8.0 → crskit-0.8.2}/crskit/CoordinateTransformations/ThreeCoordinateHeightTransform.h +0 -0
  217. {crskit-0.8.0 → crskit-0.8.2}/crskit/CoordinateTransformations/TransformType.h +0 -0
  218. {crskit-0.8.0 → crskit-0.8.2}/crskit/CoordinateTransformations/UnitsOfMeasure.h +0 -0
  219. {crskit-0.8.0 → crskit-0.8.2}/crskit/CrsAliases.cpp +0 -0
  220. {crskit-0.8.0 → crskit-0.8.2}/crskit/CrsAliases.h +0 -0
  221. {crskit-0.8.0 → crskit-0.8.2}/crskit/CrsKitExport.h +0 -0
  222. {crskit-0.8.0 → crskit-0.8.2}/crskit/EsriProjectionEngine.h +0 -0
  223. {crskit-0.8.0 → crskit-0.8.2}/crskit/ExtensionManager.cpp +0 -0
  224. {crskit-0.8.0 → crskit-0.8.2}/crskit/ExtensionManager.h +0 -0
  225. {crskit-0.8.0 → crskit-0.8.2}/crskit/Factory.h +0 -0
  226. {crskit-0.8.0 → crskit-0.8.2}/crskit/GridFileNotFoundException.h +0 -0
  227. {crskit-0.8.0 → crskit-0.8.2}/crskit/IAuthorityProvider.h +0 -0
  228. {crskit-0.8.0 → crskit-0.8.2}/crskit/Mathematics/Angles.h +0 -0
  229. {crskit-0.8.0 → crskit-0.8.2}/crskit/Mathematics/Concepts.h +0 -0
  230. {crskit-0.8.0 → crskit-0.8.2}/crskit/Mathematics/GridCell.h +0 -0
  231. {crskit-0.8.0 → crskit-0.8.2}/crskit/Mathematics/GridInterpolation.h +0 -0
  232. {crskit-0.8.0 → crskit-0.8.2}/crskit/Mathematics/Interpolation.h +0 -0
  233. {crskit-0.8.0 → crskit-0.8.2}/crskit/Mathematics/Matrix.h +0 -0
  234. {crskit-0.8.0 → crskit-0.8.2}/crskit/Mathematics/Point.h +0 -0
  235. {crskit-0.8.0 → crskit-0.8.2}/crskit/Mathematics/Window2D.h +0 -0
  236. {crskit-0.8.0 → crskit-0.8.2}/crskit/OpenGisAttributes.h +0 -0
  237. {crskit-0.8.0 → crskit-0.8.2}/crskit/OpenGisException.h +0 -0
  238. {crskit-0.8.0 → crskit-0.8.2}/crskit/Parameter.h +0 -0
  239. {crskit-0.8.0 → crskit-0.8.2}/crskit/Positioning/Envelope.h +0 -0
  240. {crskit-0.8.0 → crskit-0.8.2}/crskit/TokenWkt.cpp +0 -0
  241. {crskit-0.8.0 → crskit-0.8.2}/crskit/TokenWkt.h +0 -0
  242. {crskit-0.8.0 → crskit-0.8.2}/crskit/Utilities.h +0 -0
  243. {crskit-0.8.0 → crskit-0.8.2}/crskit/WktDeserializer.cpp +0 -0
  244. {crskit-0.8.0 → crskit-0.8.2}/crskit/WktDeserializer.h +0 -0
  245. {crskit-0.8.0 → crskit-0.8.2}/crskit/app.ico +0 -0
  246. {crskit-0.8.0 → crskit-0.8.2}/crskit/pch.cpp +0 -0
  247. {crskit-0.8.0 → crskit-0.8.2}/crskit/pch.h +0 -0
  248. {crskit-0.8.0 → crskit-0.8.2}/external/sqlite/sqlite3.c +0 -0
  249. {crskit-0.8.0 → crskit-0.8.2}/external/sqlite/sqlite3.h +0 -0
  250. {crskit-0.8.0 → crskit-0.8.2}/python/CMakeLists.txt +0 -0
  251. {crskit-0.8.0 → crskit-0.8.2}/python/TUTORIAL.de.md +0 -0
  252. {crskit-0.8.0 → crskit-0.8.2}/python/TUTORIAL.es.md +0 -0
  253. {crskit-0.8.0 → crskit-0.8.2}/python/TUTORIAL.fr.md +0 -0
  254. {crskit-0.8.0 → crskit-0.8.2}/python/TUTORIAL.it.md +0 -0
  255. {crskit-0.8.0 → crskit-0.8.2}/python/TUTORIAL.md +0 -0
  256. {crskit-0.8.0 → crskit-0.8.2}/python/crskit/py.typed +0 -0
  257. {crskit-0.8.0 → crskit-0.8.2}/python/examples/01_quickstart.py +0 -0
  258. {crskit-0.8.0 → crskit-0.8.2}/python/examples/02_wkt.py +0 -0
  259. {crskit-0.8.0 → crskit-0.8.2}/python/examples/03_point_cloud.py +0 -0
  260. {crskit-0.8.0 → crskit-0.8.2}/python/examples/04_choosing_the_operation.py +0 -0
  261. {crskit-0.8.0 → crskit-0.8.2}/python/examples/05_orthometric_heights.py +0 -0
  262. {crskit-0.8.0 → crskit-0.8.2}/python/examples/README.md +0 -0
  263. {crskit-0.8.0 → crskit-0.8.2}/python/examples/_setup.py +0 -0
  264. {crskit-0.8.0 → crskit-0.8.2}/python/tests/test_examples.py +0 -0
  265. {crskit-0.8.0 → crskit-0.8.2}/python-epsg/README.md +0 -0
  266. {crskit-0.8.0 → crskit-0.8.2}/python-epsg/crskit_epsg/EPSG-TERMS-OF-USE.md +0 -0
  267. {crskit-0.8.0 → crskit-0.8.2}/python-epsg/crskit_epsg/__init__.py +0 -0
  268. {crskit-0.8.0 → crskit-0.8.2}/python-epsg/fetch.py +0 -0
  269. {crskit-0.8.0 → crskit-0.8.2}/python-epsg/pyproject.toml +0 -0
  270. {crskit-0.8.0 → crskit-0.8.2}/tests/Gigs/Test5101Part2.cpp +0 -0
  271. {crskit-0.8.0 → crskit-0.8.2}/tests/Gigs/Test5101Part3.cpp +0 -0
  272. {crskit-0.8.0 → crskit-0.8.2}/tests/Gigs/Test5101Part4.cpp +0 -0
  273. {crskit-0.8.0 → crskit-0.8.2}/tests/Gigs/Test5102Part1.cpp +0 -0
  274. {crskit-0.8.0 → crskit-0.8.2}/tests/Gigs/Test5102Part2.cpp +0 -0
  275. {crskit-0.8.0 → crskit-0.8.2}/tests/Gigs/Test5103Part1.cpp +0 -0
  276. {crskit-0.8.0 → crskit-0.8.2}/tests/Gigs/Test5103Part2.cpp +0 -0
  277. {crskit-0.8.0 → crskit-0.8.2}/tests/Gigs/Test5103Part3.cpp +0 -0
  278. {crskit-0.8.0 → crskit-0.8.2}/tests/Gigs/Test5104Part1.cpp +0 -0
  279. {crskit-0.8.0 → crskit-0.8.2}/tests/Gigs/Test5105Part1.cpp +0 -0
  280. {crskit-0.8.0 → crskit-0.8.2}/tests/Gigs/Test5105Part2.cpp +0 -0
  281. {crskit-0.8.0 → crskit-0.8.2}/tests/Gigs/Test5106Part1.cpp +0 -0
  282. {crskit-0.8.0 → crskit-0.8.2}/tests/Gigs/Test5107Part1.cpp +0 -0
  283. {crskit-0.8.0 → crskit-0.8.2}/tests/Gigs/Test5108Part1.cpp +0 -0
  284. {crskit-0.8.0 → crskit-0.8.2}/tests/Gigs/Test5109Part1.cpp +0 -0
  285. {crskit-0.8.0 → crskit-0.8.2}/tests/Gigs/Test5110Part1.cpp +0 -0
  286. {crskit-0.8.0 → crskit-0.8.2}/tests/Gigs/Test5111Part1.cpp +0 -0
  287. {crskit-0.8.0 → crskit-0.8.2}/tests/Gigs/Test5111Part2.cpp +0 -0
  288. {crskit-0.8.0 → crskit-0.8.2}/tests/Gigs/Test5112Part1.cpp +0 -0
  289. {crskit-0.8.0 → crskit-0.8.2}/tests/Gigs/Test5113Part1.cpp +0 -0
  290. {crskit-0.8.0 → crskit-0.8.2}/tests/Gigs/Test5201Part1.cpp +0 -0
  291. {crskit-0.8.0 → crskit-0.8.2}/tests/Gigs/Test5203Part1.cpp +0 -0
  292. {crskit-0.8.0 → crskit-0.8.2}/tests/Gigs/Test5204Part1.cpp +0 -0
  293. {crskit-0.8.0 → crskit-0.8.2}/tests/Gigs/Test5205Part1.cpp +0 -0
  294. {crskit-0.8.0 → crskit-0.8.2}/tests/Gigs/Test5205Part2.cpp +0 -0
  295. {crskit-0.8.0 → crskit-0.8.2}/tests/Gigs/Test5207Part1.cpp +0 -0
  296. {crskit-0.8.0 → crskit-0.8.2}/tests/Gigs/Test5207Part2.cpp +0 -0
  297. {crskit-0.8.0 → crskit-0.8.2}/tests/Gigs/Test5208Part1.cpp +0 -0
  298. {crskit-0.8.0 → crskit-0.8.2}/tests/Gigs/Test5209Part1.cpp +0 -0
  299. {crskit-0.8.0 → crskit-0.8.2}/tests/Gigs/Test5210Part1.cpp +0 -0
  300. {crskit-0.8.0 → crskit-0.8.2}/tests/Gigs/Test5210Part10.cpp +0 -0
  301. {crskit-0.8.0 → crskit-0.8.2}/tests/Gigs/Test5210Part11.cpp +0 -0
  302. {crskit-0.8.0 → crskit-0.8.2}/tests/Gigs/Test5210Part12.cpp +0 -0
  303. {crskit-0.8.0 → crskit-0.8.2}/tests/Gigs/Test5210Part2.cpp +0 -0
  304. {crskit-0.8.0 → crskit-0.8.2}/tests/Gigs/Test5210Part3.cpp +0 -0
  305. {crskit-0.8.0 → crskit-0.8.2}/tests/Gigs/Test5210Part4.cpp +0 -0
  306. {crskit-0.8.0 → crskit-0.8.2}/tests/Gigs/Test5210Part5.cpp +0 -0
  307. {crskit-0.8.0 → crskit-0.8.2}/tests/Gigs/Test5210Part6.cpp +0 -0
  308. {crskit-0.8.0 → crskit-0.8.2}/tests/Gigs/Test5210Part7.cpp +0 -0
  309. {crskit-0.8.0 → crskit-0.8.2}/tests/Gigs/Test5210Part8.cpp +0 -0
  310. {crskit-0.8.0 → crskit-0.8.2}/tests/Gigs/Test5210Part9.cpp +0 -0
  311. {crskit-0.8.0 → crskit-0.8.2}/tests/Gigs/Test5212Part1.cpp +0 -0
  312. {crskit-0.8.0 → crskit-0.8.2}/tests/Gigs/Test5213Part1.cpp +0 -0
  313. {crskit-0.8.0 → crskit-0.8.2}/tests/GigsFactory.h +0 -0
  314. {crskit-0.8.0 → crskit-0.8.2}/tests/RoundTrip.h +0 -0
  315. {crskit-0.8.0 → crskit-0.8.2}/tests/Test5101Part1.cpp +0 -0
  316. {crskit-0.8.0 → crskit-0.8.2}/tests/TestAmericanPolyconic.cpp +0 -0
  317. {crskit-0.8.0 → crskit-0.8.2}/tests/TestAntimeridian.cpp +0 -0
  318. {crskit-0.8.0 → crskit-0.8.2}/tests/TestAzimuthalProjections.cpp +0 -0
  319. {crskit-0.8.0 → crskit-0.8.2}/tests/TestBase.h +0 -0
  320. {crskit-0.8.0 → crskit-0.8.2}/tests/TestCassiniSoldner.cpp +0 -0
  321. {crskit-0.8.0 → crskit-0.8.2}/tests/TestCatalogueSweep.cpp +0 -0
  322. {crskit-0.8.0 → crskit-0.8.2}/tests/TestCompoundFromWkt.cpp +0 -0
  323. {crskit-0.8.0 → crskit-0.8.2}/tests/TestContextEnvironment.cpp +0 -0
  324. {crskit-0.8.0 → crskit-0.8.2}/tests/TestCrsAliases.cpp +0 -0
  325. {crskit-0.8.0 → crskit-0.8.2}/tests/TestCylindricalProjections.cpp +0 -0
  326. {crskit-0.8.0 → crskit-0.8.2}/tests/TestDatabaseErrors.cpp +0 -0
  327. {crskit-0.8.0 → crskit-0.8.2}/tests/TestDatumComparison.cpp +0 -0
  328. {crskit-0.8.0 → crskit-0.8.2}/tests/TestDatumNameNormalization.cpp +0 -0
  329. {crskit-0.8.0 → crskit-0.8.2}/tests/TestDatumOfCrs.cpp +0 -0
  330. {crskit-0.8.0 → crskit-0.8.2}/tests/TestEllipsoidInFeet.cpp +0 -0
  331. {crskit-0.8.0 → crskit-0.8.2}/tests/TestEnvironment.cpp +0 -0
  332. {crskit-0.8.0 → crskit-0.8.2}/tests/TestEquivalence.cpp +0 -0
  333. {crskit-0.8.0 → crskit-0.8.2}/tests/TestEsriCompound.cpp +0 -0
  334. {crskit-0.8.0 → crskit-0.8.2}/tests/TestEsriTables.cpp +0 -0
  335. {crskit-0.8.0 → crskit-0.8.2}/tests/TestEsriTowgs84Snap.cpp +0 -0
  336. {crskit-0.8.0 → crskit-0.8.2}/tests/TestExceptions.cpp +0 -0
  337. {crskit-0.8.0 → crskit-0.8.2}/tests/TestGeocentricOperations.cpp +0 -0
  338. {crskit-0.8.0 → crskit-0.8.2}/tests/TestGeocentricWithoutEpsgCode.cpp +0 -0
  339. {crskit-0.8.0 → crskit-0.8.2}/tests/TestGeocentricWkt.cpp +0 -0
  340. {crskit-0.8.0 → crskit-0.8.2}/tests/TestGeographic2DVertical.cpp +0 -0
  341. {crskit-0.8.0 → crskit-0.8.2}/tests/TestGeographic3DDatumShift.cpp +0 -0
  342. {crskit-0.8.0 → crskit-0.8.2}/tests/TestGeographic3DTowgs84.cpp +0 -0
  343. {crskit-0.8.0 → crskit-0.8.2}/tests/TestGeographicAndGeocentric3DWithoutCodeToHorizontal.cpp +0 -0
  344. {crskit-0.8.0 → crskit-0.8.2}/tests/TestGeographicAxisOrder.cpp +0 -0
  345. {crskit-0.8.0 → crskit-0.8.2}/tests/TestGeographicToGeocentricDatumShift.cpp +0 -0
  346. {crskit-0.8.0 → crskit-0.8.2}/tests/TestGridCell.cpp +0 -0
  347. {crskit-0.8.0 → crskit-0.8.2}/tests/TestHeaderWarnings.cpp +0 -0
  348. {crskit-0.8.0 → crskit-0.8.2}/tests/TestKrovak.cpp +0 -0
  349. {crskit-0.8.0 → crskit-0.8.2}/tests/TestLambertAzimuthalEqualArea.cpp +0 -0
  350. {crskit-0.8.0 → crskit-0.8.2}/tests/TestLambertConicConformalVariants.cpp +0 -0
  351. {crskit-0.8.0 → crskit-0.8.2}/tests/TestLongitudeRotation.cpp +0 -0
  352. {crskit-0.8.0 → crskit-0.8.2}/tests/TestMolodenskyBadekas.cpp +0 -0
  353. {crskit-0.8.0 → crskit-0.8.2}/tests/TestNonNumericAuthority.cpp +0 -0
  354. {crskit-0.8.0 → crskit-0.8.2}/tests/TestObliqueMercator.cpp +0 -0
  355. {crskit-0.8.0 → crskit-0.8.2}/tests/TestOperationSelection.cpp +0 -0
  356. {crskit-0.8.0 → crskit-0.8.2}/tests/TestOtherProjections.cpp +0 -0
  357. {crskit-0.8.0 → crskit-0.8.2}/tests/TestPolarStereographic.cpp +0 -0
  358. {crskit-0.8.0 → crskit-0.8.2}/tests/TestPrimeMeridianChange.cpp +0 -0
  359. {crskit-0.8.0 → crskit-0.8.2}/tests/TestPrimeMeridianGeocentric.cpp +0 -0
  360. {crskit-0.8.0 → crskit-0.8.2}/tests/TestPrimeMeridianWkt1.cpp +0 -0
  361. {crskit-0.8.0 → crskit-0.8.2}/tests/TestProjectionEdges.cpp +0 -0
  362. {crskit-0.8.0 → crskit-0.8.2}/tests/TestProjectionParameters.cpp +0 -0
  363. {crskit-0.8.0 → crskit-0.8.2}/tests/TestRoundTripSweep.cpp +0 -0
  364. {crskit-0.8.0 → crskit-0.8.2}/tests/TestSameGeodeticFrame.cpp +0 -0
  365. {crskit-0.8.0 → crskit-0.8.2}/tests/TestSexagesimalDms.cpp +0 -0
  366. {crskit-0.8.0 → crskit-0.8.2}/tests/TestSexagesimalPrimeMeridian.cpp +0 -0
  367. {crskit-0.8.0 → crskit-0.8.2}/tests/TestThreeCoordinateUnits.cpp +0 -0
  368. {crskit-0.8.0 → crskit-0.8.2}/tests/TestThreeDimensionalCrsWithLocalHorizontalComponent.cpp +0 -0
  369. {crskit-0.8.0 → crskit-0.8.2}/tests/TestTowgs84.cpp +0 -0
  370. {crskit-0.8.0 → crskit-0.8.2}/tests/TestTransformPoints.cpp +0 -0
  371. {crskit-0.8.0 → crskit-0.8.2}/tests/TestTransformToGeocentric.cpp +0 -0
  372. {crskit-0.8.0 → crskit-0.8.2}/tests/TestTransformToGeocentricHorizontalTypes.cpp +0 -0
  373. {crskit-0.8.0 → crskit-0.8.2}/tests/TestTransformationAuthorityCode.cpp +0 -0
  374. {crskit-0.8.0 → crskit-0.8.2}/tests/TestUnknownCrs.cpp +0 -0
  375. {crskit-0.8.0 → crskit-0.8.2}/tests/TestUtilitiesContract.cpp +0 -0
  376. {crskit-0.8.0 → crskit-0.8.2}/tests/TestVerticalRoundTrip.cpp +0 -0
  377. {crskit-0.8.0 → crskit-0.8.2}/tests/TestWestSouthAxes.cpp +0 -0
  378. {crskit-0.8.0 → crskit-0.8.2}/tests/TestWgs84DatumNames.cpp +0 -0
  379. {crskit-0.8.0 → crskit-0.8.2}/tests/TestWithAxes.cpp +0 -0
  380. {crskit-0.8.0 → crskit-0.8.2}/tests/TestWkt2.cpp +0 -0
  381. {crskit-0.8.0 → crskit-0.8.2}/tests/TestWkt2AxisUnits.cpp +0 -0
  382. {crskit-0.8.0 → crskit-0.8.2}/tests/TestWktMalformed.cpp +0 -0
  383. {crskit-0.8.0 → crskit-0.8.2}/tests/TestWktQuoted.cpp +0 -0
  384. {crskit-0.8.0 → crskit-0.8.2}/tests/TestWktUnclosed.cpp +0 -0
  385. {crskit-0.8.0 → crskit-0.8.2}/tests/vcpkg.json +0 -0
  386. {crskit-0.8.0 → crskit-0.8.2}/tools/epsg-sqlite/README.md +0 -0
  387. {crskit-0.8.0 → crskit-0.8.2}/tools/epsg-sqlite/epsg_sql_to_sqlite.py +0 -0
  388. {crskit-0.8.0 → crskit-0.8.2}/tools/release.sh +0 -0
  389. {crskit-0.8.0 → crskit-0.8.2}/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.2
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
@@ -13,7 +13,7 @@ namespace CrsKit::CoordinateTransformations::Algorithms
13
13
  {
14
14
  std::string const realFilePath = GetDefaultContext()->dataDirectory + path;
15
15
 
16
- std::ifstream is{std::filesystem::path(realFilePath)};
16
+ std::ifstream is{CreatePathFromUtf8(realFilePath)};
17
17
  if (!is.is_open())
18
18
  throw CrsKit::GridFileNotFoundException{ path, realFilePath };
19
19
 
@@ -201,7 +201,7 @@ namespace CrsKit::CoordinateTransformations::Algorithms
201
201
  auto fromContent(std::string const& dataDir, std::string const& fileName) const -> std::unique_ptr<IGridInterpolation> override
202
202
  {
203
203
  std::error_code ec;
204
- fs::path const path{ dataDir + fileName };
204
+ auto const path = CreatePathFromUtf8(dataDir + fileName);
205
205
  if (fs::exists(path, ec) && looksLikeRednap(path))
206
206
  return std::make_unique<ge::GridEGM2008Rednap>(fileName.c_str());
207
207
  return nullptr;
@@ -222,7 +222,7 @@ namespace CrsKit::CoordinateTransformations::Algorithms
222
222
  for (auto const& name : egm2008CandidateNames(fileName))
223
223
  {
224
224
  std::error_code ec;
225
- fs::path const path{ dataDir + name };
225
+ auto const path = CreatePathFromUtf8(dataDir + name);
226
226
  if (!fs::exists(path, ec)) continue;
227
227
  auto const size = fs::file_size(path, ec);
228
228
  if (ec) continue;
@@ -245,7 +245,7 @@ namespace CrsKit::CoordinateTransformations::Algorithms
245
245
  {
246
246
  auto fromContent(std::string const& dataDir, std::string const& fileName) const -> std::unique_ptr<IGridInterpolation> override
247
247
  {
248
- fs::path const path{ dataDir + fileName };
248
+ auto const path = CreatePathFromUtf8(dataDir + fileName);
249
249
  if (ge::GridGtx::looksLikeGtx(path))
250
250
  return std::make_unique<ge::GridGtx>(fileName.c_str());
251
251
  return nullptr;
@@ -262,7 +262,7 @@ namespace CrsKit::CoordinateTransformations::Algorithms
262
262
  {
263
263
  auto fromContent(std::string const& dataDir, std::string const& fileName) const -> std::unique_ptr<IGridInterpolation> override
264
264
  {
265
- fs::path const path{ dataDir + fileName };
265
+ auto const path = CreatePathFromUtf8(dataDir + fileName);
266
266
  std::error_code ec;
267
267
  if (fs::exists(path, ec) && ge::GridGtg::looksLikeGtg(path))
268
268
  return std::make_unique<ge::GridGtg>(fileName.c_str());
@@ -280,7 +280,7 @@ namespace CrsKit::CoordinateTransformations::Algorithms
280
280
  {
281
281
  auto fromContent(std::string const& dataDir, std::string const& fileName) const -> std::unique_ptr<IGridInterpolation> override
282
282
  {
283
- fs::path const path{ dataDir + fileName };
283
+ auto const path = CreatePathFromUtf8(dataDir + fileName);
284
284
  std::error_code ec;
285
285
  if (fs::exists(path, ec) && ge::GridAusGeoid::looksLikeNtv2(path))
286
286
  return std::make_unique<ge::GridAusGeoid>(fileName.c_str());
@@ -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
@@ -367,7 +372,7 @@ namespace CrsKit::CoordinateTransformations::Algorithms
367
372
  #pragma region IMathTransform members
368
373
  auto Geographic3DToGravityRelatedHeightEGM2008::GetWkt() const -> std::string
369
374
  {
370
- auto const file = std::filesystem::path(_grid->GetFilePath()).filename().string();
375
+ auto const file = ConvertPathToUtf8String(CreatePathFromUtf8(_grid->GetFilePath()).filename());
371
376
  if (_inverse)
372
377
  return std::format("INVERSE_MT[PARAM_MT[\"{}\", PARAMETER[\"geoid_model_file\",{}]]]", _methodName, file);
373
378
 
@@ -410,7 +415,7 @@ namespace CrsKit::CoordinateTransformations::Algorithms
410
415
  auto Geographic3DToGravityRelatedHeightEGM2008::GetInverse() -> std::shared_ptr<IMathTransform>
411
416
  {
412
417
  return std::shared_ptr<IMathTransform>(new Geographic3DToGravityRelatedHeightEGM2008(
413
- _methodName, std::filesystem::path(_grid->GetFilePath()).filename().string(), !_inverse));
418
+ _methodName, ConvertPathToUtf8String(CreatePathFromUtf8(_grid->GetFilePath()).filename()), !_inverse));
414
419
  }
415
420
  #pragma endregion
416
421
  }
@@ -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;
@@ -42,7 +42,7 @@ namespace CrsKit::CoordinateTransformations::Algorithms::GravityRelatedHeightEGM
42
42
  GridAusGeoid::GridAusGeoid(const char* file)
43
43
  {
44
44
  _filePath = GetDefaultContext()->dataDirectory + file;
45
- if (!std::filesystem::exists(std::filesystem::path(_filePath)))
45
+ if (!std::filesystem::exists(CreatePathFromUtf8(_filePath)))
46
46
  throw CrsKit::GridFileNotFoundException{ file, _filePath };
47
47
  if (!Load(_filePath.c_str()))
48
48
  throw UnsupportedFormatException(std::format("Unsupported or malformed NTv2 geoid grid: {}", file));
@@ -50,7 +50,7 @@ namespace CrsKit::CoordinateTransformations::Algorithms::GravityRelatedHeightEGM
50
50
 
51
51
  auto GridAusGeoid::Load(const char* gridFilePath) -> bool
52
52
  {
53
- std::ifstream is{ std::filesystem::path(gridFilePath), std::ios::binary | std::ios::ate };
53
+ std::ifstream is{ CreatePathFromUtf8(gridFilePath), std::ios::binary | std::ios::ate };
54
54
  if (!is.is_open()) return false;
55
55
  std::vector<unsigned char> data(static_cast<std::size_t>(is.tellg()));
56
56
  is.seekg(0);
@@ -18,7 +18,7 @@ namespace CrsKit::CoordinateTransformations::Algorithms::GravityRelatedHeightEGM
18
18
  {
19
19
  auto const filePath = GetDefaultContext()->dataDirectory + fileName;
20
20
 
21
- _file.open(std::filesystem::path(filePath), std::ios::binary);
21
+ _file.open(CreatePathFromUtf8(filePath), std::ios::binary);
22
22
  if (!_file.is_open())
23
23
  throw CrsKit::GridFileNotFoundException{ fileName, filePath };
24
24
  }
@@ -12,7 +12,7 @@ namespace CrsKit::CoordinateTransformations::Algorithms::GravityRelatedHeightEGM
12
12
  GridEGM2008Rednap::GridEGM2008Rednap(const char* file)
13
13
  {
14
14
  _filePath = GetDefaultContext()->dataDirectory + file;
15
- if (!std::filesystem::exists(std::filesystem::path(_filePath)))
15
+ if (!std::filesystem::exists(CreatePathFromUtf8(_filePath)))
16
16
  throw CrsKit::GridFileNotFoundException{ file, _filePath };
17
17
  Load(_filePath.c_str());
18
18
  }
@@ -21,7 +21,7 @@ namespace CrsKit::CoordinateTransformations::Algorithms::GravityRelatedHeightEGM
21
21
  #pragma region GridInterpolation members
22
22
  auto GridEGM2008Rednap::Load(const char* gridFilePath) -> bool
23
23
  {
24
- std::ifstream is{std::filesystem::path(gridFilePath)};
24
+ std::ifstream is{CreatePathFromUtf8(gridFilePath)};
25
25
 
26
26
  if (!is.is_open())
27
27
  return false;
@@ -111,7 +111,7 @@ namespace CrsKit::CoordinateTransformations::Algorithms::GravityRelatedHeightEGM
111
111
  GridGtg::GridGtg(const char* file)
112
112
  {
113
113
  _filePath = GetDefaultContext()->dataDirectory + file;
114
- if (!std::filesystem::exists(std::filesystem::path(_filePath)))
114
+ if (!std::filesystem::exists(CreatePathFromUtf8(_filePath)))
115
115
  throw CrsKit::GridFileNotFoundException{ file, _filePath };
116
116
  if (!Load(_filePath.c_str()))
117
117
  throw UnsupportedFormatException(std::format("Unsupported or malformed GeoTIFF geoid grid: {}", file));
@@ -119,7 +119,7 @@ namespace CrsKit::CoordinateTransformations::Algorithms::GravityRelatedHeightEGM
119
119
 
120
120
  auto GridGtg::Load(const char* gridFilePath) -> bool
121
121
  {
122
- std::ifstream is{ std::filesystem::path(gridFilePath), std::ios::binary | std::ios::ate };
122
+ std::ifstream is{ CreatePathFromUtf8(gridFilePath), std::ios::binary | std::ios::ate };
123
123
  if (!is.is_open()) return false;
124
124
  std::vector<unsigned char> data(static_cast<std::size_t>(is.tellg()));
125
125
  is.seekg(0);
@@ -61,14 +61,14 @@ namespace CrsKit::CoordinateTransformations::Algorithms::GravityRelatedHeightEGM
61
61
  GridGtx::GridGtx(const char* file)
62
62
  {
63
63
  _filePath = GetDefaultContext()->dataDirectory + file;
64
- if (!std::filesystem::exists(std::filesystem::path(_filePath)))
64
+ if (!std::filesystem::exists(CreatePathFromUtf8(_filePath)))
65
65
  throw CrsKit::GridFileNotFoundException{ file, _filePath };
66
66
  Load(_filePath.c_str());
67
67
  }
68
68
 
69
69
  auto GridGtx::Load(const char* gridFilePath) -> bool
70
70
  {
71
- std::ifstream is{ std::filesystem::path(gridFilePath), std::ios::binary };
71
+ std::ifstream is{ CreatePathFromUtf8(gridFilePath), std::ios::binary };
72
72
  if (!is.is_open())
73
73
  return false;
74
74
 
@@ -14,7 +14,7 @@ namespace CrsKit::CoordinateTransformations::Algorithms
14
14
  {
15
15
  std::string const realFilePath = GetDefaultContext()->dataDirectory + path;
16
16
 
17
- std::ifstream is(std::filesystem::path(realFilePath), std::ios::binary);
17
+ std::ifstream is(CreatePathFromUtf8(realFilePath), std::ios::binary);
18
18
  if (!is.is_open())
19
19
  throw CrsKit::GridFileNotFoundException{ path, realFilePath };
20
20
 
@@ -33,7 +33,7 @@ namespace CrsKit::CoordinateTransformations::Algorithms
33
33
 
34
34
  std::string const filePath = GetDefaultContext()->dataDirectory + file;
35
35
 
36
- std::ifstream is(std::filesystem::path(filePath), std::ios::binary);
36
+ std::ifstream is(CreatePathFromUtf8(filePath), std::ios::binary);
37
37
 
38
38
  if (!is.is_open())
39
39
  throw CrsKit::GridFileNotFoundException{ file, filePath };
@@ -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
  }
@@ -59,8 +59,8 @@ namespace CrsKit
59
59
  WktVersion wktVersion{ WktVersion::Wkt1 };
60
60
  // How CreateFromWkt resolves a WKT carrying an EPSG AUTHORITY/ID or a known ESRI name (see enum).
61
61
  WktParsePolicy parsePolicy{ WktParsePolicy::TextWins };
62
- // Search path prepended to grid file names (NadCon/NTv2/EGM) and ESRI data files. Read deep in the
63
- // grid loaders, so it stays ambient rather than threaded through every transform constructor.
62
+ // Directory path encoded in UTF-8 and ending in a path separator. Grid loaders (NadCon/NTv2/EGM) and ESRI
63
+ // data readers prepend this directory path to file names.
64
64
  std::string dataDirectory{};
65
65
  // Emit a horizontal-only WKT for a compound CRS whose vertical component is local/unknown.
66
66
  bool createHorizontalWktIfVerticalLocal{};
@@ -158,6 +158,18 @@ 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
+ // CrsContext::dataDirectory and gridFileName are encoded in UTF-8.
163
+ // True when a regular file exists in CrsContext::dataDirectory of the default context with the name gridFileName, as
164
+ // in CoordinateOperation::GridFiles, or, if gridFileName ends in ".gz", with the name without ".gz", which the reader
165
+ // of the Earth Gravitational Model 2008 (EGM2008) opens. Does not check the format of the file and does not
166
+ // decompress it: a compressed ".gz" file counts as installed.
167
+ _modeCrsKit bool IsGridFileInstalled(std::string const& gridFileName);
168
+
169
+ // The names in operation.GridFiles for which IsGridFileInstalled returns false; empty when every grid file is installed.
170
+ // For the method Norway Offshore Interpolation (code 9620 of the European Petroleum Survey Group (EPSG) catalogue),
171
+ // GridFiles holds names of coordinate operations instead of file names, so the result is empty.
172
+ _modeCrsKit std::vector<std::string> GetMissingGridFiles(CoordinateTransformations::CoordinateOperation const& operation);
161
173
  }
162
174
 
163
175
  #ifdef _MSC_VER
@@ -34,7 +34,7 @@ namespace
34
34
  if (loaded.load(std::memory_order_relaxed))
35
35
  return true;
36
36
 
37
- std::ifstream file{ std::filesystem::path(CrsKit::GetDefaultContext()->dataDirectory + fileName) };
37
+ std::ifstream file{ CrsKit::CreatePathFromUtf8(CrsKit::GetDefaultContext()->dataDirectory + fileName) };
38
38
  if (!file.is_open())
39
39
  return false;
40
40
 
@@ -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(CreatePathFromUtf8(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
+ }
@@ -48,6 +48,10 @@ namespace CrsKit
48
48
  virtual auto ExtractHorizontalVertical(std::shared_ptr<CoordinateSystems::CoordinateSystem> const& scr) const -> std::pair<std::shared_ptr<CoordinateSystems::CoordinateSystem>, std::shared_ptr<CoordinateSystems::CoordinateSystem>> = 0;
49
49
  virtual auto ExtractHorizontalVertical(std::string const& wkt) const -> std::pair<std::string, std::string> = 0;
50
50
  virtual auto ExtractUtmParametersFromWkt(std::string const& coordinateSystemWkt, double& semiMinorAxis, double& semiMajorAxis, double& latitudeOfNaturalOrigin, double& longitudeOfNaturalOrigin, double& scaleFactorAtNaturalOrigin, double& falseEasting, double& falseNorthing) const -> bool = 0;
51
+ // filePath is encoded in UTF-8. LoadPrjFileForFileOrThrow and LoadPrjFileForFileOrLocalSystem replace the
52
+ // extension of filePath with ".prj" and read the resulting file. CreatePrjFileForFileOrThrow replaces the
53
+ // extension of filePath with ".prj" and writes wkt to the resulting file. LoadPrjFileForFileOrThrow and
54
+ // CreatePrjFileForFileOrThrow include the UTF-8 .prj file path in their exception messages.
51
55
  virtual auto LoadPrjFileForFileOrThrow(std::string const& filePath) const -> std::string = 0;
52
56
  virtual auto LoadPrjFileForFileOrLocalSystem(std::string const& filePath) const -> std::string = 0;
53
57
  virtual auto CreatePrjFileForFileOrThrow(std::string const& filePath, std::string const& wkt) const -> void = 0;
@@ -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
+ }
@@ -188,6 +188,7 @@ namespace CrsKit::Epsg
188
188
  std::shared_ptr<sqlite3> _db;
189
189
 
190
190
  public:
191
+ // connectionString: path of the SQLite database file, encoded in UTF-8.
191
192
  // busyTimeoutMilliseconds: how long a query waits for a lock held by another connection before it throws
192
193
  // "database is locked". 0 throws at once.
193
194
  explicit SQliteProvider(std::string const& connectionString, int busyTimeoutMilliseconds = 5000)
@@ -645,14 +646,37 @@ namespace CrsKit::Epsg
645
646
  return files;
646
647
  }
647
648
 
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).
649
+ // Rectangle of the extent, std::nullopt when the extent does not exist or any of its four bounds is NULL.
650
+ auto GetAreaOfUseBoundingBox(int areaOfUseCode) -> std::optional<Positioning::GeographicBoundingBox>
651
+ {
652
+ 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);
653
+
654
+ Stmt const stmt{ _db.get(), sql };
655
+ if (!stmt.Step())
656
+ return std::nullopt;
657
+
658
+ auto const data = stmt.GetData();
659
+ auto const south = TypeOrDefaultValue<double>(data.at("BBOX_SOUTH_BOUND_LAT"));
660
+ auto const north = TypeOrDefaultValue<double>(data.at("BBOX_NORTH_BOUND_LAT"));
661
+ auto const west = TypeOrDefaultValue<double>(data.at("BBOX_WEST_BOUND_LON"));
662
+ auto const east = TypeOrDefaultValue<double>(data.at("BBOX_EAST_BOUND_LON"));
663
+ if (!south || !north || !west || !east)
664
+ return std::nullopt;
665
+
666
+ return Positioning::GeographicBoundingBox{ .SouthBoundLatitudeDegrees = *south, .NorthBoundLatitudeDegrees = *north, .WestBoundLongitudeDegrees = *west, .EastBoundLongitudeDegrees = *east };
667
+ }
668
+
669
+ // Fills AreaOfUse with the extent name, AreaOfUseBoundingBox with the extent bounds and GridFiles with the required grid
670
+ // file names of each candidate operation, from its EPSG code.
650
671
  void EnrichWithAreaAndGrids(std::vector<CoordinateTransformations::CoordinateOperation>& operations)
651
672
  {
652
673
  for (auto& op : operations)
653
674
  {
654
- // An operation without a usage extent gets extent code 0 and an empty area name.
655
- op.AreaOfUse = GetAreaName(GetCoordinateOperationAreaOfUse(op.Code));
675
+ // For an operation without a usage extent, GetCoordinateOperationAreaOfUse returns 0, AreaOfUse is empty and
676
+ // AreaOfUseBoundingBox is std::nullopt.
677
+ auto const areaOfUseCode = GetCoordinateOperationAreaOfUse(op.Code);
678
+ op.AreaOfUse = GetAreaName(areaOfUseCode);
679
+ op.AreaOfUseBoundingBox = GetAreaOfUseBoundingBox(areaOfUseCode);
656
680
  op.GridFiles = GetCoordinateOperationGridFiles(op.Code);
657
681
  }
658
682
  }
@@ -6,6 +6,7 @@
6
6
  #include <memory>
7
7
  #include <stdexcept>
8
8
  #include <algorithm>
9
+ #include <filesystem>
9
10
  #include <cstdio>
10
11
  #include <cstdlib>
11
12
  #include <cctype>
@@ -32,6 +33,21 @@ namespace CrsKit
32
33
  [[nodiscard]] inline int parse_int(const char* s) noexcept { return static_cast<int>(std::strtol(s, nullptr, 10)); }
33
34
  [[nodiscard]] inline double parse_double(const char* s) noexcept { return std::strtod(s, nullptr); }
34
35
 
36
+ // Internal helpers (not part of the public API). Every file path crskit receives or returns as a
37
+ // std::string is UTF-8. std::filesystem::path(std::string) decodes with the ANSI code page on
38
+ // Windows, so paths are built from std::u8string and converted back with u8string().
39
+ // On Linux both conversions copy the bytes unchanged.
40
+ [[nodiscard]] inline std::filesystem::path CreatePathFromUtf8(std::string const& utf8Path)
41
+ {
42
+ return std::filesystem::path{ std::u8string{ reinterpret_cast<char8_t const*>(utf8Path.data()), utf8Path.size() } };
43
+ }
44
+
45
+ [[nodiscard]] inline std::string ConvertPathToUtf8String(std::filesystem::path const& path)
46
+ {
47
+ auto const utf8Path = path.u8string();
48
+ return std::string{ reinterpret_cast<char const*>(utf8Path.data()), utf8Path.size() };
49
+ }
50
+
35
51
  // string_format (snprintf) removed: use std::format directly (C++20/<format>).
36
52
 
37
53
  // Adapted from https://www.educative.io/courses/cpp-17-in-detail-a-deep-dive/7nWg1RXRNxB
@@ -327,22 +327,22 @@ namespace CrsKit
327
327
 
328
328
  std::string Utilities::LoadPrjFileForFileOrThrow(std::string const& filePath) const
329
329
  {
330
- auto const prjFileName = std::filesystem::path(filePath).replace_extension(".prj").string();
330
+ auto const prjFilePath = CreatePathFromUtf8(filePath).replace_extension(".prj");
331
331
 
332
- if (std::ifstream isPrj{std::filesystem::path(prjFileName)}; isPrj.is_open()) {
332
+ if (std::ifstream isPrj{prjFilePath}; isPrj.is_open()) {
333
333
  std::string wkt;
334
334
  std::getline(isPrj, wkt);
335
335
  return wkt;
336
336
  }
337
337
 
338
- throw runtime_error(std::format("Unable to open the file: {}", prjFileName.c_str()).c_str());
338
+ throw runtime_error(std::format("Unable to open the file: {}", ConvertPathToUtf8String(prjFilePath)).c_str());
339
339
  }
340
340
 
341
341
  std::string Utilities::LoadPrjFileForFileOrLocalSystem(std::string const& filePath) const
342
342
  {
343
- auto const prjFileName = std::filesystem::path(filePath).replace_extension(".prj").string();
343
+ auto const prjFilePath = CreatePathFromUtf8(filePath).replace_extension(".prj");
344
344
 
345
- if (std::ifstream isPrj{std::filesystem::path(prjFileName)}; isPrj.is_open()) {
345
+ if (std::ifstream isPrj{prjFilePath}; isPrj.is_open()) {
346
346
  std::string wkt;
347
347
  std::getline(isPrj, wkt);
348
348
  return wkt;
@@ -353,13 +353,13 @@ namespace CrsKit
353
353
 
354
354
  void Utilities::CreatePrjFileForFileOrThrow(std::string const& filePath, std::string const& wkt) const
355
355
  {
356
- std::filesystem::path prjFilePath = std::filesystem::path(filePath).replace_extension(".prj");
356
+ auto const prjFilePath = CreatePathFromUtf8(filePath).replace_extension(".prj");
357
357
 
358
358
  // Create the .prj file
359
359
  // If it cannot be created, we throw an exception
360
- std::ofstream os{std::filesystem::path(prjFilePath)};
360
+ std::ofstream os{prjFilePath};
361
361
  if (!os.is_open())
362
- throw runtime_error(std::format("Unable to open the file: {}", prjFilePath.string()).c_str());
362
+ throw runtime_error(std::format("Unable to open the file: {}", ConvertPathToUtf8String(prjFilePath)).c_str());
363
363
 
364
364
  os << wkt;
365
365
  os.close();