crskit 0.5.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 (309) hide show
  1. crskit-0.5.0/.gitattributes +66 -0
  2. crskit-0.5.0/.github/workflows/ci.yml +95 -0
  3. crskit-0.5.0/.github/workflows/epsg.yml +80 -0
  4. crskit-0.5.0/.github/workflows/wheels.yml +161 -0
  5. crskit-0.5.0/.gitignore +289 -0
  6. crskit-0.5.0/CMakeLists.txt +149 -0
  7. crskit-0.5.0/CMakePresets.json +25 -0
  8. crskit-0.5.0/LICENSE +201 -0
  9. crskit-0.5.0/PKG-INFO +267 -0
  10. crskit-0.5.0/Readme.md +128 -0
  11. crskit-0.5.0/branding/crskit-logo-128.png +0 -0
  12. crskit-0.5.0/branding/crskit-logo-256.png +0 -0
  13. crskit-0.5.0/branding/crskit-logo-512.png +0 -0
  14. crskit-0.5.0/branding/crskit-logo-64.png +0 -0
  15. crskit-0.5.0/branding/crskit-logo.svg +12 -0
  16. crskit-0.5.0/branding/crskit.ico +0 -0
  17. crskit-0.5.0/cmake/crskit-config.cmake.in +8 -0
  18. crskit-0.5.0/crskit/CoordinateSystems/AngularUnit.cpp +52 -0
  19. crskit-0.5.0/crskit/CoordinateSystems/AngularUnit.h +40 -0
  20. crskit-0.5.0/crskit/CoordinateSystems/AxisInfo.h +92 -0
  21. crskit-0.5.0/crskit/CoordinateSystems/AxisOrientationEnum.h +33 -0
  22. crskit-0.5.0/crskit/CoordinateSystems/BaseInfo.h +44 -0
  23. crskit-0.5.0/crskit/CoordinateSystems/CompoundCoordinateSystem.cpp +123 -0
  24. crskit-0.5.0/crskit/CoordinateSystems/CompoundCoordinateSystem.h +42 -0
  25. crskit-0.5.0/crskit/CoordinateSystems/CoordinateSystem.cpp +154 -0
  26. crskit-0.5.0/crskit/CoordinateSystems/CoordinateSystem.h +73 -0
  27. crskit-0.5.0/crskit/CoordinateSystems/CoordinateSystemAuthorityFactory.cpp +630 -0
  28. crskit-0.5.0/crskit/CoordinateSystems/CoordinateSystemAuthorityFactory.h +135 -0
  29. crskit-0.5.0/crskit/CoordinateSystems/CoordinateSystemEquivalence.cpp +151 -0
  30. crskit-0.5.0/crskit/CoordinateSystems/CoordinateSystemFactory.cpp +307 -0
  31. crskit-0.5.0/crskit/CoordinateSystems/CoordinateSystemFactory.h +129 -0
  32. crskit-0.5.0/crskit/CoordinateSystems/Datum.cpp +12 -0
  33. crskit-0.5.0/crskit/CoordinateSystems/Datum.h +18 -0
  34. crskit-0.5.0/crskit/CoordinateSystems/DatumType.h +24 -0
  35. crskit-0.5.0/crskit/CoordinateSystems/Ellipsoid.cpp +120 -0
  36. crskit-0.5.0/crskit/CoordinateSystems/Ellipsoid.h +61 -0
  37. crskit-0.5.0/crskit/CoordinateSystems/GeocentricCoordinateSystem.cpp +101 -0
  38. crskit-0.5.0/crskit/CoordinateSystems/GeocentricCoordinateSystem.h +40 -0
  39. crskit-0.5.0/crskit/CoordinateSystems/GeographicCoordinateSystem.cpp +216 -0
  40. crskit-0.5.0/crskit/CoordinateSystems/GeographicCoordinateSystem.h +38 -0
  41. crskit-0.5.0/crskit/CoordinateSystems/HorizontalCoordinateSystem.cpp +35 -0
  42. crskit-0.5.0/crskit/CoordinateSystems/HorizontalCoordinateSystem.h +33 -0
  43. crskit-0.5.0/crskit/CoordinateSystems/HorizontalDatum.cpp +101 -0
  44. crskit-0.5.0/crskit/CoordinateSystems/HorizontalDatum.h +37 -0
  45. crskit-0.5.0/crskit/CoordinateSystems/ICompoundCoordinateSystem.h +15 -0
  46. crskit-0.5.0/crskit/CoordinateSystems/ICoordinateSystem.h +24 -0
  47. crskit-0.5.0/crskit/CoordinateSystems/ICoordinateSystemAuthorityFactory.h +138 -0
  48. crskit-0.5.0/crskit/CoordinateSystems/IDatum.h +17 -0
  49. crskit-0.5.0/crskit/CoordinateSystems/IGeocentricCoordinateSystem.h +20 -0
  50. crskit-0.5.0/crskit/CoordinateSystems/IGeographicCoordinateSystem.h +19 -0
  51. crskit-0.5.0/crskit/CoordinateSystems/IHorizontalCoordinateSystem.h +14 -0
  52. crskit-0.5.0/crskit/CoordinateSystems/IHorizontalDatum.h +15 -0
  53. crskit-0.5.0/crskit/CoordinateSystems/IInfo.h +27 -0
  54. crskit-0.5.0/crskit/CoordinateSystems/ILocalCoordinateSystem.h +14 -0
  55. crskit-0.5.0/crskit/CoordinateSystems/ILocalDatum.h +11 -0
  56. crskit-0.5.0/crskit/CoordinateSystems/IProjectedCoordinateSystem.h +20 -0
  57. crskit-0.5.0/crskit/CoordinateSystems/IProjection.h +50 -0
  58. crskit-0.5.0/crskit/CoordinateSystems/IVerticalCoordinateSystem.h +17 -0
  59. crskit-0.5.0/crskit/CoordinateSystems/IVerticalDatum.h +11 -0
  60. crskit-0.5.0/crskit/CoordinateSystems/LinearUnit.cpp +54 -0
  61. crskit-0.5.0/crskit/CoordinateSystems/LinearUnit.h +41 -0
  62. crskit-0.5.0/crskit/CoordinateSystems/LocalCoordinateSystem.cpp +70 -0
  63. crskit-0.5.0/crskit/CoordinateSystems/LocalCoordinateSystem.h +35 -0
  64. crskit-0.5.0/crskit/CoordinateSystems/LocalDatum.cpp +50 -0
  65. crskit-0.5.0/crskit/CoordinateSystems/LocalDatum.h +50 -0
  66. crskit-0.5.0/crskit/CoordinateSystems/PrimeMeridian.cpp +50 -0
  67. crskit-0.5.0/crskit/CoordinateSystems/PrimeMeridian.h +42 -0
  68. crskit-0.5.0/crskit/CoordinateSystems/ProjectedCoordinateSystem.cpp +141 -0
  69. crskit-0.5.0/crskit/CoordinateSystems/ProjectedCoordinateSystem.h +41 -0
  70. crskit-0.5.0/crskit/CoordinateSystems/Projection.cpp +120 -0
  71. crskit-0.5.0/crskit/CoordinateSystems/Projection.h +41 -0
  72. crskit-0.5.0/crskit/CoordinateSystems/Unit.h +20 -0
  73. crskit-0.5.0/crskit/CoordinateSystems/VerticalCoordinateSystem.cpp +111 -0
  74. crskit-0.5.0/crskit/CoordinateSystems/VerticalCoordinateSystem.h +36 -0
  75. crskit-0.5.0/crskit/CoordinateSystems/VerticalDatum.cpp +49 -0
  76. crskit-0.5.0/crskit/CoordinateSystems/VerticalDatum.h +47 -0
  77. crskit-0.5.0/crskit/CoordinateSystems/Wgs84ConversionInfo.h +38 -0
  78. crskit-0.5.0/crskit/CoordinateSystems/Wkt2.cpp +786 -0
  79. crskit-0.5.0/crskit/CoordinateSystems/Wkt2.h +47 -0
  80. crskit-0.5.0/crskit/CoordinateTransformationOptions.h +56 -0
  81. crskit-0.5.0/crskit/CoordinateTransformations/Algorithms/Affine.cpp +589 -0
  82. crskit-0.5.0/crskit/CoordinateTransformations/Algorithms/Afine.h +66 -0
  83. crskit-0.5.0/crskit/CoordinateTransformations/Algorithms/AlbersConicEqualArea.cpp +101 -0
  84. crskit-0.5.0/crskit/CoordinateTransformations/Algorithms/AlbersConicEqualArea.h +64 -0
  85. crskit-0.5.0/crskit/CoordinateTransformations/Algorithms/AmericanPolyconic.cpp +107 -0
  86. crskit-0.5.0/crskit/CoordinateTransformations/Algorithms/AmericanPolyconic.h +44 -0
  87. crskit-0.5.0/crskit/CoordinateTransformations/Algorithms/CassiniSoldner.cpp +82 -0
  88. crskit-0.5.0/crskit/CoordinateTransformations/Algorithms/CassiniSoldner.h +44 -0
  89. crskit-0.5.0/crskit/CoordinateTransformations/Algorithms/CoordinateFrameRotation.cpp +31 -0
  90. crskit-0.5.0/crskit/CoordinateTransformations/Algorithms/CoordinateFrameRotation.h +19 -0
  91. crskit-0.5.0/crskit/CoordinateTransformations/Algorithms/GeocentricToTopocentric.cpp +133 -0
  92. crskit-0.5.0/crskit/CoordinateTransformations/Algorithms/GeocentricToTopocentric.h +49 -0
  93. crskit-0.5.0/crskit/CoordinateTransformations/Algorithms/GeocentricTranslations.cpp +30 -0
  94. crskit-0.5.0/crskit/CoordinateTransformations/Algorithms/GeocentricTranslations.h +19 -0
  95. crskit-0.5.0/crskit/CoordinateTransformations/Algorithms/Geographic2D2Geocentric.cpp +113 -0
  96. crskit-0.5.0/crskit/CoordinateTransformations/Algorithms/Geographic2D2Geocentric.h +50 -0
  97. crskit-0.5.0/crskit/CoordinateTransformations/Algorithms/Geographic2D2Geographic3D.cpp +38 -0
  98. crskit-0.5.0/crskit/CoordinateTransformations/Algorithms/Geographic2D2Geographic3D.h +23 -0
  99. crskit-0.5.0/crskit/CoordinateTransformations/Algorithms/Geographic3DToGravityRelatedHeightEGM.cpp +157 -0
  100. crskit-0.5.0/crskit/CoordinateTransformations/Algorithms/Geographic3DToGravityRelatedHeightEGM.h +69 -0
  101. crskit-0.5.0/crskit/CoordinateTransformations/Algorithms/Geographic3DToGravityRelatedHeightEGM2008.cpp +416 -0
  102. crskit-0.5.0/crskit/CoordinateTransformations/Algorithms/Geographic3DToGravityRelatedHeightEGM2008.h +95 -0
  103. crskit-0.5.0/crskit/CoordinateTransformations/Algorithms/GridFiles/GridAusGeoid.cpp +124 -0
  104. crskit-0.5.0/crskit/CoordinateTransformations/Algorithms/GridFiles/GridAusGeoid.h +34 -0
  105. crskit-0.5.0/crskit/CoordinateTransformations/Algorithms/GridFiles/GridEGM2008.cpp +133 -0
  106. crskit-0.5.0/crskit/CoordinateTransformations/Algorithms/GridFiles/GridEGM2008.h +44 -0
  107. crskit-0.5.0/crskit/CoordinateTransformations/Algorithms/GridFiles/GridEGM2008Rednap.cpp +97 -0
  108. crskit-0.5.0/crskit/CoordinateTransformations/Algorithms/GridFiles/GridEGM2008Rednap.h +42 -0
  109. crskit-0.5.0/crskit/CoordinateTransformations/Algorithms/GridFiles/GridGtg.cpp +274 -0
  110. crskit-0.5.0/crskit/CoordinateTransformations/Algorithms/GridFiles/GridGtg.h +35 -0
  111. crskit-0.5.0/crskit/CoordinateTransformations/Algorithms/GridFiles/GridGtx.cpp +136 -0
  112. crskit-0.5.0/crskit/CoordinateTransformations/Algorithms/GridFiles/GridGtx.h +34 -0
  113. crskit-0.5.0/crskit/CoordinateTransformations/Algorithms/GridFiles/Inflate.cpp +231 -0
  114. crskit-0.5.0/crskit/CoordinateTransformations/Algorithms/GridFiles/Inflate.h +15 -0
  115. crskit-0.5.0/crskit/CoordinateTransformations/Algorithms/HotineObliqueMercator.cpp +99 -0
  116. crskit-0.5.0/crskit/CoordinateTransformations/Algorithms/HotineObliqueMercator.h +54 -0
  117. crskit-0.5.0/crskit/CoordinateTransformations/Algorithms/LambertAzimuthalEqualArea.cpp +92 -0
  118. crskit-0.5.0/crskit/CoordinateTransformations/Algorithms/LambertAzimuthalEqualArea.h +51 -0
  119. crskit-0.5.0/crskit/CoordinateTransformations/Algorithms/LambertConformalConic1SP.cpp +77 -0
  120. crskit-0.5.0/crskit/CoordinateTransformations/Algorithms/LambertConformalConic1SP.h +48 -0
  121. crskit-0.5.0/crskit/CoordinateTransformations/Algorithms/LambertConformalConic2SP.cpp +81 -0
  122. crskit-0.5.0/crskit/CoordinateTransformations/Algorithms/LambertConformalConic2SP.h +52 -0
  123. crskit-0.5.0/crskit/CoordinateTransformations/Algorithms/LongitudeRotation.cpp +97 -0
  124. crskit-0.5.0/crskit/CoordinateTransformations/Algorithms/LongitudeRotation.h +41 -0
  125. crskit-0.5.0/crskit/CoordinateTransformations/Algorithms/MapProjectionBase.cpp +57 -0
  126. crskit-0.5.0/crskit/CoordinateTransformations/Algorithms/MapProjectionBase.h +29 -0
  127. crskit-0.5.0/crskit/CoordinateTransformations/Algorithms/Mercator1Sp.cpp +67 -0
  128. crskit-0.5.0/crskit/CoordinateTransformations/Algorithms/Mercator1Sp.h +48 -0
  129. crskit-0.5.0/crskit/CoordinateTransformations/Algorithms/Mercator2Sp.cpp +68 -0
  130. crskit-0.5.0/crskit/CoordinateTransformations/Algorithms/Mercator2Sp.h +49 -0
  131. crskit-0.5.0/crskit/CoordinateTransformations/Algorithms/MolodenskyBadekas.cpp +90 -0
  132. crskit-0.5.0/crskit/CoordinateTransformations/Algorithms/MolodenskyBadekas.h +24 -0
  133. crskit-0.5.0/crskit/CoordinateTransformations/Algorithms/NadCon.cpp +161 -0
  134. crskit-0.5.0/crskit/CoordinateTransformations/Algorithms/NadCon.h +74 -0
  135. crskit-0.5.0/crskit/CoordinateTransformations/Algorithms/Ntv2.cpp +366 -0
  136. crskit-0.5.0/crskit/CoordinateTransformations/Algorithms/Ntv2.h +141 -0
  137. crskit-0.5.0/crskit/CoordinateTransformations/Algorithms/ObliqueMercator.cpp +116 -0
  138. crskit-0.5.0/crskit/CoordinateTransformations/Algorithms/ObliqueMercator.h +54 -0
  139. crskit-0.5.0/crskit/CoordinateTransformations/Algorithms/ObliqueStereographic.cpp +123 -0
  140. crskit-0.5.0/crskit/CoordinateTransformations/Algorithms/ObliqueStereographic.h +63 -0
  141. crskit-0.5.0/crskit/CoordinateTransformations/Algorithms/P6.cpp +73 -0
  142. crskit-0.5.0/crskit/CoordinateTransformations/Algorithms/P6.h +38 -0
  143. crskit-0.5.0/crskit/CoordinateTransformations/Algorithms/PopularVisualisationPseudoMercator.cpp +46 -0
  144. crskit-0.5.0/crskit/CoordinateTransformations/Algorithms/PopularVisualisationPseudoMercator.h +41 -0
  145. crskit-0.5.0/crskit/CoordinateTransformations/Algorithms/PositionVectorTransformation.cpp +39 -0
  146. crskit-0.5.0/crskit/CoordinateTransformations/Algorithms/PositionVectorTransformation.h +19 -0
  147. crskit-0.5.0/crskit/CoordinateTransformations/Algorithms/TransverseMercator.cpp +214 -0
  148. crskit-0.5.0/crskit/CoordinateTransformations/Algorithms/TransverseMercator.h +78 -0
  149. crskit-0.5.0/crskit/CoordinateTransformations/Algorithms/TransverseMercatorSouthOrientated.cpp +102 -0
  150. crskit-0.5.0/crskit/CoordinateTransformations/Algorithms/TransverseMercatorSouthOrientated.h +49 -0
  151. crskit-0.5.0/crskit/CoordinateTransformations/Algorithms/VerticalOffset.cpp +87 -0
  152. crskit-0.5.0/crskit/CoordinateTransformations/Algorithms/VerticalOffset.h +42 -0
  153. crskit-0.5.0/crskit/CoordinateTransformations/ConcatenatedTransform.cpp +84 -0
  154. crskit-0.5.0/crskit/CoordinateTransformations/ConcatenatedTransform.h +53 -0
  155. crskit-0.5.0/crskit/CoordinateTransformations/CoordinateOperation.h +30 -0
  156. crskit-0.5.0/crskit/CoordinateTransformations/CoordinateTransformation.cpp +80 -0
  157. crskit-0.5.0/crskit/CoordinateTransformations/CoordinateTransformation.h +59 -0
  158. crskit-0.5.0/crskit/CoordinateTransformations/CoordinateTransformationAuthorityFactory.cpp +869 -0
  159. crskit-0.5.0/crskit/CoordinateTransformations/CoordinateTransformationAuthorityFactory.h +54 -0
  160. crskit-0.5.0/crskit/CoordinateTransformations/CoordinateTransformationFactory.cpp +1261 -0
  161. crskit-0.5.0/crskit/CoordinateTransformations/CoordinateTransformationFactory.h +117 -0
  162. crskit-0.5.0/crskit/CoordinateTransformations/DomainFlags.h +11 -0
  163. crskit-0.5.0/crskit/CoordinateTransformations/ICoordinateTransformation.h +26 -0
  164. crskit-0.5.0/crskit/CoordinateTransformations/ICoordinateTransformationAuthorityFactory.h +29 -0
  165. crskit-0.5.0/crskit/CoordinateTransformations/ICoordinateTransformationFactory.h +19 -0
  166. crskit-0.5.0/crskit/CoordinateTransformations/IMathTransform.h +54 -0
  167. crskit-0.5.0/crskit/CoordinateTransformations/IMathTransformFactory.h +20 -0
  168. crskit-0.5.0/crskit/CoordinateTransformations/MathTransformBase.cpp +49 -0
  169. crskit-0.5.0/crskit/CoordinateTransformations/MathTransformBase.h +33 -0
  170. crskit-0.5.0/crskit/CoordinateTransformations/MathTransformFactory.cpp +106 -0
  171. crskit-0.5.0/crskit/CoordinateTransformations/MathTransformFactory.h +31 -0
  172. crskit-0.5.0/crskit/CoordinateTransformations/MathTransformRegistry.cpp +305 -0
  173. crskit-0.5.0/crskit/CoordinateTransformations/MathTransformRegistry.h +12 -0
  174. crskit-0.5.0/crskit/CoordinateTransformations/Passthrough.cpp +68 -0
  175. crskit-0.5.0/crskit/CoordinateTransformations/Passthrough.h +41 -0
  176. crskit-0.5.0/crskit/CoordinateTransformations/TransformType.h +12 -0
  177. crskit-0.5.0/crskit/CoordinateTransformations/UnitsOfMeasure.h +25 -0
  178. crskit-0.5.0/crskit/CrsContext.h +65 -0
  179. crskit-0.5.0/crskit/CrsKit.h +164 -0
  180. crskit-0.5.0/crskit/CrsKitExport.h +47 -0
  181. crskit-0.5.0/crskit/EsriProjectionEngine.cpp +266 -0
  182. crskit-0.5.0/crskit/EsriProjectionEngine.h +37 -0
  183. crskit-0.5.0/crskit/ExtensionManager.cpp +95 -0
  184. crskit-0.5.0/crskit/ExtensionManager.h +56 -0
  185. crskit-0.5.0/crskit/Factory.h +129 -0
  186. crskit-0.5.0/crskit/GridFileNotFoundException.h +49 -0
  187. crskit-0.5.0/crskit/IAuthorityProvider.h +82 -0
  188. crskit-0.5.0/crskit/IUtilities.h +59 -0
  189. crskit-0.5.0/crskit/Mathematics/Angles.h +39 -0
  190. crskit-0.5.0/crskit/Mathematics/Concepts.h +10 -0
  191. crskit-0.5.0/crskit/Mathematics/GridCell.h +73 -0
  192. crskit-0.5.0/crskit/Mathematics/GridInterpolation.h +85 -0
  193. crskit-0.5.0/crskit/Mathematics/Interpolation.h +61 -0
  194. crskit-0.5.0/crskit/Mathematics/Matrix.h +130 -0
  195. crskit-0.5.0/crskit/Mathematics/Point.h +41 -0
  196. crskit-0.5.0/crskit/Mathematics/Window2D.h +50 -0
  197. crskit-0.5.0/crskit/OpenGisAttributes.h +49 -0
  198. crskit-0.5.0/crskit/OpenGisException.h +67 -0
  199. crskit-0.5.0/crskit/Parameter.h +74 -0
  200. crskit-0.5.0/crskit/Positioning/Envelope.h +35 -0
  201. crskit-0.5.0/crskit/SqliteProvider.h +790 -0
  202. crskit-0.5.0/crskit/StringUtil.h +77 -0
  203. crskit-0.5.0/crskit/TokenWkt.cpp +85 -0
  204. crskit-0.5.0/crskit/TokenWkt.h +72 -0
  205. crskit-0.5.0/crskit/Utilities.cpp +646 -0
  206. crskit-0.5.0/crskit/Utilities.h +60 -0
  207. crskit-0.5.0/crskit/WktDeserializer.cpp +86 -0
  208. crskit-0.5.0/crskit/WktDeserializer.h +24 -0
  209. crskit-0.5.0/crskit/app.ico +0 -0
  210. crskit-0.5.0/crskit/pch.cpp +105 -0
  211. crskit-0.5.0/crskit/pch.h +45 -0
  212. crskit-0.5.0/data/grid-sources.json +26 -0
  213. crskit-0.5.0/external/sqlite/sqlite3.c +209937 -0
  214. crskit-0.5.0/external/sqlite/sqlite3.h +11177 -0
  215. crskit-0.5.0/ports/crskit/portfile.cmake +36 -0
  216. crskit-0.5.0/ports/crskit/vcpkg.json +19 -0
  217. crskit-0.5.0/pyproject.toml +48 -0
  218. crskit-0.5.0/python/CMakeLists.txt +62 -0
  219. crskit-0.5.0/python/README.md +245 -0
  220. crskit-0.5.0/python/TUTORIAL.de.md +356 -0
  221. crskit-0.5.0/python/TUTORIAL.es.md +355 -0
  222. crskit-0.5.0/python/TUTORIAL.fr.md +359 -0
  223. crskit-0.5.0/python/TUTORIAL.it.md +354 -0
  224. crskit-0.5.0/python/TUTORIAL.md +348 -0
  225. crskit-0.5.0/python/crskit/__init__.py +102 -0
  226. crskit-0.5.0/python/crskit/_crskit.pyi +207 -0
  227. crskit-0.5.0/python/crskit/py.typed +0 -0
  228. crskit-0.5.0/python/examples/01_quickstart.py +27 -0
  229. crskit-0.5.0/python/examples/02_wkt.py +32 -0
  230. crskit-0.5.0/python/examples/03_point_cloud.py +34 -0
  231. crskit-0.5.0/python/examples/04_choosing_the_operation.py +55 -0
  232. crskit-0.5.0/python/examples/05_orthometric_heights.py +41 -0
  233. crskit-0.5.0/python/examples/06_global_geoid.py +75 -0
  234. crskit-0.5.0/python/examples/README.md +42 -0
  235. crskit-0.5.0/python/examples/_setup.py +15 -0
  236. crskit-0.5.0/python/src/module.cpp +426 -0
  237. crskit-0.5.0/python/tests/test_crskit.py +190 -0
  238. crskit-0.5.0/python/tests/test_examples.py +37 -0
  239. crskit-0.5.0/python-epsg/README.md +43 -0
  240. crskit-0.5.0/python-epsg/crskit_epsg/EPSG-TERMS-OF-USE.md +73 -0
  241. crskit-0.5.0/python-epsg/crskit_epsg/__init__.py +38 -0
  242. crskit-0.5.0/python-epsg/fetch.py +74 -0
  243. crskit-0.5.0/python-epsg/pyproject.toml +29 -0
  244. crskit-0.5.0/tests/Gigs/Test5101Part2.cpp +88 -0
  245. crskit-0.5.0/tests/Gigs/Test5101Part3.cpp +88 -0
  246. crskit-0.5.0/tests/Gigs/Test5101Part4.cpp +78 -0
  247. crskit-0.5.0/tests/Gigs/Test5102Part1.cpp +86 -0
  248. crskit-0.5.0/tests/Gigs/Test5102Part2.cpp +87 -0
  249. crskit-0.5.0/tests/Gigs/Test5103Part1.cpp +87 -0
  250. crskit-0.5.0/tests/Gigs/Test5103Part2.cpp +77 -0
  251. crskit-0.5.0/tests/Gigs/Test5103Part3.cpp +77 -0
  252. crskit-0.5.0/tests/Gigs/Test5104Part1.cpp +87 -0
  253. crskit-0.5.0/tests/Gigs/Test5105Part1.cpp +72 -0
  254. crskit-0.5.0/tests/Gigs/Test5105Part2.cpp +79 -0
  255. crskit-0.5.0/tests/Gigs/Test5106Part1.cpp +91 -0
  256. crskit-0.5.0/tests/Gigs/Test5107Part1.cpp +61 -0
  257. crskit-0.5.0/tests/Gigs/Test5108Part1.cpp +84 -0
  258. crskit-0.5.0/tests/Gigs/Test5109Part1.cpp +80 -0
  259. crskit-0.5.0/tests/Gigs/Test5110Part1.cpp +78 -0
  260. crskit-0.5.0/tests/Gigs/Test5111Part1.cpp +106 -0
  261. crskit-0.5.0/tests/Gigs/Test5111Part2.cpp +83 -0
  262. crskit-0.5.0/tests/Gigs/Test5112Part1.cpp +72 -0
  263. crskit-0.5.0/tests/Gigs/Test5113Part1.cpp +72 -0
  264. crskit-0.5.0/tests/Gigs/Test5201Part1.cpp +85 -0
  265. crskit-0.5.0/tests/Gigs/Test5203Part1.cpp +58 -0
  266. crskit-0.5.0/tests/Gigs/Test5204Part1.cpp +50 -0
  267. crskit-0.5.0/tests/Gigs/Test5205Part1.cpp +67 -0
  268. crskit-0.5.0/tests/Gigs/Test5205Part2.cpp +69 -0
  269. crskit-0.5.0/tests/Gigs/Test5207Part1.cpp +73 -0
  270. crskit-0.5.0/tests/Gigs/Test5207Part2.cpp +109 -0
  271. crskit-0.5.0/tests/Gigs/Test5208Part1.cpp +58 -0
  272. crskit-0.5.0/tests/Gigs/Test5209Part1.cpp +49 -0
  273. crskit-0.5.0/tests/Gigs/Test5210Part1.cpp +75 -0
  274. crskit-0.5.0/tests/Gigs/Test5210Part10.cpp +33 -0
  275. crskit-0.5.0/tests/Gigs/Test5210Part11.cpp +46 -0
  276. crskit-0.5.0/tests/Gigs/Test5210Part12.cpp +46 -0
  277. crskit-0.5.0/tests/Gigs/Test5210Part2.cpp +46 -0
  278. crskit-0.5.0/tests/Gigs/Test5210Part3.cpp +33 -0
  279. crskit-0.5.0/tests/Gigs/Test5210Part4.cpp +64 -0
  280. crskit-0.5.0/tests/Gigs/Test5210Part5.cpp +33 -0
  281. crskit-0.5.0/tests/Gigs/Test5210Part6.cpp +46 -0
  282. crskit-0.5.0/tests/Gigs/Test5210Part7.cpp +46 -0
  283. crskit-0.5.0/tests/Gigs/Test5210Part8.cpp +33 -0
  284. crskit-0.5.0/tests/Gigs/Test5210Part9.cpp +46 -0
  285. crskit-0.5.0/tests/Gigs/Test5212Part1.cpp +76 -0
  286. crskit-0.5.0/tests/Gigs/Test5213Part1.cpp +75 -0
  287. crskit-0.5.0/tests/GigsFactory.h +357 -0
  288. crskit-0.5.0/tests/Test5101Part1.cpp +120 -0
  289. crskit-0.5.0/tests/TestBase.h +152 -0
  290. crskit-0.5.0/tests/TestContextEnvironment.cpp +163 -0
  291. crskit-0.5.0/tests/TestEnvironment.cpp +48 -0
  292. crskit-0.5.0/tests/TestEquivalence.cpp +89 -0
  293. crskit-0.5.0/tests/TestExceptions.cpp +42 -0
  294. crskit-0.5.0/tests/TestGridCell.cpp +61 -0
  295. crskit-0.5.0/tests/TestGridFile.cpp +398 -0
  296. crskit-0.5.0/tests/TestOperationSelection.cpp +147 -0
  297. crskit-0.5.0/tests/TestProjectionEdges.cpp +102 -0
  298. crskit-0.5.0/tests/TestTowgs84.cpp +271 -0
  299. crskit-0.5.0/tests/TestTransformPoints.cpp +89 -0
  300. crskit-0.5.0/tests/TestTransformationAuthorityCode.cpp +53 -0
  301. crskit-0.5.0/tests/TestUnknownCrs.cpp +80 -0
  302. crskit-0.5.0/tests/TestWkt2.cpp +368 -0
  303. crskit-0.5.0/tests/vcpkg.json +7 -0
  304. crskit-0.5.0/tools/epsg-sqlite/README.md +62 -0
  305. crskit-0.5.0/tools/epsg-sqlite/epsg_sql_to_sqlite.py +296 -0
  306. crskit-0.5.0/tools/release.sh +71 -0
  307. crskit-0.5.0/vcpkg.json +7 -0
  308. crskit-0.5.0/versions/baseline.json +8 -0
  309. crskit-0.5.0/versions/c-/crskit.json +34 -0
