JS functions to translate ISO19139 from/to MapX format
Grab the source by git cloning and run
npm install
to install the required dependencies.
This package implements a mapping from ISO19139 XML documents to MAPX JSON and vice versa.
There are anyway also a couple of command line scripts that performs the conversions. These scripts can also be used as examples for using the mapping functions.
Basic usage:
node ./loadISO.js [-v | -vv] INPUT OUTPUT
-v
: verbose output (i.e. INFO level logging)-vv
: very verbose output (i.e. DEBUG level logging)INPUT
: either: HTTP URL, HTTPS URL, local fileOUTPUT
: the output file name for the mapx JSON
Basic usage:
node ./loadMAPX.js [-v | -vv] INPUT OUTPUT
-v
: verbose output (i.e. INFO level logging)-vv
: very verbose output (i.e. DEBUG level logging)INPUT
: either: HTTP URL, HTTPS URL, local fileOUTPUT
: the output file name for the ISO19139 XML
You may want to read the wiki pages for more detailed indo.