crskit 0.8.2__tar.gz → 0.9.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (442) hide show
  1. crskit-0.9.0/.github/workflows/nuget.yml +325 -0
  2. {crskit-0.8.2 → crskit-0.9.0}/.gitignore +1 -0
  3. {crskit-0.8.2 → crskit-0.9.0}/CMakeLists.txt +10 -0
  4. {crskit-0.8.2 → crskit-0.9.0}/PKG-INFO +1 -1
  5. crskit-0.9.0/capi/CMakeLists.txt +99 -0
  6. crskit-0.9.0/capi/crskit_c.map +8 -0
  7. crskit-0.9.0/capi/include/crskit_c.h +293 -0
  8. crskit-0.9.0/capi/src/CApiInternal.h +239 -0
  9. crskit-0.9.0/capi/src/Crs.cpp +452 -0
  10. crskit-0.9.0/capi/src/Geodesic.cpp +107 -0
  11. crskit-0.9.0/capi/src/Library.cpp +319 -0
  12. crskit-0.9.0/capi/src/Ntv2Grid.cpp +150 -0
  13. crskit-0.9.0/capi/src/Projection.cpp +213 -0
  14. crskit-0.9.0/capi/src/Transformation.cpp +282 -0
  15. crskit-0.9.0/capi/tests/Ntv2GridBuilder.h +104 -0
  16. crskit-0.9.0/capi/tests/TestAgainstCppApi.cpp +185 -0
  17. crskit-0.9.0/capi/tests/TestConcurrency.cpp +582 -0
  18. crskit-0.9.0/capi/tests/TestCrs.cpp +278 -0
  19. crskit-0.9.0/capi/tests/TestGeodesic.cpp +82 -0
  20. crskit-0.9.0/capi/tests/TestHeaderC.c +23 -0
  21. crskit-0.9.0/capi/tests/TestInputRobustness.cpp +290 -0
  22. crskit-0.9.0/capi/tests/TestLibrary.cpp +242 -0
  23. crskit-0.9.0/capi/tests/TestMain.cpp +123 -0
  24. crskit-0.9.0/capi/tests/TestNtv2.cpp +157 -0
  25. crskit-0.9.0/capi/tests/TestProjection.cpp +338 -0
  26. crskit-0.9.0/capi/tests/TestStructSize.cpp +213 -0
  27. crskit-0.9.0/capi/tests/TestSupport.h +133 -0
  28. crskit-0.9.0/capi/tests/TestTransformation.cpp +506 -0
  29. {crskit-0.8.2 → crskit-0.9.0}/crskit/CoordinateSystems/CoordinateSystem.cpp +6 -0
  30. {crskit-0.8.2 → crskit-0.9.0}/crskit/CoordinateSystems/Ellipsoid.cpp +11 -1
  31. {crskit-0.8.2 → crskit-0.9.0}/crskit/CoordinateSystems/Ellipsoid.h +4 -0
  32. crskit-0.9.0/crskit/CoordinateSystems/PointScaleFactor.cpp +37 -0
  33. crskit-0.9.0/crskit/CoordinateSystems/PointScaleFactor.h +20 -0
  34. {crskit-0.8.2 → crskit-0.9.0}/crskit/CoordinateSystems/Wkt2.cpp +6 -1
  35. {crskit-0.8.2 → crskit-0.9.0}/crskit/CoordinateTransformations/Algorithms/Affine.cpp +6 -16
  36. {crskit-0.8.2 → crskit-0.9.0}/crskit/CoordinateTransformations/Algorithms/Afine.h +2 -2
  37. {crskit-0.8.2 → crskit-0.9.0}/crskit/CoordinateTransformations/Algorithms/AlbersConicEqualArea.cpp +4 -2
  38. {crskit-0.8.2 → crskit-0.9.0}/crskit/CoordinateTransformations/Algorithms/AlbersConicEqualArea.h +2 -0
  39. crskit-0.9.0/crskit/CoordinateTransformations/Algorithms/CoordinateFrameRotation.cpp +63 -0
  40. crskit-0.9.0/crskit/CoordinateTransformations/Algorithms/CoordinateFrameRotation.h +33 -0
  41. {crskit-0.8.2 → crskit-0.9.0}/crskit/CoordinateTransformations/Algorithms/CylindricalProjections.cpp +28 -0
  42. {crskit-0.8.2 → crskit-0.9.0}/crskit/CoordinateTransformations/Algorithms/CylindricalProjections.h +15 -1
  43. {crskit-0.8.2 → crskit-0.9.0}/crskit/CoordinateTransformations/Algorithms/Geographic2D2Geocentric.cpp +5 -3
  44. {crskit-0.8.2 → crskit-0.9.0}/crskit/CoordinateTransformations/Algorithms/Geographic2D2Geocentric.h +2 -0
  45. {crskit-0.8.2 → crskit-0.9.0}/crskit/CoordinateTransformations/Algorithms/HotineObliqueMercator.h +2 -0
  46. {crskit-0.8.2 → crskit-0.9.0}/crskit/CoordinateTransformations/Algorithms/Krovak.h +1 -0
  47. {crskit-0.8.2 → crskit-0.9.0}/crskit/CoordinateTransformations/Algorithms/LambertConformalConic1SP.cpp +14 -2
  48. {crskit-0.8.2 → crskit-0.9.0}/crskit/CoordinateTransformations/Algorithms/LambertConformalConic1SP.h +4 -0
  49. {crskit-0.8.2 → crskit-0.9.0}/crskit/CoordinateTransformations/Algorithms/LambertConformalConic2SP.cpp +13 -2
  50. {crskit-0.8.2 → crskit-0.9.0}/crskit/CoordinateTransformations/Algorithms/LambertConformalConic2SP.h +4 -0
  51. {crskit-0.8.2 → crskit-0.9.0}/crskit/CoordinateTransformations/Algorithms/LambertConicConformalVariants.h +4 -0
  52. crskit-0.9.0/crskit/CoordinateTransformations/Algorithms/MadridToEd50Polynomial.cpp +158 -0
  53. crskit-0.9.0/crskit/CoordinateTransformations/Algorithms/MadridToEd50Polynomial.h +76 -0
  54. {crskit-0.8.2 → crskit-0.9.0}/crskit/CoordinateTransformations/Algorithms/MapProjectionBase.cpp +5 -0
  55. {crskit-0.8.2 → crskit-0.9.0}/crskit/CoordinateTransformations/Algorithms/MapProjectionBase.h +17 -0
  56. {crskit-0.8.2 → crskit-0.9.0}/crskit/CoordinateTransformations/Algorithms/Mercator1Sp.cpp +7 -0
  57. {crskit-0.8.2 → crskit-0.9.0}/crskit/CoordinateTransformations/Algorithms/Mercator1Sp.h +4 -0
  58. {crskit-0.8.2 → crskit-0.9.0}/crskit/CoordinateTransformations/Algorithms/Mercator2Sp.cpp +6 -0
  59. {crskit-0.8.2 → crskit-0.9.0}/crskit/CoordinateTransformations/Algorithms/Mercator2Sp.h +4 -0
  60. crskit-0.9.0/crskit/CoordinateTransformations/Algorithms/MolodenskyBadekas.cpp +117 -0
  61. crskit-0.9.0/crskit/CoordinateTransformations/Algorithms/MolodenskyBadekas.h +37 -0
  62. crskit-0.9.0/crskit/CoordinateTransformations/Algorithms/Ntv2.cpp +455 -0
  63. {crskit-0.8.2 → crskit-0.9.0}/crskit/CoordinateTransformations/Algorithms/Ntv2.h +23 -2
  64. {crskit-0.8.2 → crskit-0.9.0}/crskit/CoordinateTransformations/Algorithms/ObliqueMercator.h +2 -0
  65. {crskit-0.8.2 → crskit-0.9.0}/crskit/CoordinateTransformations/Algorithms/ObliqueStereographic.cpp +2 -2
  66. {crskit-0.8.2 → crskit-0.9.0}/crskit/CoordinateTransformations/Algorithms/ObliqueStereographic.h +2 -0
  67. {crskit-0.8.2 → crskit-0.9.0}/crskit/CoordinateTransformations/Algorithms/OtherProjections.h +1 -0
  68. crskit-0.9.0/crskit/CoordinateTransformations/Algorithms/PositionVectorTransformation.cpp +62 -0
  69. crskit-0.9.0/crskit/CoordinateTransformations/Algorithms/PositionVectorTransformation.h +33 -0
  70. {crskit-0.8.2 → crskit-0.9.0}/crskit/CoordinateTransformations/Algorithms/TransverseMercator.cpp +47 -0
  71. {crskit-0.8.2 → crskit-0.9.0}/crskit/CoordinateTransformations/Algorithms/TransverseMercator.h +4 -0
  72. {crskit-0.8.2 → crskit-0.9.0}/crskit/CoordinateTransformations/Algorithms/TransverseMercatorSouthOrientated.h +1 -0
  73. {crskit-0.8.2 → crskit-0.9.0}/crskit/CoordinateTransformations/ConcatenatedTransform.cpp +3 -0
  74. {crskit-0.8.2 → crskit-0.9.0}/crskit/CoordinateTransformations/ConcatenatedTransform.h +1 -1
  75. {crskit-0.8.2 → crskit-0.9.0}/crskit/CoordinateTransformations/CoordinateTransformationAuthorityFactory.cpp +11 -1
  76. {crskit-0.8.2 → crskit-0.9.0}/crskit/CoordinateTransformations/CoordinateTransformationFactory.cpp +164 -23
  77. {crskit-0.8.2 → crskit-0.9.0}/crskit/CoordinateTransformations/MathTransformFactory.cpp +7 -5
  78. {crskit-0.8.2 → crskit-0.9.0}/crskit/CoordinateTransformations/MathTransformRegistry.cpp +24 -4
  79. {crskit-0.8.2 → crskit-0.9.0}/crskit/CrsKit.h +1 -0
  80. {crskit-0.8.2 → crskit-0.9.0}/crskit/CrsKitExport.h +5 -2
  81. {crskit-0.8.2 → crskit-0.9.0}/crskit/Mathematics/Matrix.h +13 -9
  82. {crskit-0.8.2 → crskit-0.9.0}/crskit/OpenGisException.h +15 -0
  83. {crskit-0.8.2 → crskit-0.9.0}/crskit/SqliteProvider.h +71 -0
  84. {crskit-0.8.2 → crskit-0.9.0}/crskit/TokenWkt.cpp +30 -0
  85. {crskit-0.8.2 → crskit-0.9.0}/crskit/TokenWkt.h +6 -12
  86. {crskit-0.8.2 → crskit-0.9.0}/crskit/Utilities.cpp +4 -0
  87. {crskit-0.8.2 → crskit-0.9.0}/crskit/WktDeserializer.cpp +6 -3
  88. {crskit-0.8.2 → crskit-0.9.0}/crskit/WktDeserializer.h +6 -1
  89. {crskit-0.8.2 → crskit-0.9.0}/data/grid-sources.json +10 -0
  90. crskit-0.9.0/nuget/Digi21.CrsKit.Native.nuspec +25 -0
  91. crskit-0.9.0/nuget/README.md +38 -0
  92. crskit-0.9.0/nuget/buildTransitive/Digi21.CrsKit.Native.targets +11 -0
  93. crskit-0.9.0/nuget/pack.ps1 +200 -0
  94. crskit-0.9.0/nuget/smoke.ps1 +275 -0
  95. {crskit-0.8.2 → crskit-0.9.0}/ports/crskit/portfile.cmake +2 -1
  96. {crskit-0.8.2 → crskit-0.9.0}/ports/crskit/vcpkg.json +1 -1
  97. {crskit-0.8.2 → crskit-0.9.0}/pyproject.toml +1 -1
  98. {crskit-0.8.2 → crskit-0.9.0}/tests/Gigs/Test5203Part1.cpp +2 -1
  99. {crskit-0.8.2 → crskit-0.9.0}/tests/RoundTrip.h +6 -7
  100. crskit-0.9.0/tests/TestAffineInverse.cpp +168 -0
  101. crskit-0.9.0/tests/TestExceptions.cpp +115 -0
  102. crskit-0.9.0/tests/TestGeocentricToCompound.cpp +291 -0
  103. crskit-0.9.0/tests/TestGuidanceNote7_2v74.cpp +721 -0
  104. crskit-0.9.0/tests/TestHelmertGeocentricDomain.cpp +327 -0
  105. crskit-0.9.0/tests/TestHelmertReverse.cpp +168 -0
  106. crskit-0.9.0/tests/TestInverseComposition.cpp +161 -0
  107. crskit-0.9.0/tests/TestMadridToEd50Polynomial.cpp +604 -0
  108. crskit-0.9.0/tests/TestMatrixInverse.cpp +71 -0
  109. crskit-0.9.0/tests/TestNtv2FromMemory.cpp +677 -0
  110. crskit-0.9.0/tests/TestPointScaleFactor.cpp +422 -0
  111. {crskit-0.8.2 → crskit-0.9.0}/tests/TestRoundTripSweep.cpp +25 -3
  112. crskit-0.9.0/tests/data/PointScaleFactorReference.inc +870 -0
  113. crskit-0.9.0/tests/data/generate_point_scale_factor_reference.cpp +88 -0
  114. {crskit-0.8.2 → crskit-0.9.0}/versions/baseline.json +1 -1
  115. {crskit-0.8.2 → crskit-0.9.0}/versions/c-/crskit.json +5 -0
  116. crskit-0.8.2/crskit/CoordinateTransformations/Algorithms/CoordinateFrameRotation.cpp +0 -31
  117. crskit-0.8.2/crskit/CoordinateTransformations/Algorithms/CoordinateFrameRotation.h +0 -19
  118. crskit-0.8.2/crskit/CoordinateTransformations/Algorithms/MolodenskyBadekas.cpp +0 -90
  119. crskit-0.8.2/crskit/CoordinateTransformations/Algorithms/MolodenskyBadekas.h +0 -24
  120. crskit-0.8.2/crskit/CoordinateTransformations/Algorithms/Ntv2.cpp +0 -366
  121. crskit-0.8.2/crskit/CoordinateTransformations/Algorithms/PositionVectorTransformation.cpp +0 -39
  122. crskit-0.8.2/crskit/CoordinateTransformations/Algorithms/PositionVectorTransformation.h +0 -19
  123. crskit-0.8.2/tests/TestExceptions.cpp +0 -42
  124. {crskit-0.8.2 → crskit-0.9.0}/.gitattributes +0 -0
  125. {crskit-0.8.2 → crskit-0.9.0}/.github/workflows/ci.yml +0 -0
  126. {crskit-0.8.2 → crskit-0.9.0}/.github/workflows/epsg.yml +0 -0
  127. {crskit-0.8.2 → crskit-0.9.0}/.github/workflows/wheels.yml +0 -0
  128. {crskit-0.8.2 → crskit-0.9.0}/CMakePresets.json +0 -0
  129. {crskit-0.8.2 → crskit-0.9.0}/LICENSE +0 -0
  130. {crskit-0.8.2 → crskit-0.9.0}/Readme.md +0 -0
  131. {crskit-0.8.2 → crskit-0.9.0}/branding/crskit-logo-128.png +0 -0
  132. {crskit-0.8.2 → crskit-0.9.0}/branding/crskit-logo-256.png +0 -0
  133. {crskit-0.8.2 → crskit-0.9.0}/branding/crskit-logo-512.png +0 -0
  134. {crskit-0.8.2 → crskit-0.9.0}/branding/crskit-logo-64.png +0 -0
  135. {crskit-0.8.2 → crskit-0.9.0}/branding/crskit-logo.svg +0 -0
  136. {crskit-0.8.2 → crskit-0.9.0}/branding/crskit.ico +0 -0
  137. {crskit-0.8.2 → crskit-0.9.0}/cmake/crskit-config.cmake.in +0 -0
  138. {crskit-0.8.2 → crskit-0.9.0}/crskit/CoordinateSystems/AngularUnit.cpp +0 -0
  139. {crskit-0.8.2 → crskit-0.9.0}/crskit/CoordinateSystems/AngularUnit.h +0 -0
  140. {crskit-0.8.2 → crskit-0.9.0}/crskit/CoordinateSystems/AxisInfo.h +0 -0
  141. {crskit-0.8.2 → crskit-0.9.0}/crskit/CoordinateSystems/AxisOrientationEnum.h +0 -0
  142. {crskit-0.8.2 → crskit-0.9.0}/crskit/CoordinateSystems/BaseInfo.h +0 -0
  143. {crskit-0.8.2 → crskit-0.9.0}/crskit/CoordinateSystems/CompoundCoordinateSystem.cpp +0 -0
  144. {crskit-0.8.2 → crskit-0.9.0}/crskit/CoordinateSystems/CompoundCoordinateSystem.h +0 -0
  145. {crskit-0.8.2 → crskit-0.9.0}/crskit/CoordinateSystems/CoordinateSystem.h +0 -0
  146. {crskit-0.8.2 → crskit-0.9.0}/crskit/CoordinateSystems/CoordinateSystemAuthorityFactory.cpp +0 -0
  147. {crskit-0.8.2 → crskit-0.9.0}/crskit/CoordinateSystems/CoordinateSystemAuthorityFactory.h +0 -0
  148. {crskit-0.8.2 → crskit-0.9.0}/crskit/CoordinateSystems/CoordinateSystemEquivalence.cpp +0 -0
  149. {crskit-0.8.2 → crskit-0.9.0}/crskit/CoordinateSystems/CoordinateSystemFactory.cpp +0 -0
  150. {crskit-0.8.2 → crskit-0.9.0}/crskit/CoordinateSystems/CoordinateSystemFactory.h +0 -0
  151. {crskit-0.8.2 → crskit-0.9.0}/crskit/CoordinateSystems/Datum.cpp +0 -0
  152. {crskit-0.8.2 → crskit-0.9.0}/crskit/CoordinateSystems/Datum.h +0 -0
  153. {crskit-0.8.2 → crskit-0.9.0}/crskit/CoordinateSystems/DatumType.h +0 -0
  154. {crskit-0.8.2 → crskit-0.9.0}/crskit/CoordinateSystems/GeocentricCoordinateSystem.cpp +0 -0
  155. {crskit-0.8.2 → crskit-0.9.0}/crskit/CoordinateSystems/GeocentricCoordinateSystem.h +0 -0
  156. {crskit-0.8.2 → crskit-0.9.0}/crskit/CoordinateSystems/GeographicCoordinateSystem.cpp +0 -0
  157. {crskit-0.8.2 → crskit-0.9.0}/crskit/CoordinateSystems/GeographicCoordinateSystem.h +0 -0
  158. {crskit-0.8.2 → crskit-0.9.0}/crskit/CoordinateSystems/HorizontalCoordinateSystem.cpp +0 -0
  159. {crskit-0.8.2 → crskit-0.9.0}/crskit/CoordinateSystems/HorizontalCoordinateSystem.h +0 -0
  160. {crskit-0.8.2 → crskit-0.9.0}/crskit/CoordinateSystems/HorizontalDatum.cpp +0 -0
  161. {crskit-0.8.2 → crskit-0.9.0}/crskit/CoordinateSystems/HorizontalDatum.h +0 -0
  162. {crskit-0.8.2 → crskit-0.9.0}/crskit/CoordinateSystems/ICompoundCoordinateSystem.h +0 -0
  163. {crskit-0.8.2 → crskit-0.9.0}/crskit/CoordinateSystems/ICoordinateSystem.h +0 -0
  164. {crskit-0.8.2 → crskit-0.9.0}/crskit/CoordinateSystems/ICoordinateSystemAuthorityFactory.h +0 -0
  165. {crskit-0.8.2 → crskit-0.9.0}/crskit/CoordinateSystems/IDatum.h +0 -0
  166. {crskit-0.8.2 → crskit-0.9.0}/crskit/CoordinateSystems/IGeocentricCoordinateSystem.h +0 -0
  167. {crskit-0.8.2 → crskit-0.9.0}/crskit/CoordinateSystems/IGeographicCoordinateSystem.h +0 -0
  168. {crskit-0.8.2 → crskit-0.9.0}/crskit/CoordinateSystems/IHorizontalCoordinateSystem.h +0 -0
  169. {crskit-0.8.2 → crskit-0.9.0}/crskit/CoordinateSystems/IHorizontalDatum.h +0 -0
  170. {crskit-0.8.2 → crskit-0.9.0}/crskit/CoordinateSystems/IInfo.h +0 -0
  171. {crskit-0.8.2 → crskit-0.9.0}/crskit/CoordinateSystems/ILocalCoordinateSystem.h +0 -0
  172. {crskit-0.8.2 → crskit-0.9.0}/crskit/CoordinateSystems/ILocalDatum.h +0 -0
  173. {crskit-0.8.2 → crskit-0.9.0}/crskit/CoordinateSystems/IProjectedCoordinateSystem.h +0 -0
  174. {crskit-0.8.2 → crskit-0.9.0}/crskit/CoordinateSystems/IProjection.h +0 -0
  175. {crskit-0.8.2 → crskit-0.9.0}/crskit/CoordinateSystems/IVerticalCoordinateSystem.h +0 -0
  176. {crskit-0.8.2 → crskit-0.9.0}/crskit/CoordinateSystems/IVerticalDatum.h +0 -0
  177. {crskit-0.8.2 → crskit-0.9.0}/crskit/CoordinateSystems/LinearUnit.cpp +0 -0
  178. {crskit-0.8.2 → crskit-0.9.0}/crskit/CoordinateSystems/LinearUnit.h +0 -0
  179. {crskit-0.8.2 → crskit-0.9.0}/crskit/CoordinateSystems/LocalCoordinateSystem.cpp +0 -0
  180. {crskit-0.8.2 → crskit-0.9.0}/crskit/CoordinateSystems/LocalCoordinateSystem.h +0 -0
  181. {crskit-0.8.2 → crskit-0.9.0}/crskit/CoordinateSystems/LocalDatum.cpp +0 -0
  182. {crskit-0.8.2 → crskit-0.9.0}/crskit/CoordinateSystems/LocalDatum.h +0 -0
  183. {crskit-0.8.2 → crskit-0.9.0}/crskit/CoordinateSystems/PrimeMeridian.cpp +0 -0
  184. {crskit-0.8.2 → crskit-0.9.0}/crskit/CoordinateSystems/PrimeMeridian.h +0 -0
  185. {crskit-0.8.2 → crskit-0.9.0}/crskit/CoordinateSystems/ProjectedCoordinateSystem.cpp +0 -0
  186. {crskit-0.8.2 → crskit-0.9.0}/crskit/CoordinateSystems/ProjectedCoordinateSystem.h +0 -0
  187. {crskit-0.8.2 → crskit-0.9.0}/crskit/CoordinateSystems/Projection.cpp +0 -0
  188. {crskit-0.8.2 → crskit-0.9.0}/crskit/CoordinateSystems/Projection.h +0 -0
  189. {crskit-0.8.2 → crskit-0.9.0}/crskit/CoordinateSystems/Unit.h +0 -0
  190. {crskit-0.8.2 → crskit-0.9.0}/crskit/CoordinateSystems/VerticalCoordinateSystem.cpp +0 -0
  191. {crskit-0.8.2 → crskit-0.9.0}/crskit/CoordinateSystems/VerticalCoordinateSystem.h +0 -0
  192. {crskit-0.8.2 → crskit-0.9.0}/crskit/CoordinateSystems/VerticalDatum.cpp +0 -0
  193. {crskit-0.8.2 → crskit-0.9.0}/crskit/CoordinateSystems/VerticalDatum.h +0 -0
  194. {crskit-0.8.2 → crskit-0.9.0}/crskit/CoordinateSystems/Wgs84ConversionInfo.h +0 -0
  195. {crskit-0.8.2 → crskit-0.9.0}/crskit/CoordinateSystems/Wkt2.h +0 -0
  196. {crskit-0.8.2 → crskit-0.9.0}/crskit/CoordinateTransformationOptions.h +0 -0
  197. {crskit-0.8.2 → crskit-0.9.0}/crskit/CoordinateTransformations/Algorithms/AmericanPolyconic.cpp +0 -0
  198. {crskit-0.8.2 → crskit-0.9.0}/crskit/CoordinateTransformations/Algorithms/AmericanPolyconic.h +0 -0
  199. {crskit-0.8.2 → crskit-0.9.0}/crskit/CoordinateTransformations/Algorithms/Authalic.h +0 -0
  200. {crskit-0.8.2 → crskit-0.9.0}/crskit/CoordinateTransformations/Algorithms/AzimuthalProjections.cpp +0 -0
  201. {crskit-0.8.2 → crskit-0.9.0}/crskit/CoordinateTransformations/Algorithms/AzimuthalProjections.h +0 -0
  202. {crskit-0.8.2 → crskit-0.9.0}/crskit/CoordinateTransformations/Algorithms/CassiniSoldner.cpp +0 -0
  203. {crskit-0.8.2 → crskit-0.9.0}/crskit/CoordinateTransformations/Algorithms/CassiniSoldner.h +0 -0
  204. {crskit-0.8.2 → crskit-0.9.0}/crskit/CoordinateTransformations/Algorithms/GeocentricToTopocentric.cpp +0 -0
  205. {crskit-0.8.2 → crskit-0.9.0}/crskit/CoordinateTransformations/Algorithms/GeocentricToTopocentric.h +0 -0
  206. {crskit-0.8.2 → crskit-0.9.0}/crskit/CoordinateTransformations/Algorithms/GeocentricTranslations.cpp +0 -0
  207. {crskit-0.8.2 → crskit-0.9.0}/crskit/CoordinateTransformations/Algorithms/GeocentricTranslations.h +0 -0
  208. {crskit-0.8.2 → crskit-0.9.0}/crskit/CoordinateTransformations/Algorithms/Geodesic.h +0 -0
  209. {crskit-0.8.2 → crskit-0.9.0}/crskit/CoordinateTransformations/Algorithms/Geographic2D2Geographic3D.cpp +0 -0
  210. {crskit-0.8.2 → crskit-0.9.0}/crskit/CoordinateTransformations/Algorithms/Geographic2D2Geographic3D.h +0 -0
  211. {crskit-0.8.2 → crskit-0.9.0}/crskit/CoordinateTransformations/Algorithms/Geographic3DToGravityRelatedHeightEGM.cpp +0 -0
  212. {crskit-0.8.2 → crskit-0.9.0}/crskit/CoordinateTransformations/Algorithms/Geographic3DToGravityRelatedHeightEGM.h +0 -0
  213. {crskit-0.8.2 → crskit-0.9.0}/crskit/CoordinateTransformations/Algorithms/Geographic3DToGravityRelatedHeightEGM2008.cpp +0 -0
  214. {crskit-0.8.2 → crskit-0.9.0}/crskit/CoordinateTransformations/Algorithms/Geographic3DToGravityRelatedHeightEGM2008.h +0 -0
  215. {crskit-0.8.2 → crskit-0.9.0}/crskit/CoordinateTransformations/Algorithms/GridFiles/GridAusGeoid.cpp +0 -0
  216. {crskit-0.8.2 → crskit-0.9.0}/crskit/CoordinateTransformations/Algorithms/GridFiles/GridAusGeoid.h +0 -0
  217. {crskit-0.8.2 → crskit-0.9.0}/crskit/CoordinateTransformations/Algorithms/GridFiles/GridEGM2008.cpp +0 -0
  218. {crskit-0.8.2 → crskit-0.9.0}/crskit/CoordinateTransformations/Algorithms/GridFiles/GridEGM2008.h +0 -0
  219. {crskit-0.8.2 → crskit-0.9.0}/crskit/CoordinateTransformations/Algorithms/GridFiles/GridEGM2008Rednap.cpp +0 -0
  220. {crskit-0.8.2 → crskit-0.9.0}/crskit/CoordinateTransformations/Algorithms/GridFiles/GridEGM2008Rednap.h +0 -0
  221. {crskit-0.8.2 → crskit-0.9.0}/crskit/CoordinateTransformations/Algorithms/GridFiles/GridGtg.cpp +0 -0
  222. {crskit-0.8.2 → crskit-0.9.0}/crskit/CoordinateTransformations/Algorithms/GridFiles/GridGtg.h +0 -0
  223. {crskit-0.8.2 → crskit-0.9.0}/crskit/CoordinateTransformations/Algorithms/GridFiles/GridGtx.cpp +0 -0
  224. {crskit-0.8.2 → crskit-0.9.0}/crskit/CoordinateTransformations/Algorithms/GridFiles/GridGtx.h +0 -0
  225. {crskit-0.8.2 → crskit-0.9.0}/crskit/CoordinateTransformations/Algorithms/GridFiles/Inflate.cpp +0 -0
  226. {crskit-0.8.2 → crskit-0.9.0}/crskit/CoordinateTransformations/Algorithms/GridFiles/Inflate.h +0 -0
  227. {crskit-0.8.2 → crskit-0.9.0}/crskit/CoordinateTransformations/Algorithms/HotineObliqueMercator.cpp +0 -0
  228. {crskit-0.8.2 → crskit-0.9.0}/crskit/CoordinateTransformations/Algorithms/Krovak.cpp +0 -0
  229. {crskit-0.8.2 → crskit-0.9.0}/crskit/CoordinateTransformations/Algorithms/LambertAzimuthalEqualArea.cpp +0 -0
  230. {crskit-0.8.2 → crskit-0.9.0}/crskit/CoordinateTransformations/Algorithms/LambertAzimuthalEqualArea.h +0 -0
  231. {crskit-0.8.2 → crskit-0.9.0}/crskit/CoordinateTransformations/Algorithms/LambertConicConformalVariants.cpp +0 -0
  232. {crskit-0.8.2 → crskit-0.9.0}/crskit/CoordinateTransformations/Algorithms/LongitudeRotation.cpp +0 -0
  233. {crskit-0.8.2 → crskit-0.9.0}/crskit/CoordinateTransformations/Algorithms/LongitudeRotation.h +0 -0
  234. {crskit-0.8.2 → crskit-0.9.0}/crskit/CoordinateTransformations/Algorithms/NadCon.cpp +0 -0
  235. {crskit-0.8.2 → crskit-0.9.0}/crskit/CoordinateTransformations/Algorithms/NadCon.h +0 -0
  236. {crskit-0.8.2 → crskit-0.9.0}/crskit/CoordinateTransformations/Algorithms/ObliqueMercator.cpp +0 -0
  237. {crskit-0.8.2 → crskit-0.9.0}/crskit/CoordinateTransformations/Algorithms/OtherProjections.cpp +0 -0
  238. {crskit-0.8.2 → crskit-0.9.0}/crskit/CoordinateTransformations/Algorithms/P6.cpp +0 -0
  239. {crskit-0.8.2 → crskit-0.9.0}/crskit/CoordinateTransformations/Algorithms/P6.h +0 -0
  240. {crskit-0.8.2 → crskit-0.9.0}/crskit/CoordinateTransformations/Algorithms/PolarStereographic.cpp +0 -0
  241. {crskit-0.8.2 → crskit-0.9.0}/crskit/CoordinateTransformations/Algorithms/PolarStereographic.h +0 -0
  242. {crskit-0.8.2 → crskit-0.9.0}/crskit/CoordinateTransformations/Algorithms/PopularVisualisationPseudoMercator.cpp +0 -0
  243. {crskit-0.8.2 → crskit-0.9.0}/crskit/CoordinateTransformations/Algorithms/PopularVisualisationPseudoMercator.h +0 -0
  244. {crskit-0.8.2 → crskit-0.9.0}/crskit/CoordinateTransformations/Algorithms/TransverseMercatorSouthOrientated.cpp +0 -0
  245. {crskit-0.8.2 → crskit-0.9.0}/crskit/CoordinateTransformations/Algorithms/VerticalOffset.cpp +0 -0
  246. {crskit-0.8.2 → crskit-0.9.0}/crskit/CoordinateTransformations/Algorithms/VerticalOffset.h +0 -0
  247. {crskit-0.8.2 → crskit-0.9.0}/crskit/CoordinateTransformations/CoordinateOperation.h +0 -0
  248. {crskit-0.8.2 → crskit-0.9.0}/crskit/CoordinateTransformations/CoordinateTransformation.cpp +0 -0
  249. {crskit-0.8.2 → crskit-0.9.0}/crskit/CoordinateTransformations/CoordinateTransformation.h +0 -0
  250. {crskit-0.8.2 → crskit-0.9.0}/crskit/CoordinateTransformations/CoordinateTransformationAuthorityFactory.h +0 -0
  251. {crskit-0.8.2 → crskit-0.9.0}/crskit/CoordinateTransformations/CoordinateTransformationFactory.h +0 -0
  252. {crskit-0.8.2 → crskit-0.9.0}/crskit/CoordinateTransformations/DomainFlags.h +0 -0
  253. {crskit-0.8.2 → crskit-0.9.0}/crskit/CoordinateTransformations/ICoordinateTransformation.h +0 -0
  254. {crskit-0.8.2 → crskit-0.9.0}/crskit/CoordinateTransformations/ICoordinateTransformationAuthorityFactory.h +0 -0
  255. {crskit-0.8.2 → crskit-0.9.0}/crskit/CoordinateTransformations/ICoordinateTransformationFactory.h +0 -0
  256. {crskit-0.8.2 → crskit-0.9.0}/crskit/CoordinateTransformations/IMathTransform.h +0 -0
  257. {crskit-0.8.2 → crskit-0.9.0}/crskit/CoordinateTransformations/IMathTransformFactory.h +0 -0
  258. {crskit-0.8.2 → crskit-0.9.0}/crskit/CoordinateTransformations/MathTransformBase.cpp +0 -0
  259. {crskit-0.8.2 → crskit-0.9.0}/crskit/CoordinateTransformations/MathTransformBase.h +0 -0
  260. {crskit-0.8.2 → crskit-0.9.0}/crskit/CoordinateTransformations/MathTransformFactory.h +0 -0
  261. {crskit-0.8.2 → crskit-0.9.0}/crskit/CoordinateTransformations/MathTransformRegistry.h +0 -0
  262. {crskit-0.8.2 → crskit-0.9.0}/crskit/CoordinateTransformations/Passthrough.cpp +0 -0
  263. {crskit-0.8.2 → crskit-0.9.0}/crskit/CoordinateTransformations/Passthrough.h +0 -0
  264. {crskit-0.8.2 → crskit-0.9.0}/crskit/CoordinateTransformations/ThreeCoordinateHeightTransform.cpp +0 -0
  265. {crskit-0.8.2 → crskit-0.9.0}/crskit/CoordinateTransformations/ThreeCoordinateHeightTransform.h +0 -0
  266. {crskit-0.8.2 → crskit-0.9.0}/crskit/CoordinateTransformations/TransformType.h +0 -0
  267. {crskit-0.8.2 → crskit-0.9.0}/crskit/CoordinateTransformations/UnitsOfMeasure.h +0 -0
  268. {crskit-0.8.2 → crskit-0.9.0}/crskit/CrsAliases.cpp +0 -0
  269. {crskit-0.8.2 → crskit-0.9.0}/crskit/CrsAliases.h +0 -0
  270. {crskit-0.8.2 → crskit-0.9.0}/crskit/CrsContext.h +0 -0
  271. {crskit-0.8.2 → crskit-0.9.0}/crskit/EsriProjectionEngine.cpp +0 -0
  272. {crskit-0.8.2 → crskit-0.9.0}/crskit/EsriProjectionEngine.h +0 -0
  273. {crskit-0.8.2 → crskit-0.9.0}/crskit/ExtensionManager.cpp +0 -0
  274. {crskit-0.8.2 → crskit-0.9.0}/crskit/ExtensionManager.h +0 -0
  275. {crskit-0.8.2 → crskit-0.9.0}/crskit/Factory.h +0 -0
  276. {crskit-0.8.2 → crskit-0.9.0}/crskit/GridFileNotFoundException.h +0 -0
  277. {crskit-0.8.2 → crskit-0.9.0}/crskit/GridFiles.cpp +0 -0
  278. {crskit-0.8.2 → crskit-0.9.0}/crskit/IAuthorityProvider.h +0 -0
  279. {crskit-0.8.2 → crskit-0.9.0}/crskit/IUtilities.h +0 -0
  280. {crskit-0.8.2 → crskit-0.9.0}/crskit/Mathematics/Angles.h +0 -0
  281. {crskit-0.8.2 → crskit-0.9.0}/crskit/Mathematics/Concepts.h +0 -0
  282. {crskit-0.8.2 → crskit-0.9.0}/crskit/Mathematics/GridCell.h +0 -0
  283. {crskit-0.8.2 → crskit-0.9.0}/crskit/Mathematics/GridInterpolation.h +0 -0
  284. {crskit-0.8.2 → crskit-0.9.0}/crskit/Mathematics/Interpolation.h +0 -0
  285. {crskit-0.8.2 → crskit-0.9.0}/crskit/Mathematics/Point.h +0 -0
  286. {crskit-0.8.2 → crskit-0.9.0}/crskit/Mathematics/Window2D.h +0 -0
  287. {crskit-0.8.2 → crskit-0.9.0}/crskit/OpenGisAttributes.h +0 -0
  288. {crskit-0.8.2 → crskit-0.9.0}/crskit/Parameter.h +0 -0
  289. {crskit-0.8.2 → crskit-0.9.0}/crskit/Positioning/Envelope.h +0 -0
  290. {crskit-0.8.2 → crskit-0.9.0}/crskit/Positioning/GeographicBoundingBox.h +0 -0
  291. {crskit-0.8.2 → crskit-0.9.0}/crskit/StringUtil.h +0 -0
  292. {crskit-0.8.2 → crskit-0.9.0}/crskit/Utilities.h +0 -0
  293. {crskit-0.8.2 → crskit-0.9.0}/crskit/app.ico +0 -0
  294. {crskit-0.8.2 → crskit-0.9.0}/crskit/pch.cpp +0 -0
  295. {crskit-0.8.2 → crskit-0.9.0}/crskit/pch.h +0 -0
  296. {crskit-0.8.2 → crskit-0.9.0}/external/sqlite/sqlite3.c +0 -0
  297. {crskit-0.8.2 → crskit-0.9.0}/external/sqlite/sqlite3.h +0 -0
  298. {crskit-0.8.2 → crskit-0.9.0}/python/CMakeLists.txt +0 -0
  299. {crskit-0.8.2 → crskit-0.9.0}/python/README.md +0 -0
  300. {crskit-0.8.2 → crskit-0.9.0}/python/TUTORIAL.de.md +0 -0
  301. {crskit-0.8.2 → crskit-0.9.0}/python/TUTORIAL.es.md +0 -0
  302. {crskit-0.8.2 → crskit-0.9.0}/python/TUTORIAL.fr.md +0 -0
  303. {crskit-0.8.2 → crskit-0.9.0}/python/TUTORIAL.it.md +0 -0
  304. {crskit-0.8.2 → crskit-0.9.0}/python/TUTORIAL.md +0 -0
  305. {crskit-0.8.2 → crskit-0.9.0}/python/crskit/__init__.py +0 -0
  306. {crskit-0.8.2 → crskit-0.9.0}/python/crskit/_crskit.pyi +0 -0
  307. {crskit-0.8.2 → crskit-0.9.0}/python/crskit/py.typed +0 -0
  308. {crskit-0.8.2 → crskit-0.9.0}/python/examples/01_quickstart.py +0 -0
  309. {crskit-0.8.2 → crskit-0.9.0}/python/examples/02_wkt.py +0 -0
  310. {crskit-0.8.2 → crskit-0.9.0}/python/examples/03_point_cloud.py +0 -0
  311. {crskit-0.8.2 → crskit-0.9.0}/python/examples/04_choosing_the_operation.py +0 -0
  312. {crskit-0.8.2 → crskit-0.9.0}/python/examples/05_orthometric_heights.py +0 -0
  313. {crskit-0.8.2 → crskit-0.9.0}/python/examples/06_global_geoid.py +0 -0
  314. {crskit-0.8.2 → crskit-0.9.0}/python/examples/README.md +0 -0
  315. {crskit-0.8.2 → crskit-0.9.0}/python/examples/_setup.py +0 -0
  316. {crskit-0.8.2 → crskit-0.9.0}/python/src/module.cpp +0 -0
  317. {crskit-0.8.2 → crskit-0.9.0}/python/tests/test_crskit.py +0 -0
  318. {crskit-0.8.2 → crskit-0.9.0}/python/tests/test_examples.py +0 -0
  319. {crskit-0.8.2 → crskit-0.9.0}/python-epsg/README.md +0 -0
  320. {crskit-0.8.2 → crskit-0.9.0}/python-epsg/crskit_epsg/EPSG-TERMS-OF-USE.md +0 -0
  321. {crskit-0.8.2 → crskit-0.9.0}/python-epsg/crskit_epsg/__init__.py +0 -0
  322. {crskit-0.8.2 → crskit-0.9.0}/python-epsg/fetch.py +0 -0
  323. {crskit-0.8.2 → crskit-0.9.0}/python-epsg/pyproject.toml +0 -0
  324. {crskit-0.8.2 → crskit-0.9.0}/tests/Gigs/Test5101Part2.cpp +0 -0
  325. {crskit-0.8.2 → crskit-0.9.0}/tests/Gigs/Test5101Part3.cpp +0 -0
  326. {crskit-0.8.2 → crskit-0.9.0}/tests/Gigs/Test5101Part4.cpp +0 -0
  327. {crskit-0.8.2 → crskit-0.9.0}/tests/Gigs/Test5102Part1.cpp +0 -0
  328. {crskit-0.8.2 → crskit-0.9.0}/tests/Gigs/Test5102Part2.cpp +0 -0
  329. {crskit-0.8.2 → crskit-0.9.0}/tests/Gigs/Test5103Part1.cpp +0 -0
  330. {crskit-0.8.2 → crskit-0.9.0}/tests/Gigs/Test5103Part2.cpp +0 -0
  331. {crskit-0.8.2 → crskit-0.9.0}/tests/Gigs/Test5103Part3.cpp +0 -0
  332. {crskit-0.8.2 → crskit-0.9.0}/tests/Gigs/Test5104Part1.cpp +0 -0
  333. {crskit-0.8.2 → crskit-0.9.0}/tests/Gigs/Test5105Part1.cpp +0 -0
  334. {crskit-0.8.2 → crskit-0.9.0}/tests/Gigs/Test5105Part2.cpp +0 -0
  335. {crskit-0.8.2 → crskit-0.9.0}/tests/Gigs/Test5106Part1.cpp +0 -0
  336. {crskit-0.8.2 → crskit-0.9.0}/tests/Gigs/Test5107Part1.cpp +0 -0
  337. {crskit-0.8.2 → crskit-0.9.0}/tests/Gigs/Test5108Part1.cpp +0 -0
  338. {crskit-0.8.2 → crskit-0.9.0}/tests/Gigs/Test5109Part1.cpp +0 -0
  339. {crskit-0.8.2 → crskit-0.9.0}/tests/Gigs/Test5110Part1.cpp +0 -0
  340. {crskit-0.8.2 → crskit-0.9.0}/tests/Gigs/Test5111Part1.cpp +0 -0
  341. {crskit-0.8.2 → crskit-0.9.0}/tests/Gigs/Test5111Part2.cpp +0 -0
  342. {crskit-0.8.2 → crskit-0.9.0}/tests/Gigs/Test5112Part1.cpp +0 -0
  343. {crskit-0.8.2 → crskit-0.9.0}/tests/Gigs/Test5113Part1.cpp +0 -0
  344. {crskit-0.8.2 → crskit-0.9.0}/tests/Gigs/Test5201Part1.cpp +0 -0
  345. {crskit-0.8.2 → crskit-0.9.0}/tests/Gigs/Test5204Part1.cpp +0 -0
  346. {crskit-0.8.2 → crskit-0.9.0}/tests/Gigs/Test5205Part1.cpp +0 -0
  347. {crskit-0.8.2 → crskit-0.9.0}/tests/Gigs/Test5205Part2.cpp +0 -0
  348. {crskit-0.8.2 → crskit-0.9.0}/tests/Gigs/Test5207Part1.cpp +0 -0
  349. {crskit-0.8.2 → crskit-0.9.0}/tests/Gigs/Test5207Part2.cpp +0 -0
  350. {crskit-0.8.2 → crskit-0.9.0}/tests/Gigs/Test5208Part1.cpp +0 -0
  351. {crskit-0.8.2 → crskit-0.9.0}/tests/Gigs/Test5209Part1.cpp +0 -0
  352. {crskit-0.8.2 → crskit-0.9.0}/tests/Gigs/Test5210Part1.cpp +0 -0
  353. {crskit-0.8.2 → crskit-0.9.0}/tests/Gigs/Test5210Part10.cpp +0 -0
  354. {crskit-0.8.2 → crskit-0.9.0}/tests/Gigs/Test5210Part11.cpp +0 -0
  355. {crskit-0.8.2 → crskit-0.9.0}/tests/Gigs/Test5210Part12.cpp +0 -0
  356. {crskit-0.8.2 → crskit-0.9.0}/tests/Gigs/Test5210Part2.cpp +0 -0
  357. {crskit-0.8.2 → crskit-0.9.0}/tests/Gigs/Test5210Part3.cpp +0 -0
  358. {crskit-0.8.2 → crskit-0.9.0}/tests/Gigs/Test5210Part4.cpp +0 -0
  359. {crskit-0.8.2 → crskit-0.9.0}/tests/Gigs/Test5210Part5.cpp +0 -0
  360. {crskit-0.8.2 → crskit-0.9.0}/tests/Gigs/Test5210Part6.cpp +0 -0
  361. {crskit-0.8.2 → crskit-0.9.0}/tests/Gigs/Test5210Part7.cpp +0 -0
  362. {crskit-0.8.2 → crskit-0.9.0}/tests/Gigs/Test5210Part8.cpp +0 -0
  363. {crskit-0.8.2 → crskit-0.9.0}/tests/Gigs/Test5210Part9.cpp +0 -0
  364. {crskit-0.8.2 → crskit-0.9.0}/tests/Gigs/Test5212Part1.cpp +0 -0
  365. {crskit-0.8.2 → crskit-0.9.0}/tests/Gigs/Test5213Part1.cpp +0 -0
  366. {crskit-0.8.2 → crskit-0.9.0}/tests/GigsFactory.h +0 -0
  367. {crskit-0.8.2 → crskit-0.9.0}/tests/Test5101Part1.cpp +0 -0
  368. {crskit-0.8.2 → crskit-0.9.0}/tests/TestAmericanPolyconic.cpp +0 -0
  369. {crskit-0.8.2 → crskit-0.9.0}/tests/TestAntimeridian.cpp +0 -0
  370. {crskit-0.8.2 → crskit-0.9.0}/tests/TestAreaOfUseBoundingBox.cpp +0 -0
  371. {crskit-0.8.2 → crskit-0.9.0}/tests/TestAzimuthalProjections.cpp +0 -0
  372. {crskit-0.8.2 → crskit-0.9.0}/tests/TestBase.h +0 -0
  373. {crskit-0.8.2 → crskit-0.9.0}/tests/TestCassiniSoldner.cpp +0 -0
  374. {crskit-0.8.2 → crskit-0.9.0}/tests/TestCatalogueSweep.cpp +0 -0
  375. {crskit-0.8.2 → crskit-0.9.0}/tests/TestCompoundFromWkt.cpp +0 -0
  376. {crskit-0.8.2 → crskit-0.9.0}/tests/TestContextEnvironment.cpp +0 -0
  377. {crskit-0.8.2 → crskit-0.9.0}/tests/TestCrsAliases.cpp +0 -0
  378. {crskit-0.8.2 → crskit-0.9.0}/tests/TestCylindricalProjections.cpp +0 -0
  379. {crskit-0.8.2 → crskit-0.9.0}/tests/TestDatabaseErrors.cpp +0 -0
  380. {crskit-0.8.2 → crskit-0.9.0}/tests/TestDatumComparison.cpp +0 -0
  381. {crskit-0.8.2 → crskit-0.9.0}/tests/TestDatumNameNormalization.cpp +0 -0
  382. {crskit-0.8.2 → crskit-0.9.0}/tests/TestDatumOfCrs.cpp +0 -0
  383. {crskit-0.8.2 → crskit-0.9.0}/tests/TestEllipsoidInFeet.cpp +0 -0
  384. {crskit-0.8.2 → crskit-0.9.0}/tests/TestEnvironment.cpp +0 -0
  385. {crskit-0.8.2 → crskit-0.9.0}/tests/TestEquivalence.cpp +0 -0
  386. {crskit-0.8.2 → crskit-0.9.0}/tests/TestEsriCompound.cpp +0 -0
  387. {crskit-0.8.2 → crskit-0.9.0}/tests/TestEsriTables.cpp +0 -0
  388. {crskit-0.8.2 → crskit-0.9.0}/tests/TestEsriTowgs84Snap.cpp +0 -0
  389. {crskit-0.8.2 → crskit-0.9.0}/tests/TestGeocentricOperations.cpp +0 -0
  390. {crskit-0.8.2 → crskit-0.9.0}/tests/TestGeocentricWithoutEpsgCode.cpp +0 -0
  391. {crskit-0.8.2 → crskit-0.9.0}/tests/TestGeocentricWkt.cpp +0 -0
  392. {crskit-0.8.2 → crskit-0.9.0}/tests/TestGeographic2DVertical.cpp +0 -0
  393. {crskit-0.8.2 → crskit-0.9.0}/tests/TestGeographic3DDatumShift.cpp +0 -0
  394. {crskit-0.8.2 → crskit-0.9.0}/tests/TestGeographic3DTowgs84.cpp +0 -0
  395. {crskit-0.8.2 → crskit-0.9.0}/tests/TestGeographicAndGeocentric3DWithoutCodeToHorizontal.cpp +0 -0
  396. {crskit-0.8.2 → crskit-0.9.0}/tests/TestGeographicAxisOrder.cpp +0 -0
  397. {crskit-0.8.2 → crskit-0.9.0}/tests/TestGeographicToGeocentricDatumShift.cpp +0 -0
  398. {crskit-0.8.2 → crskit-0.9.0}/tests/TestGridCell.cpp +0 -0
  399. {crskit-0.8.2 → crskit-0.9.0}/tests/TestGridFile.cpp +0 -0
  400. {crskit-0.8.2 → crskit-0.9.0}/tests/TestHeaderWarnings.cpp +0 -0
  401. {crskit-0.8.2 → crskit-0.9.0}/tests/TestKrovak.cpp +0 -0
  402. {crskit-0.8.2 → crskit-0.9.0}/tests/TestLambertAzimuthalEqualArea.cpp +0 -0
  403. {crskit-0.8.2 → crskit-0.9.0}/tests/TestLambertConicConformalVariants.cpp +0 -0
  404. {crskit-0.8.2 → crskit-0.9.0}/tests/TestLongitudeRotation.cpp +0 -0
  405. {crskit-0.8.2 → crskit-0.9.0}/tests/TestMolodenskyBadekas.cpp +0 -0
  406. {crskit-0.8.2 → crskit-0.9.0}/tests/TestNonAsciiPaths.cpp +0 -0
  407. {crskit-0.8.2 → crskit-0.9.0}/tests/TestNonNumericAuthority.cpp +0 -0
  408. {crskit-0.8.2 → crskit-0.9.0}/tests/TestObliqueMercator.cpp +0 -0
  409. {crskit-0.8.2 → crskit-0.9.0}/tests/TestOperationSelection.cpp +0 -0
  410. {crskit-0.8.2 → crskit-0.9.0}/tests/TestOtherProjections.cpp +0 -0
  411. {crskit-0.8.2 → crskit-0.9.0}/tests/TestPolarStereographic.cpp +0 -0
  412. {crskit-0.8.2 → crskit-0.9.0}/tests/TestPrimeMeridianChange.cpp +0 -0
  413. {crskit-0.8.2 → crskit-0.9.0}/tests/TestPrimeMeridianGeocentric.cpp +0 -0
  414. {crskit-0.8.2 → crskit-0.9.0}/tests/TestPrimeMeridianWkt1.cpp +0 -0
  415. {crskit-0.8.2 → crskit-0.9.0}/tests/TestProjectionEdges.cpp +0 -0
  416. {crskit-0.8.2 → crskit-0.9.0}/tests/TestProjectionParameters.cpp +0 -0
  417. {crskit-0.8.2 → crskit-0.9.0}/tests/TestSameGeodeticFrame.cpp +0 -0
  418. {crskit-0.8.2 → crskit-0.9.0}/tests/TestSexagesimalDms.cpp +0 -0
  419. {crskit-0.8.2 → crskit-0.9.0}/tests/TestSexagesimalPrimeMeridian.cpp +0 -0
  420. {crskit-0.8.2 → crskit-0.9.0}/tests/TestThreeCoordinateUnits.cpp +0 -0
  421. {crskit-0.8.2 → crskit-0.9.0}/tests/TestThreeDimensionalCrsWithLocalHorizontalComponent.cpp +0 -0
  422. {crskit-0.8.2 → crskit-0.9.0}/tests/TestTowgs84.cpp +0 -0
  423. {crskit-0.8.2 → crskit-0.9.0}/tests/TestTransformPoints.cpp +0 -0
  424. {crskit-0.8.2 → crskit-0.9.0}/tests/TestTransformToGeocentric.cpp +0 -0
  425. {crskit-0.8.2 → crskit-0.9.0}/tests/TestTransformToGeocentricHorizontalTypes.cpp +0 -0
  426. {crskit-0.8.2 → crskit-0.9.0}/tests/TestTransformationAuthorityCode.cpp +0 -0
  427. {crskit-0.8.2 → crskit-0.9.0}/tests/TestUnknownCrs.cpp +0 -0
  428. {crskit-0.8.2 → crskit-0.9.0}/tests/TestUtilitiesContract.cpp +0 -0
  429. {crskit-0.8.2 → crskit-0.9.0}/tests/TestVerticalRoundTrip.cpp +0 -0
  430. {crskit-0.8.2 → crskit-0.9.0}/tests/TestWestSouthAxes.cpp +0 -0
  431. {crskit-0.8.2 → crskit-0.9.0}/tests/TestWgs84DatumNames.cpp +0 -0
  432. {crskit-0.8.2 → crskit-0.9.0}/tests/TestWithAxes.cpp +0 -0
  433. {crskit-0.8.2 → crskit-0.9.0}/tests/TestWkt2.cpp +0 -0
  434. {crskit-0.8.2 → crskit-0.9.0}/tests/TestWkt2AxisUnits.cpp +0 -0
  435. {crskit-0.8.2 → crskit-0.9.0}/tests/TestWktMalformed.cpp +0 -0
  436. {crskit-0.8.2 → crskit-0.9.0}/tests/TestWktQuoted.cpp +0 -0
  437. {crskit-0.8.2 → crskit-0.9.0}/tests/TestWktUnclosed.cpp +0 -0
  438. {crskit-0.8.2 → crskit-0.9.0}/tests/vcpkg.json +0 -0
  439. {crskit-0.8.2 → crskit-0.9.0}/tools/epsg-sqlite/README.md +0 -0
  440. {crskit-0.8.2 → crskit-0.9.0}/tools/epsg-sqlite/epsg_sql_to_sqlite.py +0 -0
  441. {crskit-0.8.2 → crskit-0.9.0}/tools/release.sh +0 -0
  442. {crskit-0.8.2 → crskit-0.9.0}/vcpkg.json +0 -0
