The Stack Overflow podcast is back! Listen to an interview with our new CEO.

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
0answers
14 views

Working with street network and boundary shapefiles [on hold]

I am trying to do this: GitHub - mittrees/Treepedia_Public: Treepedia package for public use I am stuck at the first step that says that: With the street network and boundary shapefile for your ...
2
votes
1answer
1k views

Converting XML to polyline shapefile?

I want to convert this XML file to a polyline shapefile. <?xml version="1.0" encoding="utf-8" standalone="yes"?> <ci nc="BMSKDMA10" nl="BMskDMA10" mt="6" ct="DM" dtt="17342" dtu="15/01/2016 ...
4
votes
2answers
44 views

Remove unconnected polylines from a shapefile ArcPy

How do you isolate a group of polylines that are not connected to the bigger polyline group. Ideally, I would like to rank all the polyline groups based on how many features there are in each group. ...
3
votes
2answers
1k views

Can't Find the Split selected features with selected line from another layer tool

I'm trying to split a selected polygon features with a selected line from another feature layer. I, however, can't seem to get the tool for this to show up in my advanced digitize toolbar. In ...
4
votes
1answer
528 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": ...
3
votes
1answer
46 views

Distance between points along line

How do I determine the distance between points to the neighbor point that connected via the line(road)? In QGIS 3.8.3 I have tried v.distance and v.net.distance but they do not help. The line(roads) ...
-1
votes
1answer
23 views

What are the units for MapPoint M value with spatial reference WGS 84? [closed]

Is this something I can convert to miles or meters? What is the equation?
3
votes
2answers
43 views

Clipping two line layers using QGIS

I have two line layers, A and B. Layer A is sort of a complete network (black lines on the screenshot below), layer B contains certain chunks from layer A (red and light blue lines on the screenshot)....
3
votes
1answer
1k views

Adding height data to polyline in QGIS [closed]

I want to place a polyline at the correct altitude in QGIS. Is that possible and how do I do this? What I have is a polyline (railroad) and I want to add information on the electrics above the ...
1
vote
1answer
56 views

Erasing a part from a line-GeoJSON

