Hot answers tagged

7 votes

How to get maximum possible straight + perpendicular line through polygon?

This python script will do what you want and you can play with the DENSIFY_EVERY_X_METER and EPSILON_ANGLE to either have a more accurate result or have your result faster ex: import math import ...
user avatar
5 votes
Accepted

How to snap points to line

This question is directly related to your earlier one, making it a duplicate - since this one is also addressing an unexpected outcome further downstream the core issue of both posts, I'll answer here....
user avatar
  • 24.5k
2 votes
Accepted

How to convert polygons to line segments using Python

Use .boundary method to convert the polygons to lines, and .coords to fetch the coordinates of each line segment. Then .explode: import geopandas as gpd from shapely.geometry import LineString df = ...
user avatar
  • 53.9k
1 vote

Split Line at Point in FME

One way to do this is using the PointOnLineOverlayer. Performs a point-on-line overlay. Each input line is split at its closest place to any point within the specified point tolerance, and attributes ...
user avatar
  • 3,566
1 vote
Accepted

How to split line with trace by specific length in QGIS

A workaround: Create a point layer with points as the split distances using "Geometry by expression": collect_geometries(array_foreach( array(100,225), end_point(line_substring( $geometry, 0,...
user avatar
  • 53.9k
1 vote
Accepted

Deleting lines in polygon shapefile using QGIS

With only two gaps, the easiest is to start editing, manually digitize a polygon covering the gap, merge it with the big one:
user avatar
  • 53.9k

Only top scored, non community-wiki answers of a minimum length are eligible