-
-
Notifications
You must be signed in to change notification settings - Fork 3.2k
add support for SFCGAL library #62611
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
base: master
Are you sure you want to change the base?
Conversation
🪟 Windows buildsDownload Windows builds of this PR for testing. 🍎 MacOS Qt6 buildsDownload MacOS Qt6 builds of this PR for testing. 🪟 Windows Qt6 buildsDownload Windows Qt6 builds of this PR for testing. |
|
||
find_package(SFCGAL) # SFCGAL provider | ||
message(STATUS "Found SFCGAL: ${SFCGAL_VERSION} ${SFCGAL_DIR}") | ||
if(SFCGAL_VERSION VERSION_LESS "2.1") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please lower this to 2.0 -- 2.1 is much too recent (it isn't even available on Fedora 42)
if(SFCGAL_VERSION VERSION_LESS "2.1") | |
if(SFCGAL_VERSION VERSION_LESS "2.0") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We need at least 2.1 and it is available in rawhide. We still need to change the build stage for fedora 42 and add the rawhide repository only for sfcgal dependencies. It should not impact other dependencies.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We need at least 2.1 and it is available in rawhide
Can you elaborate why? Rawhide isn't a realistic option.
Before merging we'll also need the CI updated so that this new code is built and tested |
src/core/geometry/qgssfcgalengine.h
Outdated
public: | ||
|
||
/** | ||
* Creates a SFGAL geometry (inherit QgsAbstractGeometry) from an internal SFCGAL geometry (from SFCGAL library). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I meant ALL the docs. I can spot others where the content is misleading -- eg "Same as toAbstractGeometry
but returned object is casted to QgsSfcgalGeometry."
//! Returns the underlying QGIS geometry | ||
QgsAbstractGeometry *asQgisGeometry( QString *errorMsg = nullptr ) const; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
unique_ptr return still outstanding
/** | ||
* Export the geometry as WKT | ||
* | ||
* \param precision Floating point precision for WKT coordinates. Setting to -1 yields rational number WKT (not decimal). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's not actually WKT then, is it? At least the QGIS wkt parser won't accept fraction strings...
This PR is the implementation of this QEP and follow this closed PR.
We add 2 main classes:
The integration in
QgsGeometry
class will be done in a future PR after the geometry backend support is merged.Sponsored by: