Calculating Area of Polygon

3 visualizaciones (últimos 30 días)
Stephanie Goldstein
Stephanie Goldstein el 22 de Ag. de 2014
Comentada: Stephanie Goldstein el 22 de Ag. de 2014
Hi, I am trying to calculate the area of each grid point in a polygon data set. I have latitude and longitude arrays which are 224X1 and 240X1 respectively. How do I go about writing code to determine the area covered in each grid cell when the resolution is 1/8th of a degree? I am a beginner to matlab so any and all help is appreciated!

Respuesta aceptada

Image Analyst
Image Analyst el 22 de Ag. de 2014
Did you know about the polyarea() function, and try to use it?
  3 comentarios
Image Analyst
Image Analyst el 22 de Ag. de 2014
Translate your latitude longitudes into regular linear numbers (not degrees, etc.) then set up x and y coordinates at the vertices of the polygon you want (rectangle, triangle, or whatever), then pass into polyarea(). I believe it assumes that the polygon is 2D, flat, not bowed like on the surface of the earth. Do you have the mapping toolbox? Maybe there is some function in there to do that?
Stephanie Goldstein
Stephanie Goldstein el 22 de Ag. de 2014
Hmmm I do have the mapping toolbox. I'll see if there is a function which would allow me to do that. Sorry, when I say I'm a beginner I mean I'm really a beginner. What would be the purpose of translating the latitude longitudes into regular linear numbers? Also, any hint as to how I might do this?

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Elementary Polygons en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by