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
Joska wrote:
(prepare for a noob question :o)

now i am wondering in the where u write ' do sth with candidate what could i do to retrieve which points are in which polygon....
what i want is to find the adresses in a building-object and connect it to a measure point at the wall just outside that specific building.

so i was thinking to build first a datatable of all adresses with the info of the buildingID they are part of....
and then add the measurepoints just outside the buildings

so i run the tool twice.... first for adresses IN the buildings and secondly for measurepoints just outside the buildings

so how do i retrieve the information of the adresses in the buildings..?
You get the points in the polygon when you call the routine PointsInPolygon with a buffervalue of 0. I'd make sure that the shapefile with the address points contains a field for the fid of the polygon that it is contained by, and assign it where applicable.

But I am not sure if I understood your problem right.

Viewing all articles
Browse latest Browse all 3973

Latest Images

Trending Articles



Latest Images

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