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

OGRWriter: Erase file prior to writing multiple layers to that same file #26

Open
Ylannl opened this issue Dec 20, 2022 · 0 comments
Open

Comments

@Ylannl
Copy link
Member

Ylannl commented Dec 20, 2022

Sometimes we have the case where multiple OGRWriter write to various layers in the same file. There is an option to overwrite an entire layer (instead of appending to an existing layer). But this is slow, especially when it needs to happen for a huge number of files.

We need to implement a mechanism that deletes the entire file if it exists prior to writing the layers. This is already possible for the case with a single OGRWriter writing to on particular file. But there is a problem when multiple OGRWriters write to different layers in the same file, ie.it requires some coordination between multiple OGRWriter to ensure that the file is only deleted once and all the layers are present in the output file.

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

No branches or pull requests

1 participant