Questions tagged [vector-layer]

A vector layer represents geographic data whose features are given by sequences of points. (Contrast with a raster, which is a grid of values.)

Filter by
Sorted by
Tagged with
1 vote
0 answers
35 views

Why new shapefile is not appearing in QGIS? [duplicate]

In QGIS 3.24.2 I have just opened a new project and when I add a new shapefile layer it brings up a box saying that the layer already exists and asking if I want to overwrite it. However, I haven't ...
user avatar
2 votes
1 answer
97 views

QGIS reads blank cells as "nan" instead of "NULL"

I use QGIS to visualise my data but I use R when I have to do many treatments on my attribute tables. (package terra) But when I write vector data with R, the Na's appear in QGIS attribute table as &...
user avatar
  • 133
2 votes
1 answer
70 views

Rotating by 90° one and more polygons in QGIS

I have a layer with many rectangles polygons, these should all be rotated by 90°. Can I do this in QGIS? I have not found a way so far.
user avatar
  • 159
1 vote
0 answers
36 views

Bringing elevation feature from point shape layer to line shape layer in attribute table using QGIS

I have two shapefiles. One point shapefile containing Levee station ID and their x,y and elevation/z values in meters. z values field name is 'StationE'. Another polyline shapefile where I don't have ...
user avatar
  • 111
2 votes
0 answers
62 views

Distance along line network between set of points to set of hubs

I am trying to measure distance between towns (light grey in attached screenshot) and their district capitals (light purple) along usable roads (dashed blue). I used the GRASS v.distance plugin to ...
user avatar
  • 21
1 vote
0 answers
22 views

Creating mask layer to clip raster correctly from shapefile in QGIS v3.16.0

