cartopy.mpl.geoaxes.InterProjectionTransform#

class cartopy.mpl.geoaxes.InterProjectionTransform(source_projection, target_projection)[源代码]#

基类:Transform

将坐标从source_projects转换到 target_projection .

从给定投影创建变换对象。

参数:
  • source_projection -- A CRS .

  • target_projection -- A CRS .

has_inverse = True#

如果此变换具有相应的逆变换,则为真。

input_dims = 2#

此转换的输入维度的数量。必须在子类中重写(使用integer)。

inverted()[源代码]#
返回:

InterProjectionTransform --Matplotlib Transform 从目标坐标到源坐标

is_separable = False#

如果此变换在x维和y维中可分离,则为真。

output_dims = 2#

此转换的输出维度的数量。必须在子类中重写(使用integer)。

transform_non_affine(xy)[源代码]#

从源坐标转换到目标坐标。

参数:

xy -- 源坐标中的(n,2)点阵列。

返回:

x, y --目标坐标中的转换点的(n,2)阵列。

transform_path_non_affine(src_path)[源代码]#

从源坐标转换到目标坐标。

缓存结果,以便后续调用相同 src_path 参数(以及相同的源和目标预测)更快。

参数:

src_path -- Matplotlib Path 具有源坐标中的点的对象。

返回:

result --Matplotlib Path 其点位于目标坐标中。