<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">2016-07-19 14:52 GMT+02:00 Lorenzo <span dir="ltr"><<a href="mailto:lorenzo.perone@gmail.com" target="_blank">lorenzo.perone@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="word-wrap:break-word"><br><div><span class=""><blockquote type="cite"><div>Il giorno 19 lug 2016, alle ore 14:48, Andrea Musuruane <<a href="mailto:musuruan@gmail.com" target="_blank">musuruan@gmail.com</a>> ha scritto:</div><br><div><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">2016-07-19 14:45 GMT+02:00 Lorenzo <span dir="ltr"><<a href="mailto:lorenzo.perone@gmail.com" target="_blank">lorenzo.perone@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="word-wrap:break-word">Ciao,<div>il file generato dallo script permette di discriminare i comuni?</div><br></div></blockquote><div>No. Lo devi fare tu in qualche modo prima di dare in pasto il file OSM allo script.<br></div></div></div></div></div></blockquote><div><br></div></span><div>OK, allora credo dovrò trovare un’altra soluzione…</div><div>Sto provando lo script ogr2osm su un server Ubuntu 14.04 e ho questo output</div><div><br></div><div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(44,103,200)"><span>virtualadmin@osmserver:~/civici$ python ./ogr2osm.py -t civici.py -e 25832 -f Bologna.shp</span></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(44,103,200)"><span>Traceback (most recent call last):</span></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(44,103,200)"><span>  File "./ogr2osm.py", line 54, in <module></span></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(44,103,200)"><span>    from geom import *</span></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(44,103,200)"><span>ImportError: No module named geom</span></div><div><span><br></span></div></div><div>Forse mi manca qualche pacchetto Python…</div><br></div></div></blockquote><div><br></div><div>Non uso Ubuntu, ma in questa pagina <a href="https://github.com/pnorman/ogr2osm">https://github.com/pnorman/ogr2osm</a> leggo "On Ubuntu you can run sudo apt-get install -y python-gdal python-lxml to get the software you need."<code><br></code><br></div><div>Per completezza, su Fedora 24, basta quanto segue:<br># dnf install gdal-python python-lxml<br></div><br><div>Ciao,<br><br></div><div>Andrea<br><br></div></div></div></div>