Quantcast
Channel: DotSpatial
Viewing all articles
Browse latest Browse all 3973

New Post: HOW TO check if a point is within or in a radius of a polygon?

$
0
0
Your iterator function should look like this:
Public Iterator Function QueryFeatures(ByVal extent As DotSpatial.Data.Extent) As System.Collections.Generic.IEnumerable(Of DotSpatial.Data.IFeature)
        Dim env = New SharpSbn.DataStructures.Envelope(extent.MinX, extent.MaxX, extent.MinY, extent.MaxY)
        ForEach queryFid In _tree.QueryFids(env)
            Dim fid = CInt(queryFid) - 1
            Yield _shapeFile.GetFeature(fid)
        NextEndFunction

Viewing all articles
Browse latest Browse all 3973

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>