SYNOPSIS

spatialite_tool \kx [-h | -i | -e] [-dbf pathname] [-shp pathname] [-d pathname] [-t table_name] [-g col_name] [-c charset_name] [-s SRID] [--type [POINT | LINESTRING | POLYGON | MULTIPOINT] ] [-2] [-k]

DESCRIPTION

spatialite_tool is an utility CLI tool for Shapefile import / export.

OPTIONS

\*(T<-h\*(T>, \*(T<--help\*(T>

show help message

\*(T<-i\*(T>, \*(T<--import\*(T>

import (CSV/TXT, DBF or SHP)

\*(T<-e\*(T>, \*(T<--export-shp\*(T>

exporting some shapefile

\*(T<-dbf\*(T> pathname, \*(T<--dbf-path\*(T> pathname

the full DBF path

\*(T<-shp\*(T> pathname, \*(T<--shapefile\*(T> pathname

the shapefile path (NO SUFFIX)

\*(T<-d\*(T> pathname, \*(T<--db-path\*(T> pathname

the SpatiaLite DB path

\*(T<-t\*(T> table_name, \*(T<--table\*(T> table_name

the db geotable

\*(T<-g\*(T> col_name, \*(T<--geometry-column\*(T> col_name

the Geometry column

\*(T<-c\*(T> charset_name, \*(T<--charset\*(T> charset_name

a charset name

\*(T<-s\*(T> SRID, \*(T<--srid\*(T> SRID

the SRID

\*(T<--type\*(T> [POINT | LINESTRING | POLYGON | MULTIPOINT]

the geometry type

\*(T<-2\*(T>, \*(T<--coerce-2d\*(T>

coerce to 2D geoms (x,y)

\*(T<-k\*(T>, \*(T<--compressed\*(T>

apply geometry compression

EXAMPLE

\*(T<
spatialite_tool -i -dbf abc.dbf -d db.sqlite -t tbl -c CP1252
      \*(T>
\*(T<
spatialite_tool -i -shp abc -d db.sqlite -t tbl -c CP1252 [-s 4326] [-g geom]
      \*(T>
\*(T<
spatialite_tool -i -shp abc -d db.sqlite -t tbl -c CP1252 [-s 4326] [-2] [-k]
      \*(T>
\*(T<
spatialite_tool -e -shp abc -d db.sqlite -t tbl -g geom -c CP1252 [--type POINT]
      \*(T>