Questions tagged [st-split]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
6 votes
2 answers
206 views

Splitting lines by multiple polygons, taking length of particular segment, using PostGIS

I have a table of 100k+ non-overlapping POLYGON features, and a table of 50k+ simple LINESTRING features (each line has only 2 vertices). The below is a common arrangement of these features on a map, ...
user avatar
  • 1,497
0 votes
1 answer
31 views

Split Polygon in one layer based on boundaries in second layer

I have two different polygon layers, 1 and 2. Now i want to split polygons in layer 1 taking reference from polygons in layer 2. Is it possible in qgis???? Please find attached image as reference ...
user avatar
  • 269
2 votes
1 answer
37 views

Intersecting Polygon by a Gridded Polygon returns unexpected result

I have a regular polygon grid (grid) and irregular polygons (block). You can download the data here: https://we.tl/t-BczpR2K2lw I want to intersect the orange polygons (block) by the regular polygon ...
user avatar
  • 3,091
4 votes
1 answer
181 views

PostGIS order intersections of line and polygon

I have a polygon and a line that goes through it. That line might exit my polygon and enter it again at a later point. So now I'd like to have a relative position inside my line, where those segments ...
user avatar
  • 919
2 votes
2 answers
240 views

Split lines by a polygon - Why are "internal" lines split in parts using sf/st_split

The context: I have a border and routes followed by vehicles. I want to decompose the routes, cutting them everytime they cross a border, and for each part, know what are the distances performed. ...
user avatar
  • 795
1 vote
2 answers
331 views

Removing longest segment of linestring and rejoining segments

I am trying to remove the segment that has the longest length from a linestring and join the two group of segments that remain by the shortest segment between them. That was easy, using ST_Difference (...
user avatar
  • 181
1 vote
0 answers
157 views

ST_Split with ST_Dump returns multipart Linestring with additional Splits

I am trying to split a lingstring using another linestring as my blade. The line to be cut crosses over itself at different locations. (to_be_cut is linestring, not multilinestring) My query ...
user avatar
  • 161
4 votes
1 answer
161 views

Splitting self-overlapping lines with points using PostGIS

I have a line geometry that partially overlaps itself (think about a line going A -> B -> C -> B -> D) and a set of points (not on the line but close to it) that I want to use to split the line in ...
user avatar
  • 41
4 votes
2 answers
2k views

Splitting lines into basic segments at vertices with PostGIS?

I have a MultiLineString table in PostgreSQL and I am trying to obtain a table with all the segments obtained from those lines if we split them at their vertices. I have found this simple example, ...
user avatar