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.

61
votes
3answers
74k views

Layers with same coordinate system should align/overlap in ArcMap but do not?

I put 4 different layers into my ArcMap document, but only one of them will show up on the map! I should be seeing the other 3 layers as well. When I do a Zoom to layer, I can see one layer, but I ...
26
votes
8answers
29k 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 ...
37
votes
6answers
34k views

Difference between map layer and spatial dataset (e.g. feature class, shapefile)?

What is the difference between a feature class and a feature layer? To me they seem very similar in concept.
20
votes
2answers
31k views

Adding shapefile or feature class as layer in ArcGIS Desktop using Python/ArcPy?

I am trying to automate various tasks in ArcGIS Desktop (using ArcMap generally) with Python, and I keep needing a way to add a shapefile to the current map. (And then do stuff to it, but that's ...
5
votes
2answers
10k views

Nearest distance between point layer and line layer, QGIS

I have two layers , line and point layer. I need to make line layer which connect all points to nearest line features? Is someone made a plugin for qgis? This is very important tool which missing in ...
28
votes
3answers
6k views

Organization and tidiness of multiple copies of layers? [closed]

Back in the days when I was in the university I had a "Organization and tidiness" problem – I was unorganized and kept my layers in different folders without distinct names and hence had multiple ...
12
votes
1answer
4k views

Sort layers in QGIS table of contents?

When I load a bunch of layers into QGIS from PostGIS, they seem to load in reverse alphabetical order. Is there any tools or plugins that allow you to quickly sort the QGIS TOC in a different order? ...
13
votes
1answer
11k views

Use python to add layers to TOC

I've been battling with adding layers to the TOC for some time now. I have managed to single layers added but need to loop through a folder and add all layers. Shapefiles I cannot get to add at all. ...
12
votes
1answer
13k views

How to add feature class to MXD with ArcPy (Python)? [duplicate]

I am using ArcGIS 10.1 and I am trying to add a feature class that I create to an MXD, so that I can join to it. This all needs to be done using Python. Is this possible?
4
votes
2answers
2k views

Adding feature class to Map in CURRENT project using ArcPy in ArcGIS Pro?

I want to add a feature class within a Geodatabase to a map in ArcGIS Pro (1.4.1) using arcpy. I am converting some python code from ArcGIS Desktop to ArcGIS Pro. This issue is very similar to: ...
15
votes
2answers
16k views

How to perform a true GIS clip of polygons layer using a polygon layer in R?

I would like to do a true GIS Clip in R of soils polygons using a series of single boundary polygons, but I cannot find an R function to properly do it. It should work just like the clip function in ...
11
votes
2answers
14k views

Changing data source path involving feature dataset in *.lyr files using ArcPy?

How can one change the source data paths for every layer file in folder X using arcpy? I've followed Updating and fixing data sources with arcpy.mapping as best I can, yet all I get is an unhelpful ...
9
votes
7answers
43k views

How to export/save a layer composition to GeoTiff?

I want to export/save a QGIS composition of raster/vector layers to a GEOTIFF or ECW raster with high resolution (20 000 * 20 000 Pixel).
4
votes
2answers
3k views

Changing color of symbol in UniqueValuesSymbology object using ArcPy?

I have an template mxd I reference with several pre-defined layers. The only variable I need to modify is the color of certain symbols in the layer. I have tried to modify and dig around the Symbology ...
4
votes
2answers
2k views

Creating sub sections (groups) of layers in QGIS?

I am working on a project regarding Fish species and fishing methods with many layers. This creates confusion. I would like to create layer sub sections (groups) like the following: Fish Species ...
20
votes
6answers
14k views

How to improve rendering performance of a very large shapefile?

I have a polygon shapefile that has a 100MB .dbf, and 500MB .shp file component. The reason it is so large, is that it is classified as a landbase for a whole district. Everytime I view the file in ...
16
votes
3answers
6k views

Using ArcPy to get layer symbology?

Since ArcGIS 10 comes with the ArcPy package, I'm wondering it is possible to use ArcPy functions to get Symbology (i.e color, width...) of a layer?
2
votes
5answers
8k views

Is there any way to extract coordinates of a road segment using QGIS?

I add my own road vector data on top of Google Maps using the OpenLayers plugin with QGIS. The vector layer is generated using a PostgreSQL DB. Is there any way to extract coordinates of a road ...
11
votes
3answers
2k views

How to ignore “handle bad layers” in QGIS?

I have a QGIS (2.14.3-Essen) project that I use both at work and at home. I keep all but two layers with the project. The two remaining layers are very large - a DEM and hillshade totaling more than ...
7
votes
2answers
2k views

Symbols above labels in map QGIS

I didn't find any answer to this question. In this post it is said that labels are by default on top of everything else: How to place labels under a vector layer?. But it was for 2.2, and years went ...
7
votes
2answers
10k views

Using Google Maps as layer in ArcMap?

Can I use Google Maps as a layer in ArcMap? Is it possible?
13
votes
5answers
18k views

Removing feature layer using ArcPy script?

I have an ArcPy based script where I'm trying to intersect two layers where one layer must have its centroid in the other layer. Since I need to know that one layer (feature_layer below) includes ...
8
votes
1answer
6k views

what dictates the drawing order of overlapping features with in the same layer/feature class in ArcGIS?

I know that in ArcGIS drawing order is controlled by layers, and if I want to make some features be drawn on top of other features I can use definition queries to separate them into different layers ...
4
votes
2answers
4k views

Setting layer visibility in QGIS Python API?

Im having a problem toggling the visibility of map layers in pyqgis (2.4). I have a simple interface, just the map canvas, no legend, and basically a radio button that toggles between two raster ...
29
votes
5answers
15k 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 ...
9
votes
2answers
8k views

How does Zonal Statistics work exactly?

I'm a bit confused on how the zonal statistics tools work in QGIS (either the 'Zonal Statistics' tool under the Raster tools from the QGIS geoalgorithms toolbox or the 'Raster statistics from polygons'...
5
votes
1answer
3k views

Exporting each layer in map to separate image using ArcPy?

I have a mxd file with multiple layers I have to export to PNG/JPG. I would like to create a script which turns on layers one at the time before they are exported. So far I have come up with the ...
8
votes
1answer
1k views

Changing display name of layer with PyQGIS?

I did a batch processing of several vector layers and now the display name for every file is "dissolved" when accessing the layer.name() function in QGIS. I read in this answer from underdark to ...
7
votes
1answer
6k views

Using ArcPy to rename MXD layers?

I have a MXD with some layers that have parentheses in them. I'd like to rename them via script. Is this a valid approach? import re map = arcpy.mapping.MapDocument("CURRENT") layers = arcpy.mapping....
4
votes
2answers
918 views

CSV text files loading error / crash in QGIS 2.18.8

I got a problem when I try to load tab-separated text files in the "Create a layer from the delimited text file" tab (that one with de comma symbol). After normally selecting the X and Y fields and ...
1
vote
1answer
4k views

How to resolve error “Handle bad layers” in QGIS?

I'm new to QGIS and have been seeing what it can do for me – seems good. I imported shape file data from a UK Ordnance Survey data file and saved the file in a new folder. It was very good, doing all ...
22
votes
3answers
9k views

How to refer to another layer in the field calculator?

Is there a way to select an attribute from a polygon layer and insert the value into a virtual field of a point layer using "within" in the field calculator? CASE WHEN within($geometry, ...
18
votes
5answers
20k views

Using layer loadstart & loadend events in OpenLayers 3?

OpenLayers 2 has these layer events "loadstart & loadend." What is equivalent to them in OpenLayers 3? While a vector layer loads and is rendered, I need to show a loading icon.
8
votes
3answers
11k views

What is Python equivalent of ModelBuilder's Iterate Feature Selection?

My data consists of two featureclasses: Points = points representing trees Polygons = Polygons representing % canopy area by area. Each polygon in the FC has a % canopy measurement in the attributes....
13
votes
4answers
9k views

Getting path of project, or layer file in PyQGIS?

I am generating new raster files from vector layers on a project. I would like to save them in the same directory as the project or layer files. How do I find this path using PyQGIS?
3
votes
1answer
2k views

Create new polygon layers from postcodes latitude & longitude

First at all, I want to say that I am geocoding enthusiastic but have no formal background on GIS. I'll do my best to use the right wording and make myself clear what I am striving for. Also the only ...
9
votes
1answer
7k views

Delete layer from ArcMap using Python

Problem: I'm trying to loop through all my layers looking for layer named "CADAnnotation". If the layer exists then remove the layer from the mxd Notes: Running from Stand-Alone script (ie. NOT ...
8
votes
2answers
6k views

Turning on labels of layer using ArcPy?

I am unable to turn on the labels within my Python script: import arcpy mxd = arcpy.mapping.MapDocument(r"Mypathhere") #Map document reference layer = arcpy.mapping.ListLayers(mxd, "Layername")[0] #...
6
votes
1answer
3k views

How to load multiple vector layers into QGIS' map canvas using python scripting?

I am trying to write a standalone script in python to create a QGIS map canvas. The vector layers I am attempting to load are Shapefiles. Currently, I am able to load each vector layer, add them to ...
4
votes
2answers
10k views

Changing data source of layers with ArcPy?

How do I change the data source of all layers in a map document using ArcPy and Python?
3
votes
1answer
606 views

Change default layer name in QGIS 2.18

In QGIS 2.18, new vector layers resulting from QGIS tools have a default name related to the corresponding tool. For example, when I perform the "Lines to polygons" operation (under QGIS Vector menu), ...
2
votes
1answer
1k views

Getting list of valid layers in TOC using PyQGIS?

To get the list of TOC layer names I used the approach suggested here: for layer in QgsMapLayerRegistry.instance().mapLayers().values(): print layer.name() But this method is not reliable due ...
2
votes
1answer
468 views

Adding .tif layer to .mxd using ArcPy and showing RGB composite rather than stretched?

There seems to be no way to change the renderer using ArcPy. Is there a workaround? I am trying to show the RGB composite: tif="test.tif" newlayer=arcpy.mapping.Layer(rootDir+"\\"+tif) # here is ...
2
votes
1answer
1k views

PyQGIS script works in QGIS console but produces no error or output as standalone

I'm trying map rendering with stand alone script, so I have small script which works fine in python console provided QGIS, however when I run same code in stand-alone script it executes without error, ...
1
vote
2answers
4k views

Defining which layer (overlay) is displayed on Leaflet map?

I have 7 layers overlay on a base map, i need to define which layer is selected (active,displayed,shown) on the map. var overlays = { "AL HOUDA Espaces_Verts": alhouda6_layer, "...
1
vote
2answers
609 views

Duplicating layer and applying filter using PyQGIS?

Is there a way, using Python, to duplicate a layer in QGIS as many times as the single occurrences of a variable contained in a field and with a filter applied on the duplicated layer based on the ...
7
votes
1answer
850 views

Is there a limitation on the numbers of layers that can be displayed in QGIS?

I have been looking for an answer to this question for the last several weeks, so hope that someone here has encountered the same issue and has a viable solution to my problem. I am currently using ...
7
votes
2answers
6k views

How to get layer type in OpenLayers 3?

I would like to iterate through all of the added layers in an ol.Map instance and only select the vector layers. So far I could get the individual layers with the a property of the resulting object of ...
7
votes
2answers
966 views

Fill a polygon with a graphic file

What I want to do is to fill a polygon (country) with a graphic file in any format (jpg., bmp., png.). It should look like this: I'm aware that GIS soft is not proper for such a operations but ...
4
votes
2answers
2k views

Where is the “Add vector layer”-button in GRASS 6.4.4. plug-in QGIS 2.10.1?

I've just downloaded and installed the new version of QGIS 2.10.1 with GRASS 6.4.4. When opening a new GRASS mapset and importing layers, I missed the button "Add a new vector layer". I've updated ...