Erro
| Número de ID do Erro | BUG-000178221 |
|---|---|
| Enviado | July 25, 2025 |
| Última Modificação | September 4, 2025 |
| Aplica-se à | ArcGIS API for Python |
| Versão encontrada | 2.4.1 |
| Sistema Operacional | N/A |
| Versão do Sistema Operacional | N/A |
| Versão Fixa | 2.4.2 |
| Status | 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 do Erro: BUG-000178221
Software:
Obtenha ajuda de especialistas do ArcGIS
Baixe o Aplicativo de Suporte da Esri