@@ -0,0 +1,66 @@
1
+ ###############################################################################
2
+ # Set default behavior to automatically normalize line endings.
3
+ ###############################################################################
4
+ * text=auto
5
+
6
+ ###############################################################################
7
+ # Set default behavior for command prompt diff.
8
+ #
9
+ # This is need for earlier builds of msysgit that does not have it on by
10
+ # default for csharp files.
11
+ # Note: This is only used by command line
12
+ ###############################################################################
13
+ #*.cs diff=csharp
14
+
15
+ ###############################################################################
16
+ # Set the merge driver for project and solution files
17
+ #
18
+ # Merging from the command prompt will add diff markers to the files if there
19
+ # are conflicts (Merging from VS is not affected by the settings below, in VS
20
+ # the diff markers are never inserted). Diff markers may cause the following
21
+ # file extensions to fail to load in VS. An alternative would be to treat
22
+ # these files as binary and thus will always conflict and require user
23
+ # intervention with every merge. To do so, just uncomment the entries below
24
+ ###############################################################################
25
+ #*.sln merge=binary
26
+ #*.csproj merge=binary
27
+ #*.vbproj merge=binary
28
+ #*.vcxproj merge=binary
29
+ #*.vcproj merge=binary
30
+ #*.dbproj merge=binary
31
+ #*.fsproj merge=binary
32
+ #*.lsproj merge=binary
33
+ #*.wixproj merge=binary
34
+ #*.modelproj merge=binary
35
+ #*.sqlproj merge=binary
36
+ #*.wwaproj merge=binary
37
+
38
+ ###############################################################################
39
+ # behavior for image files
40
+ #
41
+ # image files are treated as binary by default.
42
+ ###############################################################################
43
+ #*.jpg binary
44
+ #*.png binary
45
+ #*.gif binary
46
+
47
+ ###############################################################################
48
+ # diff behavior for common document formats
49
+ #
50
+ # Convert binary document formats to text before diffing them. This feature
51
+ # is only available from the command line. Turn it on by uncommenting the
52
+ # entries below.
53
+ ###############################################################################
54
+ #*.doc diff=astextplain
55
+ #*.DOC diff=astextplain
56
+ #*.docx diff=astextplain
57
+ #*.DOCX diff=astextplain
58
+ #*.dot diff=astextplain
59
+ #*.DOT diff=astextplain
60
+ #*.pdf diff=astextplain
61
+ #*.PDF diff=astextplain
62
+ #*.rtf diff=astextplain
63
+ #*.RTF diff=astextplain
64
+
65
+ # Shell scripts must stay LF so they run under bash on any platform.
66
+ *.sh text eol=lf
@@ -0,0 +1,95 @@
1
+ name: CI
2
+
3
+ on:
4
+ push:
5
+ branches: [main]
6
+ pull_request:
7
+ branches: [main]
8
+
9
+ # The library builds self-contained (SQLite is vendored in Prueba/, GoogleTest is fetched by CMake),
10
+ # so a build only needs the compiler + CMake + Ninja. Running the tests additionally needs the EPSG
11
+ # SQLite database, which is not versioned: set the repository variable EPSG_SQLITE_URL to a URL that
12
+ # serves epsg-fiel.sqlite (e.g. a GitHub Release asset) and the full suite runs; otherwise the job
13
+ # still builds everything and reports that the tests were skipped.
14
+ jobs:
15
+ linux:
16
+ name: Linux (GCC 14)
17
+ runs-on: ubuntu-24.04
18
+ steps:
19
+ - uses: actions/checkout@v4
20
+
21
+ - name: Install toolchain
22
+ run: sudo apt-get update && sudo apt-get install -y g++-14 gcc-14 cmake ninja-build
23
+
24
+ - name: Fetch EPSG database
25
+ id: epsg
26
+ env:
27
+ EPSG_SQLITE_URL: ${{ vars.EPSG_SQLITE_URL }}
28
+ run: |
29
+ if [ -n "$EPSG_SQLITE_URL" ]; then
30
+ curl -fsSL "$EPSG_SQLITE_URL" -o "$PWD/epsg.sqlite"
31
+ echo "db=$PWD/epsg.sqlite" >> "$GITHUB_OUTPUT"
32
+ else
33
+ echo "No EPSG_SQLITE_URL set; the suite will be built but not run."
34
+ fi
35
+
36
+ - name: Configure
37
+ run: >
38
+ cmake -S . -B build -G Ninja
39
+ -DCMAKE_BUILD_TYPE=Release
40
+ -DCMAKE_CXX_COMPILER=g++-14 -DCMAKE_C_COMPILER=gcc-14
41
+ -DDIGI21_EPSG_SQLITE="${{ steps.epsg.outputs.db }}"
42
+
43
+ - name: Build
44
+ run: cmake --build build
45
+
46
+ - name: Test
47
+ if: ${{ steps.epsg.outputs.db != '' }}
48
+ env:
49
+ # A few tests need NTv2/geoid grid files (ICSM Australia, NRCan Canada, IGN Spain) that are
50
+ # licence-restricted and cannot be redistributed, so they are excluded here. They run locally
51
+ # where the grids are installed; the TestGridFile suite skips itself when a grid is absent.
52
+ GTEST_FILTER: "-Test5207Part1.*:Test5207Part2.*:GridFile.CompoundAlicanteHeightToWgs84UsesRednapGeoid"
53
+ run: ctest --test-dir build --output-on-failure
54
+
55
+ windows:
56
+ name: Windows (MSVC)
57
+ runs-on: windows-2022
58
+ steps:
59
+ - uses: actions/checkout@v4
60
+
61
+ - uses: ilammy/msvc-dev-cmd@v1
62
+
63
+ - name: Fetch EPSG database
64
+ id: epsg
65
+ shell: bash
66
+ env:
67
+ EPSG_SQLITE_URL: ${{ vars.EPSG_SQLITE_URL }}
68
+ run: |
69
+ if [ -n "$EPSG_SQLITE_URL" ]; then
70
+ # pwd -W gives a native Windows path (D:/a/...), which SQLite/CMake can open (bash's
71
+ # $PWD would be /d/a/..., which sqlite3_open cannot resolve).
72
+ dir=$(pwd -W)
73
+ curl -fsSL "$EPSG_SQLITE_URL" -o "$dir/epsg.sqlite"
74
+ echo "db=$dir/epsg.sqlite" >> "$GITHUB_OUTPUT"
75
+ else
76
+ echo "No EPSG_SQLITE_URL set; the suite will be built but not run."
77
+ fi
78
+
79
+ - name: Configure
80
+ run: >
81
+ cmake -S . -B build -G Ninja
82
+ -DCMAKE_BUILD_TYPE=Release
83
+ -DDIGI21_EPSG_SQLITE="${{ steps.epsg.outputs.db }}"
84
+
85
+ - name: Build
86
+ run: cmake --build build
87
+
88
+ - name: Test
89
+ if: ${{ steps.epsg.outputs.db != '' }}
90
+ env:
91
+ # A few tests need NTv2/geoid grid files (ICSM Australia, NRCan Canada, IGN Spain) that are
92
+ # licence-restricted and cannot be redistributed, so they are excluded here. They run locally
93
+ # where the grids are installed; the TestGridFile suite skips itself when a grid is absent.
94
+ GTEST_FILTER: "-Test5207Part1.*:Test5207Part2.*:GridFile.CompoundAlicanteHeightToWgs84UsesRednapGeoid"
95
+ run: ctest --test-dir build --output-on-failure
@@ -0,0 +1,80 @@
1
+ name: EPSG data package
2
+
3
+ # crskit-epsg carries the EPSG Geodetic Parameter Dataset as a SQLite database. It is published on its
4
+ # own schedule, not the library's: its version IS the EPSG dataset version (12.57 = EPSG 12.057), it
5
+ # holds no compiled code, and it only changes when IOGP releases a new dataset -- a few times a year.
6
+ # Hence a manual workflow rather than a tag: run it when the epsg-data release carries a new database.
7
+ #
8
+ # The database is not versioned in this repository (11 MB of binary that changes wholesale). fetch.py
9
+ # pulls it from the release asset below and writes the package version out of the database itself.
10
+ on:
11
+ workflow_dispatch:
12
+ inputs:
13
+ database-url:
14
+ description: "The EPSG SQLite database to package"
15
+ required: true
16
+ default: https://github.com/digi21/crskit/releases/download/epsg-data/epsg-v12.057.sqlite
17
+ publish:
18
+ description: "Publish to TestPyPI (untick to only build and inspect the artifact)"
19
+ type: boolean
20
+ default: true
21
+ production:
22
+ description: "Publish to the REAL PyPI instead of TestPyPI. Irreversible."
23
+ type: boolean
24
+ default: false
25
+
26
+ jobs:
27
+ build:
28
+ name: Build
29
+ runs-on: ubuntu-24.04
30
+ steps:
31
+ - uses: actions/checkout@v4
32
+
33
+ - name: Fetch the EPSG database into the package
34
+ working-directory: python-epsg
35
+ run: python fetch.py --url "${{ inputs.database-url }}"
36
+
37
+ - name: Build wheel and sdist
38
+ working-directory: python-epsg
39
+ run: pipx run build
40
+
41
+ # A pure-data package: no extension module, so one py3-none-any wheel serves every platform.
42
+ # If this ever produces something else, the packaging has gone wrong and the upload should not
43
+ # happen -- a platform-tagged wheel here would silently exclude every other platform.
44
+ - name: Check the artifacts
45
+ working-directory: python-epsg
46
+ run: |
47
+ ls -la dist/
48
+ pipx run twine check dist/*
49
+ test -n "$(find dist -name 'crskit_epsg-*-py3-none-any.whl')" \
50
+ || { echo "::error::expected a pure-python wheel; got something platform-specific"; exit 1; }
51
+
52
+ - uses: actions/upload-artifact@v4
53
+ with:
54
+ name: epsg-package
55
+ path: python-epsg/dist/*
56
+
57
+ publish:
58
+ name: Publish
59
+ needs: build
60
+ if: inputs.publish
61
+ runs-on: ubuntu-24.04
62
+ environment: ${{ inputs.production && 'pypi' || 'testpypi' }}
63
+ permissions:
64
+ id-token: write
65
+
66
+ steps:
67
+ - uses: actions/download-artifact@v4
68
+ with:
69
+ name: epsg-package
70
+ path: dist
71
+
72
+ - name: Publish to TestPyPI
73
+ if: ${{ !inputs.production }}
74
+ uses: pypa/gh-action-pypi-publish@release/v1
75
+ with:
76
+ repository-url: https://test.pypi.org/legacy/
77
+
78
+ - name: Publish to PyPI
79
+ if: inputs.production
80
+ uses: pypa/gh-action-pypi-publish@release/v1
@@ -0,0 +1,161 @@
1
+ name: Wheels
2
+
3
+ on:
4
+ push:
5
+ branches: [main]
6
+ tags: ["v*"]
7
+ pull_request:
8
+ branches: [main]
9
+ workflow_dispatch:
10
+ inputs:
11
+ publish:
12
+ description: "Publish the result to TestPyPI (a tag publishes to the real PyPI)"
13
+ type: boolean
14
+ default: false
15
+
16
+ # Builds the Python binding for CPython 3.10-3.13 on Linux, Windows and macOS with cibuildwheel, and
17
+ # publishes it: a v* tag goes to PyPI, a manual run with `publish` ticked goes to TestPyPI. As in the
18
+ # C++ CI, running the tests needs the EPSG SQLite database, which is not versioned: set the repository
19
+ # variable EPSG_SQLITE_URL to a URL serving it and the pytest suite runs inside each wheel's
20
+ # environment; without it the tests skip themselves (the fixture checks for the file) and the job
21
+ # still proves that every wheel builds and imports.
22
+ jobs:
23
+ wheels:
24
+ name: ${{ matrix.os }}
25
+ runs-on: ${{ matrix.os }}
26
+ strategy:
27
+ fail-fast: false
28
+ matrix:
29
+ os: [ubuntu-24.04, windows-2022, macos-15]
30
+
31
+ steps:
32
+ - uses: actions/checkout@v4
33
+
34
+ - name: Fetch EPSG database
35
+ shell: bash
36
+ env:
37
+ EPSG_SQLITE_URL: ${{ vars.EPSG_SQLITE_URL }}
38
+ run: |
39
+ if [ -n "$EPSG_SQLITE_URL" ]; then
40
+ curl -fsSL "$EPSG_SQLITE_URL" -o epsg.sqlite
41
+ else
42
+ echo "No EPSG_SQLITE_URL set; the wheels will be built and imported, but the tests will skip."
43
+ fi
44
+
45
+ - name: Build wheels
46
+ uses: pypa/cibuildwheel@v4.1.0
47
+ env:
48
+ CIBW_BUILD: cp310-* cp311-* cp312-* cp313-*
49
+ CIBW_ARCHS_LINUX: x86_64
50
+ CIBW_ARCHS_WINDOWS: AMD64
51
+ CIBW_SKIP: "*-musllinux*"
52
+
53
+ # The library is C++23, so the image must carry a compiler that has <format>: manylinux_2_28,
54
+ # whose current images ship GCC 14, the compiler the project targets. The image itself is the
55
+ # one cibuildwheel pins for its release -- do not pin it by hand here: an image newer than the
56
+ # cibuildwheel that drives it no longer carries the CPython 3.8 that the older releases go
57
+ # looking for, and the build dies before it compiles a line.
58
+ CIBW_MANYLINUX_X86_64_IMAGE: manylinux_2_28
59
+ CIBW_ENVIRONMENT_LINUX: DIGI21_EPSG_SQLITE=/project/epsg.sqlite
60
+
61
+ # cibuildwheel installs delvewheel on its own ONLY for its default repair command. The moment
62
+ # that command is overridden -- as it is right below -- it stops doing so, and the step died
63
+ # with "'delvewheel' is not recognized as an internal or external command" after building a
64
+ # perfectly good wheel. So we install it ourselves.
65
+ CIBW_BEFORE_BUILD_WINDOWS: pip install delvewheel
66
+
67
+ # delvewheel needs three corrections here:
68
+ # --no-mangle-all it renames every DLL it vendors (crskit.dll -> crskit-<hash>.dll), which
69
+ # would defeat the point of linking the shared library: in a host application
70
+ # that embeds Python and already has crskit.dll loaded, the loader binds the
71
+ # module to that copy BY NAME, so the script shares the library's state
72
+ # instead of running against a second copy.
73
+ # --exclude crskit.dll already travels inside the package; without this delvewheel goes
74
+ # looking for it on the system and fails.
75
+ # --add-path the C++ runtime it vendors (msvcp140.dll) must be the one the binaries were
76
+ # built against or newer. Taking whatever comes first on PATH is a trap: any
77
+ # stale copy shipped by an unrelated program (a JDK, say) is loaded ahead of
78
+ # the real one and the module dies with an access violation on import.
79
+ CIBW_REPAIR_WHEEL_COMMAND_WINDOWS: >
80
+ delvewheel repair --exclude crskit.dll --no-mangle-all --add-path C:\Windows\System32
81
+ -w {dest_dir} {wheel}
82
+
83
+ CIBW_ENVIRONMENT_WINDOWS: DIGI21_EPSG_SQLITE=$GITHUB_WORKSPACE/epsg.sqlite
84
+
85
+ # Both macOS wheels come off the Apple Silicon runner, the x86_64 one by cross-compiling.
86
+ # The Intel image is the other option and it is a worse one: it is capped at Xcode 15, an
87
+ # old libc++ that the library used to be unable to compile against at all, and it is on its
88
+ # way out of GitHub's fleet.
89
+ CIBW_ARCHS_MACOS: arm64 x86_64
90
+
91
+ # 13.4 is not cosmetic. libc++ keeps parts of <charconv> in the system dylib and gates them
92
+ # by OS version; the library steers well clear of the floating-point from_chars, which Apple
93
+ # only made available in macOS 26, but the rest of the C++23 surface still needs a modern
94
+ # enough libc++ to link against.
95
+ CIBW_ENVIRONMENT_MACOS: >
96
+ DIGI21_EPSG_SQLITE=$GITHUB_WORKSPACE/epsg.sqlite
97
+ MACOSX_DEPLOYMENT_TARGET=13.4
98
+
99
+ # delocate would otherwise vendor a SECOND copy of libcrskit.dylib into .dylibs/ and point
100
+ # the module at it. The library already travels inside the package and _crskit resolves it
101
+ # through @loader_path -- same reasoning as --exclude crskit.dll on Windows above.
102
+ CIBW_REPAIR_WHEEL_COMMAND_MACOS: >
103
+ delocate-wheel --exclude libcrskit --require-archs {delocate_archs} -w {dest_dir} -v {wheel}
104
+
105
+ # The x86_64 wheels are cross-compiled on an arm64 runner, which cannot execute them (these
106
+ # runners carry no Rosetta). They are built and repaired, but only the arm64 ones are tested.
107
+ CIBW_TEST_SKIP: "*-macosx_x86_64"
108
+
109
+ CIBW_TEST_REQUIRES: pytest numpy
110
+ CIBW_TEST_COMMAND: pytest {project}/python/tests
111
+
112
+ - uses: actions/upload-artifact@v4
113
+ with:
114
+ name: wheels-${{ matrix.os }}
115
+ path: ./wheelhouse/*.whl
116
+
117
+ # The source distribution: the fallback for any platform we ship no wheel for, and what PyPI shows
118
+ # as the project's source. It needs no compiler here -- it is only an archive of the tree.
119
+ sdist:
120
+ name: sdist
121
+ runs-on: ubuntu-24.04
122
+ steps:
123
+ - uses: actions/checkout@v4
124
+
125
+ - name: Build sdist
126
+ run: pipx run build --sdist
127
+
128
+ - uses: actions/upload-artifact@v4
129
+ with:
130
+ name: sdist
131
+ path: ./dist/*.tar.gz
132
+
133
+ # Publishing goes through PyPI's trusted publishing: the id-token permission below lets this job mint
134
+ # a short-lived OIDC token that PyPI trades for an upload token, so there is no API key stored in this
135
+ # repository to leak. It is configured once on PyPI's side, as a pending publisher naming this
136
+ # repository, this workflow file and the environment below.
137
+ publish:
138
+ name: Publish
139
+ needs: [wheels, sdist]
140
+ if: startsWith(github.ref, 'refs/tags/v') || inputs.publish
141
+ runs-on: ubuntu-24.04
142
+ environment: ${{ startsWith(github.ref, 'refs/tags/v') && 'pypi' || 'testpypi' }}
143
+ permissions:
144
+ id-token: write
145
+
146
+ steps:
147
+ - uses: actions/download-artifact@v4
148
+ with:
149
+ pattern: "{wheels-*,sdist}"
150
+ path: dist
151
+ merge-multiple: true
152
+
153
+ - name: Publish to TestPyPI
154
+ if: ${{ !startsWith(github.ref, 'refs/tags/v') }}
155
+ uses: pypa/gh-action-pypi-publish@release/v1
156
+ with:
157
+ repository-url: https://test.pypi.org/legacy/
158
+
159
+ - name: Publish to PyPI
160
+ if: startsWith(github.ref, 'refs/tags/v')
161
+ uses: pypa/gh-action-pypi-publish@release/v1
@@ -0,0 +1,289 @@
1
+ ## Ignore Visual Studio temporary files, build results, and
2
+ ## files generated by popular Visual Studio add-ons.
3
+
4
+ # User-specific files
5
+ *.suo
6
+ *.user
7
+ *.userosscache
8
+ *.sln.docstates
9
+
10
+ # User-specific files (MonoDevelop/Xamarin Studio)
11
+ *.userprefs
12
+
13
+ # Build results
14
+ [Dd]ebug/
15
+ [Dd]ebugPublic/
16
+ [Rr]elease/
17
+ [Rr]eleases/
18
+ x64/
19
+ x86/
20
+ bld/
21
+ [Bb]in/
22
+ [Oo]bj/
23
+ [Ll]og/
24
+
25
+ # CMake out-of-source build directories (Linux / cross-platform / sanitizers)
26
+ /build/
27
+ /build-linux/
28
+ /build-win/
29
+ /build-asan/
30
+ /out/
31
+ CMakeCache.txt
32
+ CMakeFiles/
33
+
34
+ # Python binding: wheel/sdist output and test caches
35
+ /dist/
36
+ *.egg-info/
37
+ .pytest_cache/
38
+ .mypy_cache/
39
+
40
+ # crskit-epsg: the EPSG database and the version derived from it are not versioned here (IOGP's
41
+ # data, under its own terms). fetch.py puts them in place before the wheel is built.
42
+ /python-epsg/crskit_epsg/epsg.sqlite
43
+ /python-epsg/crskit_epsg/_version.py
44
+ /python-epsg/build/
45
+
46
+ # Visual Studio 2015 cache/options directory
47
+ .vs/
48
+ # Uncomment if you have tasks that create the project's static files in wwwroot
49
+ #wwwroot/
50
+
51
+ # MSTest test Results
52
+ [Tt]est[Rr]esult*/
53
+ [Bb]uild[Ll]og.*
54
+
55
+ # NUNIT
56
+ *.VisualState.xml
57
+ TestResult.xml
58
+
59
+ # Build Results of an ATL Project
60
+ [Dd]ebugPS/
61
+ [Rr]eleasePS/
62
+ dlldata.c
63
+
64
+ # DNX
65
+ project.lock.json
66
+ project.fragment.lock.json
67
+ artifacts/
68
+
69
+ *_i.c
70
+ *_p.c
71
+ *_i.h
72
+ *.ilk
73
+ *.meta
74
+ *.obj
75
+ *.pch
76
+ *.pdb
77
+ *.pgc
78
+ *.pgd
79
+ *.rsp
80
+ *.sbr
81
+ *.tlb
82
+ *.tli
83
+ *.tlh
84
+ *.tmp
85
+ *.tmp_proj
86
+ *.log
87
+ *.vspscc
88
+ *.vssscc
89
+ .builds
90
+ *.pidb
91
+ *.svclog
92
+ *.scc
93
+
94
+ # Chutzpah Test files
95
+ _Chutzpah*
96
+
97
+ # Visual C++ cache files
98
+ ipch/
99
+ *.aps
100
+ *.ncb
101
+ *.opendb
102
+ *.opensdf
103
+ *.sdf
104
+ *.cachefile
105
+ *.VC.db
106
+ *.VC.VC.opendb
107
+
108
+ # Visual Studio profiler
109
+ *.psess
110
+ *.vsp
111
+ *.vspx
112
+ *.sap
113
+
114
+ # TFS 2012 Local Workspace
115
+ $tf/
116
+
117
+ # Guidance Automation Toolkit
118
+ *.gpState
119
+
120
+ # ReSharper is a .NET coding add-in
121
+ _ReSharper*/
122
+ *.[Rr]e[Ss]harper
123
+ *.DotSettings.user
124
+
125
+ # JustCode is a .NET coding add-in
126
+ .JustCode
127
+
128
+ # TeamCity is a build add-in
129
+ _TeamCity*
130
+
131
+ # DotCover is a Code Coverage Tool
132
+ *.dotCover
133
+
134
+ # NCrunch
135
+ _NCrunch_*
136
+ .*crunch*.local.xml
137
+ nCrunchTemp_*
138
+
139
+ # MightyMoose
140
+ *.mm.*
141
+ AutoTest.Net/
142
+
143
+ # Web workbench (sass)
144
+ .sass-cache/
145
+
146
+ # Installshield output folder
147
+ [Ee]xpress/
148
+
149
+ # DocProject is a documentation generator add-in
150
+ DocProject/buildhelp/
151
+ DocProject/Help/*.HxT
152
+ DocProject/Help/*.HxC
153
+ DocProject/Help/*.hhc
154
+ DocProject/Help/*.hhk
155
+ DocProject/Help/*.hhp
156
+ DocProject/Help/Html2
157
+ DocProject/Help/html
158
+
159
+ # Click-Once directory
160
+ publish/
161
+
162
+ # Publish Web Output
163
+ *.[Pp]ublish.xml
164
+ *.azurePubxml
165
+ # TODO: Comment the next line if you want to checkin your web deploy settings
166
+ # but database connection strings (with potential passwords) will be unencrypted
167
+ #*.pubxml
168
+ *.publishproj
169
+
170
+ # Microsoft Azure Web App publish settings. Comment the next line if you want to
171
+ # checkin your Azure Web App publish settings, but sensitive information contained
172
+ # in these scripts will be unencrypted
173
+ PublishScripts/
174
+
175
+ # NuGet Packages
176
+ *.nupkg
177
+ # The packages folder can be ignored because of Package Restore
178
+ **/packages/*
179
+ # except build/, which is used as an MSBuild target.
180
+ !**/packages/build/
181
+ # Uncomment if necessary however generally it will be regenerated when needed
182
+ #!**/packages/repositories.config
183
+ # NuGet v3's project.json files produces more ignoreable files
184
+ *.nuget.props
185
+ *.nuget.targets
186
+
187
+ # Microsoft Azure Build Output
188
+ csx/
189
+ *.build.csdef
190
+
191
+ # Microsoft Azure Emulator
192
+ ecf/
193
+ rcf/
194
+
195
+ # Windows Store app package directories and files
196
+ AppPackages/
197
+ BundleArtifacts/
198
+ Package.StoreAssociation.xml
199
+ _pkginfo.txt
200
+
201
+ # Visual Studio cache files
202
+ # files ending in .cache can be ignored
203
+ *.[Cc]ache
204
+ # but keep track of directories ending in .cache
205
+ !*.[Cc]ache/
206
+
207
+ # Others
208
+ ClientBin/
209
+ ~$*
210
+ *~
211
+ *.dbmdl
212
+ *.dbproj.schemaview
213
+ *.jfm
214
+ *.pfx
215
+ *.publishsettings
216
+ node_modules/
217
+ orleans.codegen.cs
218
+
219
+ # Since there are multiple workflows, uncomment next line to ignore bower_components
220
+ # (https://github.com/github/gitignore/pull/1529#issuecomment-104372622)
221
+ #bower_components/
222
+
223
+ # RIA/Silverlight projects
224
+ Generated_Code/
225
+
226
+ # Backup & report files from converting an old project file
227
+ # to a newer Visual Studio version. Backup files are not needed,
228
+ # because we have git ;-)
229
+ _UpgradeReport_Files/
230
+ Backup*/
231
+ UpgradeLog*.XML
232
+ UpgradeLog*.htm
233
+
234
+ # SQL Server files
235
+ *.mdf
236
+ *.ldf
237
+
238
+ # Business Intelligence projects
239
+ *.rdl.data
240
+ *.bim.layout
241
+ *.bim_*.settings
242
+
243
+ # Microsoft Fakes
244
+ FakesAssemblies/
245
+
246
+ # GhostDoc plugin setting file
247
+ *.GhostDoc.xml
248
+
249
+ # Node.js Tools for Visual Studio
250
+ .ntvs_analysis.dat
251
+
252
+ # Visual Studio 6 build log
253
+ *.plg
254
+
255
+ # Visual Studio 6 workspace options file
256
+ *.opt
257
+
258
+ # Visual Studio LightSwitch build output
259
+ **/*.HTMLClient/GeneratedArtifacts
260
+ **/*.DesktopClient/GeneratedArtifacts
261
+ **/*.DesktopClient/ModelManifest.xml
262
+ **/*.Server/GeneratedArtifacts
263
+ **/*.Server/ModelManifest.xml
264
+ _Pvt_Extensions
265
+
266
+ # Paket dependency manager
267
+ .paket/paket.exe
268
+ paket-files/
269
+
270
+ # FAKE - F# Make
271
+ .fake/
272
+
273
+ # JetBrains Rider
274
+ .idea/
275
+ *.sln.iml
276
+
277
+ # CodeRush
278
+ .cr/
279
+
280
+ # Python Tools for Visual Studio (PTVS)
281
+ __pycache__/
282
+ *.pyc
283
+ *.exe
284
+
285
+ # vcpkg manifest mode (dependencias restauradas localmente)
286
+ vcpkg_installed/
287
+
288
+ # CMake build dir
289
+ /build/