12.07.2015 Views

PostGIS 1.5.8 Manual - Fedora Project Packages GIT repositories

PostGIS 1.5.8 Manual - Fedora Project Packages GIT repositories

PostGIS 1.5.8 Manual - Fedora Project Packages GIT repositories

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>PostGIS</strong> <strong>1.5.8</strong> <strong>Manual</strong>205 / 310Shortest line between point and linestringSELECT ST_AsText(ST_ShortestLine(’POINT(100 100) ←↪’::geometry,’LINESTRING (20 80, 98 ←↪190, 110 180, 50 75 )’::geometry)) As sline;sline-----------------LINESTRING(100 100,73.0769230769231115.384615384615)←↪shortest line between polygon and polygonSELECT ST_AsText(ST_ShortestLine(ST_GeomFromText(’ ←↪POLYGON((175 150, 20 40, 50 60, 125 100, 175 15ST_Buffer( ←↪ST_GeomFromText(’POINT(110 170)’), 20))) As slinewkt;LINESTRING(140.752120669087 ←↪125.695053378061,121.111404660392 153.370607753See AlsoST_ClosestPoint, ST_Distance, ST_LongestLine, ST_ShortestLine, ST_MaxDistance7.8.37 ST_TouchesST_Touches — Returns TRUE if the geometries have at least one point in common, but their interiors do not intersect.Synopsisboolean ST_Touches(geometry g1, geometry g2);DescriptionReturns TRUE if the only points in common between g1 and g2 lie in the union of the boundaries of g1 and g2. The ST_Touchesrelation applies to all Area/Area, Line/Line, Line/Area, Point/Area and Point/Line pairs of relationships, but not to thePoint/Point pair.In mathematical terms, this predicate is expressed as:

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!