简介:
投影转换是一种将三维空间中的物体及其属性转换为二维平面上的方法。它是一种将三维空间坐标(x,y,z)映射到二维平面坐标(x',y')的技术。在计算机图形学和计算机视觉中,投影转换是非常重要的,因为它可以帮助我们将三维物体呈现在二维屏幕上,并且可以进行各种变换和处理。常见的投影转换有正交投影和透视投影。在GEE中我们可以使用哨兵2号数据其中任何一个波段所自带的坐标,让其成为我们默认的坐标,然后将其重新投影。
这里我们发现无法转换的原因在于,这里的坐标通过您(盲目)指定的投影中内置的仿射变换进行缩放和偏移。打印投影时您可以看到这些值。不过我们也可以使用投影的 wkt 进行新投影,以便获得默认的投影比例和偏移量。
函数:
wkt()
Returns a WKT representation of the base coordinate system of this Projection.
返回此投影的基坐标系的 WKT 。
Arguments:
this:projection (Projection)
Returns: String
projection()
Returns the default projection of an Image. Throws an error if the bands of the image don't all have the same projection.
Arguments:
this:image (Image):
The image from which to get the pro