Scroll to navigation

spatialite_tool(1) spatialite_tool(1)

NAME

spatialite_tool - CLI tool for Shapefile import/export

SYNOPSIS


spatialite_tool
[-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

show help message
import (CSV/TXT, DBF or SHP)
exporting some shapefile
the full DBF path
the shapefile path (NO SUFFIX)
the SpatiaLite DB path
the db geotable
the Geometry column
a charset name
the SRID
the geometry type
-2, --coerce-2d
coerce to 2D geoms (x,y)
apply geometry compression

EXAMPLE

spatialite_tool -i -dbf abc.dbf -d db.sqlite -t tbl -c CP1252

spatialite_tool -i -shp abc -d db.sqlite -t tbl -c CP1252 [-s 4326] [-g geom]

spatialite_tool -i -shp abc -d db.sqlite -t tbl -c CP1252 [-s 4326] [-2] [-k]

spatialite_tool -e -shp abc -d db.sqlite -t tbl -g geom -c CP1252 [--type POINT]

07 February 2021