【发布时间】:2018-05-19 19:23:02
【问题描述】:
我正在关注tutorial,关于如何使用 osmar 包在 R 中下载 OSM 数据,所以代码是:
library(osmar)
src <- osmsource_api()
bb <- center_bbox(174.76778, -36.85056, 700, 700)
ua <- get_osm(bb, source = src)
当我运行最后一行时,出现此错误:
Space required after the Public Identifier
SystemLiteral " or ' expected
SYSTEM or PUBLIC, the URI is missing
Opening and ending tag mismatch: hr line 7 and body
Opening and ending tag mismatch: body line 4 and html
Premature end of data in tag html line 2
Error: 1: Space required after the Public Identifier
2: SystemLiteral " or ' expected
3: SYSTEM or PUBLIC, the URI is missing
4: Opening and ending tag mismatch: hr line 7 and body
5: Opening and ending tag mismatch: body line 4 and html
6: Premature end of data in tag html line 2
我不确定这意味着什么。当我用谷歌搜索这个错误时,我只能看到与 Bioconductor 和 biomaRt 相关的东西,这与我的工作无关。但是,我相信这与 R 与 OSM 网站(?)的连接有关。所以我想知道是否有人知道如何解决它的一些提示。谢谢!
【问题讨论】:
-
这可能是包本身的问题,因为给定的包示例会产生完全相同的错误。您也许可以尝试编写包维护者。您可以在包中找到电子邮件地址docs
-
不要提供可以是文本的图像信息。
标签: r openstreetmap osmar