Convert LAT LONG to UTM in C#

The Universal Transverse Mercator (UTM) is a coordinate system that represents locations on the surface of the Earth. Its accuracy over large areas and ease of use make it a popular choice for GIS applications. In this blog post, we will learn how to convert LAT LONG to UTM in C#. This article provides a comprehensive step-by-step guide and code examples to simplify the conversion process. You can use it as a starting point to develop your own LAT LONG to UTM converter.

This article covers the following topics:

  1. C# LAT LONG to UTM Converter
  2. Steps to Convert LAT LONG to UTM
  3. Convert LAT LONG to UTM
  4. Convert LAT LONG to UTM Online
  5. Free Learning Resources

C# LAT LONG to UTM Converter API - Free Download

To convert LAT LONG to UTM, we will use the Aspose.GIS for .NET API. It is a powerful API that allows developers to work with geographic information systems (GIS) and geospatial data in their .NET applications. It provides a wide range of features and functions for working with various GIS data formats, performing spatial analysis, and creating interactive maps. The API supports various coordinate systems and allows you to transform data between different coordinate systems.

Please download the DLL of the API or install it using NuGet.

PM> Install-Package Aspose.GIS

How to Convert LAT LONG to UTM?

We can easily convert LAT LONG coordinates to UTM coordinates by following the steps below:

  1. Create a spatial reference system for coordinates
  2. Create transformation
  3. Transform geometry as a point

Now, let’s see how to transform these steps into C# code and convert a LAT LONG to UTM.

Convert LAT LONG to UTM in C#

Please follow the steps below to convert LAT LONG to UTM:

  1. Create a spatial reference system using the CreateFromEpsg() method with the epsg 4326 code for LAT LONG.
  2. Repeat the above step with the epsg 32631 code for UTM.
  3. Call the CreateTransformationTo() method to create a transformation.
  4. Transform geometry, such as a point, using the Transform() method.
  5. Finally, show the transformed coordinates.

The following code sample shows how to convert a shapefile to SVG using C#.

POINT (166021.44308054075 0)
POINT Z (166021.44308054075 0 0)

Get a Free License

You can get a free temporary license to try the library without evaluation limitations.

Convert LAT LONG to UTM Online

Furthermore, you may also convert LAT LONG coordinates to UTM coordinates using our web-based LAT LONG to UTM converter at no cost. This online tool was built using the Aspose.GIS for .NET API.

LAT LONG to UTM – Free Learning Resources

Besides converting coordinates, find out how to read, convert, and manipulate a variety of GIS data formats, including Shapefile, GeoJSON, KML, and GML, by following the resources below:

Conclusion

In this blog post, we showed you how to convert LAT LONG to UTM coordinates in C#. We used the Aspose.GIS for .NET library for performing coordinate transformations. By following the steps outlined in this blog post and using the provided code sample, you can easily develop your own LAT LONG to UTM converter. In case of any ambiguity, please feel free to contact us on our free support forum.

See Also