如何将r中的栅格文件范围从十进制度更改为米? [英] How to change the extent of raster file in r from decimal degree to meter?

查看:113
本文介绍了如何将r中的栅格文件范围从十进制度更改为米?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个参考数据为WGS84 UTM ZONE 45N的图像数据.因此,此文件的单位范围是米.我想裁剪一个参考为WGS84 UTM ZONE 45N且范围单位为十进制度数的多边形.由于两个不同的范围单位,我无法裁剪多边形.那么如何将多边形范围更改为米?

I have an image data whose reference is in WGS84 UTM ZONE 45N. So the unit extent of this file is in meter. I want to crop a polygon whose reference is in WGS84 UTM ZONE 45N and the extent unit is in decimal degree. I can not crop the polygon because of two different extent units. So how can I change the polygon extent to meters?

推荐答案

您所说的是不可能的.您不能具有以度为单位的 WGS84 UTM ZONE 45N 坐标参考系统(CRS).UTM是平面CRS,单位是米(有时使用其他单位,但不能是度).同样,您不能简单地将范围从一个单位更改为另一个.如果两个数据集的CRS不匹配,则可以将其中一个转换为另一个.对于矢量和栅格数据,通常应转换矢量数据.您可以在此处以及其他许多地方阅读有关信息.

What you are saying is not possible. You cannot have a the WGS84 UTM ZONE 45N coordinate reference system (CRS) with degrees as unit. UTM is a planar CRS and the units are meter (sometimes other units are used, but they cannot be degrees). Also, you cannot simply change the extent from one unit to another. If the CRS of two datasets do not match you can transform one to the CRS of the other. In the case of vector and raster data you should normally transform the vector data. You can read about that here and in many other places.

但是在您的情况下,您需要先修复之前的错误.由于您没有提供独立,最小,可重现的示例(对于R的问题是期望的),也不提供任何证据(例如 show(x)),无法为您提供更多帮助.

But in your case, there is mistake earlier on that you need to fix. As you are not providing a self-contained, minimal, reproducible example (that is expected with questions about R), or any evidence whatsoever (e.g. show(x), it is not possible to help you much more.

这篇关于如何将r中的栅格文件范围从十进制度更改为米?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