Contents
How are the coordinates of a tile converted to a quadkey?
To convert tile coordinates into a quadkey, the bits of the Y and X coordinates are interleaved, and the result is interpreted as a base-4 number (with leading zeros maintained) and converted into a string. For instance, given tile XY coordinates of (3, 5) at level 3, the quadkey is determined as follows:
How does a quadkey work in Bing Maps?
Each quadkey uniquely identifies a single tile at a particular level of detail, and it can be used as an key in common database B-tree indexes. To convert tile coordinates into a quadkey, the bits of the Y and X coordinates are interleaved, and the result is interpreted as a base-4 number (with leading zeros maintained) and converted into a string.
How does a qquadkey relate to a zoom level?
Qquadkeys have several interesting properties. First, the length of a quadkey (the number of digits) equals the zoom level of the corresponding tile. Second, the quadkey of any tile starts with the quadkey of its parent tile (the containing tile at the previous level).
What are the properties of a quadkey tile?
Quadkeys have several interesting properties. First, the length of a quadkey (the number of digits) equals the level of detail of the corresponding tile. Second, the quadkey of any tile starts with the quadkey of its parent tile (the containing tile at the previous level).
Is there a quadkey naming convention for Azure Maps?
The Azure Maps SDKs support the overlaying of tile layers that use quadkey naming convention in addition to other naming conventions as documented in the Add a tile layer document. The quadkeys naming convention only works for zoom levels of one or greater.
Which is the best quadkey for geospatial indexing?
Still, squares are perfect for modeling sippy map tiles and rectangular regions aligned with Earth’s parallels and meridians. With the added convenience of packing a quadkey code in a sixty-four-bit integer and the support of a very efficient Python package, quadkeys are indeed another great tool to keep handy on your geospatial toolkit.
How many bits to encode a quadkey code?
If you look at quadkey codes with the eyes of a low-level software developer, you will see that it takes only two bits to encode a detail level. Your typical maximum of 23 levels requires only 46 bits to encode, which allows us to use sixty-four-bit integers to store these codes.