Questions tagged [layers]
A layer is a collection of information. It contains specific elements of a gis in a specific presentation method (e.g raster or vector layer). Layers can be edited separately in order to create individual topics for a map.
2,298
questions
12
votes
2
answers
10k
views
What are the min and max values of Map.addLayer on Google Earth Engine? [closed]
I'm starting to play with Google Earth Engine. Following https://developers.google.com/earth-engine/image_visualization I see its possible to set min/max values.
May I ask the meaning of this and ...
12
votes
3
answers
3k
views
Create Layer from Selected Features tool: How is the list of features stored?
In ArcGIS Desktop, there is a tool called Create Layer from Selected Features. Using this tool, I can convert a selection to a layer in ArcMap.
It's my guess that there is a "list of features&...
12
votes
4
answers
2k
views
How many layers are too many layers in ArcMap?
I work on ArcGIS using a Citrix virtual software connection at work. It is dreadfully slow at times, and without any changes to the MXDs I'm working on, one minute ArcMap can be operating at a ...
12
votes
3
answers
23k
views
Setting Definition Query on ArcPy layer from shapefile for ArcMap
I am trying to determine options to set a layer definition query using ArcPy.
I know that it is possible when using arcpy.mapping.ListLayers().
However, in this scenario I am loading in ...
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('...
12
votes
3
answers
14k
views
How to copy paste layers from one QGIS project to another?
Using QGIS 2.4, how can I copy one or more layers (with its properties, style, and the path of the source data) on QGIS and paste it in a different .QGS project?
I tried to make this, clicking in a ...
12
votes
3
answers
7k
views
Automatically reloading raster layers if source is changed in QGIS using PyQGIS
How to automatically reloaded raster layer if source is changed? (The path is the same but inside source file are changes)
I use:
qgis.utils.iface.mapCanvas().refresh()
but layer not refresh.
#
#...
12
votes
1
answer
13k
views
Adding Properties to a feature in Google Earth Engine
Is there a way to add a property to a feature in the GEE. I know that you can edit existing properties with set(), but haven't found a way to add a property.
12
votes
2
answers
15k
views
Changing data source path involving feature dataset in *.lyr files using ArcPy?
How can one change the source data paths for every layer file in folder X using arcpy?
I've followed Updating and fixing data sources with arcpy.mapping as best I can, yet all I get is an unhelpful ...
12
votes
2
answers
1k
views
Fixed QGIS layer symbol size in layer legend
When a layer symbol is defined with map units or "meters at scale" unit, it is sometimes shown in the legend at a very small scale, preventing to see the details. Or if we zoom in the map, the legend ...
11
votes
3
answers
5k
views
Check if layer exists in QGIS Project using PyQGIS
In QGIS, what is the simplest python code (least possible) to verify if a particular layer is PRESENT or ABSENT in the Map Layers list?
NOTE: The script shouldn't trip an error IF the layer is ABSENT.
11
votes
2
answers
5k
views
Turning on/off ALL selected layers in QGIS
When I select few layers in the QGIS 3 Layers Panel and press Space - only one of the selected layers is turned off/on. I want to turn them all. How to do that?
11
votes
3
answers
11k
views
Setting layer visibility with PyQGIS
Im having a problem toggling the visibility of map layers in PyQGIS (2.4). I have a simple interface, just the map canvas, no legend, and a radio button that toggles between two raster layers.
Layers ...
11
votes
2
answers
3k
views
Force geometry type in mixed geometry WFS layer in QGIS?
I have an external WFS source serving mixed geometry types - in other words, I have no control of the source. When adding the layer QGIS sets the geometry type to line and thus I am unable to style ...
11
votes
1
answer
2k
views
Determining which QGIS layer has spatial index
I would like to loop over all layers within a QGIS project and determine which layer don't have a spatial index and cause QGIS to slow down.
I tried the method hasSpatialIndex() but this always ...