Questions tagged [vector]

A coordinate-based data model that represents geographic features as points, lines, and polygons.

Filter by
Sorted by
Tagged with
-1
votes
0answers
28 views

Creating python function to merge line segments if they are connected [closed]

I have a polyline shapefile consisting of several line segment features. I want to do a merge operation if the line segment features endpoints are connected, and if the features are disconnected do ...
0
votes
0answers
26 views

I am getting an error running v.to.rast

I can see that this question has been asked in some other way before. Unfortunately, the advice given there does not help me. I am trying to run v.to.rast and the error message that I get is WARNING: ...
1
vote
0answers
27 views

PostGIS difference between polygons - Ring Self-intersection?

I want to take ST_Difference or ST_Intersection to take the difference between two polygons. SELECT a.id, a.geom, st_difference(a.geom, b.geom) FROM liechtenstein.flaechen_norden a, liechtenstein....
1
vote
0answers
30 views

QGIS 3.16.3 uses Python 3.7.7 while I want it to use Python 3.9.1 already on my MacOS Big Sur

MacOS: Big Sur 11.1 QGIS: 3.16.3 KyngChaos said that QGIS 3.16 is using Python 3.9.X (strictly) and I installed this in my system, however the Python bundled with QGIS is 3.7.7. It is strange that ...
4
votes
0answers
48 views

How to use FactoQGIS for Typological Analysis Principal Components Analysis (PCA) for vector features in QGIS?

How to use FactoQGIS for Typological Analysis Principal Components Analysis (PCA) for vector features in QGIS? I have a shapefile of polygons as in the following image: Both visually and as ...
1
vote
1answer
68 views

How to draw centerlines of Oriented Minimum Bounding Box in the orientation closest to orientation of all polygons collectively in QGIS?

How to draw centerlines of Oriented Minimum Bounding Box in the orientation closest to overall orientation of all polygons collectively in the layer in QGIS? I have a shapefile of Oriented Minimum ...
4
votes
1answer
103 views

Calculating dominant angle of a polygon in QGIS without main_angle function

