ArcGIS Desktop

  • ArcGIS Pro
  • ArcMap

  • My Profile
  • Help
  • Sign Out
ArcGIS Desktop

ArcGIS Online

The mapping platform for your organization

ArcGIS Desktop

A complete professional GIS

ArcGIS Enterprise

GIS in your enterprise

ArcGIS for Developers

Tools to build location-aware apps

ArcGIS Solutions

Free template maps and apps for your industry

ArcGIS Marketplace

Get apps and data for your organization

  • Documentation
  • Support
Esri
  • Sign In
user
  • My Profile
  • Sign Out

ArcMap

  • Home
  • Get Started
  • Map
  • Analyze
  • Manage Data
  • Tools
  • Extensions

GetUTMFromLocation

  • Summary
  • Discussion
  • Syntax
  • Code sample

Summary

Returns a WGS84 UTM zone spatial reference from lat, long coordinates.

Discussion

This function can be used to find the proper spatial reference to be used when creating a mosaic dataset for UAV or UAS images.

Syntax

GetUTMFromLocation (longitude, latitude)
ParameterExplanationData Type
longitude

The longitude of the point.

Double
latitude

The latitude of the point.

Double

Return Value

Data TypeExplanation
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.

Code sample

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)

ArcGIS Desktop

  • Home
  • Documentation
  • Support

ArcGIS Platform

  • ArcGIS Online
  • ArcGIS Desktop
  • ArcGIS Enterprise
  • ArcGIS for Developers
  • ArcGIS Solutions
  • ArcGIS Marketplace

About Esri

  • About Us
  • Careers
  • Esri Blog
  • User Conference
  • Developer Summit
Esri
Tell us what you think.
Copyright © 2019 Esri. | Privacy | Legal