This project has moved. For the latest updates, please go here.

Looking for features by particular coordinate

Topics: SharpMap v0.9 / v1.x
Feb 7, 2010 at 2:20 PM

My next challenge:  With a list of coordinates, for every coordinate, check if that coordinate intersects with the coordinates of the feature of a layer.

[In this case, a *road*.]   If so, color that road a different color.

Can anyone point me towards a code clip or suggestions on how to approach this?

[I *still*, BTW, can't find any documentation or the elusive CHM help file.]

- Frank

Feb 7, 2010 at 3:01 PM

Hi Frank, have a look at th different IThemes -  you want to use a custom theme - you give it a delegate which is called for each FeatureDataRow in the dataset you can then use the Geometry property of the row and test against your query shape. You may need to use NetTopologySuite to aid you in the query - there is a utility class to aid in conversion between SharpMap and NTS geometries in the SharpMap.Extensions project hth jd