Problem: To create a mask layer to use clip raster by mask layer. I am facing problems with correct creating the mask layer. I use processing.run('gdal:cliprasterbymasklayer', {'INPUT':f'{gen_path}/{...
user avatar
6 votes
3 answers
148 views

Replica of point layer data from attribute value in QGIS

I am working in QGIS 3.2 and am wondering how I can create an "exploded" version of a single layer of point data based on numerical attribute values within that layer. As a simple example, ...
user avatar
  • 375
4 votes
1 answer
92 views

Creating new layer with all attributes inherited from original layer using PyQGIS

Let's assume there is a polygon layer called 'test2' with its attribute table, see the image below. With the code below I am creating a new layer as centroids of original features layer = iface....
user avatar
  • 23k
1 vote
0 answers
21 views

How to keep roadnetwork attributes by cutting it to a service area in QGIS?

I extracted a road network including attributes (e.g., categorization of different types of highways) using QuickOSM. My goal is to cut this original road network to a 50km drivable radius from a ...
user avatar
  • 11
1 vote
1 answer
38 views

Set name for layer is not applied when it is loaded into QGIS window with modeler

I have added a script via the modeler. When executing the same code in the script, the layers are no longer added with the specified names in QGIS but with the name of tool that was automated. ...
user avatar
  • 159
0 votes
0 answers
13 views

Automatically activate the general tools from qgis project in script

I have a script and would like to put it in edit mode at the end so the user can start immediately. I would also like to automatically select the tool "Select Features by area or single click&...
user avatar
  • 159
0 votes
1 answer
48 views

QGIS copy and move features without attribute

I use the Advanced digitizing toolbar -> Copy and move features tool quote often. The biggest problem I have got is that the content from the data attribute table is also replicated. Is there any ...
user avatar
  • 3,546
1 vote
1 answer
22 views

Adding external map link as a layer in Mergin

I have created a project in QGIS to collect field data using the Input (Mergin) app. I found this basemap through the local municipality that gives me the ward area where I will be collecting the ...
user avatar
  • 11
5 votes
2 answers
67 views

Difference between features in the same vector layer using PyQGIS

I have a vector layer containing 3 rows (see image2). Each row is a polygon. The blue polygon is number3 and the magenta polygon is number2 (see image1) I need to subtract the polygon that has the ...
user avatar
  • 53
0 votes
0 answers
21 views

Standalone PyQGIS script set layer in AddFeature mode for user

I have written a script in the Python console and would like to bring in a standalone script. In the end I put the layer with i.face in edit mode and AddFeature, because the user should only set ...
user avatar
  • 159
3 votes
1 answer
67 views

The layer does not appear

My task was to upload a CSV file to QGIS. The CSV contains location data. When I load a layer, what happens is that a layer appears that contains the correct attribute table, but the points don't ...
user avatar
0 votes
0 answers
35 views

Merging two contour layers in QGIS changes the column heading names and creates more columns

I have two contour layers that I'd like as 1. Using Vector-Data Management Tools-Merge Vector layers, I check the box next to the two contour layers, add the UTM projection I'm using, save file to ...
user avatar
  • 261
3 votes
2 answers
71 views

Selecting attributes from multiple vector layers in QGIS

I'm looking for a way to select multiple attributes from about 9-13 vector layers. I downloaded the "Multiple layer selection" plugin, but I get an error. 2022-03-22T14:01:20 WARNING ...
user avatar
1 vote
0 answers
29 views

How to set a layer automatically in edit mode and addFeature mode

I have load a new layer in my QGIS project by a processing script. At the end I would like to set the layer in edit mode and addFeature mode. Thus the user only has to set the points afterwards. from ...
user avatar
  • 159
1 vote
0 answers
37 views

Address open Layer in QGIS project by processing script, convert Python console into a processing script

I created this code in the Python console, a new point layer is created with some attributes and set into edit and AddFeature mode. I would like to bring it in QGIS algorithms. I have tried a few ...
user avatar
  • 159
3 votes
1 answer
106 views

Reclassifying vector attributes efficiently in QGIS

I have converted a raster file to vector and I am trying to create multiple attributes or levels, for my land classification. I have multiple values that are 101, 102, 103, 104 etc. where the 100 ...
user avatar
  • 365
0 votes
1 answer
12 views

How can I refresh the Native Bounding Box

After add new Feature to VectorLayer, I want to refresh Native Bounding Box to seed tile caching. But I'm not found res API.
user avatar
2 votes
1 answer
113 views

How to fix a CRS or scale issue with an XYZ tile ('Google Satellite' image and 'Open Street Map')?

Problem: Firstly, I am a complete novice to QGIS and I have only been using this software for one week. Therefore, I apologise if I am not using the correct terminology. I have added vector layers (...
user avatar
2 votes
1 answer
59 views

Cannot update attributes of a point feature

I'm learning PyQGIS (developer's cookbook) with QGIS version 3.14. I've encountered a problem I cannot fix when updating point feature attributes, including the geometry. The changes have no apparent ...
user avatar
  • 141
7 votes
1 answer
130 views

Is it possible to restrict using IDs already used on a different layer in QGIS?

I am working on a rather complex data model for a GIS-project in QGIS 3.16.3. The entire data model is stored in one single geopackage. Different layers are used to represent different geometry types ...
user avatar
  • 1,446
6 votes
1 answer
61 views

Setting delimiter/filter in the aggregate function from QgsVectorLayer

With PyQGIS I want to aggregate some fields in my layer. When I use: mylayer.aggregate(QgsAggregateCalculator.StringConcatenate, myField) Then I get a concatenated string without delimiter. So I ...
user avatar
  • 155
1 vote
2 answers
280 views

OpenLayers unexpected token { in JSON at position [x]

I have a ASP.NET MVC web application that creates some GeoJSON files depending on client input and saves these files on a published folder on server. These files are to be vector data sources for an ...
user avatar
  • 804
0 votes
1 answer
36 views

In a QGIS plugin, how to let user click on canvas multiple times and store coordinates of all the points in a single list?

I am trying to get a list of coordinates for 3 different points in a single list. I am able to make a list of coordinates of a single point and then it overwrites the previous one while clicking to ...
user avatar
0 votes
0 answers
20 views

Transform top-down vector layer to angled view

I have a 3D model of a fictitious city and I'm creating a little OpenStreetMap/Google Maps clone for it. The current workflow is fine: I render the fake satellite view pictures from a top-down ...
user avatar
1 vote
0 answers
35 views

Rasterizing in QGIS 3.16 - Rasterlayer doesn't show up

I would like to transfer a vector-layer (containing the attribute "Polygon NN") to a raster. After filling in all parameters and Rasterizing the vector layer, nothing shows up. I watched ...
user avatar
4 votes
1 answer
92 views

Add multiple vector sources in vector layer

I want to add multiple vector source to single vector layer. For adding single vector source to vector layer I am using below code and its working perfectly fine: const vectorSource1 = new ...
user avatar
  • 59
0 votes
2 answers
12 views

Removing branches from a multilinestring vector and retain the main centerline

I have a vector file that contains a centerline and multiple branches. I wish to remove these branches.I am unable to come up with a logic to remove these branches. Kindly guide.
user avatar
9 votes
2 answers
174 views

Tool for exporting vector layer in QGIS

I am looking for a tool in the toolbox which gives me exactly the options that "Export Layer" is giving me (see screenshot) because I want to use it in a model. For example, I want to cut ...
user avatar
  • 1,903
1 vote
1 answer
63 views

Merging two shapefiles with disparate attributes and keeping attributes of both using QGIS

I have two shapefiles of NYC--one of city council districts and another shapefile of the census blocks inside NYC. I want to merge these two shapefiles so that I can see what blocks lie inside of each ...
user avatar
0 votes
0 answers
42 views

Using the resulting value from the difference between two rows in Python

I have a problem with being able to refer and use only the resulting value from the difference between two rows (that is: the first and the second values) in a column using Python. The difference ...
user avatar
0 votes
0 answers
45 views

Using the QGIS Python API to modify vector layer features

Starting from a QGIS project with many vector layers, I wish to load a file that extends the attribute table of one vector layer where a primary key matches. This is my first foray into QGIS and ...
user avatar
0 votes
0 answers
29 views

Setting layer visibility in standalone QGIS Python script [duplicate]

I've been writing a standalone Python script that calls QGIS 3 libraries to draw stuff in a QWidget. I'm trying to change the visibility of layers based on a callback, but it doesn't seem to work. ...
user avatar
  • 1
0 votes
1 answer
154 views

Developing web GIS app for editing large scale vector layer with OpenLayers

I am developing a web GIS based application with OpenLayers and Angular. My problem is how to handle editing a large scale vector layer, e.g. I have a layer with millions of features, using ol​/source​...
user avatar
3 votes
1 answer
205 views

QGIS: Select polygons that are touching another polygon on all it's sides (not contain but engulfed?)

Given this polygon: I'm trying to select the inner one, but can't find a simple way using either selection by location or selection by expression Any idea?
user avatar
  • 105
3 votes
0 answers
47 views

Apply custom colors for new vector layers in QGIS

I am trying to have a custom color palette applied when new vector layers are added. This is for use within a default project or template. But every time I load a vector layer, it chooses from the &...
user avatar
  • 31
0 votes
0 answers
65 views

Global Mapper - What are the Specific Steps for Generating a Grid of points inside a Polygon

Using Global Mapper 17, what are the precise steps for creating a point grid with regular rows and columns that fill an entire irregular polygon? Each polygon encloses a landform of interest and I am ...
user avatar
1 vote
3 answers
157 views

Adding height from xyz-layer to points in Vector layer in QGIS

My task is to put the height from a DGM1 model in Germany to some points on an other vector layer with attribute table. I don't know how this possible. Any ideas?
user avatar
  • 91
0 votes
1 answer
109 views

Rendering Problem of .AIX format from ArcGIS Pro

I am trying to export Ireland Country Map on top of Satellite / Topographic base map layer in ArcGIS Pro in .AIX format to use in Adobe Illustrator. I have ArcGIS for Creative Cloud extension as well. ...
user avatar
3 votes
2 answers
57 views

What is the right sequence of actions when creating new polygon layer with given attribute table structure?

I want to create a new vector layer with polygons in it. I've an Excel file with the columns that have to be the attributes in the layer's attribute table. How do I achieve this? I'm kinda lost, I ...
user avatar
  • 209
2 votes
0 answers
65 views

Error in a script to create perpendicular lines connecting point and lines in QGIS [closed]

I'm using this script that draws a perpendicular line between a point and the nearest line segment, but when I use the Python terminal and paste the script, I get an error: Traceback (most recent call ...
user avatar
0 votes
0 answers
31 views

Batch save of vector files in specific projection [duplicate]

I have a group of multiple vector files in EPSG:3857 Pseudo-Mercator, and I want to export them to WGS84 53S, EPSG:32753. Ideally I would like to select all of the files to export, select the ...
user avatar
0 votes
0 answers
82 views

Deleting GeoServer layer with Django

I am trying to delete from the GeoServer using Django with request.delete, however, I get the 401 error. GEOSERVER_URL = f"http://admin:geoserver@GEOSERVER:8080/geoserver/rest/workspaces" ...
user avatar
0 votes
0 answers
35 views

Transformation of vector CRS

I have a vector file with CRS: CRS EPSG:4326 - WGS 84 - Geographic, Extent: Extent 984173.1875000000000000,980041.1875000000000000 : 997289.5000000000000000,999778.81250000000000. It has to sit on my ...
user avatar
2 votes
3 answers
109 views

Avoiding buffer exceeds layer boundaries in QGIS

I generated random points within my map in QGIS. Then I created a buffer zone of 5km around each point because it is necessary for my analysis. However, now the buffer zone crosses over the layer ...
user avatar
0 votes
1 answer
121 views

Import CSV with longitude and latitude coordinates in QGIS

I have a CSV file with the first two columns containing longitude and latitude values. Now I want to create a point layer via the "add delimited text-layer" in QGIS. I have a problem with my ...
user avatar

1
2 3 4 5
7