Skip to content

Commit

Permalink
Remove elevation data again
Browse files Browse the repository at this point in the history
  • Loading branch information
leonardehrenfried committed Jan 29, 2024
1 parent e184c68 commit 41a32e7
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 20 deletions.
5 changes: 0 additions & 5 deletions build-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,5 @@
"timeZone": "Europe/Rome",
"osmTagMapping": "default"
}
],
"dem": [
{
"source": "data/srtm_39_03.zip"
}
]
}
15 changes: 0 additions & 15 deletions build-graph.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,6 @@ NORTH_EAST_URL=https://download.geofabrik.de/europe/italy/nord-est-latest.osm.pb
NORTH_EAST_PBF=data/italy-nord-est.osm.pbf
SOUTH_TYROL_PBF=data/south-tyrol.osm.pbf

# elevation
SRTM_URL="http://srtm.csi.cgiar.org/wp-content/uploads/files/srtm_5x5/TIFF/srtm_39_03.zip"
SRTM_ZIP=data/srtm_39_03.zip
SRTM_TIFF=data/srtm_39_03.tif

# OTP
OTP_IMAGE=docker.io/opentripplanner/opentripplanner:2.5.0_2024-01-19T14-50

Expand All @@ -31,16 +26,6 @@ fi
# cut out South Tyrol from the large South East Italy extract
osmium extract ${NORTH_EAST_PBF} --polygon south-tyrol.geojson -o ${SOUTH_TYROL_PBF} --overwrite

# download elevation data
if [ ! -f "${SRTM_ZIP}" ]; then
wget --progress=bar:force:noscroll ${SRTM_URL} -O ${SRTM_ZIP}
fi

unzip -o ${SRTM_ZIP} -d data
# fix srtm data with gdal
gdal_edit.py -unsetnodata ${SRTM_TIFF}


# actually do graph build
docker run \
-v .:/var/opentripplanner/:z \
Expand Down

0 comments on commit 41a32e7

Please sign in to comment.