GeoZoomLevel
是一个选项,指定绘制地图的分辨率.
更多信息
- GeoZoomLevel 是像 GeoGraphics、GeoImage、GeoListPlot 或 GeoHistogram 这样的地理可视化函数和像 GeoElevationData、GeomagneticModelData 或 GeogravityModelData 这样的地理数据函数的一个选项.
- GeoZoomLevel 为地图标尺提供了以 2 为底的对数规范e. 在地理缩放水平中每增加 1 意味着在距离分辨率上增加 2 倍. GeoZoomLevel 的值为 1 对应着整个世界的数据.
- GeoZoomLevel 值用于估算一个给定位置周边的地图地理范围,还可用于决定图像瓦片的分辨率或要下载的数据瓦片.
- 不同的地理背景样式和数据来源有不同的可用缩放范围. 比如,地球的 "StreetMap" 地理样式可用缩放范围为 1 到 18,而地球的地理高程数据的可用缩放则为 1 到 12,该数据对于火星而言范围为 1 到 7.
范例
打开所有单元 关闭所有单元基本范例 (3)
在默认 GeoZoomLevel 下显示加拿大地图:
GeoGraphics[Entity["Country", "Canada"]]显式指定 GeoZoomLevel 以获得低分辨率地图渲染图:
GeoGraphics[Entity["Country", "Canada"], GeoZoomLevel -> 1]在默认 GeoZoomLevel 下显示纽约市周围的地形图:
GeoGraphics[Entity["City", {"NewYork", "NewYork", "UnitedStates"}]]显式指定 GeoZoomLevel 获得高分辨率地图渲染图:
GeoGraphics[Entity["City", {"NewYork", "NewYork", "UnitedStates"}], GeoZoomLevel -> 12]使用默认 GeoZoomLevel 显示纽约州周围的地形图:
GeoGraphics[Entity["AdministrativeDivision", {"NewYork", "UnitedStates"}], GeoBackground -> GeoStyling["ReliefMap"]]显式指定 GeoZoomLevel 以获得低分辨率的地图渲染图:
GeoGraphics[Entity["AdministrativeDivision", {"NewYork", "UnitedStates"}], GeoBackground -> GeoStyling["ReliefMap"], GeoZoomLevel -> 3]范围 (2)
Table[GeoGraphics[Entity["Building", "Alhambra"], GeoZoomLevel -> n, GeoBackground -> "Plain"], {n, 18}]Table[GeoGraphics[Entity["HistoricalSite", "CastelSantAngelo::q6839"], GeoZoomLevel -> n, GeoRange -> Quantity[100, "Meters"]], {n, 10, 18}]属性和关系 (2)
loc = GeoPosition[Entity["HistoricalSite", "CastelSantAngelo::q6839"]]equator = 2Pi GeodesyData["ITRF00", "SemimajorAxis"]Table[{zoom, equator / 2 ^ zoom}, {zoom, 0, 18}]//GridGeoGraphics[loc, GeoScaleBar -> "Metric", GeoZoomLevel -> 18]GeoGraphics[GeoCircle[loc, Quantity[152.874, "Meters"] / 2], GeoScaleBar -> "Metric"]对于给定位置,GeoZoomLevel 指定地图的缩放标尺:
loc = GeoPosition[Entity["Building", "BrandenburgerTor::r5479"]]GeoImage[loc, GeoZoomLevel -> 18]GeoResolution 指定相邻像素间的距离:
GeoImage[loc, GeoResolution -> Quantity[35, "Centimeters"]]可能存在的问题 (3)
GeoGraphics[Entity["Country", "Canada"], GeoZoomLevel -> 7]不是每个 GeoElevationData 地点的每个 GeoZoomLevel 都可用:
pos = GeoPosition[Entity["City", {"Kathmandu", "Kathmandu", "Nepal"}]]Table[GeoElevationData[pos, GeoZoomLevel -> n], {n, 15}]以某些地理样式添加标注在某些尺度和变焦水平组合上可读性更强:
With[{loc = Entity["Building", "TourEiffel"]}, GeoGraphics[{Red, PointSize[Large], Point[loc]}, GeoCenter -> loc, GeoRange -> Quantity[100, "Meters"], GeoZoomLevel -> #, GeoBackground -> "StreetMap"]]& /@ Range[13, 18]技术笔记
相关指南
-
▪
- 地图和制图
文本
Wolfram Research (2014),GeoZoomLevel,Wolfram 语言函数,https://reference.wolfram.com/language/ref/GeoZoomLevel.html.
CMS
Wolfram 语言. 2014. "GeoZoomLevel." Wolfram 语言与系统参考资料中心. Wolfram Research. https://reference.wolfram.com/language/ref/GeoZoomLevel.html.
APA
Wolfram 语言. (2014). GeoZoomLevel. Wolfram 语言与系统参考资料中心. 追溯自 https://reference.wolfram.com/language/ref/GeoZoomLevel.html 年
BibTeX
@misc{reference.wolfram_2026_geozoomlevel, author="Wolfram Research", title="{GeoZoomLevel}", year="2014", howpublished="\url{https://reference.wolfram.com/language/ref/GeoZoomLevel.html}", note=[Accessed: 04-July-2026]}
BibLaTeX
@online{reference.wolfram_2026_geozoomlevel, organization={Wolfram Research}, title={GeoZoomLevel}, year={2014}, url={https://reference.wolfram.com/language/ref/GeoZoomLevel.html}, note=[Accessed: 04-July-2026]}