GeoBounds
更多信息和选项
- GeoBounds[g] 以度数为单位返回经度和纬度的范围 {{latmin,latmax},{lonmin,lonmax}}.
- 地理区域 g 可以按 GeoGraphics 基元组合(例如 GeoDisk 和 GeoPath),地理 Entity[…] 与 EntityClass[…] 对象,或单个 GeoPosition 位置的形式给出.
- 对于扩展的地理实体,使用的是 "Polygon" 属性. 对于点状实体,则使用 "Position" 属性.
- 选项 GeoModel 指定地球或者正在使用的天体的模型.
范例
打开所有单元 关闭所有单元基本范例 (4)
GeoBounds[Entity["Country", "UnitedStates"]]GeoGraphics[GeoRange -> %, GeoRangePadding -> None, GeoProjection -> "Mercator"]GeoBounds[GeoDisk[{30, 0}, Quantity[5000, "Kilometers"]]]GeoBounds[EntityClass["Country", "Africa"]]GeoBounds[EntityClass["Country", "Africa"], Quantity[200, "Miles"]]范围 (7)
一组 GeoGraphics 基元的经度和纬度范围:
GeoBounds[{GeoDisk[{0, 0}, 10^6], GeoPath[{{3, 3}, {40, 50}}]}]GeoBounds[{Entity["Country", "Brazil"], Entity["City", {"Rome", "Lazio", "Italy"}], EntityClass["Country", "Africa"]}]GeoBounds[{GeoPosition[{0, 0}], $GeoLocation}]GeoBounds[Entity["Country", "Brazil"]]GeoBounds[Entity["Country", "Brazil"], Quantity[5, "AngularDegrees"]]GeoBounds[Entity["Country", "Brazil"], Quantity[100, "Kilometers"]]GeoBounds[Entity["Country", "Brazil"], 10 ^ 5]GeoBounds[Entity["Country", "Australia"], Scaled[0.2]]GeoBounds[Entity["Country", "France"], {Quantity[1, "AngularDegrees"], Quantity[2000, "Kilometers"]}]GeoBounds[Entity["Country", "France"], {{Quantity[1, "AngularDegrees"], Scaled[0.3]}, {Quantity[5, "AngularDegrees"], Quantity[2000, "Kilometers"]}}]EntityValue[EntityClass["MannedSpaceMission", "ApolloLandings"], "Position"]GeoBounds[%]GeoBounds[%%, Quantity[1000, "Kilometers"]]选项 (1)
GeoModel (1)
为了把距离转化为角度,GeoBounds 必须知道正则使用的球体尺寸,默认下是地球的 "ITRF00" 标准:
GeoBounds[GeoDisk[GeoPosition[{0, 0}], Quantity[1000, "Miles"]]]GeoBounds[GeoDisk[GeoPosition[{0, 0}], Quantity[1000, "Miles"]], GeoModel -> Entity["PlanetaryMoon", "Moon"]]默认值 GeoModelAutomatic 表示地理模型也可以从输入的其他部分推导得到:
GeoBounds[GeoDisk[GeoPosition[{0, 0}, Entity["PlanetaryMoon", "Moon"]], Quantity[1000, "Miles"]]]GeoBounds[GeoDisk[GeoPosition[{0, 0}, Entity["PlanetaryMoon", "Moon"]], Quantity[1000, "Miles"]], GeoModel -> "ITRF00"]属性和关系 (6)
GeoBounds 返回相应的经度和纬度范围:
GeoBounds[Entity["Country", "Brazil"]]GeoBoundingBox 返回相应限位框的西南和东北角:
GeoBoundingBox[Entity["Country", "Brazil"]]GeoBounds[%]GeoBounds[Entity["Country", "France"]]Mean /@ %EntityValue[Entity["Country", "France"], "Position"]GeoBounds[Entity["Country", "Sweden"]]GeoGraphics[GeoBoundsRegion[%], GeoProjection -> "Equirectangular"]GeoGraphics[GeoBoundsRegion[%%], GeoProjection -> "Bonne"]在长 GeoPath 对象上的 GeoBounds 限制经度范围为 360 度:
{{latmin, latmax}, {lonmin, lonmax}} = GeoBounds[GeoPath[{{50, 100}, Quantity[10^6, "Kilometers"], Quantity[45, "AngularDegrees"]}]]GeoGraphics[{Thin, GeoPath[{{50, 100}, Quantity[10^6, "Kilometers"], Quantity[45, "AngularDegrees"]}]}, Frame -> True]GeoDestination[{50, 100}, {Quantity[10^6, "Kilometers"], Quantity[45, "AngularDegrees"]}]GeoBounds[Entity["Country", "Russia"]]GeoGraphics[{GeoStyling[Orange], Polygon[Entity["Country", "Russia"]]}, GeoGridLines -> Automatic]GeoBounds[g,δ] 中的填充 δ 对应于 GeoGraphics 的 GeoRangePadding->δ 选项:
GeoGraphics[GeoRange -> GeoBounds[Entity["Country", "Germany"]], GeoRangePadding -> Quantity[500, "Miles"]]Options[%, GeoRange]GeoBounds[Entity["Country", "Germany"], Quantity[500, "Miles"]]文本
Wolfram Research (2014),GeoBounds,Wolfram 语言函数,https://reference.wolfram.com/language/ref/GeoBounds.html (更新于 2015 年).
CMS
Wolfram 语言. 2014. "GeoBounds." Wolfram 语言与系统参考资料中心. Wolfram Research. 最新版本 2015. https://reference.wolfram.com/language/ref/GeoBounds.html.
APA
Wolfram 语言. (2014). GeoBounds. Wolfram 语言与系统参考资料中心. 追溯自 https://reference.wolfram.com/language/ref/GeoBounds.html 年
BibTeX
@misc{reference.wolfram_2026_geobounds, author="Wolfram Research", title="{GeoBounds}", year="2015", howpublished="\url{https://reference.wolfram.com/language/ref/GeoBounds.html}", note=[Accessed: 04-November-2026]}
BibLaTeX
@online{reference.wolfram_2026_geobounds, organization={Wolfram Research}, title={GeoBounds}, year={2015}, url={https://reference.wolfram.com/language/ref/GeoBounds.html}, note=[Accessed: 04-November-2026]}