Skip to main content

All Questions

Tagged with or
Filter by
Sorted by
Tagged with
0 votes
1 answer
29 views

QGIS "Render Layers as a Group" Ignores Scale-Dependent Visibility

In QGIS 3.40, I've grouped several vector background mapping layers (OS Open Zoomstack data) for easier management. Individual layers (e.g., railway station points) are configured with scale-dependent ...
davehughes87's user avatar
0 votes
1 answer
69 views

Copy layer group from one project to another with PyQGIS

Using QGIS 3.8, is there anyway to copy a layer group (and its subgroups) from project1.qgz to project2.qgz? I'm trying to write an script that adds a layer group (with several layers and group layers ...
pfrud's user avatar
  • 81
1 vote
1 answer
63 views

Layers corrupted after saving, closing and opening of QGIS project with PyQGIS

Using a Python script, I create a layer from a CSV file and then write it out to a gpkg file. I then create a group in the layer tree, load it in the gpkg file and add it as a child of the group. This ...
John_nz's user avatar
  • 51
2 votes
1 answer
150 views

Applying specific styling to group layers in the LayerList Widget in ArcGIS Maps SDK for JavaScript

Using ArcGIS Maps SDK for JavaScript 4.24, I would like to change the formatting of Group Layers within the LayerList Widget, such that the group layers can be immediately distinguished from non-group ...
Stephen Lead's user avatar
  • 21.2k
2 votes
1 answer
208 views

How to move a layer to a group using Python code in ArcGIS Pro?

