简体   繁体   English

需要一些有关如何解码从HERE-OLP下载的二进制格式的protobuf文件的建议

[英]Need some suggestions on how to decode a protobuf file which is downloaded from HERE-OLP in binary format

We have a use case where the maps are downloaded from HERE-OLP. 我们有一个使用案例,其中地图是从HERE-OLP下载的。 The files are in Protobuf3 (encoded as binary) format. 这些文件采用Protobuf3(编码为二进制)格式。 How do we decode the file and read the content in it? 我们如何解码文件并读取其中的内容? Appreciate any recommendations or Java source code who have done this before. 感谢以前做过的任何建议或Java源代码。

I'm not entirely sure if I'm understanding your question properly but if you go to the catalog layer you downloaded the data from, look for the Schema tab. 我不确定我是否正确理解了您的问题,但是如果您转到从中下载数据的目录层,请查找“架构”选项卡。 If your user has access to it (all the HERE Map Content layer schemas are public), it provides the schemas as Maven dependency elements that you can copy into a pom.xml file or you can click the "Download schema" button to download the schema jars as a zip file. 如果您的用户具有访问权限(所有HERE Map Content图层模式都是公共的),则它将模式提供为Maven依赖项元素,您可以将其复制到pom.xml文件中,也可以单击“下载模式”按钮来下载模式罐子作为zip文件。

For actual code, go to the Code examples in the documentation, many of the examples read and parse protobuf data. 对于实际的代码,请转到文档中的代码示例,许多示例读取并解析protobuf数据。 A good starting point is the OLP Developer Tutorials one under the "Get Started" category. 一个好的起点是“入门”类别下的OLP开发人员教程。

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

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