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>157 / 310CautionThis operand will NOT make use of any indexes that may be available on the geometries.This method supports Circular Strings and CurvesExamplesSELECT ’LINESTRING(0 0, 0 1, 1 0)’::geometry = ’LINESTRING(1 1, 0 0)’::geometry;?column?----------t(1 row)SELECT ST_AsText(column1)FROM ( VALUES(’LINESTRING(0 0, 1 1)’::geometry),(’LINESTRING(1 1, 0 0)’::geometry)) AS foo;st_astext---------------------LINESTRING(0 0,1 1)LINESTRING(1 1,0 0)(2 rows)-- Note: the GROUP BY uses the "=" to compare for geometry equivalency.SELECT ST_AsText(column1)FROM ( VALUES(’LINESTRING(0 0, 1 1)’::geometry),(’LINESTRING(1 1, 0 0)’::geometry)) AS fooGROUP BY column1;st_astext---------------------LINESTRING(0 0,1 1)(1 row)-- NOTE: Although the points are different, the float4 boxes are the same-- In versions 2.0+ and after, this will return false since 2.0+ switched-- to store double-precision (float8) bounding boxes instead of float4 (used in 1.5 and ←↪prior) --SELECT ST_GeomFromText(’POINT(1707296.37 4820536.77)’) =ST_GeomFromText(’POINT(1707296.27 4820536.87)’) As pt_intersect;--pt_intersect --tSee AlsoST_Equals, ST_OrderingEquals, ~=7.7.8 >>>> — Returns TRUE if A’s bounding box is strictly to the right of B’s.Synopsisboolean >>( geometry A , geometry B );

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

Saved successfully!

Ooh no, something went wrong!