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 toppics for a map.

Filter by
Sorted by
Tagged with
1
vote
0answers
33 views

Download OSM tiles footprints as a layer

Is it possible to download a shape layer (or similar) with the OSM tile bounds from somewhere? Not the actual tiles, but only their polygon representations (for example-some area have about n tiles in ...
0
votes
2answers
564 views

How to extract Z data from a shapefile from points on another separate layer QGIS

I have two layers; one with elevation data (m), and the other with roads (derived from points via points to polyines). I want to run a spatial query that basically extracts the elevation data from the ...
3
votes
1answer
121 views

Seeking tutorial to split group of layers in QGIS

I am trying to split a group of layers, but I can't find anything online about it. I have a layer with a paper clip on it (in the sidebar). I can't figure out how to break it. Could you link me to a ...
0
votes
0answers
36 views

Select and Delete from Multiple Layers at once in QGIS

I have imported a CAD drawing into QGIS as a GPK. It has imported everything that was in CAD. Now I want to delete features that I don't need. See below: I know how to turn each layer on and then ...
0
votes
0answers
94 views

Plot different layers from RasterStack object in R

Is there any way to automatically plot each layer from a RasterStack in R. I'm a little bit lost in the vast amount of options. There is tmap, mapview and also leaflet... For example if you have a ...
2
votes
2answers
96 views

Populate field in one layer with corresponding value from another layer

I have 2 existing vector layers: 1 point, 1 polygon. In almost all cases the points overlap a polygon. The point layer has multiple features (1,000+) with an existing field which I need to ...
1
vote
1answer
29 views

Features disappear from layer

I have a problem with my newly created layers. I have drawn a lot of features and most of them disappeared during the weekend while the pc was turned off. They are not visible in the drawing, in the ...
2
votes
1answer
2k views

Openlayers custom (local) OSM tiles layer with limited extent

I know, how to add an overlay layer by specifying my own URL. But what if the overlay layer extent is not as large as base layer - e.g. overlay layer is only avaliable for one country and not for the ...
0
votes
1answer
359 views

CartoDB Vis - Multiple layers mouse interaction?

My map visualization has two layers: 1) A city layer where the cities are represented as standard markers. 2) A county layer underlying the cities which has county level aggregate data. The layer ...
1
vote
1answer
114 views

Use expression to only keep 1 layer in the legend

When I print my project, that includes different layers, I always end up with all the layers in the legend. What I want when printing is to only show 1 layer, that always has the same name "Werken". ...
0
votes
0answers
106 views

'Layer is not valid' error in QGIS for delimited text layer

I am trying to add a CSV that contains lat/long coordinates as a layer to a project in QGIS but I keep getting a 'layer is not valid' error. Here is a picture of the data preview before I click Add: ...
0
votes
1answer
27 views

arcpy.MakeFeatureLayer_management function not creating feature layer in ArcGIS Pro

I'm attempting to run a simple tool script in ArcGIS Pro 2.4 that creates a feature layer from an existing layer. The script creates the feature layer just fine if running the script in PyCharm, as ...
0
votes
1answer
2k views

Adding several layers to table of contents in ArcMap using ArcPy

I am already able to add individual layers to ArcMap table of contents using the following codes: # Adding the layer to the table of contents mxd = arcpy.mapping.MapDocument("current") df = arcpy....
1
vote
1answer
76 views

Reset particular layer in Google Earth Engine

I have two layers in my GEE and I want to reset one of them base on my selector. I have the code as following: Map.layers().reset(['UHI']); Map.addLayer(UHIAdded, {opacity: 0.5}, 'layer1'); Map....
4
votes
1answer
471 views

GetFeatureCount gives same result after deleting a feature

This is my code: num1 = layer.GetFeatureCount() layer.DeleteFeature(1) layer.SyncToDisk() num2 = layer.GetFeatureCount() print num1 print num2 For some reason, num1 and num2 are the same number. Why?...
0
votes
2answers
57 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 ...
2
votes
1answer
585 views

Converting format and CRS of many shapefiles to kml (or csv, json..)

