Skip to main content

All Questions

Tagged with or
Filter by
Sorted by
Tagged with
0 votes
0 answers
175 views

Identify features of a group layer by GeoServer in QGIS

I encountered a strange behavior in QGIS version 3.8.1. A group layer consisting of raster, vector and PostGIS layers compiled via the GeoServer 2.15.1 is integrated as WMS into QGIS. If I want to ...
holthaum's user avatar
0 votes
0 answers
132 views

Layer group kept being auto removed with no obvious reason

Is there any particular reason for a layer group will be removed from the GeoServer in some certain circumstances? I have more than one GeoServer-Client pair setup in different places, data are sync'...
Jerry's user avatar
  • 1
0 votes
1 answer
57 views

Using ArcMap Group Layer? [closed]

I am working with multiple grouped layer files that when in the layer file they do not have any of the normal properties. For example, when I click on the properties for an individual layer within the ...
Bowser's user avatar
  • 89
0 votes
1 answer
650 views

Adding multiple feature classes (all within file geodatabase) to group layer using ArcPy with ArcGIS Pro

I am currently trying to add all the feature classes contained within a gdb to a group layer in ArcGIS Pro via a script. I have however not managed to add more than one single feature class at a time. ...
Sineik's user avatar
  • 27
1 vote
1 answer
1k views

Removing a group from layers panel using PyQGIS? [duplicate]

How can I remove a group that I created previously using : groupName="machin" root = QgsProject.instance().layerTreeRoot() group = root.addGroup(groupName)
Namoat's user avatar
  • 307
3 votes
1 answer
1k 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 ...
zozo's user avatar
  • 33
3 votes
1 answer
401 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 ...
redshoe's user avatar
  • 437
5 votes
1 answer
3k 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 ...
GeorgeC's user avatar
  • 8,298
3 votes
1 answer
829 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 ...
ElizB's user avatar
  • 157
0 votes
1 answer
56 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 ...
mconn's user avatar
  • 107
1 vote
1 answer
138 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 ...
Neil's user avatar
  • 143
8 votes
1 answer
697 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....
redshoe's user avatar
  • 437
2 votes
1 answer
260 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 ...
sean aye's user avatar
1 vote
1 answer
93 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 ...
Anna's user avatar
  • 11
1 vote
0 answers
471 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 ...
Stefan's user avatar
  • 4,474
9 votes
1 answer
620 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 ...
QGisNoob's user avatar
8 votes
3 answers
8k views

Adding layer to group in layers panel using PyQGIS? [duplicate]

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()...
the-jfry's user avatar
  • 125
0 votes
0 answers
133 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 ...
damo's user avatar
  • 121
2 votes
0 answers
208 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 ...
WezeW's user avatar
  • 21
1 vote
1 answer
614 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 ...
user435421's user avatar
1 vote
0 answers
777 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 ....
Tejas Rane's user avatar
0 votes
1 answer
728 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 ...
Faz B's user avatar
  • 475
2 votes
1 answer
1k 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 ...
pac_co's user avatar
  • 547
1 vote
1 answer
332 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 ...
Curtis's user avatar
  • 213
2 votes
0 answers
252 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 ...
gwenger's user avatar
  • 121
0 votes
1 answer
268 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 ...
John's user avatar
  • 175
1 vote
1 answer
47 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 ...
Nohan Lang's user avatar
2 votes
1 answer
2k views

ArcPy Select (Highlight) All Features In a Specific Group Layer in Current Map [closed]

I am using ArcGIS 10.4.1. Can you let me know how I can Select/Highlight (I am not going to run any attribute query against the layer and this is just for visualization) all features listed under one ...
user1106951's user avatar
  • 1,498
34 votes
0 answers
3k 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 ...
Tom Chadwin's user avatar
  • 5,968
2 votes
2 answers
3k 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.
Pramod's user avatar
  • 121
12 votes
4 answers
9k views

Moving layers in the Layer Order Panel using PyQGIS

The following is a simple setup containing a group with three layers. The code I use adds a new layer at the end of this group: root = QgsProject.instance().layerTreeRoot() group = root.findGroup('...
Joseph's user avatar
  • 76.3k
1 vote
2 answers
214 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% ...
Losbaltica's user avatar
  • 1,479
3 votes
1 answer
731 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 ...
Ben's user avatar
  • 919
2 votes
1 answer
502 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 ...
Luke's user avatar
  • 63
1 vote
0 answers
224 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 ...
Jotter's user avatar
  • 153
1 vote
1 answer
215 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....
ulrich's user avatar
  • 1,170
2 votes
0 answers
410 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 ...
Hannes Ledegen's user avatar
2 votes
0 answers
364 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 ...
Antonio Armas Díaz's user avatar
5 votes
1 answer
378 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. ...
Knightshound's user avatar
  • 4,480
5 votes
2 answers
6k 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 ...
Cdrice's user avatar
  • 63
0 votes
1 answer
4k 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.
user70650's user avatar
  • 139
10 votes
3 answers
4k 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 ...
Stefan's user avatar
  • 4,474
0 votes
1 answer
101 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. ...
Mehdi's user avatar
  • 781
0 votes
1 answer
114 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. >>...
Dean7's user avatar
  • 358
1 vote
0 answers
503 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:...
Falcoa's user avatar
  • 335
5 votes
2 answers
1k 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.....
Jochen Schwarze's user avatar
3 votes
1 answer
4k 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 ...
Laura Orzel's user avatar
4 votes
1 answer
469 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 ...
HaroldH's user avatar
  • 151
3 votes
0 answers
327 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 ...
user66309's user avatar
1 vote
2 answers
4k 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 ...
Jack Walker's user avatar