<programlisting>SELECT DISTINCT ON(buildings.gid) buildings.gid, parcels.parcel_id
FROM buildings INNER JOIN parcels ON ST_Intersects(buildings.geom,parcels.geom)
ORDER BY buildings.gid, ST_MaxDistance(buildings.geom, parcels.geom);</programlisting>
- <para>Basic furthest distance the point is to any part of the line</
+ <para>Basic furthest distance the point is to any part of the line</para>
<programlisting>postgis=# SELECT ST_MaxDistance('POINT(0 0)'::geometry, 'LINESTRING ( 2 0, 0 2 )'::geometry);
st_maxdistance
-----------------