'\" -*- coding: UTF-8 -*- .if \n(.g .ds T< \\FC .if \n(.g .ds T> \\F[\n[.fam]] .de URL \\$2 \(la\\$1\(ra\\$3 .. .if \n(.g .mso www.tmac .TH spatialite_tool 1 "25 July 2023" "" "" .SH NAME spatialite_tool \- CLI tool for Shapefile import/export .SH SYNOPSIS 'nh .fi .ad l \fBspatialite_tool\fR \kx .if (\nx>(\n(.l/2)) .nr x (\n(.l/5) 'in \n(.iu+\nxu [\fB-h\fR | \fB-i\fR | \fB-e\fR] [\fB-dbf\fR \fIpathname\fR] [\fB-shp\fR \fIpathname\fR] [\fB-d\fR \fIpathname\fR] [\fB-t\fR \fItable_name\fR] [\fB-g\fR \fIcol_name\fR] [\fB-c\fR \fIcharset_name\fR] [\fB-s\fR \fISRID\fR] [\fB--type\fR [POINT | LINESTRING | POLYGON | MULTIPOINT] ] [\fB-2\fR] [\fB-k\fR] 'in \n(.iu-\nxu .ad b 'hy .SH DESCRIPTION \fBspatialite_tool\fR is an utility CLI tool for Shapefile import / export. .SH OPTIONS .TP \*(T<\fB\-h\fR\*(T>, \*(T<\fB\-\-help\fR\*(T> show help message .TP \*(T<\fB\-i\fR\*(T>, \*(T<\fB\-\-import\fR\*(T> import (CSV/TXT, DBF or SHP) .TP \*(T<\fB\-e\fR\*(T>, \*(T<\fB\-\-export\-shp\fR\*(T> exporting some shapefile .TP \*(T<\fB\-dbf\fR\*(T> \fIpathname\fR, \*(T<\fB\-\-dbf\-path\fR\*(T> \fIpathname\fR the full DBF path .TP \*(T<\fB\-shp\fR\*(T> \fIpathname\fR, \*(T<\fB\-\-shapefile\fR\*(T> \fIpathname\fR the shapefile path (NO SUFFIX) .TP \*(T<\fB\-d\fR\*(T> \fIpathname\fR, \*(T<\fB\-\-db\-path\fR\*(T> \fIpathname\fR the SpatiaLite DB path .TP \*(T<\fB\-t\fR\*(T> \fItable_name\fR, \*(T<\fB\-\-table\fR\*(T> \fItable_name\fR the db geotable .TP \*(T<\fB\-g\fR\*(T> \fIcol_name\fR, \*(T<\fB\-\-geometry\-column\fR\*(T> \fIcol_name\fR the Geometry column .TP \*(T<\fB\-c\fR\*(T> \fIcharset_name\fR, \*(T<\fB\-\-charset\fR\*(T> \fIcharset_name\fR a charset name .TP \*(T<\fB\-s\fR\*(T> \fISRID\fR, \*(T<\fB\-\-srid\fR\*(T> \fISRID\fR the SRID .TP \*(T<\fB\-\-type\fR\*(T> [POINT | LINESTRING | POLYGON | MULTIPOINT] the geometry type .TP \*(T<\fB\-2\fR\*(T>, \*(T<\fB\-\-coerce\-2d\fR\*(T> coerce to 2D geoms (x,y) .TP \*(T<\fB\-k\fR\*(T>, \*(T<\fB\-\-compressed\fR\*(T> apply geometry compression .SH EXAMPLE .nf \*(T< spatialite_tool \-i \-dbf abc.dbf \-d db.sqlite \-t tbl \-c CP1252 \*(T> .fi .PP .nf \*(T< spatialite_tool \-i \-shp abc \-d db.sqlite \-t tbl \-c CP1252 [\-s 4326] [\-g geom] \*(T> .fi .PP .nf \*(T< spatialite_tool \-i \-shp abc \-d db.sqlite \-t tbl \-c CP1252 [\-s 4326] [\-2] [\-k] \*(T> .fi .PP .nf \*(T< spatialite_tool \-e \-shp abc \-d db.sqlite \-t tbl \-g geom \-c CP1252 [\-\-type POINT] \*(T> .fi