---
name: "pgtopo_export"
section: "1"
platform: "linux"
package: "postgis"
version: "3.6.4-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/pgtopo_export"
---

# pgtopo\_export(1)

postgis topology exporter

## NAME

pgtopo\_export - postgis topology exporter

## SYNTAX

pgtopo\_export \[*options*\] *database* *topology*

## DESCRIPTION

The pgtopo\_export script connects to the named database and exports data of the named topology and associated layers to a file with a custom format.

## USAGE

The \<database\> is the name of the database to connect to.

The \<topology\> is the name of the topology to read data from.

## OPTIONS

The commandline options are:

- **-f** \<*filename*\>

  Write the output to a particular filename instead of stadard output.

- **--skip-layers**

  Do not export layers, just topology primitives. **-h** Display usage information.

## EXAMPLES

An example session using the exporter to create an export file of a topology "city\_data" from a database might look like this:

\# **pgtopo\_export -f city\_data.pgtopo\_export my\_db city\_data**

## AUTHORS

Originally written by Sandro Santilli \<strk@kbt.io\>.

## SEE ALSO

[pgtopo\_import(1)](/pgtopo_import/1.md)

More information is available at http://postgis.net
