[Qgis-developer] featureId

Marco Hugentobler marco.hugentobler at sourcepole.ch
Wed Dec 7 03:47:39 EST 2011


Hi Bernhard

Yes, every feature should have a unique id. The data provider class 
which creates the features decides which id to give.
QGIS also relies on feature ids, e.g. for identifying features when editing.

Regards,
Marco

On 07.12.2011 09:40, bernhard.stroebl at jena.de wrote:
> Hi devs,
> I wonder if I can assume that any _polygon_ feature has an id, 
> regardless of the format it comes from (given it is either file or 
> db-based). In a plugin I am currently working on, I rely on every 
> feature having an id.
>
> Bernhard
>
>
> ________ Information from NOD32 ________
> This message was checked by NOD32 Antivirus System for Linux Mail Server.
> http://www.nod32.com
> _______________________________________________
> Qgis-developer mailing list
> Qgis-developer at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-developer


-- 
Dr. Marco Hugentobler
Sourcepole -  Linux&  Open Source Solutions
Churerstrasse 22, CH-8808 Pfäffikon SZ, Switzerland
marco.hugentobler at sourcepole.ch http://www.sourcepole.ch
Technical Advisor QGIS Project Steering Committee



More information about the Qgis-developer mailing list