How to find the centroid of some points on map?

I have a set of points on map whose latitude and longitudes are known to me. Points form an L shape or cross shape to be particular. I want to know the lat-lon of the centroid of these points. How can I find that?

Antworten (1)

Image Analyst
Image Analyst am 28 Mai 2015

1 Stimme

Using your known latitutes and longitudes of your known set of points, you can get a spatial calibration - it's just a simple line formula if your map does not cover much curvature of the earth.
Then use ginput() to have the user select the points, and plug the x,y into your formulas to get the actual latitude and longitude. It's just simple algebra. Really.

3 Kommentare

Aqua22
Aqua22 am 29 Mai 2015
I don't have a digital map. I just have some latitudes and longitudes which forms different shapes like an L shape and in another case a cross where two arms of lines are perpendicular to each other but the cross is not symmetric around the point of intersection. I hope I am making my problem understandable. Since its not a digital map, its like I just have some coordnates of the points
Oh, okay. Why can't you just take the mean of the x and y values to get the average (centroid) location?
Aqua22
Aqua22 am 29 Mai 2015
Yes, that's what I did. Got the solution.

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Geographic Plots finden Sie in Hilfe-Center und File Exchange

Tags

Gefragt:

am 28 Mai 2015

Kommentiert:

am 29 Mai 2015

Community Treasure Hunt

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

Start Hunting!

Translated by