-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
FlatGeobuf writing: in SPATIAL_INDEX=NO mode, deal with empty geometries as if there were null #11420
Conversation
@rouault confirmed. I either like to pretend they do not exist or treat them as null geometry. |
…ies as if there were null - this fixes the crash when writing an empty polygon. Fixes OSGeo#11419 - this avoids a reading error when writing an empty line
389e438
to
d87e68e
Compare
Also add support for writing a file without feature in SPATIAL_INDEX=NO mode ( @bjornharrtell no reason why we should disallow this, right ? since writing empty files in SPATIAL_INDEX=YES mode already works) |
d87e68e
to
e6cb834
Compare
e6cb834
to
c59ee22
Compare
No, must been an oversight that it wasn't doing so already. |
The backport to
stderr
stdout
To backport manually, run these commands in your terminal: # Fetch latest updates from GitHub
git fetch
# Create a new working tree
git worktree add .worktrees/backport-release/3.10 release/3.10
# Navigate to the new working tree
cd .worktrees/backport-release/3.10
# Create a new branch
git switch --create backport-11420-to-release/3.10
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick e1f240408258b7505c80582721509110226848dc,c59ee2217869fb3ee5af5be28a48c653ac07f576
# Push it to GitHub
git push --set-upstream origin backport-11420-to-release/3.10
# Go back to the original working tree
cd ../..
# Delete the working tree
git worktree remove .worktrees/backport-release/3.10 Then, create a pull request where the |
@bjornharrtell Can you confirm that FlatGeobuf is not a fan of EMPTY geometries ?