當前位置: 首頁>>代碼示例 >>用法及示例精選 >>正文


Python ArcGIS Geometry.spatial_reference用法及代碼示例


本文簡要介紹 python 語言中 arcgis.geometry.Geometry.spatial_reference 的用法。

用法:

property spatial_reference

返回:

SpatialReference 對象

獲取幾何體的SpatialReference

>>> 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}
>>>                 })
>>> geom.spatial_reference
<SpatialReference Class>

相關用法


注:本文由純淨天空篩選整理自arcgis.com大神的英文原創作品 arcgis.geometry.Geometry.spatial_reference。非經特殊聲明,原始代碼版權歸原作者所有,本譯文未經允許或授權,請勿轉載或複製。