简体   繁体   English

从纬度和经度点创建位置网格

[英]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. 这两个基准的尺寸均为336x264。

I would like to use MATLAB to turn this data into a grid of of position points. 我想使用MATLAB将这些数据转换为位置点的网格。

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: 如果有映射工具箱,则可以使用projfwd函数执行此projfwd

% 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);

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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