[Qgis-user] segments_to_lines & @geometry_part_num in QGIS 2.99 & 3.0
Michel Stuyts
michel.stuyts at edegem.be
Tue Mar 6 05:47:48 PST 2018
When creating a style for a polygon layer I noticed a difference between QGIS 2.99 (Windows standalone installer) and QGIS 3.0 (OSGeo4W) when I use segments_to_lines & @geometry_part_num.
* I created a polygon layer and added some polygons.
* Then I started editing the layer style:
* I added a Geometry generator as symbol layer to create a Linestring type that contains segments_to_lines($geometry)
* Then I changed the line type of the result to a "Marker line"
* Then I changed the Symbol layer type of this "Marker line" to "Font marker"
* Then I changed the "Data defined override" of the content of this font marker to @geometry_part_num
* Then I changed the font size of the font marker
The results are different in QGIS 2.99 and 3.0 (see images below). Is this a bug in 3.0 or is it an intentional change? The result in QGIS 2.18 is the same as in 2.99. The result in QGIS 3.1 is the same as in 3.0.
Michel
[cid:9e09fb1c-f472-4353-b069-499f66047698]
[cid:b7308b13-c417-4105-8b0c-9536789f1ed7]
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test_qgis299.jpg
Type: image/jpeg
Size: 20749 bytes
Desc: test_qgis299.jpg
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20180306/2a5b8d85/attachment.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test_qgis300.jpg
Type: image/jpeg
Size: 20227 bytes
Desc: test_qgis300.jpg
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20180306/2a5b8d85/attachment-0001.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: segments.qml
Type: application/octet-stream
Size: 11302 bytes
Desc: segments.qml
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20180306/2a5b8d85/attachment.obj>
More information about the Qgis-user
mailing list