Find Features within user supplied polygon

Rod KRod K Global Mapper UserPosts: 9
edited May 2010 in SDK
Is there support in the Global Mapper SDK to implement a function that would first prompt the user to sketch a polygon on the map, and then find and return a list of features falling within the user provided polygon? I believe GM_FindNearestFeatures supports searching within a rectangle. I'm looking for a way to support searching within a polygon where the polygon could have many sides (defined by the user) perhaps 10 or 20 sides or however many sides the user defined by clicking on the map. The last point they click on would be closed back to the first, and it would be fine to support only polygons that do not have loops or crossing lines.


  • global_mapperglobal_mapper Administrator Posts: 17,238
    edited May 2010
    Currently there isn't any polygon-searching capability in the SDK. You could use the GM_FindNearestFeatures function to find all features within the bounding box of the polygon, then do your own feature-in-polygon checks based on the coordinates of those features that GM_FindNearestFeatures returned to further filter them.

    Let me know if I can be of further assistance.


    Global Mapper Support
Sign In or Register to comment.