documentclass | title | author |
---|---|---|
physycomen |
json_to_kml |
Fabbri, Sinigardi |
This tool has been written to convert data to the Keyhole Markup Language format from our .json structure, in order to be able to plot our output with software like Google Earth.
CMake and a C++11 compatible compiler are required. To build the executable, clone the repo and then type
mkdir build ; cd build ; cmake .. ; cmake --build .
With CMake you can also deploy projects for the most common IDEs.
Contains jsoncons and RapidXml as git submodules.
json_to_kml.exe -i input.json -o output.kml
where input.json
must be an existing and valid .json file while output.kml
is the name of the kml v2.2 produced file.
If no altitude is found in the input.json, a default zero value will be used.
This tool has been written to convert data from the Keyhole Markup Language format to our .json structure, in order to be able to use data coming into .kml format inside our tools.
make and a C++11 compatible compiler are required. Clone the repo and type make
, it should be enough in most cases!
There's also a VS2015 solution avalaible.
Contains jsoncons and RapidXml as git submodules.
kml_to_json.exe -i input.kml -o output.json -f [output style]
[output style]: 'a' (no quotes) for array or 'o' for object
where input.kml
must be an existing and valid .kml file (versions 2.1 and 2.2 supported) while output.json
is the name of the output file.
The optional -f specifies the style of the output .json file. If omitted, the object-style will be used.
More details about file formats is available here.