#!/bin/bash # Wikipedia sagt uebrigens, Dortmund sei bei 32U 393506 5708090 # die Schrittweite da unten sind _meter_ schrittweite=1000 unten=5690000 oben=5720000 links=380000 rechts=410000 cat < UTMGitter EOF y=$unten while [ $y -le $oben ] ;do echo "" x=$links while [ $x -le $rechts ] ;do echo "$x $y" | cs2cs +proj=utm +zone=32 +to +proj=lonlat -f "%2f" | \ cut -d" " -f1 | sed "s/^//g;" echo "" x=$(($x + $schrittweite)) done echo "" y=$(($y + $schrittweite)) done x=$links while [ $x -le $rechts ] ;do echo "" y=$unten while [ $y -le $oben ] ;do echo "$x $y" | cs2cs +proj=utm +zone=32 +to +proj=lonlat -f "%2f" | \ cut -d" " -f1 | sed "s/^//g;" echo "" y=$(($y + $schrittweite)) done echo "" x=$(($x + $schrittweite)) done echo "" echo ""