gdal version macro < gdal 1.10
With gdal 1.10.0 (Released in April 2013) the current "GDAL Version Information macro" was introduced. Older versions used a different version of the macro. The current version of Fiona does only follow the new macro definition. However, the documentation says that GDAL/OGR 1.8+ is supported. This PR makes calc_gdal_version_num and get_gdal_version_tuple aware of the different GDAL Version Information macro for OGR versions prior to 1.10.0.
I'm not sure if there are users that use a recent version of Fiona in combination with such an old version of gdal/ogr. Thus we could also just bump the minimal supported version of gdal to 1.10.
However, we currently do not test in the CI for backwards compability to the oldest supported version of gdal/ogr, which might be something that we should do (thus, this PR will not be tested by the CI).
- 点赞 评论 复制链接分享
- weixin_39657249 5月前
Great! I don't see any harm in merging this.点赞 评论 复制链接分享