Find the nearest geometry

Topics: General Topics
Nov 26, 2006 at 4:55 PM
Hi,

I have a street map, and i need to write a function that find the nearest street to some point.
I found out how to get geometries or geometries ids from some bounding box:
List<Geometry>geometries = m_VectorLayer.DataSource.GetGeometriesInView(box);
List<uint> ids = m_VectorLayer.DataSource.GetObjectIDsInView(box);
But how can i calculate the nearest one and get their names from the DBF file?