You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

如何在R中绘制ArcGIS导出的XML格式底图?

如何在R(ggplot/geom_sf)中绘制ArcGIS导出的XML格式底图?

我有一份从ArcGIS导出的XML格式底图文件,希望用R中的ggplot和geom_sf工具完成绘制。目前我已经通过XML包成功加载了这份文件,但不清楚后续该如何将XML数据转换为可用于绘图的空间对象,也不知道怎么在ggplot中展示这份底图。

我加载XML文件的代码如下:

#How I loaded my XML file into r 
# Load the package required to read XML files.
library("XML")

# Also load the other required package.
library("methods")

# Give the input file name to the function.
result <- xmlParse(file = "Grey background.xml")

# Print the result.
print(result)

我没法把XML文件附在提问里,不过可以提供ArcGIS中该底图的示例截图:
ArcGIS底图示例

内容的提问来源于stack exchange,提问作者confusedindividual

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.08.13 02:30:50