carta
spatialite_tool(1)

spatialite_tool1

Cli tool for shapefile import/export

Usage

FCspatialite_toolF [0] [{FC-hF [0] | FC-iF [0] | FC-eF [0]}] [FC-dbfF [0] pathname] [FC-shpF [0] pathname] [FC-dF [0] pathname] [FC-tF [0] table_name] [FC-gF [0] col_name] [FC-cF [0] charset_name] [FC-sF [0] SRID] [FC--typeF [0] [{POINT | LINESTRING | POLYGON | MULTIPOINT}]] [FC-2F [0]] [FC-kF [0]]

Overview

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

Options

FC-hF[0], FC--helpF[0]

show help message

FC-iF[0], FC--importF[0]

import (CSV/TXT, DBF or SHP)

FC-eF[0], FC--export-shpF[0]

exporting some shapefile

FC-dbfF[0] pathname, FC--dbf-pathF[0] pathname

the full DBF path

FC-shpF[0] pathname, FC--shapefileF[0] pathname

the shapefile path (NO SUFFIX)

FC-dF[0] pathname, FC--db-pathF[0] pathname

the SpatiaLite DB path

FC-tF[0] table_name, FC--tableF[0] table_name

the db geotable

FC-gF[0] col_name, FC--geometry-columnF[0] col_name

the Geometry column

FC-cF[0] charset_name, FC--charsetF[0] charset_name

a charset name

FC-sF[0] SRID, FC--sridF[0] SRID

the SRID

FC--typeF[0] [POINT | LINESTRING | POLYGON | MULTIPOINT]

the geometry type

FC-2F[0], FC--coerce-2dF[0]

coerce to 2D geoms (x,y)

FC-kF[0], FC--compressedF[0]

apply geometry compression

Examples

FC
spatialite_tool -i -dbf abc.dbf -d db.sqlite -t tbl -c CP1252
      F[0]
FC
spatialite_tool -i -shp abc -d db.sqlite -t tbl -c CP1252 [-s 4326] [-g geom]
      F[0]
FC
spatialite_tool -i -shp abc -d db.sqlite -t tbl -c CP1252 [-s 4326] [-2] [-k]
      F[0]
FC
spatialite_tool -e -shp abc -d db.sqlite -t tbl -g geom -c CP1252 [--type POINT]
      F[0]

History

  • Debian 13 (Trixie): the text shown here
  • Debian 12 (Bookworm)
  • Debian 11 (Bullseye)
  • Debian 10 (Buster)
  • Debian 9 (Stretch)
  • Debian 8 (Jessie)

From spatialite-bin 5.1.0a-2 in Debian 13 (Trixie). Parsed by carta from the page's man source.