Map tiling for local operated use cases

For many real world use cases continuous positioning is required, allowing to avoid complex operations such as sinus. The most simple approach is to use our latitude (north/south) and longitude (west/east) position and remove the spheric aspects, e.g. by positioning the coordinates (0,0) in the upper-left corner of our world.

Latitude, north/ south, image from https://en.wikipedia.org/wiki/Geographic_coordinate_system
Longitude, west/ east, image from https://en.wikipedia.org/wiki/Geographic_coordinate_system
Image from https://en.wikipedia.org/wiki/File:World_location_map_(equirectangular_180).svg, adapted by author

For doing so, the coordinates require a transformation from the center of the world illustration to the upper left corner.

X = Longitude shift = (longitude + 180)

Y = Latitude shift = sin(latitude * pi/180)

This procedure is defined by the (web) mercator projection.

Compare e.g., https://developers.google.com/maps/documentation/javascript/examples/map-coordinates

As tile size we use 6378137 meters as earth circumference for 1meter by 1meter patches.

This entry was posted in Uncategorized. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *