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
1 answer
12 views

Join Multiple Lines Plugin creates extra lines

I am using "Join Multiple Lines" plugin before using QChainage because I am getting extra points that aren't spaced properly. When I use "Join Multiple Lines" it creates extra ...
user2776946's user avatar
0 votes
2 answers
73 views

Segment lines by given divider

I a trying to segment lines with specific values that are stored in a field. For example, I need my line 1 which is ~84m long, to be segmented into two segment that are 31m and 53m long. I have a ...
basile's user avatar
  • 69
0 votes
0 answers
33 views

Wrapped C/C++ object of type QgsVectorLayer has been deleted in QGIS

The main goal is to remove this error: RuntimeError: wrapped C/C++ object of type QgsVectorLayer has been deleted. It appears when a user (I'm in the testing phase) deletes a QGIS layer from the ...
Karol Śpila's user avatar
0 votes
1 answer
34 views

Dynamic Filtering based on unique values of ArcGIS vector layer field

I'm trying to achieve in ArcGIS some sort of dynamic filter where the software would propose filtering options based on unique values in a vector layer field. This is similar to how PowerBI or Tableau ...
Frank's user avatar
  • 1
0 votes
1 answer
50 views

PyQGIS layer action: Add buffer from clicked-on feature as temporary layer using materialize

In the workshop material "QGIS Automation using Actions", the first example "1.1 Extract a Feature from a Layer" demonstrates how one can extract any country polygon by clicking on ...
ebcs's user avatar
  • 49
6 votes
3 answers
309 views

Calculate percentage of vector point attributes within a polygon QGIS

I have a vector point layer with an attribute Customer with boolean values true and false. I want to aggregate this data by polygons, such that for a given polygon, it shows that Customer is XX% true ...
lizard's user avatar
  • 111
0 votes
1 answer
68 views

Merging multiple line and point vectors in QGIS 3.28 [closed]

I have hundreds of line and vector layers. The line and vector layers are from several kml files. I want to combine the line and point vectors respectively and automatically without having to manually ...
SimplyWilly's user avatar
5 votes
2 answers
245 views

Adjusting coordinates from whole vector layer in QGIS

I got a vector data layer that I need to project onto a map. When I import the layer, everything seems to work, but the layer ends up in the wrong place: The red dot in the bottom left corner is my ...
ka.pn's user avatar
  • 51
1 vote
2 answers
128 views

Add vector OSM XYZ layer in QGIS?

Marble has an option to display OSM's vector map. Is there a way to add this vector map into QGIS? I see the raster XYZ URL format is: https://tile.openstreetmap.org/{z}/{x}/{y}.png Is there a ...
Geremia's user avatar
  • 173
1 vote
1 answer
50 views

Handling *other* attributes in a drag'n'drop form

I built a form for my vector layer using the Drag'n'drop form designer but I only did so for some of the layers fields. Is it possible to automatically add widgets for the other fields to the form, e....
bugmenot123's user avatar
  • 11.2k
0 votes
0 answers
28 views

Vector layer points are not being imported/shown from MySQL datasource

Issue QGis 3.24.12 does not visualise/import points from a vector layer with a MySQL datasource anymore. In QGis 3.24.12, I import a table from a MySQL datasource as a vector layer. However, the ...
Isaac Sterckx's user avatar
6 votes
2 answers
230 views

Shifting existing points (shapefile) to the highest raster pixel value in 5m buffer

I am trying to move 1700 points (of an existing shapefile) to a new pixel of a raster layer. If the dot is already in the highest pixel of the NDVI raster layer then no need to change. The criteria ...
Tom Runge's user avatar
0 votes
0 answers
59 views

OpenLayers vector layers don't render at certain zoom levels in Chrome browser

Environment: Chrome browser Typescript Angular OpenLayers 8.0 I have two OpenLayers maps side by side. They need to be synced in all respects except for one layer. So I'm using the same layers and ...
Thierry Blais's user avatar
0 votes
1 answer
73 views

Options to tweak exported PDF from QGIS

I'm struggling to make sense of the different options available that may help with finding the right balance between file size and image quality when exporting a Print Layout as a PDF from QGIS. The ...
Jonathan's user avatar
0 votes
2 answers
83 views

What are the QGIS words for my 4 types of data?

My project has 4 types of data: a raster satellite view (Google Maps), to be the base layer and geolocated by three points (CSV) that apply to visible points on the raster map; individual points: ...
johnsankey's user avatar
0 votes
0 answers
56 views

QGIS 3.4.1 How to symbolize based upon characters of a 12-digit HUC code

I'm trying to group and then symbolize polygon shapefiles using HUC 12 codes. Field name is "huc12"; field type is integer. more specifically, I want to be able to group polygons according ...
user233078's user avatar
4 votes
1 answer
98 views

Getting only joined fields using PyQGIS

How do I get a list of fields that have been joined to a layer, or how can I check if a specific field has been joined? In older versions there seemed to be field.source(), but this is not available ...
BritishSteel's user avatar
  • 6,637
3 votes
2 answers
142 views

Graphical model for random points inside polygon moved to closest point on line

I want to place a regular random distribution points inside a polygon and move these points to the respective closest point on a line layer afterwards. I use regular points algorithm with random ...
winnewoerp's user avatar
  • 1,508
0 votes
0 answers
19 views

Renaming Multiple Layers after using split vector tool

I am using the split vector layer tool and then adding the vector layers. These are currently getting named as by the Field ID_the unquie value. So for example Box_12, Box_13, Box_18. Obviously when I ...
Henry Hill's user avatar
0 votes
0 answers
29 views

GeoServer polygon artifacts on GeoPackage

I am brand new to GeoServer (2.23.1) and have it running on a Debian 11 Podman container. I can access all the sample data, which all renders as expected. I am following the GeoServer Getting Started ...
rytz's user avatar
  • 1
0 votes
0 answers
31 views

Changing Fontmarker Size Expression in QGIS 3.28 using Python Console

I am currently working on a geology and mineral occurrence map in QGIS 3.28. I have a vector rule-based layer in which mineral deposits are classified with different symbols. Some of these symbols ...
Iven Pepa's user avatar
  • 341
2 votes
1 answer
133 views

Merge four vector layers into one shapefile and keep the symbology

I am using QGIS. I have four vector layers, they are all separately categorized and have a certain symbology. My goal is a shapefile containing all four layers and not losing the symbology. I already ...
Lucas's user avatar
  • 21
0 votes
0 answers
49 views

How to export vector layer containing symbology compatible with ArcGIS on PyQGIS

I export vector layer(.shp) with symbology file(.qml) like below code. The exported files works on QGIS, but on ArcMap (ArcGIS), qml file doesn't work. How can I extract symbology file on PyQGIS so ...
qgisWorker's user avatar
1 vote
0 answers
33 views

Saving layers with diferent types to a single GPX file

I have the following twos methods to save a vector layer in the project folder The first one is generic and the second calls the first to save specifically a GPX file In order to export one group of ...
Marcelo Franco Patané Júnior's user avatar
3 votes
1 answer
64 views

Plotting transect line with equally spaced points and get the coordinates in QGIS

In QGIS I am trying to plot a transect line. For this I would like to place points every 500m along a line and get the coordinates of each point, but have not managed to achieve this unfortunately. Is ...
onc's user avatar
  • 31
3 votes
1 answer
72 views

Creating script to automatically create virtual layers with alphanumeric labels for shapefile grids in QGIS

I have many grids in shapefile format. Adding alphanumeric labels to them can be done through using a virtual layer SQL query as found in this thread: Creating GRID with customized labels in QGIS, ...
Bryce01's user avatar
  • 33
1 vote
0 answers
48 views

Exporting vector layer with symbology using PyQGIS

I want to export vector layer with symbology on PyQGIS. So, like the code below, I try export to .kml with symbologyExport = QgsVectorFileWriter.FeatureSymbology. But It couldn't export with symbology....
qgisWorker's user avatar
0 votes
1 answer
33 views

Tailoring shapefile attributes with PyQGIS [closed]

I'm adding a shapefile (as a vector layer) to QGIS with the snippet: def addere_urban(self): urbanareas = QgsVectorLayer('/home/ubuntu/SHAPEFILES/cb_2018_us_ua10_500k.shp', "Urban areas",...
user228490's user avatar
0 votes
1 answer
48 views

Changing opacity between lines in a vector layer

The extent of my knowledge with QGIS is how to join up layers and apply data. I have a vector layer of MSOA's for 2021 taken from ONS Geography on boundaries for England and Wales, I wish when using ...
wandered889's user avatar
1 vote
1 answer
49 views

Getting selected attributes from line layer to polygon layer in QGIS

I am trying to get specific attributes from a line layer to a polygon layer. The line layer contains a number of pipes that run through a polygon (parcel). They both have the parcel number in common: ...
ibdmn's user avatar
  • 191
1 vote
0 answers
62 views

Usage of QgsVectorFileWriter.ActionOnExistingFile() in PyQGIS

I am currently trying to find a way to overwrite a CSV file saved in my QGIS project as a component in my larger project to save files. The end goal is that the CSV is 1) saved if the project has not ...
CaptainDang's user avatar
2 votes
1 answer
170 views

Reclassify field values from txt rule file in QGIS

I need to reclassify all the values of one field of my vector file in QGIS. I'm trying to use the function v.reclass, using a text file as a rule file. I get this error: ERROR: Either 'rules' or '...
Fabio Castelli's user avatar
2 votes
0 answers
64 views

Advanced digitizing tools - snapping last vertex to right angle

My aim is to snap last vertex to the right angle using advanced digitizing tools. I'm running QGIS 3.30 with 'snap to common angles' on - see the picture below. Any ideas?
Adam's user avatar
  • 155
2 votes
1 answer
1k views

"DeprecationWarning: QgsVectorFileWriter.writeAsVectorFormat() is deprecated" when exporting GeoJSON in QGIS

I am trying to export a layer same to like this question: https://gis.stackexchange.com/a/435753/215676 But the difference is I'd like to do it in PyQGIS with QgsVectorFileWriter. Is there a way to ...
Ali Güvenaltın's user avatar
1 vote
1 answer
81 views

Reproject VectorSource (or VectorLayer) in OpenLayers 7?

I create the VectorLayer on OpenLayers 7 from GeoJSON: const geojson = "..."; const style = {...}; const vectorSource = new VectorSource({ features: new GeoJSON().readFeatures(geojson, { ...
kochizufan's user avatar
1 vote
0 answers
104 views

Choropleth map layer in OpenLayers

I tried to mimic the solution from Creating choropleth map using OpenLayers?. My implementation is as follows: const temperatureSource = new VectorSource({ features: tempData .filter((_, ...
Aayush Subedi's user avatar
1 vote
0 answers
43 views

Ordnance Survey vector maps not connected to QGIS

Following the query here: Connecting QGIS to OS Vector Tile API I tried to make the steps as per this thread but for the 3.12 version. The situation looks like you see below: I have an error despite ...
Geographos's user avatar
  • 4,077
1 vote
1 answer
34 views

QGIS select features by number of snaps

I have a situation such as this: downloaded OS map vector lines, which represent the lowest possible scale of 1:1250. all of them have exactly the same attributes as they come straight from the ...
Geographos's user avatar
  • 4,077
1 vote
1 answer
138 views

Using d3-windbarb (npm) in icon style of VectorLayer in OpenLayers

I was trying to have a vector layer(from OL) above Open Street Map (OSM()). I wanted a wind barb layer, for which I used d3-wind-barb from npm. I couldn't use it as style though it throws HTML objects ...
Aayush Subedi's user avatar
1 vote
1 answer
120 views

Rasterize (vector to raster) Error 4 - problem converting CVS point grid to raster [duplicate]

What I want to do: I have data with point-coordinates (integer) and composite probability (decimal). I want to convert this to raster data to be able to compare it to other layers. The cvs file is ...
kar-g's user avatar
  • 15
3 votes
3 answers
393 views

Checking overlapping points from different layers in QGIS

I have a map with many layers, each one of them showing multiple points for different cities. For some locations, having the same lat and long data, these points are overlapping, being on top of each ...
Catalin Alexa's user avatar
0 votes
1 answer
167 views

Batch import .xyz files in QGIS

I have about 200 .xyz files I want to import into my QGIS project. I've tried using this answer https://gis.stackexchange.com/a/310415 but haven't been able to make it work. I'm getting this exec(Path(...
Yivi's user avatar
  • 1
1 vote
2 answers
132 views

Random forest/Maxent environmental predictor layers using vector data, in GEE

I am attempting to use a vector layer as a predictor environmental layer for use in classification/predictor models (eg Random Forest/Maxent). I have attempted to include a bathymetric substrate layer,...
Jcd's user avatar
  • 21
2 votes
2 answers
155 views

How to ensure a newly created layer displays on the canvas

I am trying to perform some categorization from an existing vector layer such that after performing the calculations, a new vector layer is created with just the new fields created. After running my ...
Beginner's user avatar
0 votes
0 answers
44 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 (...
Norman's user avatar
  • 51
0 votes
0 answers
56 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/...
dmjf08's user avatar
  • 1,233
3 votes
1 answer
148 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 ...
ciaran obrien's user avatar
5 votes
1 answer
104 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 = ...
Başar Yücel's user avatar
0 votes
0 answers
61 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, ...
Zylon360's user avatar
3 votes
1 answer
151 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). ...
Vincé's user avatar
  • 1,416

1
2 3 4 5
9