From: Regina Obe Date: Thu, 4 Sep 2008 12:08:40 +0000 (+0000) Subject: minor change to example X-Git-Tag: 1.4.0b1~768 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1a43fa998a920d469ec63cf578090527f44a646a;p=postgis minor change to example git-svn-id: http://svn.osgeo.org/postgis/trunk@2936 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/doc/reference_new.xml b/doc/reference_new.xml index 2f0957b09..4ba187be8 100644 --- a/doc/reference_new.xml +++ b/doc/reference_new.xml @@ -4021,13 +4021,16 @@ FROM (SELECT ST_Buffer(ST_GeomFromText('POINT(1 0.5)'), 3) As a, ST_GeomFromTex -- but it does not cross, because the intersection of the 2 is of the same dimension -- as the maximum dimension of the 2 -SELECT ST_Overlaps(a,b) As a_overlap_b, ST_Crosses(a,b) As a_crosses_b, ST_Intersects(a, b) As a_intersects_b, ST_Contains(b,a) As b_contains_a, ST_Dimension(a) As dim_a, ST_Dimension(b) as dim_b -FROM (SELECT ST_Buffer(ST_GeomFromText('POINT(1 0.5)'), 3) As a, ST_Buffer(ST_GeomFromText('LINESTRING(1 0, 1 1, 3 5)'),0.5) As b) +SELECT ST_Overlaps(a,b) As a_overlap_b, ST_Crosses(a,b) As a_crosses_b, ST_Intersects(a, b) As a_intersects_b, +ST_Contains(b,a) As b_contains_a, +ST_Dimension(a) As dim_a, ST_Dimension(b) as dim_b, ST_Dimension(ST_Intersection(a,b)) As dima_intersection_b +FROM (SELECT ST_Buffer(ST_GeomFromText('POINT(1 0.5)'), 3) As a, + ST_Buffer(ST_GeomFromText('LINESTRING(1 0, 1 1, 3 5)'),0.5) As b) As foo; -a_overlap_b | a_crosses_b | a_intersects_b | b_contains_a | dim_a | dim_b -------------+-------------+----------------+--------------+-------+------- -t | f | t | f | 2 | 2 + a_overlap_b | a_crosses_b | a_intersects_b | b_contains_a | dim_a | dim_b | dima_intersection_b +-------------+-------------+----------------+--------------+-------+-------+--------------------- + t | f | t | f | 2 | 2 | 2