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

Fix exporting of geometry-less vector layers when offlining using area of interest #55

Merged
merged 1 commit into from
Oct 30, 2023

Conversation

nirvn
Copy link
Member

@nirvn nirvn commented Oct 29, 2023

@nirvn nirvn requested a review from suricactus October 29, 2023 02:40
layer.selectByIds([FID_NULL])
else:
# insure that geometry-less layers do not have selected features that would interfere with the process
layer.removeSelection()
Copy link
Member

Choose a reason for hiding this comment

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

I would have expected a select all, does this work?

Copy link
Member Author

Choose a reason for hiding this comment

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

@m-kuhn , it works, the logic is in QgsOfflineEditing, and it only extracts selected features when 1 or more is selected, see: https://github.com/qgis/QGIS/blob/master/src/core/qgsofflineediting.cpp#L788C5-L793

@m-kuhn m-kuhn mentioned this pull request Oct 30, 2023
@nirvn nirvn merged commit c84ee2d into master Oct 30, 2023
@nirvn nirvn deleted the aoi_fix branch October 30, 2023 09:04
@elmonchas
Copy link

is this fix icoporated in the latest version? (3.1.9 borneo?)
I still encouter this faulty behaviour in this version

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.

QFieldSync Area of Interest filters out all records of non-spatial tables
3 participants