[Qgis-user] Select vectorline automatic
Lene Fischer
lfi at ign.ku.dk
Fri Feb 19 01:01:47 PST 2016
Perfect!!!
Thanks
Regards
Lene
Fra: Neumann, Andreas [mailto:a.neumann at carto.net]
Sendt: 19. februar 2016 09:19
Til: Lene Fischer
Cc: qgis-user at lists.osgeo.org
Emne: Re: [Qgis-user] Select vectorline automatic
Hi Lene,
How about using the modulus operator in the QGIS expression?
With modulus you can select any nth line,
e.g. assuming that the tool created features where the gid advances by 1 for each feature, you could
gid % 2 = 0
selects gid with odd numbers: 0,2,4,6
or
gid % 5 = 0
would select every 5th number: 0,5,10,15,20
Hope this helps.
Just replace gid with whatever is your primary key column.
Andreas
On 2016-02-19 08:17, Lene Fischer wrote:
Hi,
I´m creating a tutorial about lawnmoving ☺ for calculating lengths ect.
I have created a graticule / vector grid with parallel lines. I want to select every second line automatic. Is there a feature for that?
Lene Fischer
Associate Professor
Department of Geosciences and Natural Resource Management
University of Copenhagen
MOB +45 40115084
lfi at ign.ku.dk<mailto:lfi at ign.ku.dk>
[cid:image001.gif at 01D03029.2F3EC6A0]
_______________________________________________
Qgis-user mailing list
Qgis-user at lists.osgeo.org<mailto:Qgis-user at lists.osgeo.org>
List info: http://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20160219/3617d840/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.gif
Type: image/gif
Size: 4863 bytes
Desc: image001.gif
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20160219/3617d840/attachment.gif>
More information about the Qgis-user
mailing list