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

Polygon divider creates less equal parts than asked #12

Open
IriniKape opened this issue Nov 30, 2020 · 4 comments
Open

Polygon divider creates less equal parts than asked #12

IriniKape opened this issue Nov 30, 2020 · 4 comments

Comments

@IriniKape
Copy link

I've installed QGIS 3.16 for Windows. I digitised a polygon layer (limits of a city) and used the Polygon divider plugin to divide it in 10 equal parts (polygons).

However, as a result, it created only 9 equally divided polygons. (When I tested it, asking for 9 equal parts, it did create 9 polygons (2 of them weren' t equal though). But when I tried for an 8 equal parts division, it again gave 7 (ie. minus 1) polygons). So it seems that for a number of divisions it does the job, for others not.

Could you please enlighten me? Thank you in advance!

@jonnyhuck
Copy link
Owner

Unfortunately, due to the complexity of what it is doing, its performance can vary depending on the geometry of the shape that you are trying to subdivide - though it would more usually have one too many polygons (due to an unintentional offcut - normally a tiny sliver) rather than one too few - could you send a copy of the data so I can try and reproduce it please?

An easy fix might be to simply change the direction of cut - it will perform differently in each direction, so that might resolve it for you!

@IriniKape
Copy link
Author

GLADLY, THANK YOU!!!
It is for an urban project, in Greece, ultimately, I need to create the centroids of these 10 polygons.
Irene

Oria_polis.zip

Unfortunately, due to the complexity of what it is doing, its performance can vary depending on the geometry of the shape that you are trying to subdivide - though it would more usually have one too many polygons (due to an unintentional offcut - normally a tiny sliver) rather than one too few - could you send a copy of the data so I can try and reproduce it please?

An easy fix might be to simply change the direction of cut - it will perform differently in each direction, so that might resolve it for you!

@IriniKape
Copy link
Author

IriniKape commented Dec 5, 2020 via email

@jonnyhuck
Copy link
Owner

NB: I have plans to change the process that it uses when it struggles to find a division, so that it better preserves the size/number of divisions

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

No branches or pull requests

2 participants