Commands¶
ogt-cli.py¶
Toolkit for geotechnical
usage: ogt-cli.py [-h] {convert,validate,serve,update} ...
-
-h
,
--help
¶
show this help message and exit
ogt-cli.py convert¶
usage: ogt-cli.py convert [-h] [-b] [-e] [-f {json,js,geojson,yaml,xlsx,ags4}]
[-m] [-o] [--stats] [-w WRITE_FILE] [-z] [--debug]
source_file
-
source_file
¶
File to convert
-
-h
,
--help
¶
show this help message and exit
-
-b
,
--beside
¶
save beside original file and appends .ext
-
-e
,
--editor
¶
outputs denser data, eg descriptions, picklists, etc)
-
-f
{json,js,geojson,yaml,xlsx,ags4}
,
--format
{json,js,geojson,yaml,xlsx,ags4}
¶ output format and ext
-
-m
,
--minify
¶
minify the output by removing whitespace
-
-o
,
--overwrite
¶
overwrite output file if it exists
-
--stats
¶
include stats in output (only json/yaml)
-
-w
<write_file>
,
--write_file
<write_file>
¶ output file to write
-
-z
,
--zip
¶
output as a zip file containing original and converted file
-
--debug
¶
debug
ogt-cli.py serve¶
Run the www server
usage: ogt-cli.py serve [-h] [-a ADDRESS] [-p PORT] [-d]
-
-h
,
--help
¶
show this help message and exit
-
-a
<address>
¶ eg localhost, 0.0.0.0, 123.12.23.45
-
-p
<port>
¶ Port No, default: 1377
-
-d
¶
Dev mode shows debug and restart on files changed
Examples
# convert an ags file to json, creates /path/to/my.ags.json
ogt-cli.py -b -f json /path/to/my.ags
# convert an ags file to zip file, creates /path/to/my.ags.json
ogt-cli.py -b -f json -z /path/to/my.ags
See also
ogt-desktop.py¶
Launch desktop application
usage: ogt-desktop.py [-h] [--dev] [ags_file]
-
ags_file
¶
AGS formatted file to load at startup
-
-h
,
--help
¶
show this help message and exit
-
--dev
¶
Developer mode
See also
ogtgui