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.

262 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
18
votes
0answers
1k 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 ...
6
votes
0answers
811 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 postgres 'layer_style' table. I have had a look at the documentation ...
5
votes
0answers
112 views

How to view layers by data source in QGIS 3?

Is there a tool or panel in QGIS 3 that allows a user to view the map layers by data source? Similar to the List By Source view in the ArcMap Table of Contents? I thought I had come across it, but ...
5
votes
2answers
2k views

Publishing QGIS project on GeoServer?

Is there a way to prepare a project on QGIS with many layers and to publish it under WMS service on GeoServer?
4
votes
0answers
219 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 ...
4
votes
1answer
148 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 ...
4
votes
0answers
248 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
0answers
759 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 ...
4
votes
0answers
1k views

Add CAD Drawing Dataset into ArcMap using Python

I am trying to add an CAD Drawing Dataset into ArcMap using Python. Question is how to add a Auto-CAD .dwg file to ArcMap using Python Normally comes in as CAD file within a Group layer with: ...
3
votes
2answers
124 views

Automate filling of attribute table using QGIS?

I am new to QGIS and wish to automate my current process. In my project I have to open the attribute table of the batch_16 layer having 5 fields (date, checked_by, td_created, td_catagor and ...
3
votes
0answers
54 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 ...
3
votes
0answers
693 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
0answers
60 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
0answers
159 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
0answers
197 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 ...
3
votes
1answer
111 views

Geotools : Getting currently click layer from MapLayerTable

I've added a MapLayerTable to my application, and I'm loading multiple layers using shape files successfully. Now I would like to select features on the map of the selected layer. For this, I would ...
3
votes
0answers
93 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
0answers
574 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
0answers
170 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
2answers
214 views

Is there a way to apply the “Select features by rectangle\polygon…” function on multiple layers simultaneously?

I have put a map together using openstreemap data that is intended to be used as a base for different projects. However due to the amount of information (number of layers) the loading time is rather ...
3
votes
0answers
611 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
0answers
628 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
0answers
1k 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
1answer
415 views

Receiving data from php script for geoJSON TileLayer?

I want to get geo data as geojson for geojson tile layer requests in leaflet. I set up a geojson layer like this: https://github.com/glenrobertson/leaflet-tilelayer-geojson/ A php script answers ...
3
votes
0answers
370 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
0answers
608 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
0answers
488 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
0answers
511 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
1answer
60 views

Delete layer created during Buffer_analysis

I am trying to figure out how to delete the layer that is created during the Buffer_analysis line. I have searched all over the internet and have honestly tried about 100 different methods and cannot ...
2
votes
0answers
51 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
0answers
37 views

Difference in area of polygon and excised raster layer

I'm using QGIS 3.8. I have dowloaded GLOBCOVER 2009 raster land cover map and ecoregions shapefile. Polygon of ecoregions are used for mask to cut raster file. On new layer r.report was performed to ...
2
votes
1answer
30 views

Setting value to defaults Layer properties using PyQGIS 3

I have a vector layer, how to set defaults value in fields from the Python console. Layer Properties / Attributes Form / Defaults | In option: Default value |______________|
2
votes
0answers
32 views

Print composer forgets layers and puts them in wrong order

I have a project that mainly consist of PostGIS tables, but also some shapefiles. All in all I have some 50 layers in use in the project. The last days, I have had problems with the print composer. ...
2
votes
0answers
38 views

Slow retrieval of features

I have a vector layer with lots of features and I'd like to create a new layer in Python, containing only a subset of those features. To be more specific, I downloaded OpenStreetMaps data of Austria (...
2
votes
0answers
65 views

Leaflet layerGroup in ListMarkers

I am using the Leaflet List Markers Plugin for showing all features currently visible in the map in a list. Adding a single L.geoJson layer is no problem and works fine. Now I am using multiple ...
2
votes
0answers
45 views

Setting raster visibility on/off in QGIS Python API 3

I'm having a bit of a trouble migrating an algorithm from pyqgis 2 to pyqgis 3. The thing is I want to make visible and invisible a series of layers as I iterate through a list and render some images. ...
2
votes
0answers
27 views

Showing split polygons in different layers in QGIS

I used the split feature to split a polygon into two parts. Is it possible to show the split parts in sub-layers in the layers panel, so that I can hide them individually? I am using QGIS 3.
2
votes
0answers
106 views

QGIS - Label Rectangle/Buffer Overlapping Layer Above

When I apply a buffer or rectangle to my labels they show through the overlying layers. Is there any way to avoid this, i.e. arrange the label so it lies underneath the layers above? I'm assuming the ...
2
votes
2answers
1k views

Could not create destination layer

I am using QGIS 3.0.3 to make a heatmap using processing toolbox, kernel density estimation. The input I am using: I have generated centroids from polygons using Vector --> geometry --> centroids ...
2
votes
0answers
76 views

Use EXTENT of a LAYER in Mapserver to crop a layer?

I have two vector layers in my map file that are at very different resolutions, and overlap somewhat. This is causing me some issues, and I would be happy if the higher resolution layer simply ended ...
2
votes
0answers
57 views

Layers will not hold specified CRS?

I have several layers from OpenStreetMap that I wanted to convert to WGS 84 4326 due to my using several base layers that are assigned to that CRS. No matter what I try, whenever I check the layer ...
2
votes
0answers
488 views

Make linear regression in multiple raster layers

I have a question about multiple raster layer regression using R or Arcgis. I would like to predict biomass using some Vegetation Index - VI (NDVI, EVI, SAVI, OSAVI...). and generate R² and RMSE maps ...
2
votes
0answers
221 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(...
2
votes
0answers
43 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 ...
2
votes
0answers
199 views

Invalid layer when dragging tif archive in QGIS

I'm new in QGIS. I followed this video https://www.youtube.com/watch?v=6adjrQ_VtHQ&t=445s in order to make a bathymetric map, and when I drag the .tif appears this red window Invalid layer: GDAL ...
2
votes
0answers
153 views

Slightly misaligned layers in QGIS

I have three different layers loaded into QGIS. Two of the three are perfectly aligned, whilst the third is slightly off. Layer 1: Raster - LIDAR data from here Layer 2: Vector - Landscape feature ...
2
votes
0answers
473 views

Layered PDF from QGIS - Layers can't be turned on/off

I was following this guide on producing a layered PDF from QGIS, but somewhere along the way I seem to miss something. Exporting layers via the composer into a svg works fine, also loading the svg ...
2
votes
0answers
36 views

Arcpy: MXD automatically removing layer whose data source was overwritten

I have a large script that does many things, but at the end it creates a buffer whose output is an existing feature class that is overwritten. That feature class is the data source for a layer that ...
2
votes
0answers
64 views

Saving vector layer into KML across 180 longitude line

I am trying to save a vector layer into KML, however in this case some of the shape cross the 180 longitude line and the shape just breaks and become long lines.. (they are supposed to be circles) ...
2
votes
0answers
119 views

Loading of layer fails when using SPYDER

I configured SPYDER to work with QGIS by setting start file and setting additionally some system paths @echo off SET OSGEO4W_ROOT=C:\PROGRA~1\QGIS2~1.18 SET QGISNAME=qgis SET GRASSNAME=grass\grass-7....