2
$\begingroup$

I have a set of Points representing building footprints (black in the image below). I also have Points (building address Points) that I know lie inside the building footprints (green).

I'm searching for the name of a reverse convex hull analysis(?). Imagine blowing up a balloon starting at green Points.

I will then use the results to give each black Point an address (which is stored in the green Point)

enter image description here

$\endgroup$
  • $\begingroup$ Could you instead find the distance from the green point to the further black point, then construct a circle with bigger radius than that, then apply regular convex hull analysis? $\endgroup$ – Ian Miller Nov 30 '16 at 13:08
  • $\begingroup$ I dont Think that will work since the convex hull will possibly include black Points from nearby other Buildings. $\endgroup$ – BERA Nov 30 '16 at 13:11
  • 1
    $\begingroup$ Can you have concave building interiors? You mention convex hulls but I can think of many buildings which are concave on the inside. $\endgroup$ – Ian Miller Nov 30 '16 at 13:15
  • $\begingroup$ Yes it is possible. $\endgroup$ – BERA Nov 30 '16 at 13:20
  • 1
    $\begingroup$ But if the interior doesn't have to be convex, your hull is not well-defined. In your example, the buildings might as well be joined at the bottom to form a "U". $\endgroup$ – Dominik Nov 30 '16 at 13:27
2
$\begingroup$

If the black points describing the building footprint come to you in a cyclic order (that's likely) then you can easily form the polygon that describes the building. (If the building is convex this will be the convex hull.)

Then loop on the green points and use a point in polygon algorithm to assign an address to each building (and hence to each black point).

I note in your profile that you do a lot of GIS. Check to see if your software has tools for your problem.

$\endgroup$
  • $\begingroup$ Cyclic order = For example point nr 1,2,3,4,5 is first building, 6,7,8,9,10,11,12 etc. second? How can i know which Point is the first/last for each building? $\endgroup$ – BERA Nov 30 '16 at 14:09
  • $\begingroup$ @BERA "Cyclic order" means that for each building you have a list of the footprint points that starts somewhere and walks around the walls until it gets back to the starting point. It doesn't matter where the list starts. You can assume that when it ends you go back to the start. If you don't know which black points belong to which buildings you can't solve the problem. In the picture in your question it might be that the 10 points in the top half describe one building and the 10 in the bottom another. $\endgroup$ – Ethan Bolker Nov 30 '16 at 14:15

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.