Crate martin_tile_utils

Source
Expand description

§martin-tile-utils

docs.rs docs GitHub crates.io version CI build

A library to help tile servers like Martin work with tile content.

§License

Licensed under either of

§Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Structs§

TileCoord
TileInfo

Enums§

Encoding
Format

Constants§

EARTH_CIRCUMFERENCE
circumference of the earth in meters
EARTH_RADIUS
radius of the earth in meters
MAX_ZOOM

Functions§

bbox_to_xyz
Convert bounding box to a tile box (min_x, min_y, max_x, max_y) for a given zoom
decode_brotli
decode_gzip
encode_brotli
encode_gzip
get_zoom_precision
Compute precision of a zoom level, i.e. how many decimal digits of the longitude and latitude are relevant
tile_index
Convert longitude and latitude to a tile (x,y) coordinates for a given zoom
webmercator_to_wgs84
transform WebMercator to WGS84
wgs84_to_webmercator
transform WGS84 to WebMercator
xyz_to_bbox
Convert min/max XYZ tile coordinates to a bounding box values.