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
0
votes
0answers
14 views

GeoServer layer disappearing from Leaflet map at max zoom?

I am developing an application that uses GeoServer + Leaflet + PostGIS. I created my database-based layers within GeoServer. As a basemap I am using OSM. When the maximum zoom occurs with the active ...
6
votes
6answers
2k views

How to create multiple QGIS layers from multiple text files?

I have a few hundred txt files (each representing a line of a river bed profile) that I need to load as (point-) layers in QGIS. Partial example: 4504764.8331;5374251.3024;397.8871;2 4504764.7761;...
0
votes
0answers
7 views

OpenLayers 2 how to load overlay a raster image as they are scrolled into view

I am overlaying a raster map over an OSM base with variable opacity here https://www.aeolian.org.uk/mapexample/slider.html. I want this to work over a larger area, so want to load neighbouring raster ...
3
votes
2answers
61 views

Doing difference between two layers in PyQGIS?

I'm developing a plugin where I would like to get some features from one layer (a), do a difference on them with the entirety of a second layer (b), and put the results into a layer I've created in ...
0
votes
1answer
32 views

Add a local GeoJSON file as a layer with GeoJsonLayer

I turned a state boundary feature class into a geojson file called region2_boundary.json: { "type" : "FeatureCollection", "crs" : { "type" : "name", "properties" : { "name" : "...
1
vote
1answer
20 views

Standalone python script - Qgis - QgsVectorLayer points to wrong feature class in gpkg

GPKG file has multiple featureclasses in it. I create a layer to a specific featureclass using QgsVectorLayer but it always points to the first FC in the gpkg file. This is a stand alone python ...
0
votes
1answer
513 views

Creating 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","...
2
votes
0answers
33 views

Filtering value layer according to condition of other layer using QGIS?

I have 2 point layer: layer A have 500 point; layer B have 50 point and these point have coordinate duplicate with some point in layer A. I want to find these 50 point out of the 500 points in layer ...
1
vote
1answer
457 views

NetCDF layer (.nc) appears flipped and rotated in QGIS

I'm trying to import NetCDF layers with environmental information to QGIS and they appear flipped and rotated In the top-left you can see the Europe coastal line I was using, in the bottom-right the ...
4
votes
0answers
1k views

Adding CAD Drawing Dataset into ArcMap using ArcPy?

How do I add a Auto-CAD .dwg file to ArcMap using ArcPy? Normally comes in as CAD file within a Group layer with: annotation, point, line, polygon, multipatch this is the code I have so far import ...
1
vote
0answers
24 views

Can QGIS load filtered layers on open from geopackage file?

I have some external processing (FME from SAFE software) which generates a geopackage file with a set of tables. Is it possible to load a set of filtered tables from a geopackage file when opening ...
2
votes
1answer
218 views

Shortcut to show / hide the layers as per the sequence?

Does anyone know any shortcut to display / hide the layers as per the order? For example, F1 displays and hides layer 1, F2 displays and hides layer 2. I found the shortcut to hide all the layers and ...
1
vote
0answers
16 views

Leaflet map on click detect layer

I added a click event to the map. But when I click on a layer on the map, I want to disable this click event. I have to write a condition in the map click event. How can I find if there is a layer ...
0
votes
4answers
85 views

Merging layers using QGIS?

I have a series of plot points in the UK. All I want to do is overlay a simplified map of the UK, ideally just an outline. I obtained some simplified colour maps from the OS website, added as a ...
3
votes
2answers
232 views

Is there a way to apply the “Select features by rectangle\polygon…” function on multiple layers simultaneously?

I have put a map together using openstreemap data that is intended to be used as a base for different projects. However due to the amount of information (number of layers) the loading time is rather ...
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 ...
2
votes
1answer
60 views

Delete layer created during Buffer_analysis

I am trying to figure out how to delete the layer that is created during the Buffer_analysis line. I have searched all over the internet and have honestly tried about 100 different methods and cannot ...
0
votes
1answer
78 views

CartoDB - Non-animated heatmap, but won't let me layer under

I have a simple heatmap layer that is not animated. I want to move a choropleth layer above that heatmap layer, but Carto will not let me, as it thinks my Heatmap layer is animated. Is there any way ...
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/...
8
votes
2answers
2k views

Force geometry type in mixed geometry WFS layer in QGIS?

I have an external WFS source serving mixed geometry types - in other words, I have no control of the source. When adding the layer QGIS sets the geometry type to line and thus I am unable to style ...
1
vote
0answers
47 views

qgis2web - show specific layers in layer list

Is there a way to display specific layers in layer list when exporting map with qgis2web plugin? I have created a map with bunch of layers like roads, names of places, rivers etc. but i don't want ...
0
votes
2answers
67 views

Adding GeoJSON tile set to an existing map

I'm confused on how to add my GeoJSON tileset to an existing map built with a default style. Do I add the GeoJSON by ID or by style? Here is what I'm working with now.l Added .geojson to Tilesets as ...
0
votes
0answers
19 views

Changing data source on all layer files in folder using ArcPy?

I have a folder of .lyr files and I want to change the source on all of them from one file geodatabase to a different file geodatabase. Feature dataset and feature class names will remain the same in ...
2
votes
1answer
37 views

Setting value to defaults Layer properties using PyQGIS 3

I have a vector layer, how to set defaults value in fields from the Python console. Layer Properties / Attributes Form / Defaults | In option: Default value |______________|
1
vote
0answers
43 views

QGIS layers panel doesn't show symbology

In the layers panel, the symbology next to the layer name doesn't show. Reinstalling QGIS has not fixed the problem. These are PostGIS point layers that draw on the map perfectly fine. The symbology ...
4
votes
3answers
1k views

QGIS split vector layer gives me GPKG files but I need shp files

QGIS 3.6.0 I am new to QGIS software and not very technical on its deep workings. I am trying to split a .shp file using split vector layer. I need .shp file outputs but it auto creates .gpkg files. ...
1
vote
0answers
37 views

Point layer problem

In QGIS 3.4 I've got a map with 2 vectors and 1 spreadsheet with point data that works fine. I successfully added a second set of point data from a separate spreadsheet. I can zoom to the layer but I ...
1
vote
1answer
49 views

Adding vector layer in QGIS with standalone PyCharm script?

I've been struggling with a standalone script in PyCharm, trying to add a vector layer. I've set up PyCharm with Python3.7 to work with QGIS3 using: http://spatialgalaxy.net/2014/10/09/a-quick-guide-...
2
votes
1answer
22 views

Fit view to ImageStatic size

In OpenLayer 5, i've a long rectangular SVG image (like 7000x600 px) as main layer. I need to limit the view and pan only to its bounds. I tried the code below, but when zooming the layer can't panned ...
1
vote
0answers
21 views

Multiple layer data in one delimited text layer

I am a GIS beginner. I'm exporting several point coords from a Mysql database, and importing into QGIS using delimited text layer. I need to plot all the points and set the symbology to distinguish ...
1
vote
0answers
35 views

QGIS 3.4.11: Viewing issues: Categorised symbology in point layer expands Legend in “Manage Layers Toolbar”

When I apply categorised symbology to the point layer the legend in Manager Layers Toolbar view expands to the point I cannot see any other layers in the project. This doesn't happen with other types ...
1
vote
1answer
64 views

QGIS, creating layer from PostGIS : add a style

I am creating some layers in QGIS using PostgreSQL connection. I have a python plugin doing the load of the layer in Qgis, this part of the code looks like this : uri = QgsDataSourceURI() ...
0
votes
4answers
936 views

Creating layers for each attribute value via Arcpy script

I'm having some trouble starting this script. Not sure how to start, as I have to create/output layers for each attribute value from a certain column named that has integers. They are all unique ...
6
votes
2answers
11k views

Nearest distance between point layer and line layer, QGIS

I have two layers , line and point layer. I need to make a line layer which connects all points to nearest line features? Did someone make a plugin for qgis? This is very important tool which missing ...
0
votes
1answer
18 views

Translating one raster's contents closer to another’s with each at different scales using QGIS?

I'm working with multiple raster images, each in the Albers Equal Area Conic projection: one of the mainland US, one of Alaska, and one of Hawaii. I'd like to translate the Hawaii layer to be closer ...
1
vote
2answers
24 views

Batch importing same layer into multiple mxd files using ArcPy?

I am new to python. Will someone help me with the code to import the same layer into all the arcmap files in a folder on my desktop? I used the code below to import the layer into one map but I ...
0
votes
1answer
41 views

Getting maximum extent of 2 different layers for map display using PyQGIS?

In the QGIS 3 layout, I would like to display two layers and for this I need their combined maximum extent. So far I've got: import os import processing from qgis.core import * from qgis.gui import * ...
0
votes
2answers
262 views

How to extract Z data from a shapefile from points on another separate layer QGIS

I have two layers; one with elevation data (m), and the other with roads (derived from points via points to polyines). I want to run a spatial query that basically extracts the elevation data from the ...
2
votes
1answer
51 views

Change vector layer symbology PyQGIS 3?

I'd like to change the symbology of my vector layer and can't figure it out how to read the documentation. I would like to have an polygone with an orange outline, a dashed fill style and an orange ...
1
vote
1answer
46 views

Interpreting JSON lat/lon data from an ESRI interactive map?

I got access to some data from an ESRI-based interactive map and I am trying to make sense of the data. In particular, I'd like to extract the geometry of some shapes. Below is a snippet of the JSON ...
1
vote
2answers
337 views

.mdb is not a valid layer and can not be added to the map

I know this question has been asked quite a few times before but I couldn't find an answer that suited my situation at all. So this is what happens. Currently, I am using ArcGIS to map the sewer ...
1
vote
0answers
15 views

Show QGIS layer definition (qlr) filename in my project not the source file it was created from

I have a QGIS project with multiple qlr (layer definition files) in it which all source the same original data but all have different styling, labeling and filters applied. But when I bring these qlr ...
2
votes
1answer
383 views

Using MakeFeatureLayer in ArcPy?

I am trying to add a feature layer to my map document as the output from my python script. The goal is to limit the number of fields in the attribute table to a pre-defined list. I am able to add ...
4
votes
1answer
63 views

Change drawing order in QGIS?

I have two layers (street name and address numbers). I try to sort layers where street names covers the address numbers. Unfortunately I cannot success because address numbers will always covers ...
1
vote
1answer
77 views

Use expression to only keep 1 layer in the legend

When I print my project, that includes different layers, I always end up with all the layers in the legend. What I want when printing is to only show 1 layer, that always has the same name "Werken". ...
1
vote
1answer
45 views

Overlapping topology layer issue on mapping crops QGIS

Trying to map cotton fields of CA using data from this site https://nassgeodata.gmu.edu/CropScape/ Can not get my map to have a topographic underlayer without the other crops showing up as well ...
1
vote
1answer
288 views

Order of coordinates for extent property in layer Tile?

I was just going through the documentation for OpenLayers 3.11 and came across Tile(). Now it accepts a lot of properties: opacity, preload , map, etc.), but the one I am interested in is extent. ...
0
votes
1answer
22 views

Saving Google Earth Postal Code Layer

In the typical primary database in layers window, under more-> US Govt, there is a Postal Code Boundaries layer. I have been trying to find a way to save this, and ultimately add it to a folder of my ...
2
votes
1answer
261 views

Make Feature Layer from Query Layer yields an ArcPy error?

My project starts from a MXD containing Query Layers. I have to prepare the data in this "MasterMXD" for use in an offline application. Working with ArcMap 10.2.1 for this project. My Python script ...
1
vote
2answers
75 views

Joining Attributes from Layer Limitation in QGIS 3.2?

I want to join two txt-tables as a layer in QGIS 3.2. In earlier versions (QGIS 2.12) works to join one of the tables more times to the other table. Now in version 3.2, I can join only one time. The ...