1

Does anybody know if there is a way to statistical calculate the similarity of two polygons using PostGIS?

enter image description here

I want to know how similar is the polygon (red outline) with the polygon (black outline).

  • Questions asking for "any ideas?" without specifying the particular software you have tried, are stuck on and wish to ask about are too broad. The PostGIS answer now makes this a PostGIS Q&A so if you wish to know about another particular question then can you ask a new question, please? – PolyGeo Aug 25 '17 at 18:12
  • 1
    I have tried to develop my own similarity index using intersection and symmetrical difference in QGIS. Unfortunately i havent succeed. I was thinking, perhaps there is already a tool to assess the similarity. I havent tried this in postgis. – geoDIY Aug 25 '17 at 20:42
  • If you want to pursue the same thing using QGIS then please ask that as a new question for QGIS. – PolyGeo Aug 25 '17 at 22:46
7

Have a look at the PostGIS function - ST_HausdorffDistance

http://postgis.net/docs/ST_HausdorffDistance.html

This is a measure of how similar or dissimilar two shapes are.

Not the answer you're looking for? Browse other questions tagged or ask your own question.