DriveWorks SDK Reference
3.5.78 Release
For Test and Development only

/dvs/git/dirty/gitlab-master_av/dw/sdk/tools/maps/maptool_zenrin_to_dw_maps/README-maptool_zenrin_to_dw_maps.md
Go to the documentation of this file.
1 # Copyright (c) 2018-2019, NVIDIA CORPORATION. All rights reserved.
2 
3 @page dwx_maptool_zenrin_to_dw_maps ZENRIN Maps to DriveWorks Maps Tool
4 @tableofcontents
5 
6 The NVIDIA<sup>&reg;</sup> DriveWorks maptool_zenrin_to_dw_maps tool reads ZENRIN maps data and generates a Driveworks maps file. Note, it is the users' responsibility to obtain proper credentials to access ZENRIN HD maps data.
7 
8 @section dwx_map_zenrin_prerequisites Prerequisites
9 
10 This program assumes that you have valid credentials to access Zenrin's servers,
11 which are saved as a file, that you have received from Zenrin, in your home folder
12 or some other place of your choosing.
13 
14 This file can be named as you wish, but the full name, including path, should be
15 supplied for the program to be able to access map database and other
16 things. For convenience, in this document the file is named settings.db, but
17 feel free to replace it with the actual name of the settings file you have.
18 
19 This tool creates output files that, per default, are put into the current working
20 directory. Hence, write permissions to the current working directory are necessary.
21 For convenience, NVIDIA suggests that you add the tools folder to the binary search
22 path of the system and execute from your home directory.
23 
24 @section dwx_map_zenrin_usage Usage
25 
26 1. Read ZENRIN maps data and convert to a Driveworks maps file along a route defined by a kml file:
27 
28  ./maptool_zenrin_to_dw_maps settings.db [route_kml_file] [output_file] [size] (options)
29  For example:
30 
31  ./maptool_zenrin_to_dw_maps settings.db \
32  --route_kml_file=route.kml \
33  --size=3000 \
34  --output_file=dwMapCache.bin
35 
36 2. Read ZENRIN maps data and convert to a Driveworks maps file along a route defined by a DW GPS file:
37 
38  ./maptool_zenrin_to_dw_maps settings.db [dw_gps_file] [output_file] [size] (options)
39  For example:
40 
41  ./maptool_zenrin_to_dw_maps settings.db \
42  --dw_gps_file=dwGPSfile.bin \
43  --size=3000 \
44  --output_file=dwMapCache.bin
45 
46 3. Read ZENRIN maps data and convert to a Driveworks maps file within a region defined by a rectangle:
47 
48  ./maptool_zenrin_to_dw_maps settings.db [minLon] [maxLon] [minLat] [maxLat] (options)
49  For example:
50 
51  ./maptool_zenrin_to_dw_maps settings.db \
52  --minLon=-122.3 \
53  --maxLon=-122.2 \
54  --minLat=37.4 \
55  --maxLat=37.5 \
56  --output_file=dwMapCache.bin
57 
58 @section dwx_map_zenrin_options Options
59 
60  --maxLat: default=-121.867341
61  Maximum latitude of a map for rectangular query
62  --maxLon: default=37.470751
63  Maximum longitude of a map for rectangular query
64  --minLat: default=-122.067341
65  Minimum latitude of a map for rectangular query
66  --minLon: default=37.270751
67  Minimum longitude of a map for rectangular query
68  --output_file: default=dwMapCache.bin
69  Output Driveworks maps file name in '.xml' or '.bin' format
70  --size: default=1000 (min: 600m)
71  Size in meter for the KML/size query
72  --route_kml_file: default=
73  Input kml file extracted from Google maps after specifying a route
74 
75 @section dwx_map_zenrin_creating Creating a route kml file
76 1. Go to https://www.google.com/mymaps/
77 2. Create a new map or open an existing map.
78 3. Click 'Add direction' button under the search tab.
79 4. It is going to create a new layer for the direction (let's call this layer the route layer).
80 5. Create your route on the route layer.
81 6. When finished, click menu button (3 dots) next to the map title and select 'export to kml/kmz'
82 7. Choose the route layer instead of entire map, check 'export to .KML file' and click download.
83 8. A sample route kml can be found in data/tools/maps/route.kml
84 
85