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
4
votes
1answer
3k views

Programmatically get selected layers from the QGIS legend?

My QGIS plugin exports all layers from QGIS to KML format. Now I'd like to export only selected layers. However, I can't find any hints in QGIS API. Is it possible to iterate over selected layers in ...
0
votes
0answers
89 views

Updating Symbology on Layer using ArcPy?

I've been trying to update the symbology of a layer on my Python script. The layer that is to be updated shows the percentage of an age range in each region across a county. I have created a test ...
2
votes
0answers
41 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 ...
1
vote
2answers
338 views

Leaflet GEOJson marker pins are not a Layer?

I currently have the following code which is used to display a series of GEOJson marker pins on a LeafletJS 1.5.1 map and it also displays a KML layer which can be toggled on and off using a checkbox. ...
0
votes
1answer
203 views

Needing to pan screen for graphics to update in ArcMap?

Every time I add or change a layer or zoom in/out, I need to use the pan tool to move the screen a little bit before the screen updates. Is there a setting that should be changed to fix this? I ...
1
vote
1answer
48 views

Information of two attribute tables together in one

I need the information of a layer with track points (X and Y coordinates) and the information of a polygon layer (area) together in one layer. The problem is that the two attribute tables have no ...
2
votes
0answers
51 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. ...
0
votes
0answers
48 views

QGIS 3 set the active layer [duplicate]

I need to select a specific layer in the layer tree before I run my python script. I have tried Activating layer by its name in PyQGIS? with the code registry = QgsProject.instance() layer = ...
1
vote
2answers
4k views

Clipping lines vector layer to polygon layer in QGIS?