I tried to use QGIS to transform shp files in kml and to translate the CRS to use in a google maps application. My problem is that I have a lot of shp files that i can open in a bulk manner by drag ...
0
votes
0answers
17 views

Problem extracting sub-layers from certain geospatial PDFs

I have been extracting certain data from geospatial PDFs using Bluebeam Revu but have run into some issues with a couple specific PDFs. For the sake of this question consider the 2019 Aspen/Sopris ...
1
vote
4answers
4k views

Using ArcPy to copy layer in ArcMap TOC, rename copy, and paste back to TOC?

How do I make a copy of a layer in the ArcMap TOC (passed to my script as a Feature Layer), assign the copy a new name, set a definition query on it, and then add the copied Feature Layer back into ...
1
vote
1answer
59 views

Spatial reference data from all layers in MXD

I have a MXD with many group which has many layers. I have tried to get coordinate system data from all layers with the code from Iterating through layers in mxd and describing coordinate system. So ...
2
votes
2answers
75 views

Dissolving layer with two or more fields in QGIS 3

I want to dissolve the layer based on two or more fields through "Processing modeler". How to set and where to set those fields? When I use "Dissolve" tool separately I can choose fields that I want, ...
3
votes
2answers
307 views

Layers visibility- code error in Arcpy

I try to turn of all the layers, using this code using ArcGIS 10.3.1: import arcpy from arcpy import env env.workspace = r"G:\desktop\gis" for mxd in arcpy.ListFiles("*.mxd"): mapdoc = arcpy....
1
vote
1answer
41 views

Ordering FeatureGroups

I'm using Leaflet right now and I have issues on ordering a list of FeatureGroups. Each feature group is either an imageOverlay or a list of Features I tried using bringToFront / bringToBack and it's ...
5
votes
1answer
9k views

Getting feature count of QgsVectorLayer using PyQGIS?

I'm using this code to get features from QgsVectorLayer QgsVectorDataProvider* provider=theVectorLayer->dataProvider(); if(!provider) { return; ...
1
vote
1answer
231 views

OpenLayers - remove all layers of map apart from base map layer?

