# Tag Info

Accepted

### Draw line and calculate distance from each no adjoining side polygons to perpendicular nearest side polygon

This is an expression for drawing the lines using the Geometry by Expression tool (QGIS 3.36.2). It works also as a Geometry Generator symbol layer, but this causes difficulties when calculating and ...
• 17.3k

### Calculating distances between two features (polygons)

Leave your data as polygons. Use the "Shortest line between features" tool. If your polygons are both in the same layer, set "Maximum number of neighbors" parameter to 2 (otherwise ...
• 66.4k

### Algorithm for point to polygon distance calculations in shapely

The broader goal for this question was clarified in a comment on my previous answer. This answer offers a possible solution for this broader goal. Probably it would be better/clearer if this would be ...
• 2,729
1 vote
Accepted

### Algorithm for point to polygon distance calculations in shapely

The second option you mentioned is the case, so not only points are taken in account, also any position on any line segment. For illustration: both the distance of the green point and the red point to ...
• 2,729
Accepted

### GeoPandas giving wrong distances between polygons and points

Your X, Y coordinates are not EPSG:3857. Google Maps displays the map in EPSG:3857 but displays coordinates in latitude, longitude EPSG:4326
• 66.4k