@@ -0,0 +1,325 @@
1
+ name: NuGet
2
+
3
+ on:
4
+ push:
5
+ branches: [main]
6
+ # Pushes of v* tags trigger this workflow regardless of the paths filter; publication requires successful build,
7
+ # test, packaging and smoke-test jobs.
8
+ tags: ["v*"]
9
+ paths:
10
+ - "capi/**"
11
+ - "crskit/**"
12
+ - "external/**"
13
+ - "nuget/**"
14
+ - "CMakeLists.txt"
15
+ - "pyproject.toml"
16
+ - "python-epsg/crskit_epsg/EPSG-TERMS-OF-USE.md"
17
+ - ".github/workflows/nuget.yml"
18
+ pull_request:
19
+ branches: [main]
20
+ paths:
21
+ - "capi/**"
22
+ - "crskit/**"
23
+ - "external/**"
24
+ - "nuget/**"
25
+ - "CMakeLists.txt"
26
+ - "pyproject.toml"
27
+ - "python-epsg/crskit_epsg/EPSG-TERMS-OF-USE.md"
28
+ - ".github/workflows/nuget.yml"
29
+ workflow_dispatch:
30
+
31
+ # Builds the C API library (crskit_c) for Linux x64 and Windows x64, packs Digi21.CrsKit.Native (nuget/pack.ps1: both
32
+ # libraries, the C header and the EPSG database), restores the package in console projects on both platforms
33
+ # (nuget/smoke.ps1) and, when the run was started by a v* tag, publishes it to the GitHub Packages NuGet feed of the
34
+ # digi21 organisation with the GITHUB_TOKEN of the run.
35
+ #
36
+ # The tests of the libraries and the package both need the EPSG database, which is not versioned:
37
+ # * The tests use the repository variable EPSG_SQLITE_URL, as ci.yml does, and the epsg-data release asset below when
38
+ # the variable is not set, so the libraries that are published have always run their tests.
39
+ # * The package contains the epsg-data release asset below, the file that epsg.yml packs into crskit-epsg on PyPI.
40
+ permissions:
41
+ contents: read
42
+
43
+ env:
44
+ EPSG_DATABASE_URL: https://github.com/digi21/crskit/releases/download/epsg-data/epsg-v12.057.sqlite
45
+
46
+ jobs:
47
+ native-linux:
48
+ name: Library for Linux (manylinux_2_28, GCC 14)
49
+ runs-on: ubuntu-24.04
50
+ # The library must not require a glibc version later than 2.28. The image is the one the Linux Python wheels are built
51
+ # in (wheels.yml); its GCC is the gcc-toolset-14 of AlmaLinux 8, which the "Select GCC 14 and install CMake and Ninja"
52
+ # step enables when g++ does not report major version 14.
53
+ container: quay.io/pypa/manylinux_2_28_x86_64
54
+ defaults:
55
+ run:
56
+ shell: bash
57
+
58
+ steps:
59
+ - uses: actions/checkout@v4
60
+
61
+ - name: Select GCC 14 and install CMake and Ninja
62
+ run: |
63
+ if [ "$(g++ -dumpversion | cut -d. -f1)" != 14 ]; then
64
+ source /opt/rh/gcc-toolset-14/enable
65
+ echo "/opt/rh/gcc-toolset-14/root/usr/bin" >> "$GITHUB_PATH"
66
+ fi
67
+ g++ --version
68
+ if ! command -v cmake > /dev/null || ! command -v ninja > /dev/null; then
69
+ /opt/python/cp312-cp312/bin/python -m pip install --quiet cmake ninja
70
+ echo "/opt/python/cp312-cp312/bin" >> "$GITHUB_PATH"
71
+ fi
72
+
73
+ - name: Fetch EPSG database for the tests
74
+ env:
75
+ TEST_DATABASE_URL: ${{ vars.EPSG_SQLITE_URL || env.EPSG_DATABASE_URL }}
76
+ run: curl -fsSL "$TEST_DATABASE_URL" -o "$PWD/epsg.sqlite"
77
+
78
+ - name: Configure
79
+ run: |
80
+ g++ --version
81
+ cmake --version
82
+ cmake -S . -B build -G Ninja \
83
+ -DCMAKE_BUILD_TYPE=Release \
84
+ -DDIGI21_BUILD_C_API=ON -DDIGI21_BUILD_TESTS=ON -DDIGI21_INSTALL=OFF \
85
+ -DDIGI21_EPSG_SQLITE="$PWD/epsg.sqlite"
86
+
87
+ - name: Build crskit_c and crskit_c_tests
88
+ run: cmake --build build --target crskit_c crskit_c_tests
89
+
90
+ - name: Test crskit_c
91
+ run: ctest --test-dir build -R '^crskit_c$' --output-on-failure
92
+
93
+ - name: Check the library
94
+ run: |
95
+ library_file_path=$(find build -name libcrskit_c.so -print -quit)
96
+ echo "Library: $library_file_path, $(stat -c %s "$library_file_path") bytes (not stripped: Release build, no debug information)"
97
+
98
+ echo "--- Exports other than crskit_*:"
99
+ unexpected_export_symbols=$(nm -D --defined-only "$library_file_path" | grep -v ' crskit_' || true)
100
+ echo "${unexpected_export_symbols:-<none>}"
101
+ echo "Exported crskit_* functions: $(nm -D --defined-only "$library_file_path" | grep -c ' crskit_')"
102
+ if [ -n "$unexpected_export_symbols" ]; then
103
+ echo "::error::$library_file_path exports symbols that do not start with crskit_"
104
+ exit 1
105
+ fi
106
+
107
+ echo "--- ldd:"
108
+ dependencies=$(ldd "$library_file_path")
109
+ echo "$dependencies"
110
+ if grep -q 'libstdc++' <<< "$dependencies"; then
111
+ echo "::error::$library_file_path depends on libstdc++.so; it must be linked statically"
112
+ exit 1
113
+ fi
114
+
115
+ highest_required_glibc_version=$(objdump -T "$library_file_path" | grep -o 'GLIBC_[0-9][0-9.]*' | sed 's/^GLIBC_//' | sort -Vu | tail -n 1)
116
+ echo "Highest GLIBC version required: ${highest_required_glibc_version:-<none>}"
117
+ if [ -z "$highest_required_glibc_version" ] || [ "$(printf '%s\n%s\n' "$highest_required_glibc_version" 2.28 | sort -V | tail -n 1)" != "2.28" ]; then
118
+ echo "::error::$library_file_path requires glibc ${highest_required_glibc_version:-<unknown>}; the maximum allowed is 2.28"
119
+ exit 1
120
+ fi
121
+
122
+ mkdir -p dist
123
+ cp "$library_file_path" dist/
124
+
125
+ - uses: actions/upload-artifact@v4
126
+ with:
127
+ name: native-linux
128
+ path: dist/libcrskit_c.so
129
+ if-no-files-found: error
130
+
131
+ native-windows:
132
+ name: Library for Windows (MSVC, Visual Studio 2026)
133
+ # The windows-2025-vs2026 image provides Visual Studio 2026 (MSVC toolset v145); see
134
+ # https://github.com/actions/runner-images/blob/main/images/windows/Windows2025-VS2026-Readme.md
135
+ runs-on: windows-2025-vs2026
136
+ defaults:
137
+ run:
138
+ shell: pwsh
139
+
140
+ steps:
141
+ - uses: actions/checkout@v4
142
+
143
+ - uses: ilammy/msvc-dev-cmd@v1
144
+ with:
145
+ arch: x64
146
+
147
+ - name: Show the compiler
148
+ run: |
149
+ $banner = (cmd /c "cl 2>&1" | Select-Object -First 1)
150
+ Write-Host $banner
151
+ # MSVC 19.50 and later is the v145 toolset of Visual Studio 2026; 19.4x is v143.
152
+ if ($banner -match 'Version (\d+)\.(\d+)\.' -and ([int]$Matches[1] -gt 19 -or [int]$Matches[2] -ge 50)) {
153
+ Write-Host "Toolset v145 (cl $($Matches[1]).$($Matches[2]))."
154
+ }
155
+ else {
156
+ Write-Host "::warning::The compiler is not MSVC 19.50 or later (toolset v145); the library is built with the toolset of this image."
157
+ }
158
+
159
+ - name: Fetch EPSG database for the tests
160
+ env:
161
+ TEST_DATABASE_URL: ${{ vars.EPSG_SQLITE_URL || env.EPSG_DATABASE_URL }}
162
+ run: Invoke-WebRequest -Uri $env:TEST_DATABASE_URL -OutFile (Join-Path $env:GITHUB_WORKSPACE 'epsg.sqlite')
163
+
164
+ - name: Configure
165
+ run: |
166
+ $databaseFilePath = (Join-Path $env:GITHUB_WORKSPACE 'epsg.sqlite') -replace '\\', '/'
167
+ cmake -S . -B build -G Ninja `
168
+ -DCMAKE_BUILD_TYPE=Release `
169
+ -DDIGI21_BUILD_C_API=ON -DDIGI21_BUILD_TESTS=ON -DDIGI21_INSTALL=OFF `
170
+ "-DDIGI21_EPSG_SQLITE=$databaseFilePath"
171
+ if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }
172
+
173
+ - name: Build crskit_c and crskit_c_tests
174
+ run: cmake --build build --target crskit_c crskit_c_tests
175
+
176
+ - name: Test crskit_c
177
+ run: ctest --test-dir build -R '^crskit_c$' --output-on-failure
178
+
179
+ - name: Check the library
180
+ run: |
181
+ $libraryFilePath = (Get-ChildItem -Path build -Recurse -Filter crskit_c.dll | Select-Object -First 1).FullName
182
+ Write-Host "Library: $libraryFilePath, $((Get-Item $libraryFilePath).Length) bytes"
183
+
184
+ $exportLines = & dumpbin /exports $libraryFilePath
185
+ $exportNames = @($exportLines | ForEach-Object { if ($_ -match '^\s+\d+\s+[0-9A-Fa-f]+\s+[0-9A-Fa-f]{8}\s+(\S+)') { $Matches[1] } })
186
+ $unexpectedExportNames = @($exportNames | Where-Object { $_ -notlike 'crskit_*' })
187
+ Write-Host "Exported functions: $($exportNames.Count); not starting with crskit_: $($unexpectedExportNames.Count)"
188
+ if ($exportNames.Count -eq 0) { throw "$libraryFilePath exports no functions (or the output of dumpbin /exports was not recognised)." }
189
+ if ($unexpectedExportNames.Count -gt 0) { throw "$libraryFilePath exports names that do not start with crskit_: $($unexpectedExportNames -join ', ')" }
190
+
191
+ $dependentLines = & dumpbin /dependents $libraryFilePath
192
+ $dependencies = @($dependentLines | ForEach-Object { if ($_ -match '^\s+(\S+\.dll)\s*$') { $Matches[1].ToLowerInvariant() } })
193
+ Write-Host "Dependencies: $($dependencies -join ', ')"
194
+ if ($dependencies.Count -eq 0) { throw "dumpbin /dependents listed no dependencies of $libraryFilePath (output not recognised)." }
195
+ # The static C runtime must leave no dependency on the Visual C++ runtime DLLs or the dynamic C runtime.
196
+ $runtimeDependencies = @($dependencies | Where-Object { $_ -match '^(vcruntime|msvcp|msvcr|concrt|vcomp|ucrtbase|api-ms-win-crt)' })
197
+ if ($runtimeDependencies.Count -gt 0) { throw "$libraryFilePath depends on the C or C++ runtime: $($runtimeDependencies -join ', ')" }
198
+ # Every other dependency must be a Windows system DLL (found in System32, or an API set name).
199
+ $nonSystemDependencies = @($dependencies | Where-Object { $_ -notlike 'api-ms-win-*' -and -not (Test-Path (Join-Path $env:SystemRoot "System32/$_")) })
200
+ if ($nonSystemDependencies.Count -gt 0) { throw "$libraryFilePath depends on DLLs that are not in System32: $($nonSystemDependencies -join ', ')" }
201
+
202
+ New-Item -ItemType Directory -Force -Path dist | Out-Null
203
+ Copy-Item $libraryFilePath dist/
204
+
205
+ - uses: actions/upload-artifact@v4
206
+ with:
207
+ name: native-windows
208
+ path: dist/crskit_c.dll
209
+ if-no-files-found: error
210
+
211
+ pack:
212
+ name: Pack Digi21.CrsKit.Native
213
+ needs: [native-linux, native-windows]
214
+ runs-on: ubuntu-24.04
215
+ outputs:
216
+ version: ${{ steps.version.outputs.version }}
217
+ steps:
218
+ - uses: actions/checkout@v4
219
+
220
+ # The following step installs .NET SDK 10.0.x for nuget/pack.ps1, which runs `dotnet pack` and requires .NET SDK 8
221
+ # or later.
222
+ - uses: actions/setup-dotnet@v5
223
+ with:
224
+ dotnet-version: 10.0.x
225
+
226
+ - name: Compute the package version
227
+ id: version
228
+ shell: bash
229
+ run: |
230
+ project_version=$(sed -n 's/^version = "\([^"]*\)"$/\1/p' pyproject.toml | head -n 1)
231
+ if [ -z "$project_version" ]; then echo "::error::No version line in pyproject.toml"; exit 1; fi
232
+ if [ "$GITHUB_REF_TYPE" = tag ]; then
233
+ version="${GITHUB_REF_NAME#v}"
234
+ if [ "${version%%-*}" != "$project_version" ]; then
235
+ echo "::error::The tag $GITHUB_REF_NAME does not match the version $project_version of pyproject.toml"
236
+ exit 1
237
+ fi
238
+ else
239
+ version="$project_version-ci.$GITHUB_RUN_NUMBER"
240
+ fi
241
+ echo "Package version: $version"
242
+ echo "version=$version" >> "$GITHUB_OUTPUT"
243
+
244
+ - uses: actions/download-artifact@v4
245
+ with:
246
+ name: native-linux
247
+ path: artifacts/linux
248
+
249
+ - uses: actions/download-artifact@v4
250
+ with:
251
+ name: native-windows
252
+ path: artifacts/windows
253
+
254
+ # The same file epsg.yml packs into crskit-epsg: the dataset that ships to Python users. The repository variable
255
+ # EPSG_SQLITE_URL is the database of the tests and is not necessarily the dataset to distribute.
256
+ - name: Fetch EPSG database
257
+ run: curl -fsSL "$EPSG_DATABASE_URL" -o epsg.sqlite
258
+
259
+ - name: Pack
260
+ shell: pwsh
261
+ run: >
262
+ ./nuget/pack.ps1
263
+ -WindowsLibraryFilePath artifacts/windows/crskit_c.dll
264
+ -LinuxLibraryFilePath artifacts/linux/libcrskit_c.so
265
+ -EpsgDatabaseFilePath epsg.sqlite
266
+ -OutputDirectory nupkg
267
+ -Version '${{ steps.version.outputs.version }}'
268
+
269
+ - uses: actions/upload-artifact@v4
270
+ with:
271
+ name: nupkg
272
+ path: nupkg/*.nupkg
273
+ if-no-files-found: error
274
+
275
+ smoke:
276
+ name: Smoke test on ${{ matrix.os }}
277
+ needs: pack
278
+ runs-on: ${{ matrix.os }}
279
+ strategy:
280
+ fail-fast: false
281
+ matrix:
282
+ # ubuntu-24.04 loads the library built for glibc 2.28; windows-2022 is not the image that built the DLL.
283
+ os: [ubuntu-24.04, windows-2022]
284
+ steps:
285
+ - uses: actions/checkout@v4
286
+
287
+ # smoke.ps1 selects the target framework corresponding to the SDK selected by `dotnet` (the highest installed) and
288
+ # restores only from the package folder, so no package or targeting pack is downloaded.
289
+ - uses: actions/setup-dotnet@v5
290
+ with:
291
+ dotnet-version: 10.0.x
292
+
293
+ - uses: actions/download-artifact@v4
294
+ with:
295
+ name: nupkg
296
+ path: nupkg
297
+
298
+ - name: Smoke test
299
+ shell: pwsh
300
+ run: |
301
+ dotnet --info
302
+ ./nuget/smoke.ps1 -PackageDirectory nupkg
303
+
304
+ publish:
305
+ name: Publish to GitHub Packages
306
+ needs: smoke
307
+ if: github.event_name == 'push' && github.ref_type == 'tag' && startsWith(github.ref_name, 'v')
308
+ runs-on: ubuntu-24.04
309
+ permissions:
310
+ contents: read
311
+ packages: write
312
+ steps:
313
+ - uses: actions/download-artifact@v4
314
+ with:
315
+ name: nupkg
316
+ path: nupkg
317
+
318
+ - name: Push the package
319
+ env:
320
+ NUGET_API_KEY: ${{ secrets.GITHUB_TOKEN }}
321
+ run: >
322
+ dotnet nuget push nupkg/*.nupkg
323
+ --source https://nuget.pkg.github.com/digi21/index.json
324
+ --api-key "$NUGET_API_KEY"
325
+ --skip-duplicate
@@ -27,6 +27,7 @@ bld/
27
27
  /build-linux/
28
28
  /build-win/
29
29
  /build-asan/
30
+ /build-tsan/
30
31
  /out/
31
32
  CMakeCache.txt
32
33
  CMakeFiles/
@@ -152,3 +152,13 @@ if(DIGI21_BUILD_TESTS)
152
152
  set_tests_properties(gigs PROPERTIES
153
153
  ENVIRONMENT "DIGI21_EPSG_SQLITE=${DIGI21_EPSG_SQLITE}")
154
154
  endif()
155
+
156
+ # ---------------------------------------------------------------------------
157
+ # C API (crskit_c, capi/): a self-contained shared library that exports only crskit_* C functions, and its tests
158
+ # (crskit_c_tests) when DIGI21_BUILD_TESTS is on.
159
+ # ---------------------------------------------------------------------------
160
+ option(DIGI21_BUILD_C_API "Build the C API (crskit_c)" ON)
161
+
162
+ if(DIGI21_BUILD_C_API)
163
+ add_subdirectory(capi)
164
+ endif()
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: crskit
3
- Version: 0.8.2
3
+ Version: 0.9.0
4
4
  Summary: Coordinate reference systems and coordinate transformations (OGC Coordinate Transformation Services, EPSG, WKT 1 and WKT 2)
5
5
  Keywords: EPSG,CRS,WKT,coordinate,transformation,projection,geodesy,GIS
6
6
  Author-Email: José Ángel Martínez Torres <joseangelmt@outlook.com>
@@ -0,0 +1,99 @@
1
+ # crskit_c: shared library with the C API of crskit (capi/include/crskit_c.h), for consumers that cannot use the C++ ABI
2
+ # (P/Invoke from .NET). Self-contained: it compiles the crskit sources and the SQLite amalgamation and exports only the
3
+ # crskit_* functions.
4
+
5
+ # The crskit version comes from pyproject.toml, the file that the release procedure updates.
6
+ file(STRINGS "${PROJECT_SOURCE_DIR}/pyproject.toml" CRSKIT_C_VERSION_LINE REGEX "^version = \"[^\"]+\"")
7
+ string(REGEX REPLACE "^version = \"([^\"]+)\"$" "\\1" CRSKIT_C_LIBRARY_VERSION "${CRSKIT_C_VERSION_LINE}")
8
+ if(NOT CRSKIT_C_LIBRARY_VERSION)
9
+ message(FATAL_ERROR "crskit_c: no version line found in pyproject.toml")
10
+ endif()
11
+
12
+ find_package(Threads REQUIRED)
13
+
14
+ file(GLOB CRSKIT_C_SOURCES CONFIGURE_DEPENDS "${CMAKE_CURRENT_SOURCE_DIR}/src/*.cpp")
15
+
16
+ add_library(crskit_c SHARED
17
+ ${CRSKIT_C_SOURCES}
18
+ ${CRSKIT_SOURCES}
19
+ "${PROJECT_SOURCE_DIR}/external/sqlite/sqlite3.c")
20
+
21
+ target_include_directories(crskit_c PUBLIC "$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>")
22
+ if(MSVC)
23
+ # Not SYSTEM: MSVC searches /external:I after the include paths of MSBuild, where the vcpkg integration may add an
24
+ # installed copy of the crskit headers.
25
+ target_include_directories(crskit_c PRIVATE "${PROJECT_SOURCE_DIR}/crskit" "${PROJECT_SOURCE_DIR}/external/sqlite")
26
+ else()
27
+ # SYSTEM: the stricter warnings of the C API sources (below) do not apply to the crskit and SQLite headers they include.
28
+ target_include_directories(crskit_c SYSTEM PRIVATE "${PROJECT_SOURCE_DIR}/crskit" "${PROJECT_SOURCE_DIR}/external/sqlite")
29
+ endif()
30
+
31
+ # CRSKIT_STATIC: the crskit classes get no export attribute (CrsKitExport.h); only CRSKIT_C_API exports.
32
+ target_compile_definitions(crskit_c PRIVATE
33
+ CRSKIT_C_BUILDING
34
+ CRSKIT_STATIC
35
+ SQLITE_THREADSAFE=1
36
+ _CRT_SECURE_NO_WARNINGS
37
+ "CRSKIT_C_LIBRARY_VERSION=\"${CRSKIT_C_LIBRARY_VERSION}\"")
38
+
39
+ target_link_libraries(crskit_c PRIVATE Threads::Threads ${CMAKE_DL_LIBS})
40
+
41
+ set_target_properties(crskit_c PROPERTIES
42
+ C_VISIBILITY_PRESET hidden
43
+ CXX_VISIBILITY_PRESET hidden
44
+ VISIBILITY_INLINES_HIDDEN ON
45
+ # Static C runtime: the DLL does not need vcruntime140.dll on the machine of the user.
46
+ MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>")
47
+
48
+ if(CMAKE_SYSTEM_NAME STREQUAL "Linux")
49
+ # libstdc++ and libgcc linked in and hidden, only crskit_* exported (crskit_c.map) and every symbol resolved at link time.
50
+ target_link_options(crskit_c PRIVATE -static-libstdc++ -static-libgcc -Wl,--exclude-libs,ALL -Wl,-z,defs
51
+ "-Wl,--version-script=${CMAKE_CURRENT_SOURCE_DIR}/crskit_c.map")
52
+ set_property(TARGET crskit_c APPEND PROPERTY LINK_DEPENDS "${CMAKE_CURRENT_SOURCE_DIR}/crskit_c.map")
53
+ target_link_libraries(crskit_c PRIVATE m)
54
+ endif()
55
+
56
+ # Stricter warnings for the C API sources only (the crskit sources keep the flags of the project).
57
+ if(MSVC)
58
+ set_source_files_properties(${CRSKIT_C_SOURCES} PROPERTIES COMPILE_OPTIONS "/W4")
59
+ else()
60
+ set_source_files_properties(${CRSKIT_C_SOURCES} PROPERTIES COMPILE_OPTIONS "-Wall;-Wextra")
61
+ endif()
62
+
63
+ # ---------------------------------------------------------------------------
64
+ # Tests (GoogleTest). They call crskit_c through capi/include/crskit_c.h; TestAgainstCppApi.cpp also links the crskit C++
65
+ # library, as the reference for comparing C API results; on Windows those comparisons allow tolerances, except the
66
+ # geodesic problems, and on Linux they require equal values.
67
+ # ---------------------------------------------------------------------------
68
+ if(DIGI21_BUILD_TESTS)
69
+ file(GLOB CRSKIT_C_TEST_SOURCES CONFIGURE_DEPENDS
70
+ "${CMAKE_CURRENT_SOURCE_DIR}/tests/*.cpp"
71
+ "${CMAKE_CURRENT_SOURCE_DIR}/tests/*.c")
72
+
73
+ add_executable(crskit_c_tests
74
+ ${CRSKIT_C_TEST_SOURCES}
75
+ "${PROJECT_SOURCE_DIR}/external/sqlite/sqlite3.c")
76
+
77
+ target_include_directories(crskit_c_tests PRIVATE "${PROJECT_SOURCE_DIR}/external/sqlite")
78
+ target_compile_definitions(crskit_c_tests PRIVATE _CRT_SECURE_NO_WARNINGS)
79
+ set_target_properties(crskit_c_tests PROPERTIES C_STANDARD 11 C_STANDARD_REQUIRED ON C_EXTENSIONS OFF)
80
+
81
+ get_target_property(CRSKIT_C_GTEST_LIBRARY_TYPE GTest::gtest TYPE)
82
+ if(CRSKIT_C_GTEST_LIBRARY_TYPE STREQUAL "SHARED_LIBRARY")
83
+ target_compile_definitions(crskit_c_tests PRIVATE GTEST_LINKED_AS_SHARED_LIBRARY=1)
84
+ endif()
85
+
86
+ # CMAKE_DL_LIBS: the SQLite amalgamation calls dlopen, which glibc before 2.34 provides in libdl.
87
+ target_link_libraries(crskit_c_tests PRIVATE crskit_c crskit GTest::gtest Threads::Threads ${CMAKE_DL_LIBS})
88
+
89
+ if(WIN32)
90
+ add_custom_command(TARGET crskit_c_tests POST_BUILD
91
+ COMMAND ${CMAKE_COMMAND} -E copy -t "$<TARGET_FILE_DIR:crskit_c_tests>"
92
+ "$<TARGET_RUNTIME_DLLS:crskit_c_tests>"
93
+ COMMAND_EXPAND_LISTS)
94
+ endif()
95
+
96
+ add_test(NAME crskit_c COMMAND crskit_c_tests)
97
+ set_tests_properties(crskit_c PROPERTIES
98
+ ENVIRONMENT "DIGI21_EPSG_SQLITE=${DIGI21_EPSG_SQLITE}")
99
+ endif()
@@ -0,0 +1,8 @@
1
+ /* Linker version script of libcrskit_c.so: only the crskit_* functions are exported. It also hides the template
2
+ instantiations and type information of libstdc++, whose headers set default visibility. */
3
+ {
4
+ global:
5
+ crskit_*;
6
+ local:
7
+ *;
8
+ };