Skip to content
Prev 15755 / 29559 Next

RE : determining suitable lakes for landing

On Mon, Jul 30, 2012 at 5:16 PM,
Bastien.Ferland-Raymond at mrnf.gouv.qc.ca
<Bastien.Ferland-Raymond at mrnf.gouv.qc.ca> wrote:
There's an option to my function that you can use to tell it to stop
if it finds it can fit a rectangle - if you pass all=FALSE it returns
as soon as it finds one, otherwise it returns NA.

 I'm not sure how my method will work if there are islands (I assume
you dont want islands in the middle of your landing strip!). It uses
rgeos:gContains for the test, so I think as long as the island is
properly coded as an island it wont consider rectangles with islands.
This needs testing.
I had a brief think about how to do this with rasters, but I couldn't
see any advantage, unless there's some neat trick way of eroding parts
of the lake that can't possibly be part of a given rectangle...

Barry