Skip to main content

New answers tagged

5 votes
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 ...
Matt's user avatar
  • 17.3k
4 votes

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 ...
user2856's user avatar
  • 66.4k
0 votes

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 ...
Pieter's user avatar
  • 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 ...
Pieter's user avatar
  • 2,729
4 votes
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
user2856's user avatar
  • 66.4k
2 votes

Calculate distances between all point features in one layer and all point features in another layer (NOT only nearest)

I think you should try the Generate Near Table (Analysis) tool with its closest="ALL" option so that: Multiple near features will be written to the output table Otherwise, by default, only ...
PolyGeo's user avatar
  • 65.2k
1 vote

NNJoin plugin crash

Instead of the NNJOIN qgis plugin, which seems not maintained anymore, you can use the following qgis function which worked well for me : in English https://docs.qgis.org/3.34/en/docs/user_manual/...
Denis Antoine's user avatar

Top 50 recent answers are included