Episode #125 of the Stack Overflow podcast is here. We talk Tilde Club and mechanical keyboards. Listen now

Questions tagged [line]

A set of ordered co-ordinates that represent the shape of geographic features too narrow to be displayed as an area at the given scale (contours, street centrelines, or streams), or linear features with no area (county boundary lines)

Filter by
Sorted by
Tagged with
0
votes
1answer
200 views

dist2Line - Error in dist2Line(…) could not find the function “dist2Line”

I have a csv file with points (about 20 millions georeferenced points) and a line shapefile. I want to find for each point the closest distance to the line. The line is not a straight line it's ...
4
votes
2answers
101 views

Calculating line length within mulitple overlapping polygons using ArcGIS Desktop?

My question is similar to Calculating edge length of polygon within overlapping polygon using ArcGIS Desktop? However, my issue differs in that I have multiple overlapping polygons (upwards of 7) ...
1
vote
1answer
528 views

Polygon to line (polyline) in R

I am looking for an easy way to convert a polygon to a polyline in r. I have tried this but dit not succeed: polygon <- readOGR("~path/", "polygon.shp") polyline <- as(polygon, "...
2
votes
0answers
132 views

Shortest path between start and end point with many other points in between

Sorry if double post, but I haven't found this specific problem in the search function. I want qgis to show me the shortest path (direct) between many points with each point only is hit once. There is ...
0
votes
1answer
96 views

Polyline length within corresponding polygon

ArcGIS Pro 2.3: I have a feature class of polylines and for each polyline I want to analyze against its corresponding polygon. The link is the FLIGHTID field and it is a 1-to-1 relationship. I am ...
3
votes
1answer
34 views

Make line along edge of several rasters

I'll try to keep this simple. Is there a way to make a polyline that runs along the edge of these polygons. It is cadastrals that assembly the coastline and I need to generate a line that works as ...
5
votes
1answer
671 views

Smoothen Line vector QGIS

I am working on a publication and would like to make my schematic visually pleasing. The amount of detail is too high and the image would be better If I could simplify and smooth my line and polygon ...
1
vote
0answers
186 views

Impossible to split line in two parts with QGIS tool 'Split features' [closed]

I'm willing to cut a line in two parts with QGIS. So I enabled Snapping and I wanted to use the Split Features tool, like I've seen anywhere: one first left click and then another left click on the ...
0
votes
1answer
77 views

Determining percentage of overlapping lines using QGIS?

i have a lines layer that represents the bikeways of my city, and also have another overlapping layer that represents the bikeways that need repairs. How can i get an analysis of the percentage or ...
2
votes
2answers
168 views

How to convert several 'point' data to 'line' data?

I am using QGIS V3.4. I have over 1000 data points situated between a start and finish point expressing the Depth of coverage (DOC) of a pipeline. I need to identify the places along the pipeline ...
1
vote
1answer
216 views

Text on line within a line style QGIS 3

I'd like to create a line style in QGIS 3.4 where short text is written on the line. I am able to create a symbol layer in the line style, as a character symbol, but here only a single character is ...
1
vote
0answers
24 views

Using Soil Line to Assess Soil Fertility?

I am using a Soil Line model to research possible soil fertility in bare soil patches in southern Africa. I am using a function in R called BSL (Bare soil line) to create the soil line from some ...
2
votes
2answers
174 views

How to remove the boundaries of a Polyline?

I have a polyline. I want to delete outside boundaries of that polyline. I achieved it by splitting the features of that polyline and selecting/deleting the outer lines/boundary. I'm thinking, is ...
0
votes
0answers
22 views

How to connect point layers through their attributes/relations?

I have a project to use QGIS to track fishing activities (product goes from boat to fisheries to processors to factories...). All layers have coordinates and I managed to map them but now I´m trying ...
2
votes
0answers
59 views

How to export a single feature (line) from multiple layers and export to individual layers?

I have multiple vector layers representing a time series. Each layer contains many lines each. I want to select a single specific line from each of these these layers and save it to another layer. ...
0
votes
0answers
67 views

Google Maps: polylines showing up incorrectly

I'm trying to draw an encoded polyline via Google Maps but getting the wrong output. Correct Output: My Script Shows: I have this KML https://drive.google.com/file/d/...
0
votes
1answer
65 views

Measure distance for spatialLine in R returns bad value

I have this spatialLine in R: library(sp) library(maptools) library(SDraw) library(leaflet) x <- c(153.9, 152.67072,147.9879,144.25364,135.45557,116.03998,76.92708,45.10622,37.02522,36.76888,36....
0
votes
1answer
367 views

Spatial (nearest neighbour) Join Between Points (GPS coordinates) and Line in R

I want to do spatial join to an OSM line data and GPS point data both in geographic coordinate system, the result which I want is a road layer(has a unique ID) with the attributes of of road and the ...
0
votes
1answer
258 views

Lines in Polygon Analysis

This question is similar to the "points in polygon" analysis, but I want to keep the attribute data for multiple lines within a single polygon. The data source is multiple line segments representing ...
5
votes
2answers
155 views

Measuring average, min and max of vertex height of linear shape using QGIS?

I have a linear shape, all of the vertexes of each segment has a z-value, stored in the geometry. I need for every record, segment the average, min and max height value aggregated from their vertex ...
4
votes
1answer
101 views

Create Line From Points

I have this NDVI image of eucalyptus trees. I've already been able to isolate the trees and extract the location. Then I created the delaunay triangulation, turned it into lines, and then exploded to ...
4
votes
1answer
530 views

Merging lines (with and with no overlaps) in QGIS

I have two layers ("Layer_1" and "Layer_2") of lines where they sometimes overlap and follow each other for a bit and then takes another route (see the image below). "Layer_1": Red line "Layer_2": ...
0
votes
0answers
37 views

ArcGIS tool to batch re-order directions of polylines

I'm working with multiple datasets that each have thousands of polylines in their respective shapefiles. Is there an ArcGIS tool that allows me to batch re-order the directions of the lines? For ...
1
vote
1answer
51 views

Extending polylines edges to create polygons using ArcGIS Desktop?

I have two separate polyline shapefiles where the second was created by editing the records of the first one. (in the first file the line is in a different position than the other and have common ...
0
votes
0answers
10 views

Creating terrain polygon buffer from line using ArcMap? [duplicate]

I have a line in a steep hill, and need a 400 meter buffer on each side of the line. I know (roughly) how to create buffer on a point, but not a line. Can someone help me here?
1
vote
1answer
63 views

Creating/digitizing roads using ArcMap editor?

This is probably very basic but I am not able to figure out. I am trying to digitize roads by drawing lines. I go to Editor>Star Editing, select the layer, select my layer under 'create features'. ...
0
votes
1answer
927 views

How to get polyline coordinates in Leaflet

Using leafletjs, I created a polyline connecting a bunch of markers: var line = L.polyline( latlngs, { weight: 5, color: '#8EE9FF' }) Now, I am trying to get the start and end markers when I ...
0
votes
4answers
78 views

Welding line vertices or resume creating new line from end of old one in QGIS?

I'm creating a long and detailed (historical) border, and I guess it will take days. How can I weld lines, or just resume creating a new one directly from the end of old fragment using QGIS? When I ...
1
vote
2answers
279 views

Selecting/tracing part of line feature using QGIS?

I have a shapefile which comprises a number of lines, each representing a bus route. I'm wanting to create a new bus route which is the same as an existing line to a certain point, but then branches ...
2
votes
1answer
77 views

Splitting multilinestrings in segments using PosgreSQL

I need to split several multilinestring into a defined number of segments using PosgreSQL. I tried using ST_subdvideand ST_segmentize but they didn't work. Can someone help me to solve this problem? ...
2
votes
1answer
161 views

Bulk Snapping Points to Line Vertex in QGIS?

I have around 8000 point features that require snapping to the nearest line vertex. Please see below image for reference. I would like to do this in one go if possible. Is there a tool in QGIS 3 ...
3
votes
1answer
137 views

Line width and labels based on blended values of features sharing same geometry in QGIS

I want to appropriate line segments that share the same geometry with a particular line width and labels based on the aggregated values of one field "GIS@BUS_5_Min". My attribute table and polyline ...
3
votes
4answers
212 views

Selecting features with same geometry in one shapefile

@TeddyTedTed's answer is nice, however, I am looking for something more efficient. I am working on a public transport network in one shapefile (polyline type) in QGIS 2.18. Certain bus routes ...
2
votes
2answers
166 views

Add line feature using bearing

QGIS 3.4.Is there a way using advanced digitizing to use a bearing, i.e. N 45° 15' 25" E as the angle?
0
votes
0answers
42 views

Parameters for BSL Package in R

I am using the landsat BSL (Bare Soil Line) package from R https://rdrr.io/cran/landsat/man/BSL.html, and I am wondering why the code sample is using llimit 0.005 and not 0.01: BSL(band3, band4, ...
0
votes
1answer
38 views

Inserting line along line using ArcPy?

I try to insert a line between two lines. End points of lines are in intersection of lines. I use positionAlongLine in arcpy but it interestingly gets coordinates from the first points of referenced ...
1
vote
1answer
175 views

Count number of points on a line in R

I have a SpatialLinesDataFrame and a SpatialPointsDataFrame. I want to calculate the number of points that fall on a line by a specific field in the lines data frame. Example: I have a river network ...
1
vote
1answer
112 views

Deleting overlap between two polyline layers in ArcMap? [closed]

I have two stream layers and they overlap, I want to delete this overlap on one layer so I do not repeat any information. How do I do this? I can only seem to find information regarding polygons.
1
vote
1answer
104 views

QGiS 3.0: Line length without overlapping parts

I have overlapping lines in my layer and want a total length of the visible line without the overlapping part. i.e. I have two lines First one goes A-B-C Second one is B-C-D How do I get the ...
1
vote
1answer
116 views

Calculating Bare Soil Line using R?

I am using a package in R called BSL (Bare soil line), package is at https://rdrr.io/cran/landsat/man/BSL.html. I've used it successfully to run regression line for my soil study area but it is ...
1
vote
1answer
51 views

Lines from Oracle Spatial Layer in QGIS are not completly visible

I connected a spatial layer from the Oracle database which contains lines (OracleDB objectclass typ is polyline) to be visible in QGIS. An example geometry is as follows: sdo_geometry(2002,2056,...
1
vote
1answer
334 views

Splitting polyline at multiple points using Mapinfo Pro?

I have a table of points and used the mapbasic app "Connect the Dots" to create a polyline. The problem is it creates a single polyline and I want to split it up into separate lines so I can delete ...
0
votes
2answers
69 views

Merge only lines that they are touches on QGIS 3.2.3 and create a shapefile output with the result

I have a project with five lines, every element have a different ID. This is view below: I want to merge only lines that there are touching. According with this conditions the lines they should ...
1
vote
1answer
42 views

Merging lines, issue

I use qgis 2.18. I've merged two lines into one with the merging tool from advanced toolset. When I cut off a small part of the line, I see the original lines again? In these two lines I have the same ...
4
votes
1answer
287 views

Create perpendicular line transects - PostGIS

I have a river network (Line with arrow as shown in image below) and I need to create perpendicular lines to the river at every 15 meters as you walk along it (see image below). Is there a function in ...
1
vote
0answers
29 views

How to keep point number when converting to a line

I have a layer of point that I convert to a line with the plugin Point2One to be able to do apply a smoothing with the generalizer tool. It works well! then I convert my layer back to points using the ...
1
vote
0answers
192 views

QGIS “Sum Line Lengths” return 'nan.'

I have a polygon shapefile and a (merged) line shapefile (both are zipped). When I use Vector -> Analysis Tools -> Sum Line Lengths on these shapefiles, I get a layer with some of the LENGTHS filled ...
1
vote
0answers
16 views

Averaging attributes from small line segments into a new line segment

I'm working on a project which involves combining shorter road line segments into longer ones where needed using ArcGIS 10.5. Each segment has an attribute of average traffic flow. For example, there ...
1
vote
0answers
48 views

Shapefiles and attributes from ArcGIS Pro missing in ArcMap?

I have data that is a series of digitised polylines that due to issues with maintaining the Z component have been exported (from another software package) as XYZ points in .csv format. Using ArcGIS ...
0
votes
1answer
86 views

Splitting line into segments of different length with ArcGIS Desktop?

I have a river network and I have to split each river into transects of different length. The distances where the lines have to be split are in an excel sheet. For example I have to split the river 1 ...