pgtopo\_export(1) PostGIS pgtopo\_export(1)

# [NAME](#NAME)

pgtopo\_export - postgis topology exporter

# [SYNTAX](#SYNTAX)

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

# [DESCRIPTION](#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](#USAGE)

The &lt;database&gt; is the name of the database to connect to.

The &lt;topology&gt; is the name of the topology to read data from.

# [OPTIONS](#OPTIONS)

The commandline options are:

[**-f** &lt;*filename*&gt;](#f)

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

[**--skip-layers**](#skip_layers)

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

# [EXAMPLES](#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](#AUTHORS)

Originally written by Sandro Santilli &lt;strk@kbt.io&gt;.

# [SEE ALSO](#SEE_ALSO)

[pgtopo\_import(1)](/man/enterprise-packages/postgis-14/pgtopo_import.1)

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

---

Document: pgtopo_export(1) from postgis-14 3.6.4-r5 (Chainguard OS)
Source: https://gitea.osgeo.org/postgis/postgis.git
