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
1
vote
2answers
89 views

Creating lines connecting each possible pair of points in PostGIS?

I am working with a group of points I would like to create lines connecting each possible pair of points. Example: If I have points A, B and C I would like to have lines connecting A-B, A-C and B-C. ...
3
votes
1answer
55 views

Making path between polygon using QGIS?

I am trying to draw a line (vector layer) of a certain length that that tries as much as possible to dodge the green polygons. Assuming a starting point, is there some sort of line centroid ...
2
votes
2answers
47 views

Creating lines from points preserving gaps in QGIS [closed]

I have CSV sets of navigation points, with the following scheme: Easting, Northing, Line_name, Fiducial. I can connect the lines with Points to Path, using the Line_name as the Group field and ...
1
vote
0answers
45 views

How erase the rest line from WGS84 projection? [duplicate]

I am working in world map (the Natural Earth data) which I would like to readjust for a political map of the world. So, I have already changed the central meridian in Mercator projection, but I ...
1
vote
1answer
28 views

Subtract lines from lines in QGIS

I have two shape files with lines: one has 41k+ lines and the other has 606 lines. Lines from these layers often overlap. I want to use the second one as a mask to clip lines from the first one so I ...
0
votes
0answers
26 views

Split lines in R creating 2 group ids [duplicate]

I would like to split a linestring into two features separated by a point. Here's what I mean: This is what I've tried so far in R using the sf package: Sample data library(sf) library(dplyr) # ...
1
vote
1answer
55 views

Infinite straight line

Is there a tool (or plugin) to draw an infinite straight line from 2 points in Qgis (latest version)? The reason I'm asking is that I would like to find an object on a map that is on the left side of ...
3
votes
1answer
54 views

Correct vector data type of enclosed polyline

For a long time, I was wondering which GIS spatial vector data types does the enclosed polyline feature possess. Somebody told me, that when polyline feature's last vertex meets the first one, e.g. ...
2
votes
2answers
122 views

Deleting lines automatically which are not connected

