简体   繁体   中英

Creating a Position Grid from Latitude and Longitude Points

I have two data sets: one of latitude and one of longitude. Both of these datum are 336x264 in size.

I would like to use MATLAB to turn this data into a grid of of position points.

So basically from this: latlongrid

to this:

positiongrid

I don't want to reinvent the wheel here if there is a standardized method of going about this so I figured I should see if the community had any pre-existing resources for this sort of task!

Thank you and best, Taylor

If you have the mapping toolbox, you can do this with the projfwd function:

% First, create the projection struct
mstr = defaultm('mercator'); %Or whatever projection you want to use

% Then, project your points
[x,y] = projfwd(mstr,lat,lon);

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM