Ticket #793 (closed enhancement: fixed)

Opened 2 years ago

Last modified 2 years ago

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

Reported by: aperi2007 Owned by: strk
Priority: medium Milestone: PostGIS 2.0.0
Component: topology Version: trunk
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

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

Change History

Changed 2 years ago by aperi2007

Patch to add the GetNodeByPoint?

Changed 2 years ago by strk

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

Changed 2 years ago by aperi2007

GetNodePoint? documentation

Changed 2 years ago by aperi2007

Test regress

Changed 2 years ago by aperi2007

Expected test regress

Changed 2 years ago by aperi2007

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

Changed 2 years ago by aperi2007

Changed 2 years ago by aperi2007

Changed 2 years ago by strk

  • 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..

Changed 2 years ago by robe

  • status changed from new to closed
  • resolution set to fixed

documentation completed at r6869

Note: See TracTickets for help on using tickets.