inbo / fistools

Repo containing widely used data & functions of the FIS team
https://inbo.github.io/fistools/
Other
1 stars 0 forks source link

[BUG] calculate_polygon_centroid should return xy as well #49

Closed SanderDevisscher closed 2 months ago

SanderDevisscher commented 2 months ago

Welke functie/dataset calculate_polygon_centroid

Beschrijf de bug Currently the function returns lat long even if function is in other crs.

Stappen om de bug te reproduceren: Just run function

Verwachte uikomst if st_crs(sf_df) != 4236 => add x & y to export

Screenshots Indien van toepassing

Extra context sessionInfo

package - versie ‘1.1.1’

Checklist

1in de mate van het mogelijke

2Indien het nodig is om de functie grotendeels te herzien (bvb tgv een depricated package) om de bug op te lossen of als er meerdere functies en/of datasets bij betrokken zijn, gebruik: usethis::use_version(which = "minor").