What i need is to delete all layers from the map without removing the base one (in my case OSM) Here is some code new Map({ layers: [ new TileLayer({ source: new OSM() }) // <== ...
1
vote
1answer
55 views

Designing small letters under words in QGIS

I want to design small letters under words in QGIS when I designed the labels (attach picture). Is there any way to do it?
1
vote
1answer
144 views

ArcPy - List layers and list fields in one code

I am trying to combine ListDataframes, ListLayers and ListFields in one ArcPy code. I can do it one by one (first list layers in one code, and then list fields in second code), but I am trying to do ...
31
votes
5answers
18k views

Change style properties of several layers simultaneously?

I'm working on bulk data. I have a few hundred GeoTIFF images imported into a QGIS project, and I'd like to modify their layer properties - things like the no-data-value, transparency of certain pixel ...
1
vote
2answers
61 views

Adding label to OpenStreetMap

I've eaten at this amazing Brazilian BBQ restaurant in Calgary and I noticed its not on OpenStreetMap (OSM). How do I add a label to OSM? I am currently in the process of learning how to use QGIS ...
29
votes
8answers
33k views

Georeferencing vector layer with control points using QGIS?

I have a non-georeferenced vector layer that I need to be georeferenced. With raster layers the task is easy and straightforward, but I have no idea what should I do with my vector layer. I have a few ...
3
votes
1answer
34 views

Road Names - Multiple Lines and Single Lines [closed]

Fairly new to the GIS world. I have been creating maps for my employer using OS Vector map data. Up until recently everything has been going smoothly - I only use vector based data so that I can ...
3
votes
1answer
367 views

Determine layer visibility with PyQGIS

From some other posts I found that i can determine a layers visiblity by something like #assume lyr_name the layers name to determine visibity for l = QgsMapLayerRegistry.instance().mapLayersByName(...
1
vote
1answer
48 views

ArcGIS export map to PDF with layers symbology error

I am trying to make a PDF with layers. If one of my shapefiles symbology is set to categories, unique values, as in a states shapefile, it wont let me turn off each state; it groups it. Is the only ...
1
vote
0answers
86 views

Determining if layer is visible using PyQGIS

I am working on a plugin 'Stripchartdrawer' current commit https://github.com/sickel/qgisstripchart/tree/ba3afd7184e33331b5af38111e91dbb9b6a2d1c0. One of the features in this plugin is to be able to ...
11
votes
2answers
29k views

Leaflet: How to move the layer-control menu?

This might be a silly question, but I could not find a documented way to achieve this. I'd like to freely position the layer-control menu, probably to the top left near the default zoom-in/out button....
2
votes
1answer
2k views

How do I edit an existing ArcGIS .lyr file?

I have downloaded a layer file. The layer names are long, and I want to change these to approved abbreviations, for ease of data input. For instance, the layer file values look like this: A1.1.1 ...
1
vote
1answer
60 views

Adding OpenStreetMap layers to QGIS [duplicate]

I have OpenStreetMap (OSM) data that I've loaded into a Spatialite database. How do I get it to look like OSM? I shouldn't have to add and style each layer individually but I can't figure out what ...
3
votes
1answer
46 views

Getting list of layers when opening a QGIS project on a standalone app?

I am trying to make a standalone QGIS app to read a .qgs file for rendering an image based on the vectors using LayoutManager. The problem is that when I try to print project.mapLayers() I get an ...
1
vote
1answer
55 views

QGIS 3.4. Saving Layer Status (ON/OFF) for printing different Layouts

if i have a project with a lot layers (20-30) and i want to print different map layouts is there a possibility to save different status of which layer is on or off? So for example: Map Layout 1: ...
1
vote
2answers
2k views

Download tile layers for use offline

I would like to download tile layers in this form: {atlas_name}/{z}/{x}/{y}.png Because I want to use them offline with my leaflet map. However, I can't find what are the approaches to download ...
2
votes
2answers
716 views

Zooming to specific loaded layer using PyQGIS [closed]

I'm trying to zoom to a layer that was loaded with a script, just like manually would be done by right clicking the layer and pressing the "Zoom to Layer" button. I've tried several ways and the ...
2
votes
1answer
74 views

Raster appears unaligned with other data layers?

We use the Dallas-Ft Worth rasters for our internal processes. We use publicly-accessible data to superimpose markings representing runways and runway ends (the dark gray line and green dots on the ...
2
votes
1answer
40 views

Identifying layers under cursor in QGIS?

In QGIS 3.8, I've loaded hundreds of layers (georeferenced individual images), which are named by filename. I'm looking for a way to click on the map and query what image (i.e. what layer in the "...
6
votes
0answers
411 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 ...
0
votes
1answer
80 views

Layers Loading then Disappearing

I have layers that have been loading fine in my ArcMap project but now they load in for a second, and then when annotation begins to load in, everything but the annotative text goes white. So the ...
3
votes
1answer
127 views

QGIS 3.8 - forest leaftype symbols

I'm pulling forest data from OSM through overpass API to QGIS 3.8. Then I have a new layer with a simple fill (filled with color). I would like to use the same symbols as in OSM instead of simple ...
5
votes
1answer
229 views

Unbolding Layer names in QGIS?

I am currently working with QGIS 2.0 in an Ubuntu environment. I have a quite large project with many different layers and layer-groups. By default the layernames are in bold fonts and the groups are ...
1
vote
2answers
78 views

PyQGIS Close Layout Window

I have a script that iterates through layer subgroups in QGIS 3.6, opens a layout with the with the same name as the subgroup and exports a PDF. What I am struggling with is to close the active layout ...
0
votes
0answers
20 views

Aggregate layer not loaded on GeoNetwork

I try to load an aggregate layer WMS from GeoServer on my GeoNetwork as base-map (i have changed the config-viewer.xml file) but an error displays that the tile is not found. Moreover when I try to ...
1
vote
0answers
35 views

GeoServer - compute from native bounds does not work correctly [closed]

I am currently working on the topic GeoServer, so I am very new. For some layers it is not possible to calculate the BBox via the button "compute from native bounds". What can be the problem? What ...

1 2
3
4 5
32