Re: [Qgis-developer] Cleanly create memory layer in Python?

2011-01-06 Thread Ricardo Filipe Soares Garcia da
Hi Chris In the 'Profile from lines' plugin I'm using a similar approach: # python code projectionSettingKey = "Projections/defaultBehaviour" oldProjectionSetting = self.qgisSettings.value(projectionSettingKey) self.qgisSettings.setValue(projectionSettingKey, "useGlobal") self.qgisSettings.sync()

[Qgis-developer] Cleanly create memory layer in Python?

2011-01-06 Thread Chris Crook
Hi All I'm wanting to create a memory provider in Python without invoking the CRS selection dialog (even if the QGIS settings are set to "Prompt for CRS when a new layer is created". At the moment my code looks like: settings = QSettings() prjSetting = settings.value("/Projecti

Re: [Qgis-developer] Unknown CRS problem

2011-01-06 Thread Micha Silver
On 01/06/2011 08:14 PM, Martin Dobias wrote: Hi Nick On Tue, Jan 4, 2011 at 11:29 PM, Nick Hopton wrote: When a layer is loaded and QGIS can't determine its CRS it would be preferred if the CRS of that layer was shown as 'unknown', rather than shown as being the default CRS. I know that this

Re: [Qgis-developer] Unknown CRS problem

2011-01-06 Thread Martin Dobias
Hi Nick On Tue, Jan 4, 2011 at 11:29 PM, Nick Hopton wrote: > When a layer is loaded and QGIS can't determine its CRS it would be > preferred if the CRS of that layer was shown as 'unknown', rather than > shown as being the default CRS. I know that this causes problems for > some newcomers to QGI