<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><br class="">
<br class=""><div><blockquote type="cite" class=""><div class="">Il giorno 19 lug 2016, alle ore 15:01, Andrea Musuruane <<a href="mailto:musuruan@gmail.com" class="">musuruan@gmail.com</a>> ha scritto:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><div class="gmail_extra"><br class="Apple-interchange-newline"><br class=""><div class="gmail_quote">2016-07-19 14:52 GMT+02:00 Lorenzo<span class="Apple-converted-space"> </span><span dir="ltr" class=""><<a href="mailto:lorenzo.perone@gmail.com" target="_blank" class="">lorenzo.perone@gmail.com</a>></span>:<br class=""><blockquote class="gmail_quote" style="margin: 0px 0px 0px 0.8ex; border-left-width: 1px; border-left-style: solid; border-left-color: rgb(204, 204, 204); padding-left: 1ex;"><div style="word-wrap: break-word;" class=""><br class=""><div class=""><span class=""><blockquote type="cite" class=""><div class="">Il giorno 19 lug 2016, alle ore 14:48, Andrea Musuruane <<a href="mailto:musuruan@gmail.com" target="_blank" class="">musuruan@gmail.com</a>> ha scritto:</div><br class=""><div class=""><div dir="ltr" class=""><div class="gmail_extra"><div class="gmail_quote">2016-07-19 14:45 GMT+02:00 Lorenzo<span class="Apple-converted-space"> </span><span dir="ltr" class=""><<a href="mailto:lorenzo.perone@gmail.com" target="_blank" class="">lorenzo.perone@gmail.com</a>></span>:<br class=""><blockquote class="gmail_quote" style="margin: 0px 0px 0px 0.8ex; border-left-width: 1px; border-left-style: solid; border-left-color: rgb(204, 204, 204); padding-left: 1ex;"><div style="word-wrap: break-word;" class="">Ciao,<div class="">il file generato dallo script permette di discriminare i comuni?</div><br class=""></div></blockquote><div class="">No. Lo devi fare tu in qualche modo prima di dare in pasto il file OSM allo script.<br class=""></div></div></div></div></div></blockquote><div class=""><br class=""></div></span><div class="">OK, allora credo dovrò trovare un’altra soluzione…</div><div class="">Sto provando lo script ogr2osm su un server Ubuntu 14.04 e ho questo output</div><div class=""><br class=""></div><div class=""><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(255, 255, 255); background-color: rgb(44, 103, 200);" class=""><span class="">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);" class=""><span class="">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);" class=""><span class=""> <span class="Apple-converted-space"> </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);" class=""><span class="">   <span class="Apple-converted-space"> </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);" class=""><span class="">ImportError: No module named geom</span></div><div class=""><span class=""><br class=""></span></div></div><div class="">Forse mi manca qualche pacchetto Python…</div><br class=""></div></div></blockquote><div class=""><br class=""></div><div class="">Non uso Ubuntu, ma in questa pagina<span class="Apple-converted-space"> </span><a href="https://github.com/pnorman/ogr2osm" class="">https://github.com/pnorman/ogr2osm</a><span class="Apple-converted-space"> </span>leggo "On Ubuntu you can run sudo apt-get install -y python-gdal python-lxml to get the software you need."<code class=""><br class=""></code><br class=""></div><div class="">Per completezza, su Fedora 24, basta quanto segue:<br class=""></div></div></div></div></div></blockquote><div><br class=""></div><div>Niente da fare,</div><div>credo mi concentrerò sulla normalizzazione, poi vedremo…</div><div><br class=""></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);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">virtualadmin@osmserver:~/civici$ sudo apt-get install -y python-gdal python-lxml</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);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">Reading package lists... Done</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);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">Building dependency tree       </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);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">Reading state information... Done</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);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">python-goal is already the newest version.</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);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">python-lxml is already the newest version.</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);" class=""><br class=""></div></div></div></body></html>