Module usagi::web_mercator[][src]

Web Mercator utilities

Modules

consts

Functions

angle_to_pixel

Calc a pixel positions from an angles return: ( x [px], y [px] )

angle_to_tile

Calc a tile address from an angles longitude, latitude: [deg] return: ( x [tiles], y [tiles] )

meters_per_pixel

Calc a resolution of a latitude return: resolution [m/px]

pixel_to_angle

Calc angles form pixel positions x, y: pixel position [px] return ( longitude, laitutde )

pixel_to_tile

Calc a tile address from a pixel positions x, y: pixel position [px] return: ( x [tiles], y [tiles] )

pixels_in_arris

Calc a pixel count of an arris return: pixel count [px]

to_lower_tile
to_upper_tiles