Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [table-of-contents]

Table of Contents, a tabbed list of data frames and layers (or tables) on a map that shows how the data is symbolized, the source of the data, and whether or not each layer is selectable.

4
votes
3answers
85 views

Sort layers in table of contents in QGIS 3?

When I load a bunch of layers into QGIS, they seem to load in reverse alphabetical order. I'd like to sort them alphabetically. In this thread a solution is proposed, but that does not work in QGIS 2....
-1
votes
1answer
24 views

Dock ArcGIS 9.3 table of contents

How do I dock the table of contents within the ArcGIS window.
2
votes
0answers
27 views

Copying Table of Contents from QGIS into Excel?

Is there a way to copy and paste the contents of the Table of Contents in QGIS into an Excel spreadsheet? For example, I have many layers (groups of vector shapefiles which are underneath various '...
1
vote
2answers
63 views

Move files from Table Of Contents to a geodatabase in ArcPy?

I have a program that selects certain files and imports them to the Table Of Contents in ArcMap. I would like to do some self intersect operations to all and put them both the original files and the ...
0
votes
1answer
73 views

Preventing Append_management from adding target to Table of Contents? [duplicate]

I am using ArcGIS Desktop 10.2. I have a script that successfully converts a .csv into an already-existing feature class by first truncating the feature class table and then using the following line ...
6
votes
1answer
231 views

Change background color of Layer in the TOC / QgsLayerTreeLayer with pyqgis

I would like to change the background-color (or font color) of some items in the TOC of QGIS: Example-Mockup: I tried several ways but nothing did the trick so far: layer_list = QgsProject.instance(...
0
votes
1answer
86 views

Removing layer from TOC when it has space in name using ArcPy?

I am trying to remove layers from the TOC using Python Toolbox. It works provided that the layer names have no spaces in their names. Tho whole script looks like: class ...
1
vote
3answers
216 views

Concatenating two columns in ArcGIS 10.2.1: “no records within table”?

I am trying to merge two text columns (consisting of 2 digit and 3 digit numbers respectively) into one in ArcGIS 10.2.1 desktop version, but unable to do so. I have added a new field and kept it as ...
0
votes
0answers
42 views

Deleting unused classes in TOC - TIFF raster, USGS GAP data

I recently downloaded USGS GAP data for the state of Oklahoma (https://gapanalysis.usgs.gov/gaplandcover/data/download/) for use in a site suitability analysis. The data come in a .TIFF raster layer ...
1
vote
0answers
210 views

Selecting the active layer in Layers tree in QGIS [closed]

How do I programmatically (in QGIS with Python) set the position of the active layer and show it in the legend tree. Specifically if the layer is in a collapsed group or is it far below the list?
0
votes
0answers
164 views

Where is source tab in table of contents within ArcMap?

I am unable to find the source tab within ArcMap's Table of Contents. I have looked all over the Internet but cannot find the answer. I did find instructions that state that in order for the display, ...
1
vote
1answer
398 views

How to duplicate a map layer at most once as the bottom layer in qgis3 (python)

I wanted to duplicate a layer in qgis3 using python (display the same vector data as different layers) per this question (How can I duplicate a layer in QGIS?). In addition, I need to: make sure that ...
1
vote
0answers
52 views

Getting signal when toggling group in PyQGIS? [duplicate]

I have a group which contains x number of layers. I can connect the group's node visibilityChanged signal to a simple print function so that when the group is toggled, a message is printed to the ...
2
votes
2answers
759 views

Set layer order in QGIS with PyQGIS

There are several similar questions around, like Sort layers in QGIS table of contents or Order layer in QGIS with PyQgis, but I can't get it to work. Here is what I do: # image and shapefile are ...
3
votes
1answer
85 views

Connect symbol layer from Layers Panel to function

If I create a simple function: def print_me(): print 'Clicked!' and I switch off the symbology for Elephant as shown below: I would like the function to run. What would be ideal is if we can ...
16
votes
1answer
542 views

How to apply changes in QSettings immediately?

With PyQGIS, you can change various settings such as making the groups in the Layers Panel (or table of contents) bold: from PyQt4.QtCore import QSettings QSettings().setValue("/Qgis/legendGroupsBold"...
0
votes
1answer
465 views

How to create TOC icons from a geojson leaflet style

I have a leaflet map that shows a couple of geojson layers. The style for each layer is represented in a TOC by means of the plugin Grouped Layer Control. The TOC has the following aspect: The ...
4
votes
1answer
647 views

Setting different context menu actions for each layer type with PyQGIS

I want to set different actions(context menu) for vectors,rasters,etc . class MyMenuProvider(QgsLayerTreeViewMenuProvider): def __init__(self, view): QgsLayerTreeViewMenuProvider.__init__(self) ...
3
votes
1answer
500 views

How to change visibility of a particular layer category in PyQGIS?

I've got one layer with its symbol MARKER, categorized by an expression in 4 colors. The colors depends on a value of a column. So from the TOC, I'm able to click and enable/disable, as they were ...
1
vote
1answer
35 views

Add layer subsets in table of content

As I have too much data in one shapefile (it is too long to load), I created from this shapefile 4 layers showing the level of environmental risk. However I would like these shapefiles to be subsetted ...
0
votes
0answers
189 views

Clear/refresh table of contents in Geoprocessing tools

I'm building a Python toolbox and when I run one of my tools, I noticed that the table of contents doesn't update itself in the drop down list of my Python tool. As you can see in the image below, ...
6
votes
1answer
129 views

Can QGIS for Windows use ticks instead of crosses in the Table of Contents?

In a fairly old blog, Martin Dobias shared a post detailing the use of the QGIS Layer Tree API where one of the images shows the Table of Contents (or Layers Panel in QGIS jargon) using ticks to show ...
3
votes
1answer
600 views

How to prevent zoom-in when clicking in the Leaflet table of contents window?

The Leaflet grouped layer control plugin has a demo page, where double-clicking within the Table of Contents window has no effect on the map. This sample uses Leaflet 0.73. When using this plugin ...
3
votes
1answer
378 views

Make this the only selectable layer (greyed out)

Someone else has tried Creating shortcut (button) for "Make this the only selectable layer" in Python 2.6? but, as pointed out there, the answer doesn't work. When adding "Make this the ...
11
votes
2answers
417 views

Setting width of layers panel in QGIS?

When I open QGIS, the Layers Panel defaults to a width that doesn't show the "Remove Layer/Group" button. So I have to resize the panel to show the button every time I open QGIS. Is it possible to ...
2
votes
1answer
344 views

Is it possible to alter the UI colour within ArcMap?

I was wondering if anyone knows if it's possible to change the colours of the user interface within ArcMap? Specifically the background and text colours of the table of contents and the ArcCatalog/...
3
votes
1answer
153 views

Show full layer name (including extension) in QGIS table of contents

Is there an option in QGIS to show the full name of a layer (including the extension) in the TOC? I'll take a python solution as well, but it would need to trigger on layers being added.
2
votes
1answer
329 views

How to only check one layer in a group at a time?

I have a group of layers and in my plugin, I would only like one layer from a specific group to be checked at any time. The plugin contains a toggle button which connects each layer to a function. The ...
6
votes
1answer
203 views

Turning off representation descriptions in ArcMap table of contents?

Using ArcMap 10.3.1, advanced, how do I turn off the display of the layer representation descriptions in the TOC? I've highlighted what I'm trying to turn off in the screenshot below. Nothing in the ...
3
votes
0answers
30 views

Python Add In Change tab in Table of Contents [duplicate]

I'm working on an add in that generates new structures for an addressing system. The tool is working well, but as it runs, at some point it changes tabs in the Table of Contents to the "List By Source"...
4
votes
3answers
235 views

Renaming layer in a TOC using a tool within Python Toolbox

I created a simple tool that renames layers in the TOC using a for loop. As a tool within my normal toolbox it works fine. Now I´m trying to work more and more with the Python Toolbox and want to ...
14
votes
1answer
1k views

How to make a layer or group invisible in the Layers Panel?

I have a number of layers in the Layers Panel inside a group but I don't want them shown (there's quite a lot so it looks untidy). These layers are also joined to several others. Is it possible to ...
8
votes
2answers
3k views

How to move layers in the Layer Order Panel using PyQGIS?

Related to the following question but looking for a PyQGIS method: QGIS Layer Order Panel - add layers at top of layer order The following is a simple setup containing a group with three layers. ...
1
vote
0answers
156 views

TOC ArcGIS JS API app Is empty

I've been trying to use Nliu's TOC . I've followed a few examples and looked through the threads here, but I'm totally stumped on why my code isn't working. This is my code <!DOCTYPE html> <...
5
votes
1answer
139 views

Turning on another layer when one is selected in TOC using PyQGIS?

I have a large number of raster model files of water depths with corresponding velocity vectors in point shapefiles. I want to be able to 'walk through' the results displaying the depths and velocity ...
4
votes
1answer
698 views

Re-order layers in QGIS table of contents using python

I am using the following code in a script tool to import a set of shapefiles from a folder specified by the user, duplicate two of the layers, style all of them and re-order them in the layers panel. ...
1
vote
0answers
39 views

Arcpy self-made tool doesn't display the results in the table of contents [closed]

I wrote a code with the purpose of generating a gradient raster map, using points as entry values and then clipping it to the map extend that I want. The code works fine when I use the python window ...
1
vote
1answer
161 views

Renaming the value of a proportional symbols layer in Table of Contents in ArcMap

In the case of a - for example - graduated colors or graduated symbols layer, it is easy to rename the value in the Table of Contents. I always click the value name and press F2. However, pressing F2 ...
2
votes
2answers
439 views

Arcpy deselect layer in TOC

With python-addin-wizard I created a combobox which enables the user to select a specific ID of features in multiple featureclasses of the Table Of Content and then it zooms to the selected feature. ...
1
vote
1answer
143 views

How to sort layers in TOC in custom order?

Recently I saw a script that moves layers according to their names in TOC. I wanted to make a complete script for my work in which all needed layers are listed and probably should be sorted in a way I ...
2
votes
2answers
179 views

Repairing data sources using ArcGIS for Desktop?

I work with MXD file that contain 50 layers (all layers located in different folders), some of them have broken Data source: The problem is that anytime i try to repair all the layers data source ...
2
votes
1answer
86 views

Updating symbology values/fields shown based on location selection in Data Driven Pages?

I am producing some maps for a client who owns a lot of water and sewer assets. The data supplied by the client has automated symbology which imports when dragging them in from the geodatabase based ...
0
votes
1answer
510 views

Button to turn off all layers in ToC at once?

I have created a map that has a Table of Content that i use to turn on and off desired layers. Is there a way to create a 'Clear' button that will untoggle the selected layers? I have a clear button ...
2
votes
2answers
130 views

Turning off visibility of layer using ArcObjects Java?

I'm making a geoprocessing tool with ArcObjects Java (IBasicGeoprocessingTool) and I need to make a layer not visible. I managed to get this layer as IFeatureLayer and I get an access to the map or ...
1
vote
0answers
83 views

TOC with secure services

I have secured map services with AGS. I also have the proxy.config, proxy.ashx, and web.config in my application. My map layers display OK using the proxy. When I try to display my legend using the ...
1
vote
1answer
46 views

How to calculate specific rows in layer field- ArcGIS 10.3

I try to calculate specific rows (OBJECTID 23-29) in "field_name" field with field calculator- i try to fill in the value "rt8". This is the attribute table: but i can't find any option to calculate ...
3
votes
0answers
129 views

How to access attributes from linked tables (QGIS 2.14.2 Essen) [duplicate]

I have one source shapefile like this: It consist the geographical coordinates of weather stations: And several attribute files, which contain the Temperature data of each date for several years I ...
3
votes
2answers
170 views

Set visibility by subtype in ArcMap

I am wondering if it is possible in ArcMap to isolate a particular subtype within a feature class to be visible in the map. I have a feature class with several subtypes based on an attribute field. ...
2
votes
1answer
2k views

How to add group layers/TOC to ArcGIS web map/web application?

I am new to arcgis online and am trying to create a web map that has some kind of grouped layers. I have tried adding multiple shape files that are all zipped together but because together the files ...
4
votes
0answers
96 views

Is it possible to have a locked TOC in QGIS

I would like to customize QGIS for a custom use case where the user will work with a very simple customized UI and will just digitize features in existing layers. Therefore the TOC should be locked, ...