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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>PostGIS</strong> <strong>1.5.8</strong> <strong>Manual</strong>203 / 3107.8.35 ST_RelateST_Relate — Returns true if this Geometry is spatially related to anotherGeometry, by testing for intersections between theInterior, Boundary and Exterior of the two geometries as specified by the values in the intersectionMatrixPattern. If no intersectionMatrixPatternis passed in, then returns the maximum intersectionMatrixPattern that relates the 2 geometries.Synopsisboolean ST_Relate(geometry geomA, geometry geomB, text intersectionMatrixPattern);text ST_Relate(geometry geomA, geometry geomB);DescriptionVersion 1: Takes geomA, geomB, intersectionMatrix and Returns 1 (TRUE) if this Geometry is spatially related to anotherGeometry,by testing for intersections between the Interior, Boundary and Exterior of the two geometries as specified by the valuesin the intersectionMatrixPattern.This is especially useful for testing compound checks of intersection, crosses, etc in one step.Do not call with a GeometryCollection as an argumentNoteThis is the "allowable" version that returns a boolean, not an integer. This is defined in OGC specNoteThis DOES NOT automagically include an index call. The reason for that is some relationships are anti e.g. Disjoint. Ifyou are using a relationship pattern that requires intersection, then include the && index call.Version 2: Takes geomA and geomB and returns the Section 4.3.6NoteDo not call with a GeometryCollection as an argumentnot in OGC spec, but implied. see s2.1.13.2Both Performed by the GEOS moduleThis method implements the OpenGIS Simple Features Implementation Specification for SQL 1.1. s2.1.1.2 // s2.1.13.3This method implements the SQL/MM specification. SQL-MM 3: 5.1.25Examples--Find all compounds that intersect and not touch a poly (interior intersects)SELECT l.* , b.name As poly_nameFROM polys As bINNER JOIN compounds As lON (p.the_geom && b.the_geom

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

Saved successfully!

Ooh no, something went wrong!