The Goal: user to draw rectangles on google earth, only situated on
water, and NOT land.
The Problem: A reliable way to detect if a user drawn rectangle
encroaches on land
So for I have two ideas for how to achieve this:
1 - Being able to manipulate the data from the "costline layer", of
the yellow outline around land (I am unsure if you can access this
information in the plugin)
2 - Being able to retrieve the altitude of a given point. The method
would involve gathering 4 points of a selected rectangle (TR, TL, BR,
BL) and determining the sea level of each of these points (http://
code.google.com/apis/ajax/playground/?
exp=earth#retrieving_ground_altitude_data). Testing on beaches in
Sydney, New Zealand and France produces wildly different results.
The problems include varying altitude (sydney beaches seemed to work
on a 3 meters and below, france was around 0 and below, and both in
france and NZ there was a lot of missing data)
So far this seems to be the most promising option, but still buggy.
Does anyone have any clues on how to go about detecting land from
water?
Thanks in advance.