Trying to use the Here Map data tool in driveworks to download and convert to driveworks format.
I get this error:
std::exception thrown: std::exception
Driveworks exception thrown: DW_INVALID_ARGUMENT: Cannot cast handle, given instance is a nullptr
I think I have the parameters wrong.
./mapdata_tool
–appCode=
–appId=
–url=
–catalog=
–minLon=-122.3
–maxLon=-122.2
–minLat=37.4
–maxLat=37.5
–mapCache=HDMapCache.db
–output=dwMapCache.bin
I am confused exactly what I am supposed to put for URL and catalog?
Is catalog supposed to be something like this: here-hdmap-ext-na-1 ?
But this is not what I am asking about.
The documentation you linked to is not about HERE HD Live Maps which I am trying to use.
Furthermore, I have no issue with using the Here API, the issue I am having is with driveworks tools. Specifically, this map data tool, I am trying to get more information on the parameters it takes.
Also after some further investigation it seems the driveworks tools are using an out of date version of the HERE HD Live maps api. I am wondering if there is a going to be an updated working version to be released soon. Or if there is some way to obtain one.
The HERE API that we integrated in previous releases was part of their beta map catalog. They are still in the process of making their production catalog feature complete.
The next DW release will have HERE latest production API. Thanks.
Hi,
If you have access to HD Map BETA this should work:
/usr/local/driveworks/tools/mapdata_tool --appCode=*** --appId=*** --url=https://hdmap.datastore.api.here.com --catalog=here-hdmap-sample-na-v3 --minLon=-122.19 --maxLon=-122.20 --minLat=37.45 --maxLat=37.46
I really appreciate your response. A lot! Thanks so much.
So “here-hdmap-sample-na-v3” this catalog… I actually did not know of its existence… but it does appear that I have access to it !
I am normally using here-hdmap-ext-na-1 /v2/ … I do not know if the one I am using is an older or more recent catalog.
But that command you sent, actually did work for me!! It downloaded the data and created a dwMapCache, which I have not been able to do before. However, If I use the Driveworks sample_maps sample on that downloaded dwMapCache it throws some errors:
Hi, using the information in thi chain I was able to download tiles using the maptool and HEREHD maps for my local area. Thanks for this thread!
But I am having a different issue. As the tool “Evaluates polylines” I noticed all of the entries were marked:
“Maps: Tile 314872055: Maps: 0 links”
Subsequently, when I run sample_maps (modified the GPSPathData.hpp with a track within my local map space), I just get a long series of the following error:
“Maps: no links found around -122.1868, 47.6226.”
When I checked the tiles in the HERE HD Live Map Viewer, it appears that the tiles do contain road topology layers that would be needed.
I cannot seem to determine what the issue is since the map tool is really a blackbox to me. I also tried using the catalog listed here and the one provided to me by HERE, both with the same result.
Any information would be most appreciated. Or better yet is there an interface with the HERE API available?
I think the problem you have is because if you followed the steps on this thread than you are using the HERE beta/sample map catalog which is different than the catalogs you see online at HERE HD live map viewer.
The Nvidia map data tool only works with the api for the beta map… and the beta map only covers a small sample in Cali. HERE’s other catalogs do cover more area, but however, the nvidia tool has not been updated to support this catalog.
I also wish the nvidia tool is not a black box so that we could update it ourselves.
I have been told nvidia is working on updating this tool and drive works to support the later HERE catalog, but I have heard mixed things on when/if it will be released.