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
1answer
17 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
26 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 ...
6
votes
1answer
88 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
32 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
150 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
62 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
28 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
29 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
25 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 ...
1
vote
1answer
65 views

Create a vector line in the middle of two lines (grid) 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 ...
0
votes
1answer
38 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
29 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
132 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
30 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
59 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
112 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
26 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
135 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
32 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
40 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
40 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
50 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
28 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
39 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
18 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
43 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
50 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
51 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
35 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, ...
0
votes
1answer
72 views

Adding new nodes or moving segments with Vertex Tool in QGIS 3.10

I'm used to work with simple polygons and the vertex tool. But now the Vertex Tool doesn't show me the capability of adding new nodes in centerline neither move polygon's segments. The function just ...
3
votes
1answer
155 views

Calculating overlap of several lines in QGIS

I've traced several lines that represent people's paths. Some of these lines overlap several times. I would like to get a view showing for each segment of my lines the number of line overlaps. The ...
0
votes
0answers
61 views

Openlayers 6 geometry editing not smooth in mobile

I am working on an ionic application and implementing geometry drawing using OpenLayers 6 the problem is that when I try modify the the geometry, it is working well in browser but it hangs in mobile. ...
0
votes
1answer
268 views

Vector arrows over flow velocity map in QGIS

I have a point layer with X, Y, Vel and VelA parameters where Vel stands for the magnitude of flow velocity and the VelA is a rotation of the arrows so the arrow is pointing on the dominant direction ...
0
votes
2answers
31 views

How to cut polygons that overlay other polygons in ArcMap?

I created a layer of buffer polygons following some conditions (distance from parks, stations etc). Some of the buffer polygons are now overlaying public_parks polygon layer. What tool can I use in ...
2
votes
0answers
598 views

Use Angular 8 and OpenLayers 3 in order to draw and delete temporary vector layers from a map

I have a project built with Angular 8 and OpenLayers 3. I want to be able to draw and also delete Polygons from a map. I tried to port this working example into my project. These are the interacting ...
0
votes
0answers
28 views

Cannot save vector layer to specified file directory

I have the latest QGIS version (3.12 Bucuresti) on Linux Deepin, and I'm having issues exporting a vector layer. Specifically, when I browse the file directory where I want to export the vector layer ...
2
votes
1answer
67 views

Saving each feature symbology to a image using PyQGIS

I am attempting to write a plugin to export a LayerVector (Points) to images. I need to get the symbology of each point to export as images (PNG). My intention here is to create a new file containing ...
0
votes
2answers
84 views

Deleting duplicate points from two different layers

I have two layers with the same feature ("Object ID") and same location All lightning strikes Cloud strikes I want to delete the 'Cloud strikes' that are still to be found in the 'All lightning ...
2
votes
1answer
79 views

Automatic filling of rings with additional polygons in QGIS

I have a large layer with a couple of thousand polygons mapping inland waterbodies. A lot of these contain rings, mapping islands. I would like to count the number of islands and do some statistics ...
0
votes
0answers
30 views

How to dissolve a subset of a multipolygon vector in QGIS? [duplicate]

I have a multipolygon layer. Some of the polygons within the layer overlap. I would like to dissolve only the polygons which overlap and not any discrete polygons. Is this possible? I am currently ...
1
vote
1answer
62 views

QGIS Natural Earth Geometries

When I insert country borders from Natural Earth, they look broken when zoomed out. When I zoom in they look correct. Is there any way to correct this, particularly when creating a map in layout?
0
votes
0answers
91 views

Can't add vertex to polygon in QGIS3

I'm working in QGIS3.8.3 and am trying to use the Vertex Tool to add a vertex to a pre-existing polygon. I expect to be able to do this in an editing session by hovering over the segment in question ...
1
vote
2answers
87 views

WFS point layer does not appear on OpenLayers map when called from GeoServer

I'm writing because I attempted almost all the tries suggested in any other Q/A on this thread. I have this vector points layer on my local GeoServer and i'm trying to plot my points on a OSM base map ...
1
vote
0answers
46 views

Measuring area of raster within polygons using QGIS

I am trying to use QGIS3.10 to analyze the area of forest within regions. It looks like this where the polygons belongs to WFS layer and Rasters belongs to WMS layer. The legends fo Raster suggests ...
1
vote
0answers
30 views

Which type of slash to use in path - QGIS 3.8 with Python [closed]

I'm a beginner using Python. I had a problem loading a shapefile in QGIS 3.8 using Python, while loading a rasterfile worked perfectly. I found the solution here: Can't load a shapefile with ...
3
votes
1answer
488 views

Creating a Line feature in PyQGIS QGIS 3.x

In QGIS GUI, a line feature is created from this icon 1.jpg How to Create a line with a fixed distance from a vector layer in python console. This my example: from qgis.core import * from qgis....
1
vote
0answers
24 views

Approximation of data in ArcGIS

I have a problem in the section graduate( symbology--->graduate). I want to scaling data from 0 to 0.9 in ten step, but when i put in the cases a range from 0.0 to 0.1 (or 0.1 to 0.2 etc) the system ...
1
vote
1answer
190 views

Split vector by field name and rename output files according to field value

I have a shapefile with several features and want to split the layer into separate shapefiles. I looked into similar questions recommending Split Vector Layer. However, I could not find a way to ...
2
votes
2answers
478 views

Get field names in attribute table with Python

I have a geopackage file, with a layer called "MyLayer". Within this I have an attribute table with approx 20 attributes. I can read in each attribute individually like: import geopandas as gpd ...
1
vote
1answer
139 views

Add GeoJSON features from an API call in OpenLayers 4, layer not displayed

I'm trying to create a little demo to show the data from our API into a map but I cannot see my layer Here my code, is just basic for the moment, we just need to display the data: const projection = ...

1
2 3 4 5