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
2
votes
1answer
30 views

QGIS 3.18 Slight misalignment of two vector layers

Per the attached image, my vector layer of political boundaries (in Nepal) is slightly offset to the east, by 300 m. This offset doesn't change from one end of the country to the other, so it doesn't ...
0
votes
0answers
16 views

OpenLayers Mapbox style filter by id

I am trying to filter my vector layer to only show certain style layers. This is how the first lines of my style look like: { "version": 8, "sprite": "../sprites/...
2
votes
1answer
34 views

Exporting same attribute values to separate layers and merging them in QGIS

I am trying to split watersheds of the same attribute table into separate layers. The Two two repeated values, for eg. SW1 and SW1 both are splits from a same watershed called 'SW1'. I am trying to ...
0
votes
1answer
17 views

How to export vector layer containing polylines into polygons in Google Earth

I'm using QGIS 3.16.5 Hannover and I already knew how to convert vector layer (from AutoCAD containing polylines) into KML format. When I export it as KML and open it up to Google Earth Pro, the ...
0
votes
1answer
42 views

QGIS action loading layer in GPKG

I have a kind of "vector catalog" in a GPKG. It's different rectangles with an attribute called "name of the layer". In the same GPKG, I have all the different layers. I'm trying ...
2
votes
2answers
200 views

Create a shapefile from geometry with OGR

As I see from the GDAL/OGR available solutions, most of the new OGR data sources (shapefile etc.) are being created from an already existing similar file. This way many steps of directly creating ...
7
votes
1answer
83 views

QGIS make the appearance of selected feature the same as defined in symbology

I want to select my item one by one in order to capture them separately. I defined their colour like blue and thickness as 1. According the thread below: Displaying only selected features on map in ...
0
votes
1answer
25 views

QGIS Heatmap not available?

I'm using QGIS Version 3.16.4. I thought one can do heatmaps by going to the properties of a layer and selecting it under symbolization. But as you can see, it's not available in the dropdown menu. ...
0
votes
0answers
36 views

Using only Selected Layer in mMapLayerComboBox

I am building a plugin and so far I have tried simplifying the tasks. But my greatest challenge is making sure that the selected layer in the "mMapLayerComboBox" is what is exactly used in ...
1
vote
0answers
18 views

Vector File Merging fails as string length too long

I am running QGIS 3.18. I am finding my feet with QGIS. I am building up maps of my forebears' farms. From death duty and probate documents I have collected the lot numbers of the paddocks. I have ...
0
votes
0answers
14 views

How to show labels for dynamicLayerInfo in ArcGISDynamicMapServiceLayer

Does anyone know how to show labels for dynamic layers I have used below code for show dynamic layers which is working fine and now I have to display labels for that dynamic layers. var dataSource ...
0
votes
0answers
62 views

QGIS - Misaligned vector layers

I am using QGIS Version 3.16.4-Hannover and Windows 10 but I also tested on Linux Mint 20. I have a problem with several imported shapefiles from different sources. I do not know if I do something ...
0
votes
0answers
27 views

Displaying annotation data from CSV file on qgsmapcanvas

I am developing a custom Qt application using QGIS(3.14) C++ API. I need to display the annotation layer on qgsmapcanvas.CSV files contains lat, long, and country name and comma as a delimiter. I ...
5
votes
1answer
134 views

Why QGIS crashes when constructing QgsGraduatedSymbolRenderer object by QgsGraduatedSymbolRenderer.createRenderer() method?

Today I want to render a vector layer in QGIS by using PyQGIS QgsGraduatedSymbolRenderer renderer. When I directly construct it by using the constructor, it works. But when I want to use the ...
2
votes
1answer
116 views

Aggregating point data into polygons using QGIS

I would like to aggregate point statistics to a specific polygon layer which is a 100*100m raster. The point dataset includes address data of buildings and their heating energy consumption. So the ...
1
vote
2answers
175 views

Connecting QGIS to OS Vector Tile API

How do I bring Ordnance Survey's OS Vector Tile product directly into QGIS via their API (https://osdatahub.os.uk/docs/vts/overview)? It feels like this should play very easily with the vector tiles ...
0
votes
2answers
45 views

How do I add my .shp file as a Vector layer in QGIS?

I'm working in QGIS 3.12 and my university as given us zip files of "data" for each practical we do. I've unzipped it and followed steps of adding a vector layer and navigating to the right ...
0
votes
0answers
25 views

QGIS: vector union produces a single feature only, same as the input layer

I have two layers in QGIS 3.16, a MultiPolygon layer with a single feature, the area of Papua New Guinea a MultiLineString layer of OpenStreetMap roads, clipped to the extent of the first layer ...
3
votes
0answers
25 views

Prioritize label rendering

It seems that by default, vector layer labels only render after everything else is loaded. Some wms/wmts feeds being very slow, this means you have to wait for a while before you can see your labels, ...
2
votes
1answer
36 views

Draw an envelope for only selected features in many/Batch layers in QGIS

I have about 1000 layers, I did select by attributes Batch files and select by one step features I need in all 1000 layers. Now I need to draw the envelope for those selected features in all 1000 ...
1
vote
1answer
74 views

How to load valid PostgreSQL QgsVectorLayer

Note: This is NOT a closed question. The following links does NOT provide an answer to the solution: Add PostGIS layer to QGIS via Python Console The Vector layer still remains invalid with the ...
0
votes
1answer
25 views

Render the point shapefile and raster layer together as single image

I have a point layer as one shapefile and MrSid file as raster layer. How to overlap these two layers and clip the merged layer and render it as an output image file?
1
vote
1answer
86 views

Calculating zonal statistics for each polygon in shapefile using GEE

I have shapefile of counties and want to calculate mean NDVI for each. I know reducing connected components and ee.reducer.mean can be helpful in GEE but it wants it as CSV for further analysis in R ...
7
votes
1answer
132 views

Creating grid with PyQGIS

I cannot create correct grids with PyQGIS. When I create grid with PyQGIS, the grid shape is not correct, i.e. rotated grid. But it's correct when I create it with QGIS > Vector > Research Tools ...
0
votes
1answer
37 views

Importing vector files regardless of having point, line and polygon information using a geopackage in QGIS

How do I import vector files regardless of having point, line and polygon information using a geopackage in QGIS? I am used to using a geodatabase in ESRI's ArcGIS, but since my mac is not compatible ...
0
votes
1answer
161 views

Creating oriented centerlines in QGIS

How do I create oriented centerlines in QGIS as in the following image: Input data is a shapefile of irregular polygons as in the image below and available on the following link:https://drive.google....
4
votes
0answers
107 views

OpenLayers: Performance on satellite hybrid map (raster tiles, vector tiles, vector labels)

I've got a map with three kinds of layers, each of which serving a somewhat different function: TileLayer: raster tiled map from an XYZ source (as .png) to show photographs in the background ...
0
votes
0answers
48 views

QField: Add and fill ring tool

When editing a polygon in QField, the polygon is highlighted in red. This makes it almost opaque and difficult to use the fill ring tool if digitising over a feature shown on the base map below. Is ...
1
vote
0answers
30 views

How to characterize polygons that are created when you join 2 vector layers?

I am using QGIS for the first time. I have a map of an aquifer with 2 different vector layers that split the aquifer differently into several polygons. In the first layer, I used some points(measuring ...
1
vote
1answer
27 views

OpenLayers, VectorSource (WFS) adds same features again

I have some problems with OpenLayers and a WFS vector source. It is a clustered source and it works so to speak that it adds features as it should the first time. But when I pan the map it keeps ...
3
votes
3answers
103 views

Creating vector line in the middle of two lines (grid) in QGIS 3.16

I have a grid. I want to create a new line in the middle of two lines. For example, calculate the distance between line 1 and 2 and create a new line (the red line in the image) exactly in the middle ...
1
vote
1answer
42 views

Generating new data in curve (polyline) by interpolation of existing data in this curve

I am trying to add altitude data on the vertex of a polyline in QGIS. I have extracted points from the vector layer of the polyline to update the Z-value. I have altitude for some points, new points ...
0
votes
1answer
32 views

QGIS -Split vector layer tool not generating an output

I'm trying to split a vector layer into new layers based on one field. The field is string type but when I run the tool, a message saying 'Creation of field fid failed (OGR error: Wrong field type for ...
4
votes
2answers
145 views

Measure shortest distance between all points in a layer and a polygon's border line

How do I measure the distance between all points in a vector layer and a polygon (not to the polygon centroid, but to it's border line)? In the image points are fires and the polygon is a National ...
1
vote
0answers
41 views

QGIS refresh layer at interval

I am trying to understand the behavior of Layer->Render-> Refresh layer at interval in QGIS I sat up a flask rest api which serves a geojson. I added the geojson to QGIS via Add Layer-> a. ...
2
votes
1answer
95 views

Vector Bender not translating

Based on other questions about how to "georeference" an image file, I took an SVG from our graphic designers, saved as a .dxf in Inkscape, and then imported into QGIS. I'm new to QGIS (we ...
2
votes
0answers
365 views

How to correctly set the zIndex of features within an OpenLayers vector layer? [closed]

I initially add a vector layer from a GeoJSON file and label each feature: var layer1 = new ol.layer.Vector({ source: new ol.source.Vector({ url: './json_3573/country_names.geojson', ...
0
votes
1answer
27 views

Complete Line vector with end points in point shape

I have 2 different shapes: lines representing ducts points representing manholes/poles Goal: Fill in 2 different columns start_point and end_point of each line/duct where it touched the points shape....
3
votes
4answers
209 views

Applying style change to other layers using .qml-file in QGIS

I have a similar question as @drnextgis in this post: I made a change to the symbol colour of one value out of four categorised values and aim to automatically apply it to other layers in the same ...
1
vote
0answers
41 views

Vertically fit an Open Layers map in a div

I've created an Open Layers map similar to this example I've mocked up: https://codesandbox.io/s/seamlessly-repeating-vectorlayer-forked-igqti?file=/main.js [EDIT: The above link now shows a commented ...
1
vote
1answer
43 views

Seamlessly Repeating a VectorLayer in OpenLayers

I've created a map in VectorLayers and done a number of things like allow selection, removal of features, adjusting the view, etc. however, one thing that has me stumped is that unlike all the ...
0
votes
1answer
57 views

Can't create fields of type Time on shapefile layers [duplicate]

I wanted to create new field in QGIS to store date and time from a datetime string field named dateposte. Here is the code I used to make it: import datetime layers = QgsProject.instance().mapLayers(...
1
vote
1answer
57 views

Linear referencing using virtual layers in QGIS

I am trying to replicate the behaviour explained on this page. There are two initial layers : One network layer (line geometry), called base_lines (fields : LB_idRiver) One event layer (non-...
1
vote
0answers
39 views

Adding multiple vector files in a folder as an input in QGIS processing modeler using iterator tool

I have shapefiles in a folder that I intend to use as an input in QGIS Processing Modeler. I would like to iterate within the folder to add each of the shapefiles as an input. It did it in ArcGIS ...
1
vote
0answers
40 views

Need to combine vector layers, but not with merge (QGIS)

I have four overlapping vector layers. Each is a grid with a single field of interest: numpoints. I want to create a single output layer that is a single grid, with a field sumpoints that is the sum ...
1
vote
0answers
21 views

Load an ArcGIS Vector Tiled Layer from a URL

.net core 3.1 Wpf application use Esri.ArcGISRuntime.WPF v100.7.0., tries to view vector tile from own tile server, but nothing displays. my code: ArcGISVectorTiledLayer vectorTiledLayer = new ...
0
votes
1answer
44 views

Exporting two vectors layer as one image

I am writing Python code to take two vector layers as input add different symbology to it and then export that as a image. The vectors layers have been added to the map canvas but while exporting only ...
0
votes
0answers
61 views

Vector tile selection layer (canvas) drawn outside the map div. Bug?

I loaded a PBF vector tile layers into my map, and when I select a feature, OpenLayers 6.3.1 creates the selected layer canvas outside the map. Is it a general problem, or just mine? I don't attach ...
2
votes
1answer
52 views

Removing segment from circle?

I have drawn a vector circle with "Add circle from 2 points". How do I remove a segment of this circle? In essence, I want to edit a circle and convert it into an arc.
0
votes
1answer
40 views

How to create multiple graduated layers using different attributes/columns? [duplicate]

I have a shapefile for which I'd like to create multiple graduated layers for each attribute/column. At present, I manually duplicate the layer and then change the column from the drop down list, ...

1
2 3 4 5 6