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

Merging attributes

I have added attribute information from the Overlay Layer to a set of features in the Input Layer. However, both of the tools that I used, 'Join by Attributes' & 'Intersection' created the (...
  • 41
-2 votes
0 answers
19 views

Select a portion of a polygon in ArcMap

Inside this map, I would like to select ONLY the part of the color shape (for example, the green one) which is inside the dashed line. How can I do this?
0 votes
0 answers
10 views

writeAsVectorFormatV3 on MacOS with filename on server returns OGR error

I am on MacOS and working with Samba connected server. I have write rights on it but when I try to export a QgsVectorLayer from a delimited text file with : layer = QgsVectorLayer("file:///path/...
  • 1,023
3 votes
1 answer
37 views

Disappearing/ unavailable delimited text layers each time i close and re-open a project

I am adding drillhole locations to a map via 'add delimited text layer'. I add the points to the project ok and save. The points appear in the right place and i can edit them. However, on closing the ...
4 votes
1 answer
62 views

Creating vector layer as subset of another vector layer using PyQGIS

With PyQGIS.I am trying to create a new vector layer by filtering another vector layer based on its attributes. Here is the code that I am using: fn = r"C:/path/file.shp" layer = ...
0 votes
0 answers
12 views

Using 2D float arrays in attribute table fields in QGIS

I am currently using QGIS 3.28.0-Firenze for developing custom plugins, using PyQGIS. I am interested in assigning a table of values to each of the point features of a Vector Point Layer. So then, ...
3 votes
1 answer
45 views

Display points on identical location from multiple layers with an offset

I have several layers containging points holding information. Some of them are at the exact same locationg (as they originated from the same file, describing varous categories at the same location). ...
  • 1,110
0 votes
0 answers
19 views

Export all the features from a shapefile as shapefile in QGiS [duplicate]

I have a river basin containing more than 30 subbasins. I want to export all these subbasins as independent shapefiles. How do I do that in QGIS 3.16.0?
  • 71
4 votes
1 answer
65 views

Batch replacing of layer file paths in QGIS

I reorganized my shapefiles folders. Now the layer file paths are broken. I have tried the solutions shown in the QGIS User guide (chapter 6.2), but: I don't want to process my layers individually ...
  • 43
2 votes
0 answers
19 views

Using get_feature() function on layer while editing in QGIS

In QGIS, I am trying to update a feature based on entries made on a nested form (relation). Considering: Layer1 has Field1 that should capture the value of Field 2, and field in Layer2 Layer2 is ...
  • 507
3 votes
1 answer
48 views

Centering layers in OpenLayers v4 after layer loading

I have a group of layers in OpenLayers, and I can see each one on the map, when I click on the checkbox to show it. var group_layers = new ol.layer.Group({ title: 'My Group', fold: 'close', ...
4 votes
1 answer
35 views

Representing points as polygons from Feflow data in QGIS

I have several Feflow files that are displayed as points in QGIS. I would like to display points that have the same value scale as a polygon (F Value in the attribute table). Is this possible? Is ...
0 votes
0 answers
28 views

Plugin where one can make shapefile (polygon) with help of coordinate values [duplicate]

Is there any plugins or method where one can easily make shapefile (polygon) with the help of coordinate values? You can find in the attached file.
  • 55
2 votes
1 answer
34 views

Open layer properties dialog with PyQGIS

When I have an object lyr of class QgsMapLayer, say iface.activeLayer() is there a way to open the layer properties dialog for that layer lyr at a specific tab, for example "Labels" using ...
3 votes
1 answer
53 views

Splitting vector layer into subclasses

I have a hard time managing a huge feature dataset. I have a gpkg containing about 10k polygons. Now I'd like to order them by two attributes to get a useful qgis browser structure. Let me try to ...
2 votes
0 answers
78 views

Exporting vector layer as TIFF using PyQGIS

I have a layer named 'result' which I want to export as a georeferenced TIFF file. I have a layer named 'layer' which is just a vector polygon (it has to be there). The best code I've found to do ...
0 votes
0 answers
19 views

Loading style to vector connection using UTF-8 .json

I have a vector server connection where the provider also has a UTF-8 encoded JSON file included, that I can load as a QGIS style. However, QGIS apparently does not support UTF-8 encoding for ...
  • 505
2 votes
1 answer
72 views

QGIS : how can I keep data while removing the source file?

I imported some .kmz files to QGIS as vector layers. Now, I want to keep this data but remove the files : I want the data to be stored (baked) in the qgis file itself. How can I do that ?
  • 246
3 votes
1 answer
101 views

Overlay Street View with GIS layers

I am wondering about the option, which would allow a user to overlay the Street View with various GIS layers produced by the following files: AutoCAD DXF (or even DWG), Shapefile, GeoJson, KML, and so ...
  • 3,733
0 votes
0 answers
15 views

How to prepare linked layer group in ArcGIS software

In the attached image, I need to prepare group layers with link of a line as shown in the image. Normally we can create a group by right click the selected layers. But I need to know how we can add ...
  • 1
-1 votes
1 answer
77 views

AttributeError when modifying vector layer symbology with PyQGIS

In QGIS 3.22 I'm facing a problem with QgsMapLayer. I want to use it on QGIS in order to modify the symbology of line, point & polygon in each layer but every time it gives me an error on using ...
0 votes
0 answers
73 views

Use ArcGIS basemap vector tile in Leaflet

I want to use this on my school project, I searched many ways but still not. https://basemaps.arcgis.com/arcgis/rest/services/OpenStreetMap_v2/VectorTileServer From https://www.arcgis.com/home/item....
  • 1
5 votes
1 answer
97 views

Adding different types of geometry to layer in QGIS

How can I combine points and lines in a layer? Currently, I'm using a GeoPackage layer but when creating this new layer you need to define what geometry type you want to use. So is it not possible to ...
  • 153
2 votes
1 answer
37 views

Selecting everything of one cell value using PyQGIS

I'm trying to make a selection using PyQGIS. The short snippet I'm working with is hej = iface.addVectorLayer('rs_map_Ale.shp', "", "ogr") hej.selectByExpression("KOMMUNNAMN=...
1 vote
0 answers
33 views

Difference in performance executing process on layer from project or file

Is there any difference between loading layer into processing algorithm from file or from current project? I have a custom processing algorithm which crashes QGIS (depending on the machine - ...
  • 574
0 votes
0 answers
40 views

How to resolve issue with filtering layers in Mapbox?

I'm new to mapbox and having trouble with filtering the layers. The mapbox the filter object that I construct is not doing any filtering. I first construct a filter object, then use the spread ...
5 votes
3 answers
137 views

Hiding duplicates from dropdown when using value relation in QGIS Form

I've got a vector layer with a QGIS Form and the column "test" in the attribute table. I have values for the columns e.g: abc, abc, abcd. I defined a form for this Layer. The type for the ...
  • 502
0 votes
0 answers
32 views

Automating the addition of many HTTP layers in QGIS

I would like to know how to automate the addition of many HTTP layers in QGIS. I have a lot of layers in GeoJSON with a HTTP, like "http://localhost:8080/otp/traveltime/isochrone/?location=43....
  • 81
4 votes
1 answer
98 views

Fetching and combining field values from vector layer to another in QGIS

I have two different layers: one is a vector "polygon" layer, and the other is a vector "point" layer. I have information (address and number) in my point layer that I would like ...
  • 43
3 votes
1 answer
58 views

Automatically copy across data from one layer to another where the field name is the same in QGIS

Layer A contains data in "Field A", Layer B also contains a field named "Field A", can I automatically transfer the data in "Field A" from Layer A to Layer B? I used to ...
0 votes
0 answers
41 views

"Invalid Datasource" error when creating shapefile with PyQGIS

Why can't shapefile is not creating. Getting error message: Invalid Datasource D:\Template.shp is not a valid or recognized datasource. What's wrong with my code? fn = "D:\Mine\Practice\...
3 votes
2 answers
121 views

Exporting layer features in existing Excel file with given column order in QGIS

When Exporting Layer attributes to Excel, file columns are arranged as per their back-end database. I want to export layer attributes to excel and I want the columns to be arranged in specific order ...
5 votes
2 answers
227 views

Joining dangling end in the vector layer using QGIS

I have a large river network vector file, where there are disconnections between features. Is there any way to join the nearest dangling points as in the figure below? I found there is a plugin "...
4 votes
1 answer
89 views

Change the symbology of a vector output layer that is returned from a processing tool?

I want to change the symbology of a Vector Output Layer that is Returned after running a Processing Tool. I am building a processing plugin. I am trying to make the effects reflect in the displayed ...
2 votes
1 answer
89 views

Applying cross join or cartesian product (database table join) for GeoDataFrames using GeoPandas [closed]

I have a set of points and I want to calculate the distance from each point to all other points in GeoDataFrame. This is my GeoDataFrame: id Longitude Latitude geometry 0 1 -71.275580 ...
  • 599
0 votes
1 answer
42 views

Is styling also defined in vector data or all in style.json

I'm using the style editor in maptiler cloud with an openmaptiles base map. It uses opacity and zoom stops to transition between different layers as you zoom in. For example, landcover_wood shows from ...
  • 5
3 votes
1 answer
39 views

Save Vector layer on disk with help of PyQGIS

I have a vector layer, which I ma adding it to a subgroup "streets_greoup". My code also save it to the disk. But it still show temporary layer when I close my project and saved feature data ...
  • 55
5 votes
1 answer
118 views

Setting styles for layer with QML file from URL using PyQGIS

I was wondering how to import and apply a style from an URL to a layer with PyQGIS. My first thought was to do this but it didn't workout : import urllib from urllib import request vlayer = iface....
  • 1,826
0 votes
1 answer
38 views

Convert smoothened contour in QGIS ( vector) to raster for use in HECRAS

I have generated contours in QGIS using point data (AutoCAD file) and I had to also smoothen the contours and remove noises (smaller contours) from the contour generated. I need to get this contour ...
  • 105
1 vote
0 answers
85 views

QGIS Vector Layers not showing up?

I'm IT dept for a company and we've been roped into helping with this issue but we have no actual knowledge of the workings of QGIS outside of installing it... We have one user who can open QGIS ...
0 votes
0 answers
31 views

WFS layer not adding correct layer

I wanted it to add the "boxes" as shown in the bottom half of the picture. However, it comes out as shown in the top half. I'm using 3.28 Sorry for the lack of knowledge in regards to the ...
1 vote
0 answers
60 views

Measuring real distance in QGIS

I created the linear shapefile of an ancient Roman Road (via Flaminia), and I would like to compare the linear total distance with the real one: Roman engineers and Gromatici measured the roads with a ...
  • 11
2 votes
1 answer
52 views

Create clipping masks using contour lines in QGIS

I'm new to QGIS and GIS in general. I'm trying to find a way to create height layers automatically and then use them to clip other layers. In detail: Below is my area of interest. I have a raster ...
4 votes
1 answer
46 views

Save an item at the MapCanvas

I am using PyQGIS to generate some polylines. The lines are shown at the MapCanvas. How do I save these lines to a vector layer? My PyQGIS : class LængdeBreddeGrader : from qgis.core import ...
0 votes
0 answers
15 views

How to add multiple photos with a single feature in QGIS [duplicate]

I have a table with multiple rows for a vector layer in QGIS. I am able to add single photo with a point feature. But I want to add multiple photos with a feature with QField. I am adding these images ...
  • 55
0 votes
1 answer
24 views

Masking two shapefiles with MultiLineString and MultiPolygon errors

I created a shapefile by converting a raster to a polygon using raster pixels to polygon tool and used this as a base layer to remove unwanted areas with difference tool. I added multiple shapefiles ...
  • 21
1 vote
0 answers
90 views

QgsVectorFileWriter not working PyQGIS [closed]

I need to write the attribute of all layers with geometries and without geometries I am able to write layers with geometries but cant write the ones without geometry. I used QgsVectorFileWriter....
  • 11
1 vote
1 answer
180 views

QGIS crashes when using "Split with lines" tool

I want to use the "Split with line" tool on a dataset with 5000 line features. It works if I select some of the lines, but on the whole dataset, it crashes. Is there a way to solve/work ...
1 vote
1 answer
158 views

How to choose a GeoJSON file and load it into OpenLayers

I have a code in OpenLayers, which from a layer, it is possible to save the data in a GeoJSON file. Follow the code. function downloadGeoJSON(content, fileName, contentType) { var a = document....
0 votes
0 answers
110 views

How to merge Map.addLayer on the Google Earth Engine

i'm working on vector data on the google earth engine. I want to make my script layer more simple. how to make my Map.addLayer script only 1 line script? I have tried to combine it with ".merge()&...

1
2 3 4 5
9