Commit 26f59c8d authored by piza's avatar piza

fix osm2x3d

parent 9e06abf8
......@@ -5,7 +5,6 @@
"devDependencies": {},
"dependencies": {
"body-parser": "~1.0.0",
"node-expat": "",
"chai": "",
"chai-fuzzy": "",
"loglevel": "",
......
RED='\033[0;31m'
GREEN='\033[0;32m'
NC='\033[0m' # No Color
classname="$(basename ${0/.sh/})"
nodejs ../../web_server.js --debug &
sleep 1
serverPid=$!
wget --quiet "localhost:8081/3dbox?format=osm&zoom=18&xtile=134118&ytile=95589" -O 18_134118_95589_osm.xml
sed -i 's/<osm version="0.6".*>/<osm version="0.6">/g' 18_134118_95589_osm.xml
testResult="$(diff -E -b -q ./18_134118_95589_osm.xml ../resources/18_134118_95589_osm.xml)"
diffResult=$?
if [ $diffResult -eq 0 ]; then
echo "${var//$/ }"
printf "${GREEN}$classname - osm test ok.${NC}\n"
else
>&2 printf "${RED}$classname - osm test: $testResult${NC}\n";
fi
wget --quiet "localhost:8081/3dbox?format=geojson&zoom=18&xtile=134118&ytile=95589" -O 18_134118_95589_geojson.json
testResult="$(diff -E -b -q ./18_134118_95589_geojson.json ../resources/18_134118_95589_geojson.json)"
diffResult=$?
if [ $diffResult -eq 0 ]; then
echo "${var//$/ }"
printf "${GREEN}$classname - geojson test ok.${NC}\n"
else
>&2 printf "${RED}$classname - geojson test: $testResult${NC}\n";
fi
kill $serverPid
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment