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>207 / 310LINESTRING / LINESTRING LINESTRING / LINESTRING POLYGON / POINTSELECT ST_Touches(’LINESTRING(0 0, 1 1, 0 2)’::geometry, ’POINT(1 1)’::geometry);st_touches------------f(1 row)SELECT ST_Touches(’LINESTRING(0 0, 1 1, 0 2)’::geometry, ’POINT(0 2)’::geometry);st_touches------------t(1 row)7.8.38 ST_WithinST_Within — Returns true if the geometry A is completely inside geometry BSynopsisboolean ST_Within(geometry A, geometry B);DescriptionReturns TRUE if geometry A is completely inside geometry B. For this function to make sense, the source geometries must bothbe of the same coordinate projection, having the same SRID. It is a given that if ST_Within(A,B) is true and ST_Within(B,A) istrue, then the two geometries are considered spatially equal.Performed by the GEOS moduleImportantDo not call with a GEOMETRYCOLLECTION as an argumentImportantDo not use this function with invalid geometries. You will get unexpected results.

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

Saved successfully!

Ooh no, something went wrong!