---
name: "spatialite_osm_net"
section: "1"
platform: "linux"
package: "spatialite-bin"
version: "5.1.0a-2"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/spatialite_osm_net"
---

# spatialite\_osm\_net(1)

load OSM-XML roads into a SpatiaLite DB

## NAME

spatialite\_osm\_net - load OSM-XML roads into a SpatiaLite DB

## SYNOPSIS

FC**spatialite\_osm\_net**F\[0\]  \[FC**-h**F\[0\]\] \[FC**-o**F\[0\] *pathname*\] \[FC**-d**F\[0\] *pathname*\] \[FC**-T**F\[0\] *table\_name*\] \[FC**-cs**F\[0\] *num*\] \[FC**-m**F\[0\]\] \[FC**-n**F\[0\]\] \[FC**-jo**F\[0\]\] \[FC**-2**F\[0\]\] \[FC**--roads**F\[0\] \| FC**--railways**F\[0\]\] \[FC**-ot**F\[0\] *path*\] \[FC**-tf**F\[0\] *path*\]

## DESCRIPTION

**spatialite\_osm\_net** is a tool for loading OSM-XML roads into a SpatiaLite DB.

## OPTIONS

- FC**-h**F\[0\], FC**--help**F\[0\]

  show help message

- FC**-o**F\[0\] *pathname*, FC**--osm-path**F\[0\] *pathname*

  the OSM-XML file path

  both OSM-XML (\*.osm) and OSM-ProtoBuf (\*.osm.pbf) are indifferently supported.

- FC**-d**F\[0\] *pathname*, FC**--db-path**F\[0\] *pathname*

  the SpatiaLite DB path

- FC**-T**F\[0\] *table\_name*, FC**--table**F\[0\] *table\_name*

  the db table to be fed

- FC**-cs**F\[0\] *num*, FC**--cache-size**F\[0\] *num*

  DB cache size (how many pages)

- FC**-m**F\[0\], FC**--in-memory**F\[0\]

  using IN-MEMORY database

- FC**-n**F\[0\], FC**--no-spatial-index**F\[0\]

  suppress R\*Tree generation

- FC**-jo**F\[0\], FC**--journal-off**F\[0\]

  unsafe (but faster) mode

- FC**-2**F\[0\], FC**--undirectional**F\[0\]

  double arcs

- FC**--roads**F\[0\]

  extract roads (default)

- FC**--railways**F\[0\]

  extract railways

- FC**-ot**F\[0\] *path*, FC**--out-template**F\[0\] *path*

  creates a default template-file

- FC**-tf**F\[0\] *path*, FC**--template-file**F\[0\] *path*

  using a template-file
