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.

0
votes
1answer
56 views

QGIS - Transfer feature selection with new attributes to PostGIS

I have three shapefiles which represent a conduit network with valves and hydrants. The pipe grid consists of line features in a shapefile and the valves and hydrant each are a point layer in a ...
1
vote
0answers
56 views

Show layer results in canvas for QGIS 3.0.2?

For both vector and raster layers, previously in QGIS 2 there was an option asking whether you want layers to be shown in the canvas ("show result in canvas"). Now in QGIS 3.0.2 "Girona" this option ...
1
vote
0answers
27 views

Setting COLORRANGE for rasters with variable minimum and maximum value in MapServer?

I have a series of rasters picturing the same phenomenon/product eg. the accumulated precipitation and I use the same mapfile for all. Naturally the minimum is always zero but maximum is variable from ...
0
votes
1answer
445 views

How can I create layers depending on a property?

I have a .js file with coordinates for internships: var internships = [{ "features": [ {"type":"Feature","properties":{"category":"entretient","Name":"green"},"geometry":{"type":"Point","...
1
vote
1answer
82 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
259 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
256 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
38 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
218 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
53 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
197 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
106 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
174 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
297 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
188 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
29 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
187 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
33 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
245 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
0answers
16 views

Shapefile not displaying in ArcGIS Desktop? [duplicate]

I don't manage to display both my shapefile of countries and points in ArcGIS. I have a shapefile of countries in the world, at a rather precise level (with sub-divisions) that is apparently ...
0
votes
0answers
123 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
151 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
352 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
51 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
386 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
68 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
582 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
560 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
41 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
162 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
126 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
223 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
59 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
0answers
191 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
2answers
469 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
882 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
88 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
44 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
32 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
151 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
229 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
345 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
71 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
367 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
0answers
132 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/...
2
votes
2answers
830 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
224 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
103 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 ...