不具合
| 不具合 ID 番号 | BUG-000178221 |
|---|---|
| 送信されました | July 25, 2025 |
| 最終更新日 | September 4, 2025 |
| 適用対象 | ArcGIS API for Python |
| 見つかったバージョン | 2.4.1 |
| オペレーティング システム | N/A |
| オペレーティング システムのバージョン | N/A |
| 修正されたバージョン | 2.4.2 |
| ステータス | Fixed |
Use the LengthUnits class to do this:
from arcgis.geometry import Polyline
from arcgis.geometry import lengths, LengthUnits
simple_polyline = Polyline({
"paths": [[[-95.5, 30.2], [-95.6, 30.3]]],
"spatialReference": {"wkid": 4326}
})
print(type(simple_polyline))
print(simple_polyline)
usFeet_simple = lengths(
spatial_ref={"wkid": 4326},
polylines=[simple_polyline],
length_unit=LengthUnits.FOOT,
calculation_type='geodesic',
gis=gis
)
print("Length in US feet (simple):", usFeet_simple)
不具合 ID: BUG-000178221
ソフトウェア:
ArcGIS エキスパートのサポートを受ける
Esri Support アプリのダウンロード