ListTransformations (arcpy)
摘要
返回用于将数据由一种空间参考转换为另一种空间参考的有效变换方法的列表。对于某个特定的地理区域,可以使用区域范围来缩小有效变换方法列表的范围。
语法
ListTransformations (from_sr, to_sr, {extent})
参数 | 说明 | 数据类型 |
from_sr |
The starting geographic coordinate system. Can be specified with a SpatialReference object, the name of the spatial reference, or a path to a projection file (.prj). | SpatialReference |
to_sr | The final geographic coordinate system. Can be specified with a SpatialReference object, the name of the spatial reference, or a path to a projection file (.prj). | SpatialReference |
extent | Only transformations that span the entire extent will be returned. The extent needs to be specified in coordinates from the in_sr. When working with data, the extent on a Describe object can be used. | Extent |
数据类型 | 说明 |
String |
有效变换方法列表。 |
代码实例
ListTransformations 示例
使用 ListTransformations 确定可用于从一个坐标系投影到另一个坐标系的有效变换。
import arcpy
from_sr = arcpy.SpatialReference('WGS 1984')
to_sr = arcpy.SpatialReference('NAD 1927 StatePlane California VI FIPS 0406')
extent = arcpy.Extent(-178.217598182, 18.9217863640001,
-66.969270909, 71.4062354550001)
transformations = arcpy.ListTransformations(from_sr, to_sr, extent)
相关主题
5/10/2014