[Qgis-developer] displaying memory provider layers
wonder.sk at gmail.com
Mon Jun 16 17:16:19 EDT 2008
On Fri, Jun 13, 2008 at 7:25 PM, Martin Dobias <wonder.sk at gmail.com> wrote:
> On Wed, Jun 11, 2008 at 9:34 PM, Carson Farmer <cfarmer at uvic.ca> wrote:
>> ... which all works fine, but when I tried:
>> QgsMapLayerRegistry.instance().addMapLayer(vl) QGIS crashes (i.e. disappears
>> and leaves me with the 'busy' cursor)?
>> Any thoughts? Perhaps there is something I have to call before trying to add
>> the layer to the map registry?
> Hi Carson,
> I'll look into this just give me some time, I'm quite busy with exams.
I've fixed this in r8650.
just a note about adding features - layer doesn't get noticed
automatically that provider's extent has been changed, so call
vl.updateExtents() after adding some features, otherwise it will still
report empty extents.
happy coding :)
More information about the Qgis-developer