Skip to content

This tool converts latitude and longitude coordinates to world Mercator using EPSG:3395, enabling seamless bidirectional conversion.

Notifications You must be signed in to change notification settings

mehrshad-haghighinejad/WorldMercatorForUnityTerrains

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

World Mercator Projection for Unity's Terrain

This tool functions as a world Mercator coordinate calculator using the EPSG:3395 projection. It efficiently takes latitude and longitude inputs and seamlessly converts them into world Mercator coordinates, facilitating bidirectional conversion between the two coordinate systems.

EPSG:3395 referene: https://epsg.io/3395

Important Note: This Mercator projection differs from the commonly used Web Mercator projection. It excels particularly in polar regions, offering increased accuracy compared to the Web Mercator projection.

How to Use:

It Convert Latitude and longitude to X and Y coordinates in world Mercator

double x = MercatorProjection.lonToX(lon);
double y = MercatorProjection.latToY(lat);

It Converts x and y to latitude and longitude.

double lat = MercatorProjection.yToLat(y)
double lon = MercatorProjection.XToLon(x)

About

This tool converts latitude and longitude coordinates to world Mercator using EPSG:3395, enabling seamless bidirectional conversion.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages