On 2011-12-14 12:59, francescobocca...@libero.it wrote:
> Hi to all,
> i have a question for you. I have 2 vector layer that have two different 
> spatial references. I'd like to tranform(convert) one of these in the same 
> coordinate system.
> Like that:
> 
>  crsStart = QgsCoordinateReferenceSystem()
>  crsStart.createFromProj4(layerA.crs().toProj4())
>  crsDest = QgsCoordinateReferenceSystem()  
>  crsDest.createFromProj4(layerB.crs().toProj4())
>    
>   if crsStart != crsDest:
>   
>                     layerA = QgsCoordinateTransform(crsStart,crsDest).
> transformLayerAtoLayerB

Hi F,

Have a look here:

http://www.qgis.org/pyqgis-cookbook/index.html

specially here:

http://www.qgis.org/pyqgis-cookbook/crs.html#coordinate-reference-systems

Hope this helps...

Regards,

Richard
_______________________________________________
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer

Reply via email to