Consider the following line (GeoJSON): { "type": "FeatureCollection", "name": "longline", "crs": { "type": "name", "properties": { "name": "urn:ogc:def:crs:OGC:1.3:CRS84" } }, "features": [ { "type": ...
6
votes
2answers
8k views

Join / merge lines that touch and intersect in QGIS

I have a large dataset consisting of lines/polylines where I would like to join/merge the lines that touch / intersect. Each line has an individual ID and there are no common attributes I can use for ...
1
vote
1answer
20 views

Displaying MS Access records as lines in ArcMap?

I'm trying to add an MS Access table as a layer in ArcMap 10.6. There are four columns with coordinates - from_x, from_y, to_x and to_y. I want to represent the records as lines on the map. I can add ...
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
2answers
32 views

ArcGIS Pro: Create polygons from outlines of unclosed lines

First a disclaimer: I have very little experience with ArcGIS, I usually use QGIS and only recently started using ArcGIS Pro. I have a River dataset from the Natural Earth Site, then made its ...
5
votes
1answer
100 views

Selecting line features by topology in QGIS (select dangles)

I want to select line features by their relationship to their neighbouring line features. To perform generalisation on the data set I need to select lines that: Do not intersect with their end point ...
0
votes
1answer
177 views

Length of intersections from a linestring and a grid shapefile by using Python GeoPandas & QGIS

I am using Python GeoPandas and I have two shapefiles. One of them is a grid file containing equal polygons. The other shapefile is a linestring file with several lines and its Attributes. The idea ...
2
votes
1answer
62 views

Split a polylines according to a specific point in R

I have 2 distinct spatial objects: on one hand I have a SpatialLinesDataFrame on the other hand I have a SpatialPointsDataFrame Considering one line and one point that intersects that line, I ...
1
vote
1answer
98 views

Batch processing ( offset of font marker) in QGIS

I have a group of layers with type linestring. Every line consists of simple line and marker line (font marker). I have a batch file(csv) with offsets of font markers. Do you know if there is any ...
3
votes
1answer
112 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 ...
0
votes
1answer
412 views

Drawing line overlays and centering map [closed]

I have a dataset with start and end points of lines. Columns in the table are unique_line_id, line_start_point_lat, line_start_point_lon, line_end_point_lat, line_end_point_lon I need to use this in ...
1
vote
1answer
34 views

Splitting line with equal parts in range [closed]

How to split line into equal parts in QGIS, with a certain condition: the parts to be between 50m to 150m?
1
vote
1answer
54 views

Extract borders from country polygons

I'm trying to convert a polygon GeoJSON of countries into a line layer that contains only the borders. It should not contain the edges of the polygons that border the ocean (in my polygon dataset, ...
5
votes
1answer
381 views

how to buffer a line with varying distances associated with directional quadrant with open source GIS?

I would like to buffer a set of lines with different distances to the NW, SW, SE, and NE. I have the distances stored in four attribute fields that correspond to the direction the buffer should be ...
1
vote
1answer
25 views

Get shortest/fastest path between two points from SpatialLines(DataFrame)

I have a large rivernetwork as a SpatialLines(DataFrame) and want to subset it so I get a SpatialLine with only the shortest/fastest path between two SpatialPoints(DataFrame) which propably need to be ...
4
votes
2answers
1k views

Calculating the fractal dimension of a line segment

I have a shp file with hundreds of features that represent clipped segments of coastline. Each segment is made up of many vertices (dozens, perhaps even hundreds). (FYI, the segments were created by ...
1
vote
1answer
29 views

Spliting a polyline object by line ID based on @data values

I am trying split a SpatialLinesDataFrame by attributes I merged into @data I extracted a list of line ID's associated with a points data frame and aggregated them by category and line ID in dplyr # ...
2
votes
1answer
83 views

Splitting line with equal end parts

In QGIS 3.8.2 I would like to split line into equal segments. The issue is, that v.split splits the line into the required segments, except the last segment. I would like to split the line into equal ...
4
votes
2answers
317 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
1answer
51 views

Visualizing lines in QGIS

I have installed QGIS and I would like to upload a .xls-file (or Access database) with 2 GPS points (starting point and ending point), a road name and some distances from the starting point, for ...
3
votes
2answers
69 views

Percentage buffer around multiline in QGIS?

I need to create plugin to QGIS that will draw buffers about width equal 1/2 length each line. Example (my amateur sketch in MS Paint): So, around each lines be created square I searched good ...
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 ...
2
votes
1answer
38 views

Adding $length on the fly when adding line feature

is there a simple way (without writing script or python skills) to auto calculate and auto populate length attribute in QGIS? When I add a new line feature in my layer, I'd like the attribute length ...
22
votes
2answers
64k 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,...
0
votes
0answers
22 views

Calculate the sinuoisty of a line

I have an sf polyline layer in R an would like to calculate the sinuosity (i.e. actual length of segment divided by the shortest distance between start and endpoint). Does anyone know of a function ...
1
vote
0answers
635 views

GPS data cleaning and sampling of track data?

I have gotten a fairly large polyline-dataset of GPS-recorded tracks. I'd like to have a sample along the tracks for different variables. The problem is that the data has overlapping tracks. This ...
2
votes
1answer
24 views

Subset a SpatialLinesDataFrame in R based on the name field containing a certain string

I have a SpatialLinesDataFrame in R that is a road network dataset. The names of certain roads begin with the string "NH" to indicate that these are national highways. E.g., NH44, NH75 etc. Roads that ...
2
votes
1answer
32 views

Controlling line width at different points in QGIS [closed]

I have vector data for rivers including their width at various points. From what I have seen so far, QGIS 3.8 can set the line width only per linestring, no per segment. Is it possible (maybe with a ...
9
votes
4answers
2k views

Creating polygon connecting endpoints of multiple lines using ArcPy?

I'm trying to figure out how to create a polygon that connects all the endpoints of a shapefile containing a set of polyilnes with pythonscript in ArcGIS, I'm having trouble doing this as the order of ...
8
votes
1answer
8k views

Creating line with three points with Python in QGIS?

I'm new to Python and I'm having some dificulties. I want to create a simple layer with a line in the console of QGIS with Python. How can I do that?
2
votes
1answer
20 views

Fit Label to length of line feature at all scales

I have a shapefile with line features and an attribute table with placenames. Most lines are horizontal and they all represent label positions (orientation, length, location) on older, printed maps. ...
2
votes
1answer
44 views

Snapping lines together in QGIS

I'm using QGIS 3.8.2. I have a set of lines which represent a road network. However as I have taken different layers from different data sources the lines which represent the same road don't overlap. ...
1
vote
1answer
312 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
279 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 ...
1
vote
1answer
22 views

Nearest Neighbor Two Point Tables Return Line Geometry

I am looking to find the nearest neighbor between two point tables in PostGIS and return the ids of both along with the line geometry. I have been able to determine the distance for the nearest ...
6
votes
2answers
12k views

Nearest distance between point layer and line layer, QGIS

I have two layers , line and point layer. I need to make a line layer which connects all points to nearest line features? Did someone make a plugin for qgis? This is very important tool which missing ...
1
vote
4answers
3k views

splitting a lines layer using points

I'm looking to accomplish a similar task to this thread: Splitting line at point positions using QGIS? Using QGIS and the Processing and GRASS toolboxes available, I'm looking to split a vector layer ...
3
votes
1answer
46 views

Merging lines based on distance from point in QGIS

I have 5 groups of 4 lines, all the lines in all the data sets are centred around the same point. I need to algorithmically combine these lines into one line that is only the furthest from the point. ...
1
vote
1answer
1k views

Calculate slope of line segments with QGIS

I want to calculate the slope of a forest road in mountainous areas. No problem with ArcGIS following the instructions of the following post: (see comment of user 'FelixIP') How do I find the slope ...
1
vote
1answer
446 views

Create line layer around selected polygons

I want to select numerous polygons out of a polygon layer and create an outer line surrounding only selected features. All polygons are part of the same layer. For example, I want to have an outer ...
4
votes
1answer
172 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 ...