本文簡要介紹 python 語言中 arcgis.geometry.Geometry.project_as
的用法。
用法:
project_as(spatial_reference, transformation_name=None)
返回:
Geometry
對象
投影
Geometry
對象並可選擇應用geotransformation
。注意:
project_as
方法需要 ArcPy 或 pyproj>=1.9 和 PROJ.4Parameter
Description
spatial_reference
所需的空間參考。新的空間參考。這可以是
SpatialReference
對象或坐標係名稱。transformation_name
必需的字符串。
geotransformation
名稱。>>> geom = Geometry({ >>> "rings" : [[[-97.06138,32.837],[-97.06133,32.836],[-97.06124,32.834],[-97.06127,32.832], >>> [-97.06138,32.837]],[[-97.06326,32.759],[-97.06298,32.755],[-97.06153,32.749], >>> [-97.06326,32.759]]], >>> "spatialReference" : {"wkid" : 4326} >>> }) >>> geom2 = geom.project_as(spatial_reference="GCS", transformation_name = "transformation") >>> geom2.type arcgis.geometry.Geometry
相關用法
- Python ArcGIS Geometry.point_from_angle_and_distance用法及代碼示例
- Python ArcGIS Geometry.part_count用法及代碼示例
- Python ArcGIS Geometry.point_count用法及代碼示例
- Python ArcGIS Geometry.true_centroid用法及代碼示例
- Python ArcGIS Geometry.last_point用法及代碼示例
- Python ArcGIS Geometry.measure_on_line用法及代碼示例
- Python ArcGIS Geometry.hull_rectangle用法及代碼示例
- Python ArcGIS Geometry.translate用法及代碼示例
- Python ArcGIS Geometry.from_shapely用法及代碼示例
- Python ArcGIS Geometry.intersect用法及代碼示例
- Python ArcGIS Geometry.length用法及代碼示例
- Python ArcGIS Geometry.area用法及代碼示例
- Python ArcGIS Geometry.angle_distance_to用法及代碼示例
- Python ArcGIS Geometry.spatial_reference用法及代碼示例
- Python ArcGIS Geometry.densify用法及代碼示例
- Python ArcGIS Geometry.first_point用法及代碼示例
- Python ArcGIS Geometry.geometry_type用法及代碼示例
- Python ArcGIS Geometry.extent用法及代碼示例
- Python ArcGIS Geometry.geoextent用法及代碼示例
- Python ArcGIS Geometry.contains用法及代碼示例
- Python ArcGIS Geometry.label_point用法及代碼示例
- Python ArcGIS Geometry.length3D用法及代碼示例
- Python ArcGIS Geometry.is_multipart用法及代碼示例
- Python ArcGIS Geometry.scale用法及代碼示例
- Python ArcGIS Geometry.centroid用法及代碼示例
注:本文由純淨天空篩選整理自arcgis.com大神的英文原創作品 arcgis.geometry.Geometry.project_as。非經特殊聲明,原始代碼版權歸原作者所有,本譯文未經允許或授權,請勿轉載或複製。