【问题标题】:Matlab shapewrite: export point shapefile + set projection to WGS84Matlab shapewrite:导出点shapefile + 设置投影到WGS84
【发布时间】:2016-04-08 15:52:27
【问题描述】:

我需要从 Matlab 导出一个点 shapefile,但我不知道如何使用 shapefile 将坐标设置为 WGS84(这可能是最常见的一个)。这似乎是一项不平凡的任务。

命令是:

Struct2GIS = struct('Geometry', 'Point',...
'OutputVariable1', num2cell(Var1), ...
'OutputVariable2', num2cell(Var2), ...
'OutputVariable3', num2cell(Var3),...
'OutputVariable4', num2cell(Var4),...
'X',num2cell(Lon),'Y', num2cell(Lat));

shapewrite(Struct2GIS,Filename)

有什么想法吗? 谢谢!

【问题讨论】:

  • 有趣的谢谢。关于 WGS84 需要以下行的任何想法:GEOGCS["GCS_North_American_1983",DATUM["D_North_American_1983",SPHEROID["GRS_1980",6378137.0,298.257222101]],PRIMEM["Greenwich",0.0],UNIT["度",0.0174532925199433]]
  • @OliverAmundsen 您能否编辑您的问题以包含此行,并告诉我们您的输入到底是什么,以及所需的结果是什么?另外,如果可能,请向我们展示您已经尝试过的代码?
  • 完成。上面的代码完美运行,我可以在 ArcGIS 中打开它。但后来我得到消息说没有投影..

标签: matlab gis map-projections


【解决方案1】:

这是我的解决方法:在将 shapefile 加载到 Arc 之前,在 ArcCatalog 中,我右键单击文件名,选择属性,然后告诉它坐标系是什么。不太理想,但它有效。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2014-10-07
    • 1970-01-01
    • 2017-02-20
    • 1970-01-01
    • 2017-02-17
    • 2015-09-08
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多