简体   繁体   English

我可以从数据库 sqlite 存储和检索.kml 文件吗

[英]Can I store and retrieve .kml file from database sqlite

I'm using osmnavigator, and I'm trying to retrieve raw kml from the sqlite but couldn't find any solution.我正在使用 osmnavigator,我正在尝试从 sqlite 检索原始 kml,但找不到任何解决方案。 Can I store the filename only and retrieve on parsekmlstream?我可以只存储文件名并在 parsekmlstream 上检索吗?

If you can get an InputStream on what you want to read, then you should be able to use KmlDocument method:如果您可以在要阅读的内容上获得 InputStream,那么您应该可以使用 KmlDocument 方法:

public boolean parseKMLStream(InputStream stream, ZipFile kmzContainer)

(just pass null for the kmzContainer param) (只需将 null 传递给 kmzContainer 参数)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM