Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Potential GDAL/GEOS version issue on Fedora 34 #27

Closed
ctoney opened this issue Jun 9, 2023 · 0 comments
Closed

Potential GDAL/GEOS version issue on Fedora 34 #27

ctoney opened this issue Jun 9, 2023 · 0 comments

Comments

@ctoney
Copy link
Collaborator

ctoney commented Jun 9, 2023

On Fedora 34

bnd <- "POLYGON ((324467.3 5104814.2, 323909.4 5104365.4, 323794.2 
5103455.8, 324970.7 5102885.8, 326420.0 5103595.3, 326389.6 5104747.5, 
325298.1 5104929.4, 325298.1 5104929.4, 324467.3 5104814.2))"
bbox_from_wkt(bnd)
#>Error: Failed to create geometry object from WKT string.
#>Execution halted

This may well be about software versions:

library(sf)
#>Linking to GEOS 3.9.0, GDAL 3.2.2, PROJ 7.2.1; sf_use_s2() is TRUE

bbox_from_wk() appears to work on Fedora when GDAL is not built against GEOS, but fails in this case when GEOS should be available. OGR_G_CreateGeometry() should not need GEOS to create the geometry object? but seems to use it when it appears to be available at least.
https://gdal.org/api/vector_c_api.html#_CPPv420OGR_G_CreateGeometry18OGRwkbGeometryType

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant