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.
482
questions with no upvoted or accepted answers
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 ...
14
votes
1
answer
763
views
Remove reference to raster layer object PyQGIS
I am developing a plugin to load a set of raster files on QGIS. When there is a large number of files to be loaded, the main UI freezes. So I use QgsTask to move the creation of raster layers to a ...
7
votes
0
answers
198
views
How to render features that are just outside the map canvas extent in QGIS 3.4?
I am trying to generate a cloudy mask, following the recipe in "Qgis Map Design 2nd ed. Edition". For the most part, I have it working.
But when panning around, the mask changes. And I think that ...
7
votes
1
answer
1k
views
How to load the layer style from PostgreSQL with Python
I would like to write a Python macro that upon opening my QGIS project file will reload the default style for each layer from the PostgreSQL 'layer_style' table. I have had a look at the documentation ...
6
votes
0
answers
285
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 ...
6
votes
0
answers
363
views
Applying graduated symbol renderer only on some features using PyQGIS
I have set up a graduate symbol renderer (QGIS cookbook - Graduated Symbol Renderer), and I am now trying to make it conditionally applied to some features only, depending on one (or more) attributes. ...
6
votes
1
answer
241
views
Sharing properties for SQL Server table in QGIS
I have a project where most of the layers come from a SQL Server. Most of the layers contain pointers to, and/or drop down list for, attributes so that there is consistency in data entry. This project ...
5
votes
0
answers
89
views
Filtered features in attribute table
Attribute table header of point layer says: "Features total 1200, Filtered: 1197, Selected: 0"
There is no layer filter active and also no filter is set in the layer properties under tab &...
4
votes
1
answer
684
views
Corrupt project? All the layers are blue
I opened my QGIS project which I often work on and all the layers were blue.
Something like that never happened to me before. I'm not sure what could've caused something like this. It's as if QGIS ...
4
votes
0
answers
611
views
Deleting layer with its source in QGIS 3
When I remove a layer, I usually don't need the source anymore either. If now using the QGIS remove layer... command, the layer, of course, is gone, but the source file remains in the data and has to ...
4
votes
0
answers
371
views
Merging multiple layers in folder with Graphical Model Builder in QGIS 3.10
I am trying to create a graphical modeler that merges all the layers in a folder. I am using QGIS 3.10.12. I saw in some post that there used to be saga:mergeshapeslayer but its not included in the ...
4
votes
0
answers
925
views
How to develop responsive layer container in Leaflet?
I'm using leaflet.js to develop a drawing layer tool with the full-page map. Users will draw a group of layers to describe an industrial product's parts.
The leaflet map and its layers should be fit ...
4
votes
1
answer
261
views
Adding layers to project from processing tool in QGIS 3
I'm trying to add some layers created during a process to a project.
There seems nothing to be added (TOC empty) but when I close QGIS it says:
This project includes one or more layers as temporary ...
4
votes
0
answers
315
views
Is there a way to ignore the "handle bad layers" error message without removing the layers from the project?
I have multiple QGIS projects that use the same base layers. I keep the QGIS projects on dropbox so I can access them from different computers. The base layers are scattered all over the place, on ...
4
votes
0
answers
276
views
Saving selected features by default in QGIS?
Is it possible in QGIS (2.14 or higher) to check by default "Save only selected features" when saving a layer and when features are selected ?
4
votes
0
answers
868
views
calculate total Miles in a polygon using Google Map
I have an application that allows the users to create any custom polygon layer on top of google maps, i am interested to know if their is a way to select the road layer in this polygon and then ...
3
votes
1
answer
87
views
How do I dodge overlapping line/polygon layers so that each is visible in QGIS?
I have 3 separate polygon layers that often overlap (image below). How do I change the symbology in QGIS to have them parallel to one another and not overlapping? (as shown in the second image below).
3
votes
0
answers
199
views
QGIS - How to request multiple layers in one WMS request?
How can I prompt QGIS to do a single WMS request of two layers instead of doing two seperate requests?
What I try to achieve per view:
https://myservice.org/wms?REQUEST=GetMap&...&LAYERS=a,b
...
3
votes
0
answers
235
views
An outside script to load layers in QGIS
I have been piecing code together from a number of posts to python outside of QGIS that will open a QGIS instance and then load specific data I feed it. I am not to familiar with using the QGIS API ...
3
votes
0
answers
198
views
Unavailable layer saved on computer as .txt file in my all projects (.qgz)
I have a problem with all my saved .qgz projects. I always worked with layers in projects only as .txt files, not saving them as shapefile, because I can make changes in .txt files (eg. add more ...
3
votes
2
answers
1k
views
Retrieving raster layer names from a raster stack R
I have a raster stack with many layers and I want to compare the layers that contain the maximum value using cell by cell comparison and finally retrieve the layer names from the raster stack on each ...
3
votes
0
answers
198
views
Creating similar project in QGIS
I use to create several projects very similar everyday.
For every project, I always do very repetitive task:
create and style vector layers (road, roof, buildings) with same style and fields ...
3
votes
0
answers
76
views
Setting comment for layer in the information from provider
How to add comment in Layer Properties, as shown in the screenshot below:
3
votes
1
answer
810
views
Dynamically changing fillColor variables in leaflet
When I want to style a polygon using a property the traditional way is to assign a function that returns a style object. Within that object you assign the fillColor property to a getColor function
...
3
votes
1
answer
330
views
Joining polygon layer attributes to line segments in QGIS
I've got a hexagon layer with data that I want to have joined to the available road network for the area so that the road segments have the attributes from the hexagon layer.
Each segment of the road ...
3
votes
0
answers
140
views
Linked layers / virtually merge layers in QGIS?
I have 20 different regions (let’s say 20 provinces). For each province I have let’s say 50 different attribute tables / layers containing data for the province (roads, bridges, towers, …). I would ...
3
votes
1
answer
309
views
Ignoring features outside the Area of interest in QGIS
I have layers (shapefile and GDB) in my map that have more than 100,000 features. I am not editing them but just using them as a reference. I work only in a particular small area at one time. But my ...
3
votes
0
answers
266
views
File path in Layer Panel in QGIS
How can I disable file path balloon in Layer panel? When I pass the cursor in any object in Layer panel I see an annoying long text showing the file path. I would like to disable it.
3
votes
0
answers
2k
views
Difficulty using ordinary kriging in QGIS 3
I have a shapefile with 65 data points. Each data point has a value for NO2 pollution. I would like to use kriging to create a grid of NO2 pollution values for the whole area. I have tried using ...
3
votes
0
answers
63
views
Compare 2 layers for like point features
I am looking for a plugin for QGIS that can compare 2 layers and tell me which point features are not common to both and which features are separated by a distance of say plus 1 foot.
I am working ...
3
votes
0
answers
118
views
How can I merge roads layers that do not align perfectly?
I have multiple roads layers for a given area and would like to merge them into one layer since they each have some unique roads the other layer does not show. However, the roads that these layers ...
3
votes
0
answers
251
views
Adding layer with ArcObjects from Python script tool?
I would like to load an AFR file into a data frame in a currently open MXD and the IMap.AddLayer function is not working as expected if the data frame in which to load the AFR file is activate.
And I ...
3
votes
0
answers
121
views
Trigger event after KML Layer completely loaded
I want to set the bounds of my map after a Vector (KML) Layer is loaded.
kmllayer.events.register('refresh', kmllayer, function(evt) {
map.zoomToExtent(kmllayer.getDataExtent());
});
In the ...
3
votes
0
answers
189
views
gdal_translate multiple GDAL_PDF_LAYERS_OFF entries gives error
The documentation says that GDAL_PDF_LAYERS_OFF takes a list of comma separated layers. Examples look just like what I am trying to do.
Executing the following gives an error
FAILURE: Too many ...
3
votes
0
answers
807
views
QGIS Space Syntax plugin with OSM data?
I'd like to do a space syntax analysis for a city I observe, but when I use the Space Syntax Plugin, the desired shapelayer roads doesn't show up.
It's an OSM vector layer, what do I have to do to ...
3
votes
0
answers
237
views
Is there a way to re-order how layers render in Mapnik?
I'm creating Mapnik stylesheets and I am trying to edit the order layers are rendered. I tried just moving the XML code, but that didn't seem to work. Are there specific steps to make some features ...
3
votes
0
answers
324
views
OpenLayers WFS Multipoint
I am modifying a OpenLayers setup which uses WFS capabilities to create a vectorLayer on a map to support multipoints.
GeoServer is setup to send points and multipoints however only points are ...
3
votes
0
answers
919
views
QGIS - Pop-up menu not displayed when right click on a layer in layer tree view
I'm developing a custom QGIS application using the QGIS API. I've been using the API provided with QGIS Brighton (Version 2.6.1) and have been developing the application in Python in a Windows 7 ...
3
votes
0
answers
882
views
How to make a model with more than 2 input layers for buffering and merging?
Would it be possible to add more inputs to Buffer and Merge? From what I can see there is a limit of two input layers per both. As far as I know this is possible in ArcGIS's Model Builder but from the ...
3
votes
0
answers
781
views
Leaflet filtering existing featuregroup
I have a leftleat map and i would like to filter the featuregroup i am displaying.
exp_colJSON = new L.geoJson(exp_col,{
onEachFeature: pop_col,
pointToLayer: function (feature, latlng) {
...
3
votes
0
answers
3k
views
Batch export to shapefile by attribute field in QGIS
I have a project in QGIS where I am creating a map of plants over a large area. I want to take the "Genus" field (of which there are 100 hundred values) and essentially create 100 shapefiles based on ...
3
votes
0
answers
520
views
Memory layer or QgsVectorFileWriter Error?
Currently this excerpt of code will not save to file (as it is supposed to).
The memory layer is visible and editable. Yet even when manually saving the layer, any priorly added features (geometries)...
3
votes
0
answers
891
views
Multiple image in OpenLayers
I'm trying to add multiple images to OpenLayers. I have the following (some code is excluded):
var images = [image1,image2,image3] // these are url images on my server
var image = new OpenLayers....
3
votes
0
answers
611
views
Layer tick boxes embedded in PDF map
Maybe this is more of a PDF question than a GIS question.
Today, I received a layered PDF map shown as a landscape A3, with a square map on the left, and with the map title, the legend, the scale, a ...
3
votes
0
answers
536
views
Getting layers from SDE with vba
Im running arcmap 9.1. i have the code that lists feature classes in a list box from the SDE. The users select from one list box and adds it to another list box. How do i get it to show the layer name ...
2
votes
0
answers
181
views
Automatically loading QML style file based on layer name in QGIS
I have a folder with ~100 QGIS-style files (.qml). Is it possible to tell QGIS that whenever I load a layer which has the same name as one of the .qml files apply that style instead of giving the ...
2
votes
0
answers
39
views
QGIS: Layer in layer tree list not visible
I have a new problem with QGIS 3.28.7 (OS Linux Mint 21.1):
I'm looking for a layer in the layer tree list in a QGIS project, and use for that purpose the search box (left side below) - the result I ...
2
votes
0
answers
68
views
Copying attribute table for each layer in QGIS
In QGIS I'm trying to edit attribute tables for a corn planting prescription. I have 50 layers (fields) that all need to have the same attribute table layout. Is there any way to create a template ...
2
votes
0
answers
51
views
Is it possible to connect data from various different layers?
I am working on a project estimating the population of a waterfowl. I have point and line data of where I did counts. I also have bathymetric data, data on vegetation cover, outlines of relevant ...
2
votes
0
answers
61
views
Creating two separate joined layers with same geometries in QGIS
I have two layers I want to have the same geometries much like when duplicating layers and joining the layer.
Essentially this is so I can have a large database within 'Habitats' and a smaller ...