Nearest lines for points.

View: New views
1 Messages — Rating Filter:   Alert me  

Nearest lines for points.

by Juan Antonio Pastor :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.

Hi!

I have some line shapes and one points shape and I need to find the nearest line from each point. To make that I want use the SHPTree library but I have some questions:

1.- Do I need to compute the bounding box of all line shapes to create the SHPTree object?

2.- Do I need to read all objects of each line shape, find it in the tree and save his objects into

SHPTreeNode->papsShapeObj  matrix?

3.- If I need to do that: do you have some example?

 

Thanks in advance!!


_______________________________________________
Shapelib mailing list
Shapelib@...
http://lists.maptools.org/mailman/listinfo/shapelib