4 releases
0.2.1 | Sep 24, 2021 |
---|---|
0.2.0 | Sep 24, 2021 |
0.1.1 | Sep 23, 2021 |
0.1.0 | Sep 23, 2021 |
#1733 in Database interfaces
32KB
841 lines
kml2pgsql
Convert some kml files to a script suitable for loading into a postgresql database.
Installation
cargo install kml2pgsql
Usage
kml2pgsql 0.1.0
Abraham Toriz <categulario@gmail.com>
convert a kml file into a postgresql-compatible sql script
USAGE:
kml2pgsql [OPTIONS] <FILE>
FLAGS:
-h, --help Prints help information
-V, --version Prints version information
OPTIONS:
-g, --geom <NAME> The name of the geometry column [default: geom]
--id <COLUMN> The column to use as (incremental) primary key [default: id]
-s, --schema <NAME> The schema for the new table [default: public]
ARGS:
<FILE> The kml input file
Building
First clone the project, then
cargo build --release
and use the binary located in target/release/kml2pgsql
Dependencies
~2.5MB
~44K SLoC