-
Notifications
You must be signed in to change notification settings - Fork 3
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
base: main
Are you sure you want to change the base?
feat: ccbc er rd job #3542
Conversation
chore: remove tables created by postgis
cdf8308
to
64d6ae6
Compare
# 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 |
There was a problem hiding this comment.
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 mv
s after the zip to get this to run as expected. But doing a replace of this with
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.
Implements NDT-360