J'ai aussi fait un script, licence WTFPLv2, qui boucle tant que la 
commune est pas récup, avec un DDOS prevention :-)



#!/bin/sh

# usage : ./import-bati.sh <Dpt> <EPSG>
# prérequis : présence du <Dpt>-liste.csv issu de rcc-list

if [ $# -ne 2 ]
then
   echo "Usage: `basename $0` <Dpt> <EPSG>"
   exit 1
fi

awk 'BEGIN { FS = "," } ; { print "\""$1"\"" }' $1-liste.csv > tmp.comm

mkdir $1
while read line; do
         echo "\n\nProcessing $line\n\n" # or whaterver you want to do 
with the $line variable
     run=1
     while [ "$run -eq 1"  ]; do
         ./import-bati.sh $1 $line $1 $2
         echo "Process result (0 is good !) : $run"
         sleep 5 # prevent ddos
     done
done < tmp.comm

rm -f tmp.comm


_______________________________________________
Talk-fr mailing list
[email protected]
http://lists.openstreetmap.org/listinfo/talk-fr

Répondre à