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 [group-layer]

A group of layers associating layers which share source or other properties. Group layers also help to set properties for multiple layers simultaneously. For example, making the group invisible makes all children (layers) invisible.

2
votes
1answer
26 views

Error in ArcGIS Pro when Adding Layer to Group through ArcPy

I'm trying to add layers to an empty group layer through arcpy in ArcGIS Pro. I've read that creating empty group layers only works by importing a saved template. I'm able to load my template and it ...
-1
votes
0answers
16 views

Removing all layers from group using PyQGIS? [duplicate]

Looking for some help with python to remove all layers from a group. Searching here finds similar code for QGIS 2, but I cannot get this to work with QGIS 3.
2
votes
1answer
98 views

Adding data to subgroup layers with same name in ArcPy?

Assuming that I have an idealized .mxd TOC structure with group layers that contain group and subgroup layers which have the same name like in the following example: Layers GroupLayer1 ...
2
votes
1answer
85 views

Getting name of group that layer is in using PyQGIS?

I've been using the "Layer List" plugin (https://plugins.qgis.org/plugins/layerList/) that does a great job of creating a text file with all the layer in a qgs project file. I want to extend it to ...
3
votes
1answer
87 views

Creating new layer group in ArcMap?

I am in the process of learning ArcGIS Desktop, and as I was working through the tutorial provided to me, I was told to create a new layer group by right-clicking on "layers" in a new blank map, and ...
0
votes
1answer
13 views

Stop a stylesheet from displaying on layers above it in a Geoserver group layer

Background: I have a layer group made up of a series of raster tiles of increase detail as you zoom in on the map. The issue is not all of the layers have full coverage of the map. The idea to fill in ...
0
votes
1answer
46 views

Create a spatially restricted sub layer in GeoServer 2.14.1

I have a vector layer with points across a whole state served by WMS. I would like to limit access to particular areas within the state (e.g. spatially via bounding box). Each bounding box would be ...
5
votes
1answer
90 views

Sorting layers in specific group layer with ArcPy?

