In QGIS I have deleted features from the attribute table and the map but the labels still remain in the legend.  How can I remove them?
120887
I'm working with a QGIS project with a number of layers. When assembling a printout all visible layers are automatically added to the legend:    I would like to exercise some control over the legend elements are remove some of the entries:    However, as the entries correspond to the upper levels in the hierarchy, deleting them will remove the keys:     1 - 20000    20000 - 40000    ...     I'm working in Qgis 2.8. I'm not interested in modifying my layer structure but only in changing the legend elements.
69720
The label toolbar uses fields in the attribute table of vector layers to fine tune labeling (Data defined labeling). That's the main reason i'm looking for that, but it may have more applications.  I'd like to automatically add some format columns instead of adding them manually every time.   Do you know a plugin or a way to do this manipulation automatically on multiples layers ?  I tried to get the QGIS tool "Add a field to attribute table" into a quick model which works properly, but it creates a new memory layer. And I'd like just new fields.  ##Add_ETIKT_Field=name ##myvlayer=vector ##myvlayer=output vector outputs_QGISADDFIELDTOATTRIBUTESTABLE_2=processing.runalg('qgis:addfieldtoattributestable', myvlayer,'ETIKT_Y',1,15.0,4.0,None) outputs_QGISADDFIELDTOATTRIBUTESTABLE_1=processing.runalg('qgis:addfieldtoattributestable', outputs_QGISADDFIELDTOATTRIBUTESTABLE_2['OUTPUT_LAYER'],'ETIKT_X',1,15.0,5.0,myvlayer)   What I'm looking to automate is :   Open the attribute table Edit button Field Calculator button Add Column + Type + length + Precision   It seems there's some ideas in , but I'd love to avoid coding anything, or at least at minimum go through the modeler.     Adding and Removing Fields       To add fields (attributes), you need to   specify a list of field definitions. For deletion of fields just   provide a list of field indexes.   if caps &amp; QgsVectorDataProvider.AddAttributes:     res = layer.dataProvider().addAttributes([QgsField("mytext", QVariant.String), QgsField("myint", QVariant.Int)])  if caps &amp; QgsVectorDataProvider.DeleteAttributes:     res = layer.dataProvider().deleteAttributes([0])
27492
How does one change the Attribute table view on QGIS 3? An initial answer says to use the Switch to Table view button but I can't seem to find this button.
90096
Does anybody know how to only label features of a shapefile that are inside of another shapefile's features used as coverage in Atlas?
46813
I have a map I've made in QGIS which is points from a .csv file. These have then be turned into different symbols based on what they represent and then the sizes of said symbols based on values in the .csv.  I need to export this as a .dxf to use in AutoCAD so it basically looks the same as it does in QGIS. However, when I do so it just exports as single dots (points). Is there a way I can export them as the symbols as I can see in QGIS?
24093
Has anyone been using callout labelling with QGIS, either trunk or stable?   Used for clustered points. That means the point stays where it is, the label maybe moved if required and a leader (plain or pointed) shows the linkage between the label and the point.   How could I do it (you know what I mean, no coding....)?
58366
I have a map with graduated symbology, with 328 unique values. I would like to add a legend to my map (as in the picture), illustrating that light blue indicates low values and dark blue high values.  I have done this in ArcGIS before. Is there a way to do this in QGIS as well?
58592
How to remove or delete column fields in a shapefile using Python?
50860
I have a Shapefile with a lot of empty columns but many of them are empty. Using QGIS or ogr2ogr, how do I remove all attribute columns where everything is NULL?
91018
Is there a way to hide a column in the attribute table by using PyQGIS?  By hiding I do not mean hiding only the edit widget, I would like to hide the column completely.  It is possible to achieve that by right clicking on the column in the attribute table and selecting 'Hide column' or 'Organize columns...' but I did not find a way how to do it by using PyQGIS.
101660
I'm working with several layer stacks that have 100+ bands in QGIS. The stacks are ENVI files, all band names are properly stored in the headers. Unfortunately, QGIS will not diplay them when choosing the style or when extracting info by clicking on the map. However, QGIS will show all the names Properties->Metadata.  Isn't there any way to get the band names to show properly?
41435
I have a lot of coordinates in attribute table like this one:    I'm looking the way how to find and select on active layer duplicated points using Python in QGIS ? I needn't delete them but only find and show (or select).
107205
I have a large project with provincial data. The project is currently using a data driven map with a clipped data frame for the province. The issue is the data I'm trying to show is thousands of point labels within each province, and the now clipped border is clipping labels as well. How do I stop the labels from being clipped along with the data frame?  Also, I only want to show labels that are applicable to that specific province and not the neighbouring provinces.
43843
In the Browser it's not possible to delete Shapefiles. In ArcMap you can delete Shapefiles easily within the Catalog.   How can I delete Shapefiles in QGIS without minimizing the QGIS-Window, navigating to the folder on my computer, select all the files that belong to a Shapefile (shp, dbf, shx, prj, etc.) and delete it?
23336
When I change symbology for a given QgsVectorLayer (QGIS 2.14.16 LTR) by  r=iface.activeLayer().rendererV2() r.symbol().symbolLayers()[0].setColor(0,0,255,255)   as shown here:    and refreshing the map content by  iface.mapCanvas().refreshAllLayers()   I get the expected result, but the Layer Tree does not update as shown here:    What am I missing, and how can I update the Layer tree from PyQGIS programmatically?
116648
I wish to render a shapefile of buildings such that at scales below 1:5000, they have a border, and above 1:5000, they do not have a border.  For this, I went into layer properties, selected Rule-Based, and then selected the current Rule and then went to Refine Current Rules>>Add Scales to rule. After this I set the symbol for scales >5000, like I wanted.    Here is my layer properties.    You can see that there is an initial symbol. How Do I remove this? This causes problem because it is present behind the symbol; for example You can see the boundary here even though the scale is greater than 1:5000:    I have found that that if I remove the boundary of the first symbol(the one in blue), the layer appears as expected at scales >1:5000. This seems like a workaround rather than the straightforward procedure. What is the correct procedure to use scale -rule based renderer in QGIS?
49130
Is there in QGIS a function or a plugin that works similar to Legend Limiter in ArcGIS? The attribute I want to show in my legend has many possible values, I want my legend to only show those values that are visible on my view in the print composer.