Skip to content

Commit

Permalink
add script for making test data
Browse files Browse the repository at this point in the history
  • Loading branch information
austensen committed Jun 11, 2024
1 parent 8ef6752 commit 2a25afb
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/scripts/boundaries-test-data.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
cd "tests/integration/data"
VERSION=24b

for table in "nyad" "nycg" "nyss" "nymc" "nycc" "nyed" "nybb" "nycd" "nysd" "nypp" "nyha" "nyhc" "nyfc" "nyfb" "nyfd"
do
mkdir -p "${table}_${VERSION}"
pgsql2shp -f "${table}_${VERSION}/${table}.shp" -h "host.docker.internal" -p "5432" -u "nycdb" -P "nycdb" "nycdb" "select * from ${table} limit 5"
zip -r "${table}_${VERSION}.zip" "${table}_${VERSION}"
rm -rf "${table}_${VERSION}"
done

0 comments on commit 2a25afb

Please sign in to comment.