spatialite-tools

CLI tools for creating, managing, and querying SpatiaLite spatial databases

brewmacoslinux
Try with needOr install directly
Source

About

CLI tools supporting SpatiaLite

Commands

spatialitespatialite_toolspatialite_convert

Examples

Create a new SpatiaLite database and initialize spatial metadata$ spatialite mydb.db
Query spatial data and return geometries as GeoJSON$ spatialite mydb.db "SELECT ST_AsGeoJSON(geometry) FROM table_name LIMIT 10;"
Import a shapefile into a SpatiaLite database$ spatialite_tool -i -shp shapefile.shp -d mydb.db -t table_name