I am trying to move a layer to a group using python code. Both the layer and the group are in the current/same map in ArcGIS Pro. I have the following code (the layer to be moved to the group "...
HKN's user avatar
  • 45
1 vote
1 answer
62 views

Combining two rasters at different resolutions with MapServer as a single WMS layer

I am trying "Join" two rasters with MapServer 7.6.4 so that they appear as a single layer on a WMS service, I have tried the wms_layer_group and GROUP but without luck. | 2 images one high ...
Jorge Mendes's user avatar
5 votes
1 answer
212 views

Cloning the map layer using PyQGIS

I want to clone my generated memory layer and apply different filters and symbology. The clone is visible in the layer tree, but doesn't show up in the canvas. What am I doing wrong? uri = f'point?crs=...
Redoute's user avatar
  • 2,242
4 votes
1 answer
463 views

Move an existing layer into a group layer using ArcPy in ArcGIS Pro

I have a map object and I am trying to move an existing layer from that map object into a newly created group layer in the same map object. aprx = arcpy.mp.ArcGISProject("Current") mp = aprx....
Kat's user avatar
  • 311
2 votes
1 answer
84 views

Viewing memory layers in group with PyQGIS

I'm writing a plugin for QGIS and given a layer (self.layer_comuni) from this I extrapolate an indeterminate number of layers depending on the correspondence of the values of the mercato_comuni list ...
Wolverine's user avatar
1 vote
1 answer
251 views

How to programmatically access Trace network layer results when using NETWORK_LAYERS result type in a stand-alone Python script?

I have a stand-alone Python script that runs a Connected Trace on a Trace Network. This is a re-write of an existing script that runs a trace on a Geometric Network. The script will be published as ...
Dan's user avatar
  • 1,100
1 vote
1 answer
247 views

Remove layers from a group and update LayerSwitcher with OpenLayers?

I have a layer group in OpenLayers that initializes empty. This group is added in a layer switcher var group_search = new ol.layer.Group({ title: 'Search', fold: 'open', layers: [] }); map.addLayer(...
Andreia Gusmao's user avatar
0 votes
0 answers
135 views

MapServer wms_layer_group, set title

We want to group wms layers in mapfiles and give the group a title that is different from the name. Until now we did this with GROUP and wms_group_title, but GROUP is deprecated and we want to use &...
Vera's user avatar
  • 11
1 vote
0 answers
104 views

C# - Add GroupLayer to Active Map (ArcGIS Pro)

I'm trying to add a groupLayer to active map using C# and ArcGIS Pro. Devloping a plugin. This is my sample code or what I've tried so far: Esri.ArcGISRuntime.Mapping.Map myMap = new Esri....
Luiz's user avatar
  • 11
0 votes
1 answer
77 views

Get print composer to acknowledge the "Lock Layers" option when using the "Render Layers as a Group" option

I have shapefiles and rasters loaded into a QGIS workspace (3.30, but this issue doesn't seem to be version specific from my experience). I've grouped some of the vector layers and checked the "...
davehughes87's user avatar
0 votes
0 answers
40 views

GeoServer GroupLayer GetFeatureInfo returns wrong layer feature

I'm currently facing an issue with GeoServer and its GroupLayer functionality. I have created a GroupLayer named confini containing three layers: tutorial:Reg01012023_WGS84 (Regions), tutorial:...
stefano_rizzo's user avatar
1 vote
0 answers
182 views

Group by multiple columns in QGIS array

I'm looking to create a figure with multiple rule-based symbologies. A graduated range within a category within a main category. The only way I think that's possible is by adding categories, ranges to ...
envsci_melb's user avatar
2 votes
1 answer
307 views

Enabling the "Render Layers as a Group" option in QGIS through python

I have written a simple python function that loads several existing shapefile layers into a new group in QGIS 3.28. I would like to extend this function to also automatically enable the "Render ...
davehughes87's user avatar
2 votes
1 answer
178 views

Creating event in PyQGIS that notices that group of layers is selected

I have these groups of layers with their layers inside in QGIS: I have an event in PyQGIS that notices when I select a layer like RODAL or MONTE: iface.layerTreeView().currentLayerChanged.connect(...
Andrés Rodríguez's user avatar
18 votes
2 answers
904 views

Showing the number of currently selected layers in QGIS

Although this should seem to be very straightforward, I cannot find out how to see the number of layers I have currently selected in QGIS. For example, in the example below I want to see somewhere in ...
Sytze's user avatar
  • 792
0 votes
1 answer
63 views

Using ReplaceDataSource with group layers and ArcPy with ArcMap

I have a script to replace the data source on layer files in an mxd based on a geodatabase input from the user and a feature class with a matching name to the layer. This script works as intended as ...
serena's user avatar
  • 13
2 votes
0 answers
347 views

Exporting layer tree in QGIS

I need to create a layer tree for other user researchers to use. In the final dataset there will be ~20 sub-groups, each with dozens of layers. (It's possible that this isn't the best way to do it -- ...
user670416's user avatar
3 votes
1 answer
350 views

Renaming group layer using ArcPy with ArcGIS Pro

How do I rename a group layer in ArcGIS Pro using ArcPy? In ArcMap I can do so thus: groupLayer = arcpy.mapping.Layer(r"Path to grouplayer.lyr")# empty group layer as template groupLayer....
wunderkind's user avatar
2 votes
0 answers
368 views

Creating layer in group-layer in QGIS Graphical Modeler

I want the layers created during a graphic modeler process be stored in a specific layer group. I tried a bunch of stuff, based on clone-move-delete, node_root, layertreelayer... Maybe in alg_params ...
Festisat's user avatar
0 votes
0 answers
36 views

Group Created in QGIS Disappears When QGIS is Reopened

I have a situation where a newly created group layer (with various geometry types that are not scratch or temporary layers) disappears when re-opened. In some cases, it occurs right away, other times ...
Demandred's user avatar
0 votes
1 answer
277 views

ArcPy command to remove empty layers that are grouped

I have a script that works for MXD with ungrouped layers. How can I change this so it works if there are groups of layers? I have an MXD template with many layers & groups. The underlaying file ...
Eifa's user avatar
  • 1
-1 votes
1 answer
203 views

Making Grouped Layers in ModelBuilder using ArcMap

I started using ArcMap 10.4 just a few weeks ago, I've started to get a handle on the ModelBuilder however I can't seem to make the layers I export be automatically grouped. So far this is the most ...
Sam R's user avatar
  • 1
1 vote
1 answer
787 views

Mapbox GL JS Equivalent to Leaflet LayerGroup?

Does anybody know of an equivalent to the Leaflet L.layerGroup in Mapbox GL JS? I can do this in leaflet: var layerGroup = L.layerGroup().addTo(map); And then if I want to add, say, a marker to the ...
SteepAtticStairs's user avatar
5 votes
1 answer
257 views

Getting active group with PyQGIS

In PyQGIS we can obtain the active (currently selected) layer with >>> iface.activeLayer() <QgsRasterLayer: '007' (gdal)> With a group selected this returns None (?). QgsInterface does ...
Jochen Schwarze's user avatar
0 votes
0 answers
57 views

GeoServer group layer of raster with different SRID

Can I create a group layer from raster layers having different reference systems to produce tiles (out of the group)? Is it adviced to use one SRID for such layers/rasters (also COG used)? Are You ...
krav's user avatar
  • 41
10 votes
1 answer
3k views

Selecting subgroup in Layers panel using PyQGIS

I can select a group layer (for example C) using the following script. But I can only select groups in root level (A or C). I am struggling to select subgroups. I play with the script, but no success. ...
Kadir Şahbaz's user avatar
1 vote
1 answer
1k views

Why is GeoServer 'Layer Groups' not opening?

I want to create a layer group in GeoServer, but when I click on the layer group I get the error below. I am logged in as an admin, I'm not sure if this has to do with my setup? An error occurred ...
Magali Gonçalves's user avatar
1 vote
0 answers
321 views

How to fetch Layer Group with WMTS Service on GeoServer?

Is there a way to fetch Layer Group with WMTS service? I fetch all layers as WMTS but when it comes to layer group, GeoServer throws 400 Bad request. Here's my wmts uri for a single layer; var data = [...
Burak's user avatar
  • 11
4 votes
2 answers
2k views

Adding output layers of QGIS processing scripts to group using PyQGIS

I have a QGIS Python processing scripts that return multiple rasters. I want to return them to a group named 'Aligned'. There is nothing in the context.addLayerToLoadOnCompletion() function to specify ...
ar-siddiqui's user avatar
  • 1,830
2 votes
0 answers
115 views

QGIS Group Layer Variables

QGIS Group Layers don't have properties, probably because of that there also doesn't exist the possibility to define variables for Group layers. I use Project variables and Layer variables but also ...
geraldo's user avatar
  • 1,000
1 vote
2 answers
731 views

Layer to KML using ArcGIS Pro doesn't show all points [closed]

I'm using ArcGIS Pro, and I am trying to convert a group of layer (both points) to KML. When I make the KML and open it it doesn't show all the points!
Hoda's user avatar
  • 11
3 votes
1 answer
1k views

Getting layer within a specific group using PyQGIS [closed]

I have two groups with unique names, which contain layers using identical names, e.g.: Group 1 Layer A Group 2 Layer A Is there a smart way to set the active layer to specifically Layer A from e.g....
Karin Drenck's user avatar
2 votes
2 answers
2k views

Iterating over features within Group Layer that will be identified with Wildcard using ModelBuilder of ArcGIS Pro

In the ModelBuilder of ArcGIS Pro 2.8.1, using Iterate Layers, I want to iterate over features that are in a group layer. It seems like I should be able to identify this group layer by using a ...
sparky's user avatar
  • 450
0 votes
0 answers
80 views

Deleting the old layer set automatically - after sorting layers of one specific group within the table of contents alphabetically

I'd like to reorder the layers within ONE specific group of the TOC alphabetically by layer name, but without reordering the top level layers or the layers of other groups. @GérmanCarillo helped me to ...
jaysigg's user avatar
  • 507
8 votes
2 answers
2k views

Sorting layers by name in one specific group of QGIS layer tree

I'd like to reorder the layers within ONE specific group of the TOC alphabetically by layer name, but without reordering the top level layers or the layers of other groups. I found the following ...
jaysigg's user avatar
  • 507
2 votes
1 answer
1k views

Identifying layers by grouping using ArcPy

I have a number of layers that I want to manipulate with ArcPy. On my ArcGIS Pro map I have them under a group layer. To deal with them, I have been picking them by name as follows: for theLayer in ...
Maxcot's user avatar
  • 265
3 votes
1 answer
5k views

.on("load") event for layer groups in Leaflet

I have used Leaflet's ImageOverlay to load various image layers onto a Leaflet map div (L.map). The size of the layer files can vary greatly. So some layers load very quickly while others can take a ...
kykong's user avatar
  • 93
1 vote
0 answers
147 views

Accessing the child of a group with owslib in QGIS

How can I iterate a layer group with owslib in QGIS in a script? If is not possible, are there alternatives? Here is a sample code of what I'm trying to achieve: 2,5,8 has 1 as parent. from owslib.wms ...
Alexis's user avatar
  • 233
1 vote
0 answers
389 views

How to configure grouped layers in the LayerList widget with feature layers

This applies to the ArcGIS Server JavaScript API v4.x. This LayerList widget example code contains grouped layers, whereby the San Francisco parent checkbox also controls its child layers: The ...
Stephen Lead's user avatar
  • 21.2k
0 votes
0 answers
89 views

Can group layers be published to ArcGIS Server as a single object?

ArcGIS Desktop/ArcGIS Server 10.7.1: I have 200 layers that I generate via ArcPy on a weekly basis (from an external source). The layers are grouped by group layers (roughly 10 layers per group). My ...
User1974's user avatar
  • 1,272
2 votes
1 answer
516 views

Layer Group cannot be added into QGIS

I am having a problem with adding a layer group into QGIS, where upon making a connection to the server in QGIS, the layer group does not appear. I see only the layers that make up that layer group. ...
Marian's user avatar
  • 21
0 votes
1 answer
2k views

Group layer to shapefile

I am using ArcGIS Pro and I have grouped a number of similar layers together creating a 'group layer'. Is it possible to export the group layer as a shapefile or can I only do this with each of the ...
Tangaroa79's user avatar
2 votes
1 answer
355 views

Copy styles from many layers

I am working with QGIS 3.4 Is there a way to easily copy the styles from one group of layers to another group of layers with the same names? The outcome should be that layers that share the same name,...
GeofA's user avatar
  • 21
0 votes
0 answers
1k views

Show popup on marker click on static image in Openlayers

Im complete newbie in scripting and I have problem which I can't solve (and I searched whole web for days for coming here for answer). Im trying to make very simple completely static image map. I ...
Avokado mali's user avatar
0 votes
2 answers
853 views

PyQGIS: hide a layers-group by uncheking it in the legend [duplicate]

I have a group of layers that contain itself other groups (as shown in picture). I need to hide one group by uncheking the checkbox in the legend. is there any way to do it programatically using ...
Namoat's user avatar
  • 307
1 vote
1 answer
392 views

Legend of WMS-Group Layer

I have a group layer and I want to show the legend of all layers in this group layer. For one layer in this group I get the Legend with this url: GEOSERVER/KRE_KANAL/ows?service=WMS&request=...
astridx's user avatar
  • 635