MATLAB Answers

Does inpolygon work for latitudes and longitudes on the surface of the earth?

1 view (last 30 days)
Rob Dean
Rob Dean on 23 Sep 2019
Answered: Bruno Luong on 23 Sep 2019
Just wondering if inpolygon will work correctly if using lat/lons on the surface of the earth for the points and polygons. Or would they need to be mapped to 2D/cartesian points?

  0 Comments

Sign in to comment.

Answers (1)

Bruno Luong
Bruno Luong on 23 Sep 2019
A polygon in lat/lon will NOT map to a "polygon" on the sphere. A "polygon" on the sphere composed by edges that are grand circles - geodesic of the sphere (and the sum of the angles of the corners > 360 degree), which in turns is NOT a polygon in a cartesian space.

  0 Comments

Sign in to comment.

Sign in to answer this question.

Tags

Products


Release

R2019b