Skip to content

Instantly share code, notes, and snippets.



Last active Oct 4, 2020
What would you like to do?
rm ./outputCatasto.txt
while IFS=$'\t' read -r X Y; do
minX=$(bc <<< "$X - 1")
minY=$(bc <<< "$Y - 1")
maxX=$(bc <<< "$X + 1")
maxY=$(bc <<< "$Y + 1")
curl -sKL "$minX,$minY,$maxX,$maxY&HEIGHT=9&WIDTH=9&LAYERS=CP.CadastralParcel&QUERY_LAYERS=CP.CadastralParcel&INFO_FORMAT=text/html&X=5&Y=5" | grep -oE 'IT.+[0-9]' >>./outputCatasto.txt
done <./input.tsv
355461.5 4222490.7
356257.6 4222742.7
356259.7 4222236.7
<Service name="WMS">
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.