-
Notifications
You must be signed in to change notification settings - Fork 12
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
Don't store gpkg file when reading an osm.pbf file #235
Comments
I think this is a reasonable suggestion but I'm not sure the benefits would outweigh the costs. The reason for storing the file in the local directory is that it can save time: if you repeatedly need to read in a dataset during different sessions it takes much longer to convert to .gpkg each time than to read in from the .gpkg file. The conversion process is one of the slowest parts. My guess is that more person hours and compute resources will be saved by keeping .gpkg files in the data directory than by changing the default settings so that the are written to the temporary. Could there be an option that could allow the .gpkg file to be saved elsewhere for people who want to? |
Hi Luuk, and thanks for creating this issue.
I agree that (Another slightly OT question: do you think that, at the moment, the functions in this package are too verbose? Because I love verbose output with a lot of details, just to be a little bit more secure that nothing happens when converting the data and so on, but I never understand what is a "reasonable" level of detail)
IMO that adds unnecessary complexity since, in that case, we should also check this other directory when running |
Currently I have an More important for me is when I am not working locally. For example when reading pre-processed
My personal opinion would be that as long as I can set |
Thanks, it sounds like reasonable use cases. I will try to implement this later today! Maybe with a new argument in |
See #237 |
When I use
oe_read()
to read anosm.pbf
file I have stored on disk, it internally callsoe_vectortranslate()
to translate theosm.pbf
file to agpkg
file, before reading it. However, it stores this.gpkg
file on disk in the same folder as myosm.pbf
file and does not remove it afterwards. I would expectoe_read()
to just read myosm.pbf
file into R, and the translation togpkg
being only an internal procedure that as a user I don't even have to know of. Therefore I would argue that by default thegpkg
file should be automatically removed after reading, or stored in a temporary folder rather than in the same folder as myosm.pbf
file.(this is of course different when I explicitly call
oe_vectortranslate()
, in that case I expect thegpkg
file to be stored, because that is the goal of the function).The text was updated successfully, but these errors were encountered: