Erro
| Número de ID do Erro | BUG-000152518 |
|---|---|
| Enviado | September 22, 2022 |
| Última Modificação | June 23, 2025 |
| Aplica-se à | ArcGIS Pro |
| Versão encontrada | 3.0 |
| Sistema Operacional | N/A |
| Versão do Sistema Operacional | N/A |
| Status | As Designed |
// Correct any input longitude values that extend beyond the date line
function Mod(value, range, upperEnd)
{
while (value > upperEnd)
value -= range;
var lowerEnd = upperEnd - range;
while (value <= lowerEnd)
value += range;
return value;
}
function LatLongToDMS(lat, lon)
{
lon = Mod(lon, 360, 180);
var dmsLat = ConvertDirection(abs(lat), {"directionType":"north", "angleType":"degrees"},
{"directionType":"north", "angleType":"dms", "outputType":"text", "format":'d[°] mm[\'] ss.ssss["] '})
+ iif( lat >= 0, "N", "S");
var dmsLon = ConvertDirection(abs(lon), {"directionType":"north", "angleType":"degrees"},
{"directionType":"north", "angleType":"dms", "outputType":"text", "format":'d[°] mm[\'] ss.ssss["] '})
+ iif( lon >= 0, "E", "W");
return dmsLat + ", " + dmsLon;
}
return LatLongToDMS(Geometry($feature).y, Geometry($feature).x);
Use the calculate geometry attributes tool or write an arcade expression to convert decimal degrees to Degree Minute Seconds (DMS) notation by referring to https://support.esri.com/en/technical-article/000008758.
ID do Erro: BUG-000152518
Software:
Obtenha ajuda de especialistas do ArcGIS
Baixe o Aplicativo de Suporte da Esri