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
1
vote
1answer
111 views

Changing description of layer using ArcPy?

I would like to change the file description with a python code on ArcMap (10.6). I could not find a way to do it or resource explaining it. Do you have any idea?
2
votes
1answer
333 views

QGIS default style stored in PostGIS public.layer_styles table won't load with data from other schemas

In QGIS 2.18.15 (and 3.0), I cannot get default styles stored in 'public.layer_styles' in a PostGIS database to load automatically when adding a new layer to the map. I believe the problem is that ...
1
vote
2answers
281 views

OGR says that my data source is invalid when I use the method QgsVectorLayer in PyQGIS

I am begining with PyQGIS and QGIS in general. I wanted a way to create a layer via python, so i downloaded "Plugin Builder" and starded coding. Here's the code : def activatePlugin (self): ...
2
votes
1answer
46 views

Turning All layers on for all data frames in ArcMap using ArcPy?

I am using ArcMap 10.2. I used the following code to turn all the layers on for the Main Map data Frame. dFrame = arcpy.mapping.ListDataFrames(current_mxd,"Main Map")[0] for lyr in arcpy.mapping....
1
vote
1answer
273 views

Using Select by Attribute with multiple layers in ArcGIS Pro?

I'm trying to find "Signal" in a field named "Maintained by" but there are quite a few layers. I do not want to go into every single layer and change "Signal" to "Private." Does anyone know a ...
1
vote
0answers
63 views

Reload the dimension values of a layer with OpenLayers 4

I'm looking to reload the dimension values of a layer with OpenLayers 4. My problem is when my App calls the GetCapabilities of the layer, the dimensions received are for a certain datetime, for ...
1
vote
1answer
244 views

Build Radio Button in QGIS Edit Widget Properties

My question is similar to Choosing multiple options from QGIS Check Box or Value Map for feature attribute? I have 3 categories in a row, i want to make this selection in form of radio button so that ...
0
votes
1answer
116 views

Autoread XY coordinate in 1 field

I'm not familiar with coding. In QGIS, I would like field attribute to auto populate X and Y value and combine in one field just like highlighted below, I know that if auto calculate value in ...
0
votes
1answer
252 views

How do I find the unique id of a layer in ArcGIS Online

Perhaps I am confused but I want to use a shared layer from my ArcGIS Online account in a Web AppBuilder script similar to this: const view = new MapView({ container: "viewDiv", map: new ...
1
vote
1answer
355 views

Paths layers disappear on map after saving in QGIS 3

I am quite new to GIS. I am working on a historical map with three sets of points. When I create a path between those points with the "Points to Path" tool (via Ctrl+Alt+T), it shows up nicely. ...
2
votes
1answer
2k views

Using custom icons for Leaflet Layer groups?

I have searched posts and tutorials and could not find the answer to my specific application of this feature Almost all the examples use L.marker to simply place a marker on the map using various ...
2
votes
2answers
211 views

Performing QGIS layer reprojection?

I am very new to QGIS and GIS itself. I have a shapefile, which was created using Pulkovo 1995/GK zone 9(EPSG:20009) and I want to transform it to new CRS, specifically WGS84(EPSG:4326). So the main ...
1
vote
0answers
34 views

Getting layer information + sending it via socket io to a client [closed]

I am new to QGIS and I was wondering if there was a way to get the information from a layer (its name for example), and to send it to a client via a python-socket.io server? A this very moment I have ...
1
vote
0answers
239 views

Save layers and auto save: QGIS

When I save the shapefiles and the project the shapefiles do not save so I loose a lot of work every day. The problem starts when qgis starts to delay the save of the layers after long time in edit ...
-1
votes
1answer
38 views

Is there a way to list all the layers created using the arcpy.MakeFeatureLayer_Management() method? [closed]

The question I am seeking an answer to: If I make several layers with MakeFeatureLayer_Management(), is there a way to programmatically search for and list the names of the layers created? (Without ...
3
votes
2answers
297 views

not able to add delimited text file layers

Whenever I try to add a layer from a csv file, I run into a weird problem. The layer is not showing up on the map and the icon that shows up next to the legend entry is different than what normally ...
0
votes
1answer
160 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 ...
2
votes
1answer
171 views

Counting the number of layers in a GeoPackage

I'm trying to figure out a best practice for determining what are the names of layers in a GeoPackage and counting the total number of them. I've been able to list all the layers of a GeoPackage ...
2
votes
1answer
480 views

Import public online map layer into QGIS

I am collecting data about mobile phone coverage in my city. This is one of the public maps I found online. In the source code of the website owner I found the following ressource which is the visual ...
1
vote
1answer
53 views

Make Raster Layer with Overlapping Images

I am trying to set up a template which will display different maps based on layer definitions. One of the layers is a raster layer. Is it possible to combine a number of overlapping images into a ...
0
votes
1answer
457 views

List all layers in MXD and whether or not it is broken

I have a script that lists all layers in an MXD and I have a script that lists all broken layers in an MXD (http://desktop.arcgis.com/en/arcmap/10.3/analyze/arcpy-mapping/listbrokendatasources.htm). I ...
0
votes
1answer
82 views

MakeRasterLayer failing with error codes 000622 and 000628?

I am importing a raster file and then saving the layer file. This script has worked fine previously, but after changing some input file paths, it has stopped working. Arc finds the inputs, but then ...
0
votes
1answer
778 views

Request a WFS layer using OpenLayers

I am new to OpenLayers and GeoServer... can someone please help me to show a WFS layer... here is my code: const vectorSource = new ol.source.Vector({ format: new ol.format.GeoJSON(), url: ...
1
vote
1answer
729 views

Shapefile Layer display filtering in QGIS?

I use QGis 3.0, created several layers, each with multiple attributes. I want to display only objects which have f.e. "123456789" as value in a specific attribute to print it and repeat with the next ...
1
vote
0answers
43 views

Copy polyline from 2D to 3D?

On the right is a single row feature class polylineZ (with elev data) displayed on a new 2D map with no base map. On the left is that same feature copied (using drag from contents pane) to a new 3D ...
0
votes
0answers
194 views

Draw Polygon according to an external GeoJSON file (on a server)

I'm programming a map with OpenLayers (4.6.5) and I have a GeoJSON file stored on a server and I want to use it. This GeoJSON file represents Polygons. Before I was working with Points and all was ...
0
votes
1answer
134 views

Building OpenLayers map with many layers efficiently?

I have built a WMS parser which I am using to retrieve all layers from a WMS url to be able to automatically build a OL map with those layers inside. Actually, I see I can do it in two modes: MODE 1:...
2
votes
1answer
261 views

Duplicating layer-table in GeoPackage layer in QGIS3

How can I create new Geopackage layer with the same styling and fields, but empty of features, within same dpkg file. I have yet, houses.dpkg and within this dpk I have created houses and fences ...
1
vote
0answers
62 views

Hidden layer with zoom level

I would like to display some layer according to max and min zoom levels. I tried with the method min / max zoom and resolution but without success. I specify that I use vector tiles. Here is my code:...
2
votes
2answers
602 views

Creating atlas of different layers on the same place (QGIS)

I know the atlas function in QGIS can automate creation of maps of the same layer (say vegetation type) of different places (say natural reserves). Is there a possibility to automate the creation of ...
5
votes
1answer
1k views

pyQGIS returns invalid layer with QgsVectorLayer in QGIS 3

I have the following problem : I've installed all pyQGIS environment on Windows 7. I work with 64 bits version of Python 3.6 and QGIS 3.0 and PyQt5. My Windows paths are ok. My objective is to create ...
0
votes
0answers
95 views

Attribute Table is empty

I am trying to point all layers in MXD files to a different database server. Databse server is Oracle type. Most of the layers consist of views. After changing the datasource programatically for all ...
0
votes
1answer
45 views

Possible/Feasible to download parcel map and add up to 20 layers

Novice who just downloaded and installed QGIS a few minutes ago. Currently reading about the functionality of QGIS but thought that I may be able to obtain immediate insight in reference to my ...
0
votes
1answer
36 views

Conceptual Question: Best Way to Map Multiple Layers [closed]

I'm familiar with using QGIS, so this is not a technical question; it's more of a conceptual question. I'm mapping attendance of households at different meetings, and I specifically want to show which ...
0
votes
1answer
173 views

How do I export a KML for one layer in a KML file that has multiple layers?

I'm accessing the Index plots for Ordnance Survey map sheets, provided as a KML by the Charles Close Society here: https://www.charlesclosesociety.org/indexes (scroll to the bottom of the page for the ...
1
vote
1answer
281 views

Update feature class' data via Python Script Tool without removing layer from .mxd?

I have an mxd with 20+ Feature Classes all with varying degrees of 'formatting' (i.e. most are organized in groups, some are filtered with definition queries, and all have their own unique symbologies)...
4
votes
2answers
425 views

How to copy layer(s) to clipboard in QGIS 3.0?

In QGIS 2.18 there was plugin "Copy layers and groups to clipboard". It was allowing just in two clicks to copy/paste layer(s) with style and etc. from one project to another. Is there something ...
1
vote
2answers
83 views

Adding Layers file to MXD using ArcPy- Code Error

In this code i try to add layer files- only if the first character in the name file, is a numbers to a MXD file, but an error happened: import os,sys,fnmatch,shutil,arcpy rootPath = r"G:\desktop\...
0
votes
1answer
472 views

Adding Layers file to MXD using ArcPy

I tried to add several layer files to MXD file. when i run this code no error rise- but only one layer file added to the MXD and all the other 34 layer files in the workspace aren't added to the map. ...
1
vote
1answer
160 views

OpenLayers WMTS reprojection

I have a WMTS service URL, which gives me three layers in projection - WGS84_Pseudo-Mercator (tileMatrixSet). It's very easy to add them using this guide -> https://openlayers.org/en/latest/examples/...
3
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 ...
1
vote
1answer
31 views

Loading processed layers in QGIS

I am testing out Qgis (3.0) and have been unable to figure out how to reload a processed layer. For example I have a simple attribute query from some land use zonings where land use = 'PR'. The ...
0
votes
1answer
270 views

Accessing four extent values of layer using ArcObjects in C#?

How can I access the four extent values of a layer shown in the below image using C# in ArcObjects? Below is the code that i am using to achieve it but "AreaOfInterest" is null. public ...
0
votes
0answers
115 views

Resetting Layer Extent in MXD file using ArcObjects and C#?

When I change data source properties of a layer using ArcObjects in C#, I lose the extent set for that layer. How can I reset the layer extent? Below is the code in which I am resetting database ...
0
votes
1answer
67 views

Understanding Layers files with same name after MakeFeatureLayer and SaveToLayerFile in ArcPy?

I am trying to convert several shapefiles (in folder G:\desktop\Project\lyr) into layer files using this python code: import arcpy,os from arcpy import env env.workspace = r"G:\desktop\Project\lyr" ...
1
vote
1answer
333 views

Changing Layer DataSource using ArcObjects?

I want to change data source information of a layer. Lets say I have a MXD file in dev env configured with dev environment datasource details like server,database,username,password and I want to use ...
2
votes
0answers
77 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 ...
4
votes
1answer
202 views

Rule-based styling road crossing in QGIS

Styling/symbolizing (rule-based option) a roads vector layer with intersections of streets with different styles I have incorrect (and annoying) overlaps of the different symbolization styles. is it ...
1
vote
0answers
338 views

Error Code -2147483647 when combining vector layers

I am trying to combine multiple vector layers in QGIS using the "merge vector layers" function from the dropdown lists (vector -> Data Management Tools -> Merge Vector Layers) All data are ...
1
vote
2answers
2k views

Displaying different attributes within layer with individual colors in QGIS 3? [duplicate]

I am trying to display different soil types within a geological soil layer with individual colors per each type of soil. As of now it is displaying all as the same color.