Resumen
Returns a WGS84 UTM zone spatial reference from lat, long coordinates.
Debate
This function can be used to find the proper spatial reference to be used when creating a mosaic dataset for UAV or UAS images.
Sintaxis
GetUTMFromLocation (longitude, latitude)
Parámetro | Explicación | Tipo de datos |
longitude | The longitude of the point. | Double |
latitude | The latitude of the point. | Double |
Valor de retorno
Tipo de datos | Explicación |
SpatialReference | The spatial reference of the lat, long location. The spatial reference will be returned as a WGS84 UTM zone SpatialReference. The name of the spatial reference will be in the form WGS_1984_UTM_Zone_XXH. The XX indicates the UTM zone number. The H indicates the hemisphere, N for the northern hemisphere, or S for the southern hemisphere. |
Muestra de código
GetUTMFromLocation example
Returns the WGS spatial reference name, based on the latitude and longitude.
import arcpy
sr = arcpy.GetUTMFromLocation(-100.9, 40)
print(sr.name)