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

feat: ccbc er rd job #3542

Open
wants to merge 30 commits into
base: main
Choose a base branch
from

Conversation

rafasdc
Copy link
Collaborator

@rafasdc rafasdc commented Sep 10, 2024

Implements NDT-360

  • Check to trigger automatic release process

# Run shp2pgsql for each shapefile
for dir in /data/economic_regions /data/regional_districts /data/ccbc_applications_coverages; do
base_dir=$(basename $dir)
for shp in $dir/*.shp; do
Copy link
Contributor

Choose a reason for hiding this comment

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

When trying this locally, the files in ER and RDs are nested so the data doesn't get populated. I added some mvs after the zip to get this to run as expected. But doing a replace of this with

Suggested change
for shp in $dir/*.shp; do
find $dir -name '*.shp' | while read -r shp; do

fixed any of the nested-file issues. I don't know if this is from a difference in environments and if the unzip package in ubuntu/debian are different or if it's from a difference in the zips used.

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.

2 participants