Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

17
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
789 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 ...
4
votes
0answers
246 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
751 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
0answers
148 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 ...
3
votes
0answers
76 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 ...
3
votes
0answers
49 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
600 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
58 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
144 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
185 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
0answers
88 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
562 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
159 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
0answers
596 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
622 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
0answers
364 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
579 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
467 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
508 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
0answers
27 views

Standalone error using Python 3: layer.isValid is False

I am trying to create a standalone application using Python 3.7 and QGIS3.6. on Windows 10. I have installed QGIS using the OSGEO4W method, in the 64-bit flavour. My issue is that when I try to load ...
2
votes
0answers
35 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
34 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
40 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
96 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
0answers
173 views

Adding feature class and applying symbology in ArcGIS Pro using ArcPy?

Using an ArcPy script run from a toolbox, I want to import a feature class from a geodatabase into an ArcGIS Pro 2.1.2 map and then symbolise that layer based on a lyrx file stored on disk. Here is ...
2
votes
0answers
64 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
55 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
411 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
184 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
40 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
186 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
434 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
34 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
60 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
112 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....
2
votes
0answers
32 views

Derived field dropped from layer after restarting session in QGIS

This is a question about QGIS: I am working locally (no connection to servers or databases) with some maps data which I have imported as a non-visible CSV layer. These were merged against some census ...
2
votes
0answers
240 views

Create multiple text layers in QGIS from one text file

I am using QGIS 2.10 and I want to import data which I have on a text file. This text file is a csv comma separated with four columns (first raw is the name of columns): id,coordinate_y,coordinate_x,...
2
votes
0answers
43 views

“Complex located in the street”, due to messed up with CRS?

I need to combine two .shp files from two different sources. First one is 20 Expanded parcels during 2012-2017 by MVP-CA, which I use as the base layer. The second one is a point layer of the Housing ...
2
votes
0answers
41 views

Referencing layer object which was created as result of geoprocessing inside MXD without iterating through TOC?

I am creating a python tool which must be run in and open MXD in ArcMap (10.2, ArcFM). The MXDs we use have a LOT of layers, and often multiple layers from the same datasource. In the script I need to ...
2
votes
0answers
141 views

Openlayers3, vector data layer not visible after proceeding select onchange function

I input two polygon geojson layers, one is just boundary layer, another is the vectorlayer contains many attributes. I add map.on('click', function(evt), so users can click on the map, and the ...
2
votes
0answers
75 views

layer name duplicated and adds geometry type

When I add layers to my QGIS project, the name of the layer is listed in the Layers Panel. So far, so good. Recently QGIS changed and now the name is repeated and the geometry type is added. For ...
2
votes
0answers
172 views

PyQGIS: intersection of one node layer with two polygon layers

I´m new with the use of PyQGIS and I´m working in a problem applied to a water supply systems modelling, where I need to distribute the water demand in about 5000 nodes (network junctions). I´m ...
2
votes
0answers
580 views

Map gear's OL3-Google-Maps not showing the google layer even after adding google layer

I am using Map Gear's OL3-Google-Maps in order to load the google base map in OL3, I am adding like this //Before adding this i am removing the OSM base map tile layer and adding it. var googleLayer =...
2
votes
0answers
63 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 ...
2
votes
0answers
134 views

QGIS Atlas zoom to intersection between two different layers

I have two polygon layers, one is about different land owners boundaries and is used for atlas generation, and the other is about forests inside each property. In atlas generation sometimes i want to ...
2
votes
0answers
422 views

Arc Collector offline map - Copies of a map layer not downloading correctly

I have an Arc Collector project on the go and everything is working great except for one part of the offline mode. I encountered an issue with the offline version of the map displaying the layers ...