I have a shapefile consisting of polylines. I have managed to explode these polylines (break at there vertices). There are a bunch of lines all over the shapefile which are not connected (shown in the ...
2
votes
0answers
44 views

Isolating main polyline using QGIS?

I am trying to convert a line shapefile with branches into just one polyline, actually deleting every other diramation. Imagine something like this: :________|__________|____|||______ into :...
0
votes
0answers
9 views

Line segment overlap aggregation / analysis in Python?

I have a large sample of gps coordinates, and I would like to create a similar analytical visualization to that in Overlaying lines and aggregating their values for overlapping segments using R? Does ...
2
votes
2answers
47 views

Selecting points along line in QGIS

How I can delete points along a line, with a distance tolerance? As you can see in the figure, the points near the line should stay, the points between the lines should be deleted
0
votes
0answers
14 views

Create Polygon from Polylines, w/o Feature to Polygon or Production tool bar

I have a polyline layer of all the town boundaries in Connecticut. What I want to achieve is a singular polygon for the state of Connecticut based off this layer (for use as a boundary in other ...
0
votes
0answers
27 views

GRASS GIS: From multiple lines to single line

This seems like a simple process but somehow I am not able to solve this. The situation is as follows: I have three separate lines which form visually 1 line. As I want to further process these lines ...
3
votes
2answers
139 views

Creating dummy variables between layers based on their geometries in QGIS

I have the following data: administrative boundaries for the United States: https://biogeo.ucdavis.edu/data/gadm3.6/shp/gadm36_USA_shp.zip vector layer containing coastlineshttps://www....
5
votes
4answers
157 views

Finding distance between buildings and nearest road using QGIS?

I am very new to working with GIS data. I am currently using the QGIS tool to work with the data. I have two datasets: Buildings - polygon shapefile with information about different buildings in a ...
3
votes
0answers
25 views

How to eliminate lines that are added when “join multiple line” plugin is used?

I'm new in QGIS. I have three road shapes. If I merge them, I cannot use "network analysis" (shortest path) because the merged lines are not continuous. I tried to use "Join Multiple Lines" and, ...
2
votes
3answers
69 views

Plotting points along line with specified distances from start using QGIS?

I have a table with distances in a line in meters. Distance --------- 3110 3120 3145 ... I need to create points along this line in the distance from the start, as specified, using QGIS. My doubt ...
1
vote
1answer
40 views

Create Polyline from Coordinates Array in OL OpenLayers 5.3.2

I'm using OpenLayers 5.3.2, and would like to create my own marker animation using almost exactly the example at https://openlayers.org/en/latest/examples/feature-move-animation.html?q=marker All I'd ...
2
votes
2answers
63 views

How do I split a line feature in segments of a set interval distance in Qgis?

In order to record some vegetation along a Dutch highway, I want to create a line feature along said highway of about 25 kilometers. The line feature must be split every 100 meters to create seperate ...
3
votes
2answers
101 views

QGIS Assign point data to a line layer considering line direction

I have a line layer representing a river bank. The river bank is divided in numerous separate line features representing zones, each separate line has many vertices. The lines have a set direction. I ...
3
votes
0answers
59 views

How to create equidistant points along lines (network)?

I am trying to create points at every X meters along a set of lines that represent a network. As suggested in QChainage doesn't place points evenly along dissolved lines I managed to this ...
1
vote
1answer
57 views

Merging road segments into one road line in QGIS

I have a Shapefile with a road network (lines) which includes several road segments (lines). Is there any way to merge all these lines into one line using QGIS?
1
vote
0answers
53 views

Buffer in ArcMap with FLAT end lines [closed]

I have a polyline shapefile and I am applying a Buffer tool in ArcMap 10.5 version with line_end_type='FLAT'. The buffer shape obtained has not all the end lines with a FLAT end, some of them are ...
1
vote
1answer
59 views

“Average” of two lines

I have a dataset of pairs of parallel linear features (railway tracks) and I need to simplify each pair into its central/median line. This could be achieved by computing a skeleton as suggested in ...
-2
votes
3answers
39 views

How do I generate points at the intersection of the line with each polygon?

I need to generate points in the places where the line shape cuts to the shape of polygons.
0
votes
1answer
33 views

Leaflet 'Click' event on line portion

I have a polyline as GeoJSON layer in Leaflet. I need a JavaScript event when the user click on the portion of the line. I have to highlight the selected line segment. Is it possible this?
2
votes
1answer
62 views

Change color of part of the line in QGIS

Imagine a few km long pipeline. Pipeline consists of 4 types of pipe. Those types are alternating. 0 - 200m A type of pipe go. (Green color) 200 - 230m B type of pipe etc..(RED color) 230 - 380m C ...
4
votes
0answers
50 views

Snap LineStrings considering direction in QGIS 3

I have 2 projected shape files: Roads (red) and public transit routes (blue): I want to snap the PT routes to the roads, but because of inaccurate marks sometimes the routes are snapped to the wrong ...
2
votes
1answer
110 views

How to dissolve shared line segments together in QGIS?

I have 2 features which are lines on a single layer re-projected to ESPG:2039. I wish to combine them into one MultiLineString but in a way that their common part is merged to a single LineString. I'...
1
vote
0answers
13 views

Creating Scale field based on polyline length (ArcMap)(Python)

I'm playing around with data driven pages, and have a polyline feature class that I'm using as my index. Now, because the lines are all of variable lengths I can't just use the default settings as ...
2
votes
2answers
177 views

Apply Line Pattern Fill to LineStrings?

I am trying to print out a network map using black/white hatching patterns, similar to Black/white hatching pattern fills in QGis but for Lines. Is there some trick I can use?
7
votes
3answers
359 views

Creating centerline of river in QGIS? [duplicate]

I made two river bank lines and I want to associate them. I want to make a centerline using two rows as a base. I managed to make the centre line with a lot of work creating several lines from one ...
2
votes
0answers
34 views

Splitting line into two lines with GRASS GIS?

I converted a raster to polygon, after converting polygon to lines I have one line of the channel of a river which border a river. But I need to split this line in two lines: left border and right ...
3
votes
1answer
36 views

Getting value set in binding input widget in QGIS expression?

I would like to set dynamic line width and it should be scaled by the value "Stroke width". When I set the value to 0.15, it will be less than 0.15 if $length is too small. I need a function to get ...
1
vote
2answers
99 views

QGIS 3 how to customize line dash symbology

I want to keep the same line width but specify a much longer dash. The symbology controls in QGIS 3 have changed significantly from 2.X, so the many answers re: line symbology control for QGIS 2.X ...
2
votes
1answer
48 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 ...
0
votes
0answers
58 views

Changing the color and near ocean with QGIS

The border of region near ocean looks looks very fat. How can I change color of border lines near ocean to make it thicker? I want to change color and thikness of line only near oceans
0
votes
0answers
58 views

How is the LRS ArcGIS Measure Along a Line implemented?

I'm trying to replicate a nasty corner case in a LRS implementation that doesn't agree with ArcMAP measure tool. I've tried measuring distance in its native shp coordinate system NAD83 (27916) to no ...
1
vote
0answers
25 views

Point to line interpolation using heading in R [closed]

I asked this question at StackOverFlow, but got no answers, so I thought I would try here also: I can draw a spline through 10 successive points like done in this post set.seed(1) n <- 10 x <- ...
1
vote
1answer
41 views

How can I show distance indicators along a line feature in QGIS?

I am preparing a map of a 120 km long walking trail in QGIS 2.18 for publication (printing). I have a shapefile (line feature) showing the walking trail. I want to be able to show distance indicators ...
2
votes
2answers
319 views

Connect points with lines QGIS

I have a CSV file with 2 columns with coordinates for the A side and 2 columns for the B side. I have several identifiers in other columns if needed. I want to connect these with a line between A and ...
1
vote
1answer
182 views

How to draw a line with OpenLayers by clicking two points?

I've got website with OpenLayers tile layer. I am trying to draw vector line on the map (only one segment between 2 points) on mouse click and to get coordinates of these two points. I read a lot on ...
0
votes
0answers
22 views

Distance from a point to a poly line and attributes from the poly line GIS

I'm trying to figure out what tool would be best to get the distance from multi-points from multi polylines and see which attributes are closest to what point. I'm doing a project where I have ...
0
votes
0answers
13 views

ArcGIS: Point nearest to border with information on bordering region

I am trying to create a table from a yield map in Europe, that tells me how much yield for each 5'x5' raster field is achieved. This I have managed. However, I now need information for each raster ...
0
votes
0answers
21 views

How do I find the closest distance to a line and then find the length of the remainder of the line to a point?

I want to measure the distance of a shape to a line and then follow that line all the way to a point and calculate the distance traveled. Here is my current map. I want to store that distance value ...
-2
votes
1answer
27 views

Calculate the total area from two intersected polylines

If two polylines intersect with each other and there are more than 2 intersect points, there is more than 1 closed area will be created. How can I get these areas as polygons in ArcGIS?
2
votes
2answers
104 views

Generate points along branching lines

I am looking to generate points along a series of connected lines at regular intervals, but I wish to keep this interval even when a line is branching into 2 or 3 other lines. All the regular tools I ...
1
vote
0answers
50 views

Copying features certain number of times between layers in QGIS

On the image below, there are two layers showing the transportation network Red | current | only important objects | geometry repeats/overlaps Blue | new | required and other objects | ...
1
vote
1answer
40 views

Counting features within other features

I've several files composed of elements like the one below which I'm trying to make sense of (essentially a very simple microtopography study). I've vectorised the image with lots of separate lines ...