How can I calculate dominant angle of a polygon in QGIS without main_angle function? I have a shapefile of Oriented Minimum Bounding Box rectangles (accessible from the following link: https://drive....
1
vote
1answer
16 views

Topography - represent result in WKT as polygons with rings or multipolygon without rings?

I'm new to GIS vector, especially for GIS tools like ArcGIS, QGIS,... My question is, for this image below with poylgon 1 and polygon 2, typically how a WKT (Well-known text) is represented in GIS ...
0
votes
1answer
35 views

Changing symbology from simple marker into a vector (print of a building)

I've got a question about changing the symbology of a certain rule-based layer. See below as to the current simple marker: As you can see the house is given this grey color because of the added 'topo'...
5
votes
3answers
158 views

Calculating buffer distance for different groups of parallel lines in QGIS

I have a number of parallel lines (see here for the background: How to extend lines to Bounding Box in QGIS?). My final aim is to create the Centerline for each group of lines as illustrated here: ...
2
votes
2answers
112 views

How to extend lines to Bounding Box in QGIS?

How to extend lines to Bounding Box in QGIS as in the following image: Figure 1: Lines Figure 2: Lines extended to Bounding Box Link to Shapefile of Bounding Box: https://drive.google.com/drive/...
1
vote
0answers
46 views

How to get centerline of each polygon (rectangles) in QGIS [duplicate]

How to get centerline of each polygon (rectangles) as in Figure 1 in QGIS to obtain centerlines as in Figure 2 Figure 1 Figure 2
4
votes
0answers
23 views

Batch create multiple buffers with variable size around point

For a statistical analysis, I need to calculate some landscape properties in several (rectangular) sample areas, which vary in size (extent ranging from 10 by 10 to 500 by 500). These sample areas are ...
4
votes
2answers
100 views

Renaming multiple layers in the legend from an attribute in each layer in QGIS

I have 72 layers that have been generated via affine transform of a single layer that has 72 categories. But the 72 layers have been given names that are sequential numeric. The original categories ...
2
votes
0answers
28 views

Align arrow (point layer) to water direction (line feature)

Assuming that pipes are digitizet correctly (first node as upstream, last as downstream), I need to align the arrows of a point layer to display flowmeter's direction. So far I need to use v.split (...
4
votes
1answer
53 views

What has happened to my landcover data?

I have downloaded Great Britain vector landcover data from Digimap. I was expecting it to look like the image on the left, however, when I downloaded it to ArcGIS Desktop it only displayed 1 colour (...
0
votes
0answers
59 views

QGIS 3.16.1: Clip by mask layer not working in macOS Big SUR

I am having an issue with clipping my raster as per the vector mask layer. I did try to counter the issue with projecting both files in same CRS, however, still getting the same error (ERROR 1: ...
2
votes
0answers
50 views

Doing TIN Interpolation in QGIS

I want to do TIN Interpolation on a layer but when I fill all the fields with the right data (vector layer, interpolation attribute, extent etc) the algorithm does not run and shows me this message: ...
0
votes
0answers
42 views

Vector length attribute not the same after convert to raster in QGIS

In QGIS I've successfully used GRASS v.to.rast to convert a SHP file to a raster and then raster>conversion>BMP. My output looks great. The raster info says it is w = 3070, h = 8727. Unit is ...
3
votes
1answer
33 views

In QGIS, how do I select by attributes on features sharing common value?

I have a point vector with features sharing non-unique IDs. Each feature also has a "distance" field. I want to select among each set of features sharing the same ID only the feature with ...
0
votes
0answers
23 views

Importing vector data into Earth Engine via asset manager

I am trying to import the shapefile of my country into the Earth Engine asset manager in order to perform some analysis, but I keep getting the error message below on every attempt after the task runs ...
7
votes
2answers
135 views

Select the holes in a vector shapefile in QGIS

Is there a way to select the holes (gaps) in a vector shapefile in QGIS, like the "fill holes" function which recognizes them indirectly? I need to get the holes from the original shapefile ...
2
votes
0answers
55 views

OpenLayers: exporting vector map to PDF

Our application uses OpenLayers+PostGIS to visualize and process millions of spatial data files (GeoJSON). We have a requirement to be able to export the processed final data as PDF/GeoPDF Vector maps....
0
votes
1answer
18 views

Adding column to attribute table indicating polygon each data point is in using ArcGIS Pro

I am working on a project linking ideas in Geology and Ecology. I currently have a map showing the geology of an area (polygon layer), with a points layer on top indicating the locations of data ...
0
votes
1answer
40 views

Problems with specifiying TM_fill when creating a map in R with TM_maps

For my research I am visualizing plastic contents in segments of water. After creating my segment (online, polygons in KML-file) I jointed it with my table with fieldworkdata with plastics per segment....
1
vote
2answers
54 views

Converting a shapefile from decimal degrees to UTM (km) in R

The code that I have below seems like it works in converting my vector roads which is in decimal degrees into a UTM CRS so that I can more easily work on the data in kilometers rather than decimal ...
1
vote
1answer
29 views

Distance raster from polygon features

I have a dataset of buildings as polygons in Qgis 2.14 (image below). I'd like to create a raster of distance from these features (ideally with arbitrary cell dimension), for which each cell expresses ...
0
votes
1answer
24 views

v.to.3d Fails in QGIS

I've been able to use the vector to 3d tool successfully on some contour information before, but it's throwing an error anytime I work with data from New Hampshire's Granit site. In QGIS, the tool is ...
1
vote
1answer
70 views

QGIS snapping issue

I'm facing the issue when I use the snapping tool at line layer in qgis. I turned on "snapping to segments" and then i've drawn that green lines (picture below) which touches other (purple) ...
0
votes
0answers
21 views

How can I use a raster layer over a vector layer to read in the next UTM area?

I'm still a beginner with QGIS and now have a problem that the numerous training videos don't show me and I can't find anything in the manual. I received two layers from Swisstopo. One with raster ...
1
vote
0answers
22 views

Angle between the magnetic field vector and the vector joining a satellite to a receiver station

I was wondering if someone could help me in finding the angle between the magnetic field vector at a location and the vector joining a satellite to a receiver station. This angle is also known as ...
3
votes
1answer
63 views

Importing GeoPackage via GeoPackage vs. Import Vector in QGIS

Is there any difference when importing a GeoPackage into QGIS using the data source manager between using the section "Vector" and the section "GeoPackage"? I did not see any ...
2
votes
0answers
23 views

Creating vector gradiants showing magnitude and direction by taking input of two rasters in QGIS

I have two binary rasters and I am focusing on pixels having value 1. Now, I want to know show direction and intensity from which pixels (having value 1) of one raster is shifted other raster. ...
2
votes
1answer
44 views

Creating new vector which is “inverse” of existing vector (e.g. water surrounding island) in QGIS [duplicate]

I want to create a new vector layer which represents the surrounding water of a particular island I am working with in QGIS. Is it possible to create a water shape based on an "inverted selection&...
0
votes
0answers
23 views

QGIS 3.12 Toolbox Vector Creation - Create points layer from table corrupting field data

I'm fairly new to this I have imported a table from Excel with coordinates and wanted to convert it to a points layer using the above tool. But it appears to corrupt fields that are real numbers for ...
0
votes
0answers
7 views

How to choose cell size for grid points to fill polygons in R?

I have a shapefile consisting of hundreds of polygons depicting building footprints in a city. I want to fill these polygons with grid points. I am doing this by making a grid of points and then ...
0
votes
0answers
34 views

Projection issue causing clipping issue in R, different proj4 strings

I am trying to clip a grid of points to a vector polygon layer in R, but am encountering an odd error I can't figure out. The goal is to get a new layer that has the grid points, but only as clusters ...
0
votes
0answers
21 views

Overlay layers on different displays from the same coordinate system

I have vector layers from digitizing in Google Earth and vector layers from digitizing of a pdf document. All the layers were projected in the same UTM zone 30N system (EPSG code 32630). However, ...
0
votes
0answers
44 views

How to Access/Write to a Shapefile in S3 Bucket using BOTO3 and GDAL

I'm trying to access and make edits to a shapefile that's located in a zip on an S3 bucket. So far I've used /vsizip/vsis3/ to access the zip file that the shapefile in question came in. I've made the ...
1
vote
0answers
41 views

How to automatically align a line with a grid

I have a line layer (orange line in image below) that I need to snap/align with an underlying grid (light blue lines below). The desired result would be something like the purple line. I have already ...
0
votes
0answers
31 views

Creating shapefile of a raster image in QGIS 3.6

I use QGIS 3.6 on Windows and I have been trying to convert raster images into shapefiles. I managed to do that for Digital Terrain Models only, using the conversion --> vectorize tool in the qgis ...
2
votes
2answers
78 views

Find nearest point with the same attribute

I have a points data set of toponyms with several thousand elements. There are a lot of duplicate names that fall in two categories: legit ones, i.e. different places with the same name at several km ...
0
votes
0answers
23 views

gdal_rasterize incorrect values scale after rasterization

I am trying to rasterize a .shp file (in particular it is made up by several Polygon) into .tif one by using python and the gdal_rasterize command. According to the gdal_rasterize function, I was able ...
0
votes
0answers
24 views

Rasterize(Convert Points to Raster) :UnicodeDecodeError in QGIS3

I used Rasterize in QGIS3 to convert points to rasters. The source file of the point layer used is as follows: But clicking Run displays the following error message: Traceback (most recent call last):...
0
votes
1answer
47 views

Clip using Discard and Preserve option in QGIS

I am currently using QGIS, but it seems like there is no option like in ArcMap for Cliping polygons where I can choose if I want to Discard or Preserve selected area. Can you help me with that?
4
votes
1answer
65 views

Offsetting Advanced Digitizing lines from north in QGIS

In QGIS, I'm trying to draw some polygons (mostly rectangles) on a grid, with neat 90-degree right angles and such. All the polygons should be parallel or perpendicular to each other. The problem is ...
0
votes
0answers
43 views

Why can't I add more vector layers without QGIS freezing up on me?

I've been working on a project for a quite a while, I've loaded many vector layers, including several hundred short line segments that are kmz files, as well as topo lines, lake and glacier polygons, ...
1
vote
1answer
58 views

Changing the color of every entity of GeoJSON layer in OpenLayers 6.4.3

I would like to change the color of every entity of my GeoJSON, like in the picture. For now I can just change all the features with the same color. Here is my code: const provinceGeoJSON = new ol....
2
votes
0answers
34 views

Empty pixels in polygon border

I have a vector shape file with the basins of South Carolina. Some of the sub-basins polygons have a "hole" or no data pixel in their boundary (See photos for reference 2) and I need them to ...
5
votes
3answers
147 views

Calculating proportional area of polygon covered by circle [closed]

I have two layers here (ignore the green layer), blue polygons and black circles. I want to calculate for each circle, what percent of the each of the blue polygons does it cover. For example, the ...

1
2 3 4 5
32