MATLAB Answers

Rob Dean
0

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

Asked by Rob Dean
on 23 Sep 2019
Latest activity Answered by 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.

Tags

Products


Release

R2019b

1 Answer

Answer by 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.