From: Regina Obe Date: Fri, 11 Mar 2011 12:26:04 +0000 (+0000) Subject: document GetFaceByPoint and revise release_notes X-Git-Tag: 2.0.0alpha1~1908 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ed69058a39be26a14a4d975cd9823888d4299ab1;p=postgis document GetFaceByPoint and revise release_notes git-svn-id: http://svn.osgeo.org/postgis/trunk@6894 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/doc/extras_topology.xml b/doc/extras_topology.xml index eeaecf27d..6d0731db9 100644 --- a/doc/extras_topology.xml +++ b/doc/extras_topology.xml @@ -1037,7 +1037,7 @@ SELECT topology.AddTopoGeometryColumn('ri_topo', 'ri', 'roads', 'topo', 'LINE'); - If tolerance = 0, the function use ST_Intersect otherwise use the ST_DWithin. + If tolerance = 0, the function use ST_Intersects otherwise uses ST_DWithin. Availability: 2.0.0 - requires GEOS >= 3.3.0. @@ -1068,6 +1068,57 @@ ERROR: Two or more edges found + + + GetFaceByPoint + Find the face-id of a face that intersects a given point + + + + + integer GetFaceByPoint + varchar atopology + geometry apoint + float8 tol + + + + + Retrieve the id of a face that intersects a Point + The function returns an integer (id-face) given a topology, a POINT and a tolerance. If tolerance = 0 then the point has to intersect the face. + If the point is the location of a node, then an exception is thrown. To avoid this run the GetNodeByPoint function. + If the point doesn't intersect a face, returns 0 (zero). + If use tolerance > 0 and there is more than one face near the point then an exception is thrown. + + + + If tolerance = 0, the function uses ST_Intersects otherwise uses ST_DWithin. + + + Availability: 2.0.0 - requires GEOS >= 3.3.0. + + + Examples + These examples use edges faces created in + SELECT topology.GetFaceByPoint('ma_topo',geom, 10) As with1mtol, topology.GetFaceByPoint('ma_topo',geom,0) As withnotol + FROM ST_GeomFromEWKT('SRID=-1;POINT(234604.6 899382.0)') As geom; + + with1mtol | withnotol + -----------+----------- + 1 | 0 + SELECT topology.GetFaceByPoint('ma_topo',geom, 1) As nearnode + FROM ST_GeomFromEWKT('SRID=-1;POINT(227591.9 893900.4)') As geom; + +-- get error -- +ERROR: Two or more faces found + + + + See Also + ,, + + + GetNodeByPoint diff --git a/doc/release_notes.xml b/doc/release_notes.xml index 8296bea28..9d302d6a6 100644 --- a/doc/release_notes.xml +++ b/doc/release_notes.xml @@ -24,7 +24,7 @@ Raster support integrated and documented (Pierre Racine, Jorge Arévalo, Mateusz Loskot, Sandro Santilli, Regina Obe) Making spatial indexes 3D aware - in progress (Paul Ramsey, Mark Cave-Ayland) - Topology support improved, documented, testing (Sandro Santilli / Faunalia for RT-SIGTA, Regina Obe, Andrea Peri) + Topology support improved (more functions), documented, testing (Sandro Santilli / Faunalia for RT-SIGTA), Andrea Peri, Regina Obe) 3D relationship support functions (Nicklas Avén) ST_3DDistance, ST_3DClosestPoint, ST_3DIntersects, ST_3DShortestLine and more... ST_Split (Sandro Santilli / Faunalia for RT-SIGTA) @@ -32,7 +32,7 @@ ST_MakeValid (Sandro Santilli / Faunalia for RT-SIGTA) ST_RemoveRepeatedPoints (Sandro Santilli / Faunalia for RT-SIGTA) ST_GeometryN and ST_NumGeometries support for non-collections (Sandro Santilli) - ST_isCollection (Sandro Santilli, Maxime van Noppen) + ST_IssCollection (Sandro Santilli, Maxime van Noppen) ST_SharedPaths (Sandro Santilli / Faunalia for RT-SIGTA) ST_Snap (Sandro Santilli) ST_RelateMatch (Sandro Santilli / Faunalia for RT-SIGTA)