[postgis-devel] [PostGIS] #791: Topology: function GetEdgeByPoint($1, $2, $3)
PostGIS
trac at osgeo.org
Wed Jan 19 10:46:13 PST 2011
#791: Topology: function GetEdgeByPoint($1,$2,$3)
-------------------------+--------------------------------------------------
Reporter: aperi2007 | Owner: strk
Type: enhancement | Status: new
Priority: medium | Milestone: PostGIS 2.0.0
Component: topology | Version: trunk
Keywords: |
-------------------------+--------------------------------------------------
I have created a simple function to retrieve the IDEDGE give the Point.
GetEdgeByPoint(topology, geometry::point, tolerance)
return integer
tolerance = 0 mean use the Intersection otherwise ST_DWithin().
It return the integer ID if there is an edge on the Point,
but if the Point is even a Node it raise an exception.
If there isn't any edge in the Point, GetEdgeByPoint return 0.
If near the point there are two or more edges it throw an exception.
The patch with the code is attach to this ticket.
--
Ticket URL: <http://trac.osgeo.org/postgis/ticket/791>
PostGIS <http://trac.osgeo.org/postgis/>
The PostGIS Trac is used for bug, enhancement & task tracking, a user and developer wiki, and a view into the subversion code repository of PostGIS project.
More information about the postgis-devel
mailing list