Script to download and rename shapefiles, so we can create the geopackages for OD SP 2023#53
Open
beatrizmilz wants to merge 2 commits into
Open
Script to download and rename shapefiles, so we can create the geopackages for OD SP 2023#53beatrizmilz wants to merge 2 commits into
beatrizmilz wants to merge 2 commits into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This is related to #48
@hsvab asked me how did we generate the
.gpkgfiles for the previous OD data, so she could run for 2023.This happens in the file
data-raw/sao_paulo/prep_data-sao_paulo.R:odbr/data-raw/sao_paulo/prep_data-sao_paulo.R
Lines 27 to 92 in 02d0bc6
More especifically, in this part:
odbr/data-raw/sao_paulo/prep_data-sao_paulo.R
Lines 75 to 80 in 02d0bc6
BUT the
.shpfile has to have an exact file name in order for this code to work.For example:
In the file
data-raw/download-and-rename-shapefiles.R(created in this PR) I documented the process of downloading the.zipfrom OD São Paulo 2023, moving and renaming the files so it works when you run the code indata-raw/sao_paulo/prep_data-sao_paulo.R.Let me know if this helped or if you need anything else!
Bea