Opened 14 years ago

Closed 14 years ago

#793 closed enhancement (fixed)

Topology: function GetNodeByPoint($1,$2,$3)

Reported by: aperi2007 Owned by: strk
Priority: medium Milestone: PostGIS 2.0.0
Component: topology Version: master
Keywords: history Cc:

Description

Has companion of GetEdgeByPoint I create also GetNodeByPoint to detect node before call the GetEdgeByPoint.

GetNodeByPoint(atopology, point, tolerance)

Retrieve a Node ID given a POINT and a tolerance tollerance = 0 mean exactly intersection

Returns the integer ID if there is a Node on the Point.

If there isn't any node in the Point, GetNodeByPoint return 0.

if near the point there are two or more nodes it throw an exception.

Attachments (5)

patch2.zip (1005 bytes ) - added by aperi2007 14 years ago.
Patch to add the GetNodeByPoint
GetNodeByPoint.xml (2.0 KB ) - added by aperi2007 14 years ago.
GetNodePoint documentation
GetNodeByPoint.sql (1.3 KB ) - added by aperi2007 14 years ago.
Test regress
GetNodeByPoint_expected (85 bytes ) - added by aperi2007 14 years ago.
Expected test regress
getnodebypoint.zip (3.1 KB ) - added by aperi2007 14 years ago.
GetNodeByPoint code

Download all attachments as: .zip

Change History (10)

by aperi2007, 14 years ago

Attachment: patch2.zip added

Patch to add the GetNodeByPoint

comment:1 by strk, 14 years ago

as for #791, testcase and docs patches are welcome (and maybe also putting these new things in a query.sql file?)

by aperi2007, 14 years ago

Attachment: GetNodeByPoint.xml added

GetNodePoint documentation

by aperi2007, 14 years ago

Attachment: GetNodeByPoint.sql added

Test regress

by aperi2007, 14 years ago

Attachment: GetNodeByPoint_expected added

Expected test regress

comment:2 by aperi2007, 14 years ago

Hi, I add the regress with expected. The package is complete.

by aperi2007, 14 years ago

Attachment: getnodebypoint.zip added

comment:4 by strk, 14 years ago

Keywords: history added

I've committed code and regress test in r6864. @robe: do you want to take care of the documentation ? coming in a nice external file you may have a way to include it rather than embedding it..

comment:5 by robe, 14 years ago

Resolution: fixed
Status: newclosed

documentation completed at r6869

Note: See TracTickets for help on using tickets.