---
name: "spatialite_osm_overpass"
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_overpass"
---

# spatialite\_osm\_overpass(1)

download OSM XML via the Overpass API into a SpatiaLite DB

## NAME

spatialite\_osm\_overpass - download OSM XML via the Overpass API into a SpatiaLite DB

## SYNOPSIS

FC**spatialite\_osm\_overpass**F\[0\]  \[FC**-h**F\[0\]\] \[FC**-d**F\[0\] *pathname*\] \[FC**-minx**F\[0\] *coord*\] \[FC**-maxx**F\[0\] *coord*\] \[FC**-miny**F\[0\] *coord*\] \[FC**-maxy**F\[0\] *coord*\] \[FC**-o**F\[0\] *URL*\] \[FC**-mode**F\[0\] *mode*\] \[FC**-cs**F\[0\] *num*\] \[FC**-m**F\[0\]\] \[FC**-jo**F\[0\]\] \[FC**-p**F\[0\]\]

## DESCRIPTION

**spatialite\_osm\_overpass** is a tool for downloading OSM datasets via the Overpass API into a SpatiaLite DB.

## OPTIONS

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

  show help message

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

  the SpatiaLite DB path

- FC**-minx**F\[0\] *coord*, FC**--bbox-minx**F\[0\] *coord*

  BoundingBox - west longitude

- FC**-miny**F\[0\] *coord*, FC**--bbox-miny**F\[0\] *coord*

  BoundingBox - east longitude

- FC**-maxx**F\[0\] *coord*, FC**--bbox-maxx**F\[0\] *coord*

  BoundingBox - south longitude

- FC**-maxy**F\[0\] *coord*, FC**--bbox-maxy**F\[0\] *coord*

  BoundingBox - north longitude

you can specify the following options as well

- FC**-o**F\[0\] *URL*, FC**--osm-service**F\[0\] *URL*

  URL of OSM Overpass service:

  http://overpass-api.de/api (default)

  http://overpass.osm.rambler.ru/cgi

  http://api.openstreetmap.fr/oapi

- FC**-mode**F\[0\] *mode*, FC**--mode**F\[0\] *mode*

  one of: RAW / MAP (default) / ROAD / RAIL

- 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**-jo**F\[0\], FC**--journal-off**F\[0\]

  unsafe (but faster) mode

- FC**-p**F\[0\], FC**--preserve**F\[0\]

  skipping final cleanup (preserving OSM tables)
