Skip to main content

Questions tagged [layer-name]

The tag has no usage guidance.

0 votes
1 answer
49 views

Datetime from attributetable to layername in QGIS with Python

I have several (point) layers and I want for all of them this > Take the first value of the "datetime" column and append it on the layername. These point layers come from gpx track ...
Immo Woschny's user avatar
1 vote
0 answers
53 views

How to reference tables in a GeoPackage after changing layer name in QGIS?

While developing a Geodatabase with a lot of tables, reports etc. I decided to rename some layers in QGIS to help my client use the database. Now all my expressions like get_feature() won't work ...
Stefan's user avatar
  • 74
6 votes
1 answer
216 views

PyQt signal when layer name is changed in PyQGIS

Use this when layers are added, deleted, or their order is changed. Can you get a signal when a layer name is changed? QgsProject.instance().legendLayersAdded.connect(self.polygonList) QgsProject....
Jihyun Kim's user avatar
0 votes
1 answer
221 views

Name output feature classes with feature names with ArcPy

I would like to have my output feature classes take on the name of the input features list that I am looping through. Example output FEMA_Clip_09302022 The code below is currently creating output ...
ben's user avatar
  • 1
6 votes
0 answers
296 views

Making layer names in legend permanent using PyQGIS

While constructing a legend in Print Layout, I modify the names of the layers just in the legend, but not in the Layers panel (works as expected). Reproducible code is at bottom. However, after I ...
Andre Silva's user avatar
  • 10.3k
1 vote
1 answer
72 views

Set name for layer is not applied when it is loaded into QGIS window with modeler

I have added a script via the modeler. When executing the same code in the script, the layers are no longer added with the specified names in QGIS but with the name of tool that was automated. ...
miraculix's user avatar
  • 169
2 votes
1 answer
136 views

Getting all layer names from opened .qgz project file using PyQGIS

I have several .qgz project in different directories. I would like to get all the (displayed) layer names from each project. I tried several forms of code to get it from documentation, but it only ...
Daniel_P_GEO's user avatar
1 vote
0 answers
696 views

Finding current layer name in QGIS field calculator

How do I find the current layer name in the QGIS field calculator ? My goal is to mass process multiple layers and retrieve codes written in their names. I've find the "base_name_file" ...
Basmo's user avatar
  • 21
1 vote
1 answer
2k views

Batch proceeding with using expressions : naming the output derived by the input layername with changing one specific substring (QGIS 3.16 / Win10)

I'd like to run different batch processes and want to name the output derived by the input layername with only changing one specific substring when doing batch processes. I will conduct different ...
jaysigg's user avatar
  • 507
4 votes
1 answer
633 views

Retrieving layer name through part of its name with PyQGIS

I'm trying to edit various layers through a plugin. Since I (and others) will be using it for multiple projects with similar structures, I need to be able to retrieve the layer's name considering it ...
IKindaNeedAHand's user avatar
4 votes
1 answer
170 views

How do I trim the first 5 characters of several layernames at once?

Due to a clip-batchprocess and the tool "package layers" I end up with a geopackage with several layernames that start with "clip_". I would like to trim all the layernames by the ...
Enzo Baldini's user avatar
  • 2,347
1 vote
1 answer
466 views

Band Names in Google Earth Engine - Modis LST data

I am working with some modis LST data, and am running into the following problem: I am running two functions on the data, which I will need to combine later. For that reason, the band names need to be ...
Labguyvancouver's user avatar
1 vote
2 answers
764 views

QGIS function layer_name in fieldcalculator batch-mode

Working with QGIS 3.10, I want to use the @layer_name function in batch mode for all layers in a project. In individual cases, I do this via the field calculator. I also found the script for the field ...
user179040's user avatar
0 votes
1 answer
300 views

Display layer with its date in GEE

I want to display the image with its date as the layer name, but the following code does not work. var s2 = ee.ImageCollection('COPERNICUS/S2_SR').filterBounds(roi).filterDate(startdate, enddate)....
Javad Koohpayma's user avatar
0 votes
0 answers
35 views

Naming and Extracting shapefiles using value from attribute table using ArcGIS Pro ModelBuilder

I am working with ModelBuilder in ArcGIS Pro to create a process that will select a distinct shapefile from a feature class and create a new layer. This new layer will then be used to clip and extract ...
Peter O'Donnell's user avatar

15 30 50 per page