Skip to content

Commit

Permalink
Update Digiroad shapefile link to latest
Browse files Browse the repository at this point in the history
Removed the tienimi_sa (saami) because it doesn't exist anymore and broke the script.
Nowadays there is 3 separate fields: tienim_psa, tienim_ksa and tienim_isa
(probably pohjoissaame, koltansaame and inarinsaame),
but since we don't use those in jore3 importer chose not to process them.
  • Loading branch information
Leitsi committed Apr 19, 2023
1 parent f1bb50a commit 18a2c2e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion import_digiroad_shapefiles.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ source "$(cd "$(dirname "$0")"; pwd -P)/set_env_vars.sh"

AREA="UUSIMAA"

SHP_URL="https://ava.vaylapilvi.fi/ava/Tie/Digiroad/Aineistojulkaisut/latest/Maakuntajako_DIGIROAD_R_EUREF-FIN/${AREA}.zip"
SHP_URL="https://ava.vaylapilvi.fi/ava/Tie/Digiroad/Aineistojulkaisut/latest/Maakuntajako_Digiroad_R/${AREA}.zip"

DOWNLOAD_TARGET_DIR="${WORK_DIR}/zip"
DOWNLOAD_TARGET_FILE="${DOWNLOAD_TARGET_DIR}/${AREA}_R.zip"
Expand Down
3 changes: 1 addition & 2 deletions sql/transform_dr_linkki.sql
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,7 @@ WHERE
ALTER TABLE :schema.dr_linkki_out
ALTER COLUMN link_id TYPE text,
ALTER COLUMN tienimi_su TYPE text,
ALTER COLUMN tienimi_ru TYPE text,
ALTER COLUMN tienimi_sa TYPE text;
ALTER COLUMN tienimi_ru TYPE text;

ALTER TABLE :schema.dr_linkki_out RENAME column gid TO id;

Expand Down

0 comments on commit 18a2c2e

Please sign in to comment.