Il 05 luglio 2010 21.44, alberto bonati <albertobon...@libero.it> ha scritto:

>
> Ho aggiornato e con gli shapefile funziona alla grande!!!.

bene

> E' un plugin utilissimo, devo solo capire cosa può fare..

dovrebbe crearti una pagina html con openlayers con caricati i vettori
che hai su qgis, puoi aggiungere alcune opzioni (cambiare lo stile
attraverso qgis, interrogare i punti e aggiungere alcuni controlli di
OpenLayers tipo permalink, attribution, mouseposition)

> Ho provato con un gpx e con un kml creato da GpicSync con il quale e mi da
> questo errore:
>
> Errore durante l'esecuzione di codice Python:
>
> Traceback (most recent call last):
>   File "C:/Documents and
> Settings/alberto/.qgis//python/plugins\OGR2Layers\ogr2Layers.py", line 217,
> in WriteKML
>     if (vect_OGR2Layers.createOGR(layer,self.dlg.ui,mydir,self.iface)):
>   File "C:/Documents and
> Settings/alberto/.qgis//python/plugins\OGR2Layers\vect_OGR2Layers.py", line
> 83, in createOGR
>
> ogr2ogr.Ogr2Ogr(str(mysource),mydestpath,outputepsg,myproj4,outputFormat)
>   File "C:/Documents and
> Settings/alberto/.qgis//python/plugins\OGR2Layers\ogr2ogr.py", line 36, in
> Ogr2Ogr
>     inLayer = inDatasource.GetLayer()
> AttributeError: 'NoneType' object has no attribute 'GetLayer'
>
> Versione Python:
> 2.5.2 (r252:60911, Feb 21 2008, 13:11:45) [MSC v.1310 32 bit (Intel)]
>
> Percorso Python: ['C:/Programmi/Quantum GIS Enceladus/./python',
> 'C:/Documents and Settings/alberto/.qgis//python', 'C:/Documents and
> Settings/alberto/.qgis//python/plugins', 'C:/Programmi/Quantum GIS
> Enceladus/./python/plugins', 'C:\\Programmi\\FWTools2.4.2\\pymod',
> 'C:\\Programmi\\Quantum GIS Enceladus\\bin\\python25.zip', '',
> 'C:\\Programmi\\Quantum GIS Enceladus\\bin', 'C:\\Programmi\\Quantum GIS
> Enceladus\\python\\plugins\\fTools\\tools']
>

visto che con gli shape funziona e dall'errore sembra che ci sia un
problema nell'aprire il file, secondo me GpicSync produce un file non
conforme con ogr....
per provare puoi vedere se funziona il file kml o gml con ogrinfo o ogr2ogr

> Lo shapefile che ho usato era in UTM 32 N, il gpx e il kml in coordinate
> geografiche. Non ho capito se prima di usare OGR2Layers devo riproitettarli
> in qualche altro sistema ma non mi pare che conti...

no non devi riproiettarlo, lo fa lui, l'importante è che abbia il suo
file prj se è uno shape

>
> Sono il testatore perfetto, ignorante al punto giusto... :-)
>

meglio così almeno si trovano i problemi....

> Ciao
>
> Alberto
>

ciao
Luca

_______________________________________________
Talk-it mailing list
Talk-it@openstreetmap.org
http://lists.openstreetmap.org/listinfo/talk-it

Rispondere a