quadkey

quadkey(lon::Real, lat::Real, zoom::Int; bounds=false, geog=true)

Returns the x,y,z & the quadtree string or the bounds

Examples

julia> quadkey(-9,39, 8)
([121, 97, 8], ["03311003";;])
julia> quadkey(-9,39, 8, bounds=true)
2×2 Matrix{Float64}:
 -9.84375  38.8226
 -8.4375   39.9097

The form bellow returns the quadtree representation of the XYZ tile or the bounds coordinates in geographic coordinates

quadkey(xyz::VecOrMat{<:Int}; bounds=true, geog=true)

Examples

julia> quadkey([121, 97, 8], bounds=false)
"03311003"

Methods

# 2 methods for generic function "quadkey" from GMT:
 [1] quadkey(xyz::VecOrMat{<:Int64}; bounds, geog)
 [2] quadkey(lon::Real, lat::Real, zoom::Int64; bounds, geog)

See Also