Skip to content

Conversation

@kareemjeiroudi
Copy link

@kareemjeiroudi kareemjeiroudi commented Dec 10, 2024

Background

Using the convex function to combine a feature collection returns a newly constructed polygon with missing properties. This is crucial if the caller of the function attempts to pass additional properties to the end polygon.

PR includes a test to test this scenario and improved typing

Resolve #2762

  • Is this a bug fix, new functionality, or a breaking change?
    This change fixes a bug where the convex function ignores given properties. I came across this problem, as I was working on a project for one of our clients
  • Have read and followed the steps for preparing a pull request.

@kareemjeiroudi kareemjeiroudi changed the title Fix convex function ignoring given properties (#2762) Fix convex function ignoring given properties Dec 10, 2024
Copy link
Member

@smallsaucepan smallsaucepan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this @kareemjeiroudi. Just a request for a minor change to test.ts and we should be good to go!

@kareemjeiroudi kareemjeiroudi force-pushed the fix/#2762-convex-ignores-properties branch from 51adb21 to e17d2cb Compare August 30, 2025 09:16
@kareemjeiroudi kareemjeiroudi force-pushed the fix/#2762-convex-ignores-properties branch from e17d2cb to 1454744 Compare September 16, 2025 11:08
@kareemjeiroudi
Copy link
Author

I had to rebase on master

@smallsaucepan
Copy link
Member

Hi @kareemjeiroudi would like to merge this PR but can't bring it up to date with master first. Do you know if you have "Allow edits by maintainers" disabled on your branch / repo?

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

Successfully merging this pull request may close these issues.

turf.convex ignores given properties

2 participants