Expand description
§martin-tile-utils
A library to help tile servers like Martin work with tile content.
§License
Licensed under either of
- Apache License, Version 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT) at your option.
§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§
Enums§
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.