Questions tagged [points-to-line]
Process that generates line(s) from individual points.
170
questions
0
votes
1
answer
43
views
Want to curve lines that are already connected (not drawing)
I have three layers. 1 point data with slaughterhouses, 1 point data with stores, and 1 line layer connecting the two (I connected them using the plugin "Connect points").
I want the lines ...
2
votes
1
answer
71
views
How to order points within a group?
I'm trying to join the nearest points within a group to create a line layer. I have the points, unique ids per point, and the grouping ids.
This question seems very easy or at least should have been ...
1
vote
1
answer
146
views
How to to create lines from points where the point attributes are transferred to the line segments?
Background:
I need to create lines from points where the point attributes are transferred to the line segments.
The screenshot below shows two point tracks. Each track's point has a unique id and an ...
1
vote
1
answer
95
views
Create e virtual layer (points to line) refering to specific rows in attribute table
I have a point layer "Points" with the following attributes:
Name
FromNode
ToNode
Startheight
Gradient
Length
Endheight
14870040
14870040
14870055
39
0.005
57.51
14870056
14870056
...
3
votes
1
answer
107
views
Calculating and visualizing interdistances among points in QGIS (Delauney Triangulation)
I have a point layer:
and I would like to calculate and visualize interdistances among the points with lines automatically to see if there is any trend.
The main issue is that if I connect all the ...
0
votes
2
answers
33
views
Finding closest point on line from point using ArcMap
I am using ArcMap 10.8.
How can I find the point on a line that is closest to a given point, or alternatively, the closest vertex point of the line if it is not perpendicular?
Refer to the following ...
0
votes
1
answer
36
views
QGIS Toolbox "Points to path" layer can not "make permanent", layer disappears after "make permanent" to CSV files
After I made permanent for the new path layer (with Points to path toolbox function), which is done by saving CSV files of the new path layer, the layer just disappears from the window, the checkbox ...
0
votes
1
answer
1k
views
How does Geopandas calculate distance between a point and a line?
I am using GeoSeries.distance to calculate the distance between a point and a linestring in a projected coordinate system. How does Geopandas calculate this distance? What is the logic behind the ...
2
votes
3
answers
176
views
Making the coordinate trace looks more smooth without road network
We have a lot of coordinates generated by GPS and UWB devices for different users in our system. For a given user for a certain time range, when we tried to display their history trace(the yellow ...
0
votes
0
answers
6
views
Can't aggregate data by date to calculate point path length
I have a table with the coordinates of the movement of the car, its id and the time the coordinate point was received. When I try to calculate the mileage of a car by grouping points by day, an error ...
3
votes
1
answer
127
views
Creating connections between multiple points from CSV file in QGIS
I have the following situation:
I have two CSV files: One file lists all nodes and their longitude and latitude in the following manner with the following columns:
ID
Name
Longitude
Latitude
No ...
8
votes
3
answers
353
views
Creating lines between points with certain attributes using QGIS
I have a layer with the coordinates of animals from a field experiment. Apart from other attributes the layer also contains the animals' unique ID and a timestamp. I want to know the travelled ...
1
vote
1
answer
129
views
Parquet files and PySpark: creating linestring column from node references
I've used osm-parquetizer to convert my pbf files to parquet to parallelise my actions using PySpark and Apache Sedona to query as such. The schemas created by the parquetizer didn't have a geometry/...
3
votes
1
answer
155
views
Assigning IDs in regular point layer using QGIS
I have a uniform point layer generated by using the Regular Points process. My goal is to connect (draw a line to join) a certain number of points in this points layer in a snake pattern.
My current ...
3
votes
1
answer
216
views
Adding vectors (segments) connecting pairs of points from CSV file in QGIS [duplicate]
a) Given: In QGIS 3.28 I have two sets of points: Points M and Points N (See embedded image), given by their coordinates in a CSV file.
b) Required: A set of vectors (or segments) connecting the pairs ...
1
vote
0
answers
132
views
how could I calculate the shortest distance between points showing the distance in each different route?
I want to do a network analysis using any plugin, but the main problem is that I want to get the shortest distance between two points, but it must give me the distance in each route (in my case they ...
1
vote
1
answer
258
views
Shortest distance of point feature from one line in QGIS
I would like to ask for your help with calculating in simple way distance of points feature to one line (for example, what is distance of cities from the national border).
I see there were few topics ...
3
votes
1
answer
122
views
Representing day/night routes in QGIS
I'm working with QGIS 3.22.11-Białowieża and I've got a point layer that represents the migration route of a bird species. Each point has the following attributes:
trip that identifies a single trip (...
0
votes
2
answers
255
views
Creating segmented line connecting points using QGIS
I have a series of points along a road that I want to use to separate plots. I have tried using the point to line tool to create a line from these points using QGIS. However, it creates a single line ...
1
vote
1
answer
145
views
Trace/clip a segment of a line using a point layer
I have a set of points as well as a line layer (a road network) as given below.
After I snap the points to the line layer the result is as follows.
The result that I need is to clip/trace the line ...
1
vote
1
answer
103
views
Generating Points to Line when the points are on either side of the Pacific
I am currently trying to generate some lines with a dataset that has points on either side of the Pacific ocean. When I try to generate the line, it creates one long line connecting them through the ...
3
votes
2
answers
413
views
QGIS - Draw line along points, using next closest point as next vertex
I have a bunch of points which I have extracted from line features. Now I want to connect them back to a line, but unfortunately, they are not sorted in the correct way, so I always end up with a wild ...
1
vote
0
answers
27
views
Snapping points to lines returns unexpected results [duplicate]
I have a linenetwork lines and a lot of points points.
The table lines has 42869 rows, the table points has 11264 rows. I am trying to snap each point to its closes line.
SELECT
p.id,
...
2
votes
1
answer
382
views
Calculate distance from point to polygon edge in QGIS
I am trying to calculate the distance of around 90 points from the closest edge of a polygon. I a currently using QGIS Version 3.22.8.
I have reviewed previous answers at this link that fits my ...
0
votes
1
answer
1k
views
Geopandas - Create all lines between two point shapefiles
I have two point shapefiles A (say, 10 points) and B (say, 30 points). I would like to create a shapefile with the lines between all points in A and all points in B (so, 300 lines). I have not found ...
1
vote
0
answers
89
views
Taking vertices and using point to path creates a mess, how can I snap the lines to roads?
I’ve tried points to path (and various other processing tools) however I end up with this:
When really it should look more like this line string
(without the gaps separating chunks of road here and ...
1
vote
1
answer
178
views
Lines style from layer of points in QGIS Expression
I would like to draw generate a geometry of n-1 polylines from n points in QGIS 3.22 "Field Expressions"
(Sorry, the screenshot is in french)
What is the formula to enter here to generate ...
1
vote
1
answer
122
views
Making lines from points and classifying them by length in QGIS
I have a QGIS point layer with several points with no attributes except the Id field. I want to make a line from each point to the rest of the points. In addition, I would like to get two new fields, ...
1
vote
0
answers
52
views
How to assign point feature values to line features?
I have two datasets, one being a point feature dataset and the other being a line feature dataset. Each point feature contains a traffic count value that I want to assign to the corresponding line ...
0
votes
3
answers
136
views
Creating a line from point data
I have added coordinates into a excel sheet and converted them into .csv file (a short snip is shown below). these are transects therefore 'SOL' = Start of line' and 'EOL' = 'End of Line'. I have then ...
5
votes
2
answers
733
views
Connecting points to line segments along path in QGIS
I have a set of points that fall along a trail, as in this image:
and I need to convert these points to line segments.
The points fall along a polyline, and points on the same line share a common ID &...
2
votes
2
answers
163
views
Connecting points by line number and code in QGIS
I am looking to connect points with a line using Geometry Generator or Virtual layer. Each point has a unique number, a code and a line number. The goal is to display in QField application the lines ...
3
votes
1
answer
310
views
Creating multiple routes with several stops using QGIS
I am trying to find the shortest paths given a number of points with a specific order for each path. Specifically, my point data have the following format:
I used the approved solution given in ...
2
votes
1
answer
189
views
Drawing fixed-length line from points layer towards nearest points on line in QGIS
Basically, I've used a buffer to find all airbases within 100nmi of a coastline. Now what I'd like to do for each of these points is draw a line a) to the nearest point on the coastline, and b) ...
2
votes
1
answer
434
views
Creating line feature with gradient based on data from the points that were used to create line using ArcGIS Pro
I have air quality and GPS data in a table and can display these as points, but I would like to display them as one contiguous linear feature that "blends" the data and color gradient from ...
10
votes
2
answers
3k
views
Shortest path touching all points
I am looking for a solution to derive the shortest route that touches all the points using Python. Please note that
This is not a Travelling salesman problem (TSP), in which the route should end ...
0
votes
0
answers
75
views
QGIS connect points by arrows and update automatically
I have a point layer with a date field and a text field. I want to create a layer with arrows that will connect them in order (and also group them by the text field). So far so good, the Points to ...
1
vote
1
answer
80
views
Reconstruct Tracks
I got a CSV file with a bunch of waypoints from different users tracking their routes. Each waypoint has information about time, UserId and RouteId. These points are already implemented in QGIS 3.14....
4
votes
3
answers
2k
views
Points to path does not group points to lines in QGIS
I often want to join sequences of GPS points to form sets of lines that represent periods of at-sea survey effort.
My GPS point file includes an integer "Order" field with unique values, and ...
1
vote
0
answers
44
views
Points to line in a river network
I'm trying to build a network from these points. I've tried points-to-path but it's not giving me the desired output. The problem is that the Node ID that comes from the shapefile is not actually in ...
0
votes
0
answers
71
views
Creating line feature from two points that doesn't intersect with land / polygon feature using ArcGIS Pro
I have some marine fish species data that is mark-recapture data i.e. coordinates for a fish tagged with a plastic ID tag and coordinates for the same fish recaptured at a later date (identified using ...
6
votes
1
answer
163
views
Calculating distance between two points using QGIS C++ APIs
I have been trying to find the distance between two points using QGIS C++ APIs in Qt. I used the following code :
QgsDistanceArea d;
d.setEllipsoid("WGS84");
qDebug()<< "...
2
votes
1
answer
297
views
Choosing proper Order field when using Point to Path tool in QGIS
I'm practicing creating vectors/lines in QGIS 3.16.3 by uploading .csv files from Excel with Lat/Long decimal degrees, and then using the "Points to Path" tool to connect the locations.
I ...
1
vote
1
answer
224
views
Adding Point layer attribute to subsequent Lines segment using QGIS
I have multiple point shapefiles which have values like ID , Strom ID , windspeed, Lat , lon etc.
I used Points to Path tool to convert these points into storm tracks ( See fig 1) using ID as order ...
5
votes
1
answer
6k
views
Creating LINESTRING from two POINT(s) and finding mid-POINT
I would like to create a LINESTRING from two POINT geometries and then determine the mid-POINT. So, from my original Pandas' DataFrame, with "x" and "y" columns, I created the ...
0
votes
0
answers
251
views
QGIS point to path not aligned with road
Can I use QGIS 3.10 to display overlaid encoded google polylines, with the purpose of showing road network activity?
I am using QGIS 3.10.
I have a series of GPS points that go from one origin to ten ...
1
vote
0
answers
30
views
Connecting all points to each other in QGIS [duplicate]
I have a points layer of about 300 points, and I'm trying to find a way to draw lines between every pair of points (so 44,850 lines in total).
I've thoroughly perused similar questions here and tried ...
5
votes
2
answers
800
views
Prevent stretching across the entire map when connecting coordinates into path from Asia to North America
I am connecting coordinates around the world in a specific order. When moving from Asia to North America the line makes a connection that stretches across the entire map instead of bleeding over the ...
3
votes
2
answers
1k
views
Points to Path using order from array of points in QGIS
I have a node layer with several thousand points. Each one has a unique attribute "N".
I also have a list of N values which make up the points to which I would draw a line:
19523,19581,19662,...
4
votes
2
answers
1k
views
How to know if a point is on linestring or near one (<0.01units) using GeoPandas
I want to know if a point intersects/touches/on the line/linestring or if the point is less than 0.01 mts (units) from linestring.
import geopandas as gpd
import matplotlib.pyplot as plt
lines_gdf = ...