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>204 / 310AND ST_Relate(l.the_geom, b.the_geom,’T********’));SELECT ST_Relate(ST_GeometryFromText(’POINT(1 2)’), ST_Buffer(ST_GeometryFromText(’POINT(12)’),2));st_relate-----------0FFFFF212←↪SELECT ST_Relate(ST_GeometryFromText(’LINESTRING(1 2, 3 4)’), ST_GeometryFromText(’ ←↪LINESTRING(5 6, 7 8)’));st_relate-----------FF1FF0102SELECT ST_Relate(ST_GeometryFromText(’POINT(1 2)’), ST_Buffer(ST_GeometryFromText(’POINT(12)’),2), ’0FFFFF212’);st_relate-----------tSELECT ST_Relate(ST_GeometryFromText(’POINT(1 2)’), ST_Buffer(ST_GeometryFromText(’POINT(12)’),2), ’*FF*FF212’);st_relate-----------t←↪←↪See AlsoST_Crosses, Section 4.3.6, ST_Disjoint, ST_Intersects, ST_Touches7.8.36 ST_ShortestLineST_ShortestLine — Returns the 2-dimensional shortest line between two geometriesSynopsisgeometry ST_ShortestLine(geometry g1, geometry g2);DescriptionReturns the 2-dimensional shortest line between two geometries. The function will only return the first shortest line if more thanone, that the function finds. If g1 and g2 intersects in just one point the function will return a line with both start and end in thatintersection-point. If g1 and g2 are intersecting with more than one point the function will return a line with start and end in thesame point but it can be any of the intersecting points. The line returned will always start in g1 and end in g2. The length of theline this function returns will always be the same as st_distance returns for g1 and g2.Availability: 1.5.0Examples

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

Saved successfully!

Ooh no, something went wrong!