Hot answers tagged

4

In the selected layer create a new field with the field calculator - let's call the new field "visible". Be sure to check the box Update only selected features. Than insert a value - in the most simple case just use a boolean field type and insert TRUE. You now have permanently saved your selection to the attribute table and can duplicate the layer ...


2

You might also consider a Virtual Field. I don't know exactly how your selection is functioning, but to demonstrate a non-attribute selection, I'll use a polygons layer and a points layer. I want a duplicate of the polygons layer, but only those which contain a point. On the toolbar, click New Virtual Layer. Click Import, and add your map layers to the ...


2

You can use the following layer = iface.activeLayer() fids = ["{}".format(i['fid']) for i in layer.selectedFeatures()] # If number # fids = ["'{}'".format(i['fid']) for i in layer.selectedFeatures()] # If String layer_copy = layer.clone() layer_copy.setSubsetString('fid IN ({})'.format(', '.join(fids))) QgsProject.instance().addMapLayer(...


1

You may want to create your own pies using geometry generator more or less below expression and by multiplying the number of geometry generator by the number of class you need e.g rotate( make_polygon( make_line( array_cat( array($geometry), array_foreach(generate_series(0, to_int(250.36)), make_point( x($geometry) + to_real(@radius_length) ...


1

There are several possibilities to achieve this - this is a rather straight forward one, with probably a lot of manual work. Run join attributes by location: Your first layer is the grid, your second layer your Counties. Either attach all attributes of the Counties to the grid, or choose only their name. Make sure to set one to many as your join-type. Then ...


Only top voted, non community-wiki answers of a minimum length are eligible