Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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)

1
vote
1answer
913 views

Splitting lines with points while maintaining other dissolved lines?

I am on ArcGIS Desktop 10.2. I have a line feature class of a stream network. I also have a point feature class along the main stream (line) where a catchment enters that stream. I have dissolved my ...
1
vote
0answers
22 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
28 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
36 views

Splitting line in proportional parts in QGIS

I have recorded flight paths of birds as lines. Now I want to transform the lines to points, which represent the bird's position in a minute interval. For this I want to divide the lines by the time I ...
5
votes
2answers
70 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 ...
0
votes
0answers
28 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
29 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
45 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
46 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 ...
0
votes
1answer
62 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 ...
3
votes
1answer
104 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": ...
4
votes
1answer
75 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 ...
-1
votes
0answers
23 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
46 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
59 views

Change attribute of a line according to overlapping polygon features

I'm pretty new to QGIS and python in general. For my work I'm faced with a bit of a problem. I got 100-m-segments of several streams and polygon-features of the surrounding substrate. The polygon ...
1
vote
1answer
25 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'. ...
1
vote
1answer
252 views

Extend polygon to polyline feature (keeping attributes)

I am looking to extend the polygon feature to the to the coastline polyline (blue line) while keeping the attributes of the polygon features (Figure below). What I am looking to do is find the ...
1
vote
1answer
68 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 ...
0
votes
1answer
104 views

Python: Open a (line) Shapefile and calculate distance to point given as a longitude-latitude tuple

I have a pandas dataframe in python with longitude and latitude values of certain locations (see sample below): Index Long Lat 0 -98.58 ...
0
votes
1answer
45 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 ...
3
votes
1answer
890 views

Is it possible to convert Polygon to centerline linestring?

I have a Polygon which I want to convert to centerline linestring. IMAGE 1 I used the Vector to convert to Polyline but they are not center line as under: VECTOR TOOL IMAGE 2 Polyline created by ...
0
votes
4answers
48 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 ...
4
votes
1answer
144 views

QGIS how to handle circular but non-closed lines

I use QGIS 2.18.3 and I have a shapefile with around 30,000 lines and a lot of invalid geometries. It is imported from a CAD project. I managed to solve most of the invalidities with the break ...
0
votes
1answer
64 views

Transforming a polygon to a linestring

Is it possible to (trivially, via a tool in python) to convert a polygon to a linestring? if so, how? If not, why?
2
votes
2answers
189 views

Using points2one?

I downloaded the points2one plugin and tried many times to connect points to a line, but it never works. Is there something that I set wrong? I tried the answer,but it has been running 10 mins, and ...
2
votes
1answer
131 views

Create polyline layer from csv-file (id, lat, long, time) in QGIS

Some units are moving and regularly registering it location. Each of these register events corresponds to row in a csv-file. This row contains fields: id (unit identifier), lat, long (event location)...
5
votes
2answers
6k views

How to convert a line to points?

I'm working with QGIS and I want to convert a line into many points, does someone know how?
0
votes
0answers
37 views

Split to equal length option is not working properly

I have a road data (line vector) which consist of a few lines and I have the length of each line segment. I want to split it into segments of 100m. When I used v.split tool, apart from 100m segments, ...
3
votes
1answer
124 views

Density map of pedestrian paths and footways in QGIS

I need to identify public places within pedestrian areas in London, so I need to calculate the density of both pedestrian links and footways. I have classified my data according to the categorization ...
1
vote
2answers
44 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
86 views

Mapinfo Line and polygons from different layers to be snaped

I have a layer that I need to edit [ kerb and gutter (KNG)] which consists only of lines that represent the kerb and gutters on both sides of the road. I have separated the left and right side of the ...
1
vote
1answer
39 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? ...
4
votes
1answer
71 views

Fixing bad topology on polylines with QGIS

I've been sent a shapefile containing 12 layers of some city's road system. Each layer depicts a portion of the road system, and all of them partially overlap on the map. I'd like to work on the sum ...
4
votes
1answer
1k views

Write a python function to split polyline shapefile with point shapefile

Update#1 I used the code provided by @GeospatialPython.com in the answer: import os import shapefile from shapely.geometry import * def cut(line_file, point_file, cut_file): """Cuts a line shapefile ...
1
vote
1answer
28 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 8....
1
vote
2answers
67 views

Combining two shapefiles which contain overlapping and duplicate geometry

Well this could be an interesting one. I've got two shapefiles of polylines (contours). I need them to be one nice and clean shapefile covering the same area. Only issue is, the shapefiles overlap ...
11
votes
2answers
37k views

How to read a shapefile in Python?

My question is an extension of Vertical lines in a polygon shapefile. Kindly refer to that question first. What you will see is a method of generating vertical lines with respect to the bounding box,...
3
votes
1answer
83 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 ...
0
votes
2answers
24 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
24 views

Selecting features with same geometry within one shapefile

I am working on a public transport network in one shapefile (polyline type). Certain bus routes share the same path, means that one line-part can repeat more than once. For instance, if I select a ...
2
votes
2answers
39 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
1answer
24 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
38 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 ...
1
vote
1answer
42 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.
10
votes
4answers
6k views

Breaking a dynamic text line in data driven pages

I am using data driven pages and some of my dynamic text attributes are too long for my layout. Is there a way to break the line into 2 or more lines with out editing the data? Example: FROM Billy ...
1
vote
1answer
58 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
30 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,...
2
votes
3answers
1k views

Split lines by polygons in QGIS

I have a river network (lines) and a shp with states (polygon). I would like to split the lines at the state boundaries --> split lines by polygon boundaries. Is there a geoprocessing tool to do ...
1
vote
2answers
182 views

Clipping vector shapefiles more efficiently using QGIS?

I have a river shapefile, got from r.watershed module, and it looks like this: I have eight points on the river which I want to analyse, and I only want this river segments:(the second photo below is ...