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

[FEATURE] Extra control when smoothing geometries #3450

Merged
merged 1 commit into from Sep 2, 2016

Conversation

nyalldawson
Copy link
Collaborator

Adds options to QgsGeometry::smooth to not smooth segments shorter than a certain threshold (avoids excessive new vertices) or sharp corners with an angle exceeding a threshold (avoids smoothing intentional sharp corners such as right angles)

Expose the angle threshold to processing smooth algorithm

Also:

  • optimise QgsGeometry::smooth for new geometry classes
  • Fix smooth does not work with geometries containing Z/M

segments shorter than a certain threshold or sharp corners
with an angle exceeding a threshold

Expose the angle threshold to processing smooth algorithm

Also:
- optimise QgsGeometry::smooth for new geometry classes
- Fix smooth does not work with geometries containing Z/M
@nyalldawson nyalldawson added the API Break! Breaks stable API. Proceed with extreme caution!! label Sep 2, 2016
@nyalldawson
Copy link
Collaborator Author

Very minor API break here - two methods which were public in QgsGeometry have been made private. These should never have been public and are just internally used by QgsGeometry::smooth.

@nyalldawson nyalldawson merged commit 8107856 into qgis:master Sep 2, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
API Break! Breaks stable API. Proceed with extreme caution!!
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant