Skip to main content
3 of 3
community site url
Paul Ramsey
  • 20k
  • 2
  • 49
  • 58

It's necessary to calculate the actual intersection, e.g. http://postgis.net/docs/ST_Intersection.html

SELECT ST_Length(ST_Intersection(line,polygon)) 
underdark
  • 84.5k
  • 22
  • 233
  • 415