2009/6/24 Federico Cozzi <f.co...@gmail.com>

> On Wed, Jun 24, 2009 at 6:16 PM, Nicola Cadenelli 
> <nicolacd...@gmail.com>wrote:
>
>> Comunque a proposito dell'import: tramite il geoportale mi sono scaricato
>> e poi mi son fatto convertire i dati dei Corsi d'acqua secondari ma quando
>> uso ShpToOsm ho il seguento errore:
>>
>> ~/Desktop/OSM$ java -cp shp2osm/shp-to-osm-0.4-jar-with-dependencies.jar
>> Main Geoportal/Reprj_Corso_acqua_secondario_line.zip shp2osm/rules.txt
>> Geoportal/Cosi_acqua_secondari [-t]
>>
>>
> Posso convenire che non è carino da parte di shp-to-osm schiantare con
> NullPointerException, ma tu lo stai stuzzicando ;-)
> Il primo parametro dovrebbe essere il file in formato SHP, non zippato :-)
> Secondo me è più sicuro se ti posizioni nella stessa directory del file
> SHP: uno shapefile in realtà è composto di più file (ad es. il file DBF
> contiene gli attributi) e non sono così sicuro che il software sia così
> intelligente da seguire il percorso.
>
> A proposito: posta qui in lista il file di regole, secondo me anche lì c'è
> da lavorare ;-)
>
> Ciao e buon esame
>
> Ho decompresso il .zip e finalmente quell'orrendo nullpointer è sparito e
per cronaca l'output attuale è:

~/Desktop/OSM$ java -cp shp2osm/shp-to-osm-0.4-jar-with-dependencies.jar
Main
Geoportal/Reprj_Corso_acqua_secondario_line/Reprj_Corso_acqua_secondario_line.shp
shp2osm/rules.txt  Geoportal/Cosi_acqua_secondari [-t]
Adding line: FTYPE=StreamRiver => waterway=stream
Could not determine the shapefile's projection. More than likely, the .prj
file was not included.

Could not determine the shapefile's projection. More than likely, the .prj
file was not included.

Ora resta da configurare il file delle regole, nel quale ho veramente capito
un fico secco!
Attualmente il suo contenuto è:

#outer,FTYPE,StreamRiver,natural,river
#outer,GNIS_Name,,name,-
#line,GNIS_Name,,name,-
#line,FTYPE,CanalDitch,waterway,ditch
line,FTYPE,StreamRiver,waterway,stream

Grazie mille di tutto!!!
-- 
Cadenelli Nicola

The information contained in this message and/or attachments is intended
solely for the attention of the named addressee and it may include
confidential data or documents. Pursuant to D.Lgs. 196/2003 any use not in
accord with its purpose, any disclosure, reproduction, copying,
distribution, or either dissemination, either whole or partial, is
forbidden, except previous formal approval of the named addressee. If you
have received this e-mail in error, please contact the sender, by answering
to this e-mail and delete this information from your system. The holder is
not liable for the proper and complete transmission of the information
contained in this message.
_______________________________________________
Talk-it mailing list
Talk-it@openstreetmap.org
http://lists.openstreetmap.org/listinfo/talk-it

Rispondere a