上传数据流程图
1 olp初始化服务接口
https://sab.metadata.data.api.platform.here.com/metadata/v1/catalogs/hrn:here:data::olp-navinfo:wangpengtest
2上传数据
3发布服务
1 初始化服务接口--post方法,指定参数layerids,hrn,返回publication的id
参数:
{
"layerIds": [
"as12443565"
],
"versionDependencies": [
{
"direct": true,
"hrn": "hrn:here:data::olp-navinfo:wangpengtest",
"version": 1
}
]
}
返回值:
{
"catalogId": "wangpengtest",
"catalogVersion": -1,
"details": {
"expires": 1574937169175,
"message": "Publication has been initialized",
"modified": 1574677969175,
"started": 1574677969175,
"state": "initialized"
},
"id": "v2-352dbef3-edb6-455c-b3ee-ee47e12239b2",
"layerIds": [
"as12443565"
],
"versionDependencies": [
{
"direct": true,
"hrn": "hrn:here:data::olp-navinfo:wangpengtest",
"version": 1
}
]
}
2上传数据
上传数据时会指定datahandle
3挂载元数据信息
{
"partitions": [
{
"partition": "314010583",
"dataHandle": "csupload1126-1",
"checksum": "ff7494d6f17da702862e550c907c0a91",
"compressedDataSize": 152417,
"dataSize": 250110,
"timestamp": 1519219235
}
]
}至此,数据即可在here olp平台中见到了
4 提交publication
https://publish.data.api.platform.here.com/publish/v2/catalogs/hrn:here:data::olp-navinfo:wangpengtest/publications/v2-a123eff9-28b1-4f7e-a73d-c69c053b45a5
5下载元数据信息
在header中添加 additionalFields为指定的要返回的字段,如checksum等