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

Union function doesn't work #52222

Closed
2 tasks done
stoprocentreal opened this issue Mar 14, 2023 · 6 comments
Closed
2 tasks done

Union function doesn't work #52222

stoprocentreal opened this issue Mar 14, 2023 · 6 comments
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Feedback Waiting on the submitter for answers Processing Relating to QGIS Processing framework or individual Processing algorithms stale Uh oh! Seems this work is abandoned, and the PR is about to close.

Comments

@stoprocentreal
Copy link

What is the bug or the crash?

When I start union function with some polygon layer, it isn't working but with some layers is. The geometry of all layers are the same. I tried more layers and projects. Some features are broken and when I removed them it worked. But it's a lot features than I'm able to remove. This is log:
QGIS version: 3.30.0-'s-Hertogenbosch
QGIS code revision: f186b8e
Qt version: 5.15.2
Python version: 3.9.5
GDAL version: 3.3.2
GEOS version: 3.9.1-CAPI-1.14.2
PROJ version: Rel. 8.1.1, September 1st, 2021
PDAL version: 2.3.0 (git-version: Release)
Algorithm started at: 2023-03-14T14:20:30
Algorithm 'Union (multiple)' starting…
'OUTPUT' : 'TEMPORARY_OUTPUT', 'OVERLAYS' : None, 'OVERLAY_FIELDS_PREFIX' : '' }

Feature could not be written to Union_e55fbe8a_862e_489f_8deb_7464c0ad2245: Could not add feature with geometry type MultiLineString to layer of type MultiPolygon
Could not write feature
Execution failed after 1.82 seconds

Loading resulting layers
Algorithm 'Union (multiple)' finishedQGIS version: 3.30.0-'s-Hertogenbosch
QGIS code revision: f186b8e
Qt version: 5.15.2
Python version: 3.9.5
GDAL version: 3.3.2
GEOS version: 3.9.1-CAPI-1.14.2
PROJ version: Rel. 8.1.1, September 1st, 2021
PDAL version: 2.3.0 (git-version: Release)
Algorithm started at: 2023-03-14T14:20:30
Algorithm 'Union (multiple)' starting…
Input parameters:
'OUTPUT' : 'TEMPORARY_OUTPUT', 'OVERLAYS' : None, 'OVERLAY_FIELDS_PREFIX' : '' }

Feature could not be written to Union_e55fbe8a_862e_489f_8deb_7464c0ad2245: Could not add feature with geometry type MultiLineString to layer of type MultiPolygon
Could not write feature
Execution failed after 1.82 seconds

Loading resulting layers
Algorithm 'Union (multiple)' finished

Steps to reproduce the issue

.

Versions

I tried more versions. 3.30.0, 3.22.4. MacOS 13.2.1 and Windows 11

Supported QGIS version

  • I'm running a supported QGIS version according to the roadmap.

New profile

  • I tried with a new QGIS profile

Additional context

No response

@stoprocentreal stoprocentreal added the Bug Either a bug report, or a bug fix. Let's hope for the latter! label Mar 14, 2023
@nicogodet
Copy link
Member

Error message is quite explicite : Could not add feature with geometry type MultiLineString to layer of type MultiPolygon

Best would be to share some data to reproduce the issue.
If both layers are polygons, you have some invalid features in one of them as it contains a line which is an invalid polygon.
You can try to run "Fix geometries" on your layers before (be careful this alg will crash your QGIS on macOS, this is a known issue, try on windows).

@nicogodet nicogodet added the Feedback Waiting on the submitter for answers label Mar 14, 2023
@stoprocentreal
Copy link
Author

stoprocentreal commented Mar 15, 2023

Extracted.zip
Broken.zip
Repaired.zip

The Broken one is file which I downloaded from one agricultural application. In Repaired file I deleted broken geometries, there were like 27 ones. And the Extracted file contains only broken geometries (27). If there are two files in one zip, the fertilizer_actual_map is the right file.

@agiudiceandrea agiudiceandrea added the Processing Relating to QGIS Processing framework or individual Processing algorithms label Mar 16, 2023
@agiudiceandrea
Copy link
Contributor

See also #44801, #49871.

@agiudiceandrea agiudiceandrea removed the Feedback Waiting on the submitter for answers label Mar 16, 2023
@alexbruy
Copy link
Contributor

alexbruy commented Nov 3, 2023

Not reproducible with the latest master (36c53ea) built against GEOS 3.11.1

@alexbruy alexbruy added the Feedback Waiting on the submitter for answers label Nov 3, 2023
Copy link

The QGIS project highly values your report and would love to see it addressed. However, this issue has been left in feedback mode for the last 14 days and is being automatically marked as "stale".
If you would like to continue with this issue, please provide any missing information or answer any open questions. If you could resolve the issue yourself meanwhile, please leave a note for future readers with the same problem and close the issue.
In case you should have any uncertainty, please leave a comment and we will be happy to help you proceed with this issue.
If there is no further activity on this issue, it will be closed in a week.

@github-actions github-actions bot added the stale Uh oh! Seems this work is abandoned, and the PR is about to close. label Nov 18, 2023
Copy link

While we hate to see this happen, this issue has been automatically closed because it has not had any activity in the last 42 days despite being marked as feedback. If this issue should be reconsidered, please follow the guidelines in the previous comment and reopen this issue.
Or, if you have any further questions, there are also further support channels that can help you.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Dec 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Feedback Waiting on the submitter for answers Processing Relating to QGIS Processing framework or individual Processing algorithms stale Uh oh! Seems this work is abandoned, and the PR is about to close.
Projects
None yet
Development

No branches or pull requests

4 participants