[Talk-it] Usare Polyshp2osm

Simone Cortesi simone at cortesi.com
Mon Jun 22 21:56:20 BST 2009


2009/6/22 Francesco de Virgilio <fradeve11 at gmail.com>

python provashp2osm.py -s 10 -o 40000 -l agrigento_WGS84/prova
> agrigento_WGS84/agrigento_WGS84.shp
> Running 10 slices with agrigento_WGS84/prova base filename against
> shapefile agrigento_WGS84/agrigento_WGS84.shp
> Traceback (most recent call last):
>  File "provashp2osm.py", line 398, in
>    run(args[0], **kw)
>  File "provashp2osm.py", line 313, in run
>    ids = add_ring_nodes(ring)
>  File "provashp2osm.py", line 217, in add_ring_nodes
>    if range(ring.GetPointCount() - 1) == 0 or ring.GetPointCount() == 0:
> AttributeError: 'NoneType' object has no attribute 'GetPointCount'
>
> Qualcuno ha idea di come posso uscirne?
>

mal comune...

io penso sia un problema di come salva i file ogr2ogr, ma non sono un
esperto.

dico questo perche' avevo fatto le tue stesse operazioni con la CTR
vettoriale del mio comune a pavia e polyshp mi converte perfettamente il
file della lombardia, ma non mi converte quello riproiettato. altri modi per
farlo non li conosco...

sorry

-S
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/talk-it/attachments/20090622/d58f87c5/attachment.html>


More information about the Talk-it mailing list