I have a lines layer (a contour map of mean annual precipitation in Africa) that I want to clip to a polygon layer (shape of the African continent). However every time I use the clip tool (Vector-->...
4
votes
1answer
175 views

Show feature count with PyQGIS 3

After adding a layer to my QGIS project with a Python script, I want to show the number of objects beside the layer in the layer window. I have tried this code, which is from Show feature count of ...
1
vote
0answers
81 views

Layer files not drawing properly in ArcMap? [closed]

I have a co-worker who had his windows user credentials changed after coming on full time. After this change we noticed an issue with a series of layerfiles not drawing properly when brought into ...
0
votes
1answer
34 views

Using ArcMap Group Layer? [closed]

I am working with multiple grouped layer files that when in the layer file they do not have any of the normal properties. For example, when I click on the properties for an individual layer within the ...
1
vote
0answers
115 views

Setting layer blending as additive with opacity in Kepler GL for Python

I'm using KeplerGL in python (in a Jupyter notebook) to plot polygons on a map with different layers. After setting the layers, I've tried to find where can I edit their opacity when adding them up, ...
1
vote
1answer
124 views

Adding HTML code into ArcGIS Desktop?

I'm trying to find a way to add API layers from this HTML code into the MXD file of ArcGIS Desktop 10.3. The HTML file located in my pc: G:\desktop\y\html <html xmlns="http://www.w3.org/1999/...
-1
votes
1answer
484 views

Setting layer properties using Python Init function?

Is it possible to set the layer properties Python Init function field programmatically? I've been looking through the qgis 2.2 api but can't seem to find anything on it.
2
votes
1answer
488 views

Copying fields from one layer to another in QGIS

I am new to QGIS. I need to create hundreds of shapefile layers with the same fields but different points and attribute values: The first shapefile one I created with 12 fields (columns). To create ...
0
votes
0answers
41 views

How can I create a layer for each unique field item in a shapefile using Arcpy

#Introduction and imports import arcpy, string from arcpy import env #User Inputs: layer, field name, output workspace (optional) strTargetLayer = arcpy.GetParameterAsText(0) strFieldName = arcpy....
1
vote
0answers
109 views

Provide MbTiles from GeoServer with mutliple vector Layers

Is there a way to serve pbfs tiles by loading a mbtiles file (multiple vector layers) into the GeoServer? For this we used before Klokantech TileServer Gl to offer big mbtiles (osm vector tiles) to ...
2
votes
1answer
122 views

QGIS - Rendering Order: Layer Order > Symbol Levels > Feature Rendering Order

A similar question was already asked two years ago, but no answers were provided, things may have changed, or if not developers may now consider this something for a future version. Can I change the ...
1
vote
1answer
98 views

Create a new polygon layer containing the extent of a layer [duplicate]

I am trying to create a difference layer from an overlay layer and a base layer. The base layer (colored orange in the image below) has a larger extent than the overlay layer (light brown) when zoomed ...
2
votes
1answer
84 views

QGIS 3.4 Modeler: Select a band of a raster layer for processing

As model input data I select a raster stack with three bands. The first processing tool just needs specific bands of this stack which I like to select in the input dialog. I create a 'Raster Layer' ...
0
votes
0answers
19 views

How to generate a layer of points from a database of lat, long using qGIS? [duplicate]

I am a programmer but I am new in QGIS. I have a database of some hundreds of points with lat, long information. It is an excel spreadsheet. How can I create a layer of points of each lat, long from ...
12
votes
3answers
2k 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" that ...
9
votes
2answers
2k views

Data Source of layer changing after copy/paste in Table of Contents of ArcMap?

I run into this situation all the time; I often just copy layers and groups of layers in the TOC of one Map Document and paste then into the TOC of another Map Document. For the most part this ...
0
votes
1answer
59 views

OpenLayers, problem with WFS service and “outputFormat”

I have a service and I tried to paint his layer on my map: http://www.ign.es/wfs-inspire/unidades-administrativas?REQUEST=GetFeature&SERVICE=WFS&VERSION=2.0.0&COUNT=1&srsName=EPSG:...
4
votes
3answers
358 views

Intersect multiple layers at once QGIS

I'm very new to QGIS and am just learning the intersect function. I have about 10 polygons that overlap (not perfectly) and one layer of about say 15 points. I want to know with which of the polygons ...
0
votes
0answers
38 views

Updating .aprx file after creating new layer using ArcPy?

I use arcpy function XYTableToPoint_management() to create a new layer vessel_coordinate into the current active map, as shown below. But when I list the layers in this map (map.listLayers()), I hope ...
1
vote
2answers
465 views

How to update projection of layers in Geoserver using gsconfig

Im using following code to find projection of layer from geoserver.catalog import Catalog cat=Catalog("http:// localhost:8080/geoserver/rest") myResource = cat.get_resources(store='storeName', ...
4
votes
1answer
666 views

Selecting features from multiple layers for export QGIS 3.6

I have multiple features I want to select over multiple layers and then export these selected features to a new layer. The 'Multiple Layer Selection' plugin is not supported by the QGIS 3.6 so that ...
6
votes
1answer
2k views

Is it possible to set different scale dependent visibility for one layer classifications?

I'm working on a sewer and water network, so I need to set different scale visibility for primary, secondary and tertiary network.
1
vote
0answers
43 views

Layer adding/removing using PyQGIS? [closed]

I'm working on a plugin which fetch data from Vector Layers and I'm trying to update the informations whenever a fitting layer is added or removed. At first, I tried with QgsProject.layersAdded and ...
1
vote
1answer
107 views

Define coordinate system for layers with data from mdb-file (Microsoft Access Database) in ArcMap

The point data set from table points in the Microsoft Access Database (mdb) file data.mdb is visualized as layer points.lyr in ArcMap 10.6. The coordinate system is known. However, it is not allocated ...
1
vote
1answer
54 views

Changing ArcMap Display Order of Elements in Same Layer File?

I have a bunch of polygons in a layer file and I want to reorder those polygons so one of them is "sent to back". I am using ArcMap 10.5.
1
vote
0answers
54 views

Why did QGIS 3.6 crash? [closed]

I have clipped a raster file using a shapefile as a mask. And I tried to export the new layer and modified the projection from WGS 84 EPSG:4326 to EPSG: 102022 Africa Albers Equal Area Conic. When ...
2
votes
0answers
73 views

Standalone error using Python 3: layer.isValid is False [duplicate]

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 ...
3
votes
1answer
140 views

Using expressions to relate column to layer style in QGIS?

I have a QGIS project with N layers, each pointing to the same CSV file with columns "1_1, 2_1, ..., N_1". I would like each layer to refer to its respective column (Layer 1 -> column 1_1, and so on) ...
0
votes
1answer
36 views

Have GraphicsLayer working but now need to put it in or convert to FeatureLayer (JavaScript)

I have a GraphicsLayer working for "Regions" and the corresponding popup template information for the staff within each region (below). function fillRegionMarkers() { // Create ...
0
votes
1answer
437 views

Unchecking “Scale symbols when reference layer set” by default in ArcMap?

In Layer Properties > Display, the "Scale symbols when a reference layer is set" is checked by default, and 90% of the time I don't want/need the symbols scaled. Is there any way to change the ...
0
votes
0answers
195 views

Combining several layers together using Google Earth Engine?

I have executed Google Earth Engine code for filtering areas with linear regression details for a specific time period. The countries were filtered as separate layers. I need to combine those layers ...
1
vote
1answer
103 views

Getting TypeError: <type 'str'> from arcpy.mapping.ListLayers()?

I want to use ArcPy to turn on the labels for a layer. I use this code but it fails and returns an error. import arcpy mxd = arcpy.mapping.MapDocument(r"C:\Users\P51\Desktop\testingLABEL.mxd") ...
2
votes
1answer
50 views

Getting layer label from ArcMap Table Of Contents?

How do I get a layer´s label from the TOC? I can´t find a similar question and ArcGIS Help tells nothing about it. I have searched even in other knowledge bases but with no success. I need to get ...
0
votes
1answer
221 views

Determining number of layers in .mpk file and then enumerating it using ArcGIS Runtime SDK for WPF? [closed]

I need to determine number of layers in a given .mpk file and then enumerate it using ArcGis Runtime SDK for WPF 10.2. Can anyone provide me some link or code/snippet?
1
vote
0answers
56 views

Why did not I manage to reproject layer?

I have a global land cover map, which has the following properties: Name ESACCI-LC-L4-LCCS-Map-300m-P5Y-2010-v1.6.1 Path C:\QGIS\ESACCI-LC-L4-LCCS-Map-300m-P5Y-2010-v1.6.1.tif\ESACCI-LC-L4-LCCS-...
2
votes
1answer
236 views

CartoDB displaying layers and infowindow? [closed]

I just started testing and using CartoDB, and I am dealing with this problem on a map that has been published already: http://deix.is/ueberwachungsstatistik/ I have made minor corrections to the ...
0
votes
2answers
998 views

Getting feature coordinates from dynamically loaded layer using OpenLayers?

i want to load the coordinates of a point that is stored inside a vector layer and the vector layer is stored inside a layergroup. I do load the vector layers dynamically to the layergroup "Runs". So ...
2
votes
0answers
42 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 (...
11
votes
3answers
23k views

Getting extent of layer in QGIS?

Is there a way to get the extent (bbox) of a vector layer in QGIS? I see that I can update the extent, but I am looking for the actually coordinates of the extent.
3
votes
2answers
2k 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
1answer
394 views

QGIS Print composer: Point symbols not correctly displayed in legend

My problem: I have a point layer with a symbol size of 15958 meters. On the map they are all correctly displayed. When designing the map in the print composer and adding a legend, the symbols in the ...
1
vote
0answers
49 views

QGIS Multi distance buffer units do not align with the main layer

I have a buildings shapefile of Beijing. I know the projection WGS_1984_UTM_Zone_50N WKID: 32650 Authority: EPSG So I would like to create multi distance buffer from a central point but when I do so, ...

1
3 4
5
6 7
32