Skip to main content
community site url
Source Link
Paul Ramsey
  • 20k
  • 2
  • 49
  • 58

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

SELECT ST_Length(ST_Intersection(line,polygon)) 

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

SELECT ST_Length(ST_Intersection(line,polygon)) 

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

SELECT ST_Length(ST_Intersection(line,polygon)) 
deleted 79 characters in body
Source Link
underdark
  • 84.5k
  • 22
  • 233
  • 415

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

SELECT ST_Length(ST_Intersection(line,polygon)) 
FROM lines 
WHERE road = "Road 7" AND ST_Intersects(line, polygon)

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

SELECT ST_Length(ST_Intersection(line,polygon)) 
FROM lines 
WHERE road = "Road 7" AND ST_Intersects(line, polygon)

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

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

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

SELECT ST_Length(ST_Intersection(line,polygon)) 
FROM lines 
WHERE road = "Road 7" AND ST_Intersects(line, polygon)