Hi Tobias, If I read this correctly, you have got 5 features, each with a LineString and what you would like to have is 1 feature with a connected line.
Geometry generators work on individual features (5 features in, 5 features out). What you will need instead is something with support for aggregation like either a virtual layer or it might be possible to use aggregate expression function with "collect". Matthias On 6/11/17 2:01 AM, Tobias Wendorff wrote: > Hi there! > > I'm experiencing problems using "geometry generator". Perhaps I don't > understand this tool correctly or perhaps I'm using it wrong. Could > anyone please help a look? > > I've created five linestrings, which are connected to each other > (CRS is EPSG:25832): > > LineString (452926.429 5430258.436, 474353.217 5556034.254) > LineString (474353.217 5556034.254, 651518.643 5480403.768) > LineString (651518.643 5480403.768, 768696.380 5642150.590) > LineString (768696.380 5642150.590, 716125.982 5713907.693) > LineString (716125.982 5713907.693, 797502.108 5831380.483) > > I'm using single layer type "Geometry creator" and have set the type > to LineString/MultiLineString. Then I've tried these functions: > > "line_merge( $geometry )" or "segments_to_lines( $geometry )" > > Then I've used the bundled style "Road" on the created geometry. > But this is what's displayed: http://i.imgur.com/NwbIHjg.png > Actually, I thought, I would get a connected line, like using > "Symbol layers". > > Can anyone help me with this? Am I doing it wrong? > I'm using QGIS v2.18.9. > > Best regards, > Tobias > > _______________________________________________ > Qgis-user mailing list > [email protected] > List info: https://lists.osgeo.org/mailman/listinfo/qgis-user > Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user > _______________________________________________ Qgis-user mailing list [email protected] List info: https://lists.osgeo.org/mailman/listinfo/qgis-user Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
