spatialite_tool(1)
π spatialite_tool β bestie edition π
okay so like, this is the manual page for spatialite_tool(1), and if you're reading this you're probably about to move a whole Shapefile situation in or out of a SpatiaLite database. don't panic, I got you π«Ά
β¨ NAME β¨
spatialite_tool β the CLI tool for Shapefile import / export. it's giving "small utility, big job" fr fr π
π 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 a utility CLI tool for Shapefile import / export. that's it, that's the whole vibe β it takes your files and it puts them places, or takes them from places and gives them back as files. iconic π
π OPTIONS π
-h,--helpβ shows you the help message. the "bestie pls explain" flag πΈ-i,--importβ import mode! (CSV/TXT, DBF or SHP) β yes bestie it eats all three π-e,--export-shpβ export mode, for exporting some shapefile β¨-dbf pathname,--dbf-path pathnameβ the full DBF path π-shp pathname,--shapefile pathnameβ the shapefile path β and IMPORTANT: NO SUFFIX, okay? don't add.shp, she doesn't want it π-d pathname,--db-path pathnameβ the SpatiaLite DB path ποΈ-t table_name,--table table_nameβ the db geotable (the one you're reading from or dumping into) πΊ-g col_name,--geometry-column col_nameβ the Geometry column π§-c charset_name,--charset charset_nameβ a charset name π-s SRID,--srid SRIDβ the SRID π₯--type [POINT | LINESTRING | POLYGON | MULTIPOINT]β the geometry type β-2,--coerce-2dβ coerce to 2D geoms (x,y). bye bye Z, no cap π-k,--compressedβ 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]
like, look at her go π₯Ή the square brackets are optional extras β plug them in when you need them, leave them out when you don't.
okay and for the little sign-off moment: this page lives in the spatialite_tool(1) manual, and it's dated 9 February 2026. that's the whole thing, bestie β go import something slay πβ¨π¦πΈπ
π«Άπ
π¦ where this page comes from
- ubuntu resolute: spatialite-bin 5.1.0a-2build2 Β· GPL-3.0-or-later
- ubuntu stonking: spatialite-bin 5.1.0a-2build2 Β· GPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms