[Qgis-user] Qgis
Dears Sirs It would like to know as: Georeferenciar a map, Satelite picture and one plants of the building in the Qgis. As import the layer DWG in the Qgis. As to linkar a table of attributes in layer DWG or she is necessary to convert other to layer. As to convert to layer dwg in shapefile or PostGis. Noriberto ___ Qgis-user mailing list Qgis-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-user
[Qgis-user] Change Projection in Projection Properties from a Python PlugIn
Hi everybody, is it possible to change the projection which is set in the Projection Properties from a Python-PlugIn. Within the PlugIn I want to load some layers into QGIS. To save the plugin users of changing projection properties I want to set the properties in the plugin. Maybe its possible with qgsProjectProperties? I didn't find a solution so far. To change the mapUnits in the plugin is possible with setUnits in the mapCanvas. But what about the projection? So any hint would be appreciated Thanks Greetings Michael -- View this message in context: http://www.nabble.com/Change-Projection-in-Projection-Properties-from-a-Python-PlugIn-tp17515568p17515568.html Sent from the qgis-user mailing list archive at Nabble.com. ___ Qgis-user mailing list Qgis-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-user
AW: [Qgis-user] Change Projection in Projection Properties from a Python PlugIn
Hi Michael this is what I bookmarked a few days ago (for the same reason): http://doc.qgis.org/classQgsMapRender.html -> setDestinationSrs(...) regards Stefan -Ursprüngliche Nachricht- Von: Pfeiffer Michael Gesendet am: Mittwoch, 28. Mai 2008 17:37 An: qgis-user@lists.osgeo.org Betreff: [Qgis-user] Change Projection in Projection Properties from a Python PlugIn Hi everybody, is it possible to change the projection which is set in the Projection Properties from a Python-PlugIn. Within the PlugIn I want to load some layers into QGIS. To save the plugin users of changing projection properties I want to set the properties in the plugin. Maybe its possible with qgsProjectProperties? I didn't find a solution so far. To change the mapUnits in the plugin is possible with setUnits in the mapCanvas. But what about the projection? So any hint would be appreciated Thanks Greetings Michael -- View this message in context: http://www.nabble.com/Change-Projection-in-Projection-Properties-from-a- Python-PlugIn-tp17515568p17515568.html Sent from the qgis-user mailing list archive at Nabble.com. ___ Qgis-user mailing list Qgis-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-user ___ Qgis-user mailing list Qgis-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-user
Re: [Qgis-user] Change Projection in Projection Properties from a Python PlugIn
On Wed, May 28, 2008 at 5:59 PM, Ziegler Stefan <[EMAIL PROTECTED]> wrote: > Hi Michael > this is what I bookmarked a few days ago (for the same reason): > http://doc.qgis.org/classQgsMapRender.html > -> setDestinationSrs(...) Hi, yes, Stafan is right, you can access map canvas by plugin interface, access its QgsMapRender instance (by mapRender() function) and change the destination SRS with the function mentioned above. Good luck Martin ___ Qgis-user mailing list Qgis-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-user
Re: [Qgis-user] Change Projection in Projection Properties from a Python PlugIn
Martin, a quick question regarding this operation: If I were to setDestinationSrs, and on the fly projection was enabled, will this change be reflected on screen? I ask because I would like to be able to dynamically 're project' two vector layers on the fly during plugin operation, without the user dessesarily 'seeing' that this is happening, is this possible? Cheers, Carson Martin Dobias wrote: On Wed, May 28, 2008 at 5:59 PM, Ziegler Stefan <[EMAIL PROTECTED]> wrote: Hi Michael this is what I bookmarked a few days ago (for the same reason): http://doc.qgis.org/classQgsMapRender.html -> setDestinationSrs(...) Hi, yes, Stafan is right, you can access map canvas by plugin interface, access its QgsMapRender instance (by mapRender() function) and change the destination SRS with the function mentioned above. Good luck Martin ___ Qgis-user mailing list Qgis-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-user ___ Qgis-user mailing list Qgis-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-user
Re: [Qgis-user] Change Projection in Projection Properties from a Python PlugIn
On Thu, May 29, 2008 at 1:09 AM, Carson Farmer <[EMAIL PROTECTED]> wrote: > Martin, a quick question regarding this operation: > > If I were to setDestinationSrs, and on the fly projection was enabled, will > this change be reflected on screen? I ask because I would like to be able to > dynamically 're project' two vector layers on the fly during plugin > operation, without the user dessesarily 'seeing' that this is happening, is > this possible? IIRC you would also need to change the extent of map canvas (setExtent()) and then call refresh() to redraw the map. Martin ___ Qgis-user mailing list Qgis-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-user