view contrib/make_flys_release/issue_overview.sh @ 9661:9b8ba3b83a15

Importer (s/u-info) vegetation zones: new database column in vegetation_type table for german type name, localized vegetation type names by querying the database instead of translating by resource property, detecting and cancelling the import of a second vegetation zone file for a river, detecting, logging, cancelling in case of wrong column titles, detecting, logging and ignoring lines with missing (color) values, comparing vegetation zone name and class with the database and logging+ignoring in case of inconsistencies, starting the most elevated zone with 0 instead of -1 overflow days
author mschaefer
date Mon, 23 Mar 2020 16:38:12 +0100
parents 93c0a1692aa5
children
line wrap: on
line source
#!/bin/sh

# Use this on an exported query from roundup
# Known issue: Tiles with more then three , in them fail.
# Yes (ah) I do not know how to correctly handle the csv quoting...

echo "-------------"
echo "Unter anderem wurden folgende issues bearbeitet und können getestet werden:"

sed 's/"\(.*\),\(.*\)"/"\1§\2"/g' "$1" | \
sed 's/"\(.*\),\(.*\)"/"\1§\2"/g' | \
sed 's/"\(.*\),\(.*\)"/\1§\2/g' | \
gawk -F, '$5 > 5 {
print "- flys/issue"$2 " ("$1")"
print "[https://roundup-intern.intevation.de/flys/issue"$2"]"
print ""
}' | sed 's/§/,/g'


echo "-------------"
echo "Desweiteren gab es fortschritte in folgenden Issues:"
echo ""
sed 's/"\(.*\),\(.*\)"/"\1§\2"/g' "$1" | \
sed 's/"\(.*\),\(.*\)"/"\1§\2"/g' | \
sed 's/"\(.*\),\(.*\)"/\1§\2/g' | \
gawk -F, '$5 <= 5 && $5 > 0 {
print "- flys/issue"$2 " ("$1")"
print "[https://roundup-intern.intevation.de/flys/issue"$2"]"
print ""
}' | sed 's/§/,/g'

http://dive4elements.wald.intevation.org