I have to programmatically sort several layers in an .mxd project that are each placed in the same group layer. I have found a script that partially works by sorting all layers in the TOC (Arc GIS 10....
2
votes
1answer
55 views

Points in hosted Feature Layer causing rendering issues in ArcGIS Javascript API

I have Feature Service in my ArcGIS Online account that is made up of a number of feature layers. The feature service was created by publishing a file geodatabase. I am adding the Feature Service as a ...
1
vote
1answer
36 views

Selecting a series of grouped layers within a specific extent [closed]

Is there a way to select grouped layers within a specific extent with ArcGIS 10.5? For example I have a constraint mapping, with various thematic layers grouped by interest. I would like to know ...
1
vote
0answers
96 views

How to refresh layer style correctly while setting to group

I have almost finished to implement the following idea: When moving a raster layer to a distinct group load a style from a QML style file. I'm using this code in the Python console in QGIS: def ...
1
vote
0answers
55 views

Programmatically select a GROUP node using pyqgis

I have seen ways to programmatically select a current layer using QgsLayerTreeView().setCurrentLayer() but I cannot find a way to change the group selection. Does anyone have any tricks/hacks that I ...
0
votes
2answers
531 views

Adding layer to group in layers panel using PyQGIS?

I am trying to add a group to the layer panel, then place a vector layer (vectorLayer) into this group from a python script. The code I am using is: groupName="test group" root = QgsProject.instance()...
0
votes
0answers
34 views

Group layers and working with them

I've just started with arcgis and I've got a number of different "maps" as individual layers. I've grouped them so it's easier to turn them on and off. They are choropleth maps, so show counts of ...
1
vote
0answers
68 views

Adding to group layers in loop is slow in ArcGIS Engine?

I am using ArcGIS Engine 10.5.1. I wanted to ask and see if anyone else has encountered this and or found a work around. I have a loop in c# where I am taking a large set of layer files and adding ...
1
vote
1answer
159 views

GeoServer WMS request performance: Layer Group vs Layer List

Let's say there are few transparent raster layers A, B, C... I would imagine that it is better (performance wise) a) to have these layers marked as non-cacheable then create a layer group from them ...
1
vote
0answers
413 views

layer group in leaflet! [closed]

How to have different overlay layers in layer groups having different .geojson files? I want to show three different categories such as Toilets, dustbins and hospitals. There will be three different ....
0
votes
1answer
444 views

Layer group with large number of layers vs large vector layer in GeoServer?

In my Geoserver project, I need to put each feature in a separate layer, and combine all these layers in one layer group. The problem is when the number of features increases ( > 1,000 feature) the ...
2
votes
1answer
278 views

Apply a definition query to a Layer Group

I'm trying to apply a definition query to multiple layers within a Layer Group by using the following script where I would simply change the values for my 'SUBCODE' field: import arcpy #Variables to ...
0
votes
1answer
108 views

Copy Layers with groups and layers with data from one MXD to another

Is there a way of copying one group of layers with data (001_Group) from one MXD(group1.mxd) to another(group2.MXD) with arcpy. As far as I understand all the layers in ArcMap are referenced as ...
1
vote
0answers
137 views

Zoom to group layer using ArcPy

I have a group layer that I have populated with a collection of feature layers. When I right-click on the group layer and select "Zoom to Layer" the view zooms so that I can see the full extents of ...
0
votes
1answer
84 views

Removing identical items from grouped layers in legend of ArcMap?

I am using ArcMap 10.5 and in the process of creating a map template for people to use in my team. Part of the template is a map layout with a legend. The problem I am having is that I have some ...
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 ...
2
votes
0answers
154 views

Geoserver Layer Group equivalent in ArcGIS Online or Server

Is there an equivalent functionality (or way to achieve this functionality) to the Geoserver Layer Groups "Opaque Container Mode" in ArcGIS Online or ArcGIS Server? What I need to be able to achieve ...
17
votes
0answers
1k views

Leaflet v1 plugin: layer control for ungrouped, grouped, and nested-grouped layers

I need a Leaflet plugin which extends L.Control.Layers. I have the following requirements: works with Leaflet 1.x handles ungrouped layers alongside grouped ones handles nested layer groups does not ...
1
vote
2answers
719 views

Grouping layers in Portal for ArcGIS?

I grouped the layers in ArcGIS Desktop and published them to my Portal for ArcGIS, but when I tried to create the Map Application, I see the individual layers. They are not in a group.
1
vote
2answers
98 views

Iterate Feature Selection Error -Export grouped features

I am trying to group values inside my shapefile using Iterate Feature Selection and then Copy selected feature to new shapefile. I don't know why but my copy features don't allow me to using %Value% ...
3
votes
1answer
383 views

Group Layer On/Off Behaviour

One of the main reasons I use groups in Arc and QGIS is to be able to group similar data and/or associated layers which I will want to display or turn on/off together. In Arc if I have a group with ...
2
votes
1answer
193 views

How to get the file path for layers within a group layer?

I am trying to use python to remap a set of layer files in a group layer (not within an mxd) but am unable to create a layer object for them so I can use replaceDataSource. One of my group layers is ...
1
vote
0answers
121 views

ExtractSubDataset in ArcPy loop giving ERROR 999999? [closed]

In ArcMap, I've created a layer group that I would like to add extracted subdatasets from a file to. It is a .grb file and I've successfully done this with the provided "Extract Subdataset" tool. Is ...
1
vote
1answer
89 views

bgcolor problem on cascaded WMS grouplayer

On GeoServer I have two layers, both cascading a remote WMS. Both layers work fine in the layer preview. Now I am putting both into one group layer and open the preview, which shows an empty response....
2
votes
0answers
244 views

How to toggle group while maintaining sub-toggles

In QGIS: I work with large projects in which I have many groups. Often I need to only visualise part of a group. However if I want to toggle off a group and later toggle it on again, all layers in ...
2
votes
0answers
176 views

GetLegendGraphic from layergroup in Geoserver 2.8.2

I am working with Geoserver 2.8.2 I am requesting a GetLegendGraphic to a layer group that holds three layers, each layer with one single SLD styling. I am getting a legend from Geoserver, but ...
5
votes
1answer
134 views

Preventing new layers being added to groups automatically in QGIS?

In QGIS I can happily bring in layers and then group them together. Problem: Once a group has been created and I load a new layer into QGIS, that layer is then automatically placed in that group. ...
4
votes
2answers
2k views

Mapbox GLJS - group layers

I'm trying to build an interactive map, without any knowledge in javascript, and i found myself a bit lost in this large world. I've already designed my style in mapbox studio. And now, trying to ...
0
votes
1answer
2k views

Grouping layers in Table of Contents in ArcGIS for Desktop?

I'm trying to group layers in the table of content so that I can expand or collapse them as needed. Not sure how. I'm using ArcGIS 10.3 for Desktop.
6
votes
3answers
1k views

Removing all layers from group using PyQGIS?

I want to remove all layers from a distinct group. root = QgsProject.instance().layerTreeRoot() the_group = root.findGroup("my_group") parentGroup = the_group.parent() I think I have to loop the ...
0
votes
1answer
54 views

Sublayers do not exist or are not supported in the geoprocessing tool?

I'm trying to batch export selected layers that I drag and drop in the tool that I've created by a selecting feature class. It's working when features are input from the source and layers in TOC. ...
0
votes
1answer
83 views

Create feature datasets from group layer name

Is it possible to create feature dataset, based on the name from group layers. I have two separate codes, one for finding out the names of group layers, and other to create feature datasets. >>...
1
vote
0answers
269 views

How to restrict only a Layer Group instead of giving the whole service when loading a WMS on qgis?

I created a workspace, a store and some layers on GeoServer. Then I created a layer group and added a few layers. When I try to load a specific layer on QGIS I use the following URL: http://localhost:...
5
votes
1answer
511 views

PyQGIS toggle group visibility (and recursively subsub…group visibility)

I would like to set visibility of a layer group and all of its children (and grand-children and so on...) using PyQGIS (QGIS 2.14.1). Assume the groups name is g0 with subgroups g0[1...n] and subsub.....
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 ...
3
votes
1answer
414 views

QGIS >2.10: Adding layers to legend groups programatically fails ocassionally with valid layers

I'm working in a project in which, for some reasons, the beast approach to handle a certain amount of point/vector/raster layers is to load them all into memory, and keep them in the QGIS legend. For ...
3
votes
0answers
218 views

Sublayers/subgroups under single item in ArcGIS Server

We would like to develop hierarchies for viewing layers in our ArcGIS Server based IMS. The best solution to do this has been so far to create groups and sub-groups in ArcGIS Desktop before publishing ...
1
vote
2answers
2k views

Count number of group layers or Layers inside group layer using ArcPy? [closed]

I am looking for a way of counting the amount of layers within a group layer I have an empty group layer inside my map and I am looking for a way of initiating a process if there are 0 layers inside ...
2
votes
2answers
218 views

Update a group layer using arcpy

I work with several MXD'S and i try to update a group layer named "allHa" containing several layers with this code: import arcpy,os,sys,string import arcpy.mapping from arcpy import env env....
1
vote
1answer
510 views

Unable to create group layer inside existing group layer in ArcGIS for Desktop?

We have recently had ArcMap 10.3.1 installed and have encountered a frustrating bug. When I try to create a new group layer under an existing group layer, the option is greyed out. I can't find ...
1
vote
1answer
225 views

Selecting group layer using arcpy.GetParameterAsText()?

I have a script that allows me apply a single SQL Definition Query to all feature classes within a particular Group Layer. For ease of input for others in the office, I changed this into a model tool,...
0
votes
1answer
313 views

Adding file geodatabases as group layers?

I have a couple hundred file geodatabases (GDBs) each containing several feature classes. Is there a way for me to move the GDBs into an mxd such that each GDB is imported as a group layer ...
3
votes
4answers
7k views

Dynamically add layer(s) to Layer Group

I have an Openlayers 3 app and users can retrieve stored routes from a web service and display them on a map. Currently each route is added to the top of the index but I'd like them to be inserted ...