pgtopo\_import(1) PostGIS pgtopo\_import(1)

# [NAME](#NAME)

pgtopo\_import - postgis topology importer

# [SYNTAX](#SYNTAX)

pgtopo\_import \[*options*] *topology*

# [DESCRIPTION](#DESCRIPTION)

The pgtopo\_import data loader reads an export file written by pgtopo\_export and outputs an SQL script reconstructing the topology therein contained.

# [USAGE](#USAGE)

The &lt;topology&gt; is the name to give to the re-created topology, which can be different from the name of the topology the export was made from.

By default the SQL script is written on standard output.

# [OPTIONS](#OPTIONS)

These are the supported options

(Note that --skip-layers and --only-layers are mutually exclusive.)

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

Do not include layers in the output SQL script. Just the topology schema.

[**--only-layers**](#only_layers)

Do not include the topology schema in the output SQL script. Just the layers.

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

Read the export file from the specified filename, rather than from standard input. **-h** Display usage information.

# [EXAMPLES](#EXAMPLES)

An example session using the loader to create an SQL file and uploading it might look like this:

\# **pgtopo\_import city\_data &lt; city\_data.pgtopo\_export | psql newdb**

# [AUTHORS](#AUTHORS)

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

# [SEE ALSO](#SEE_ALSO)

[pgtopo\_export(1)](/man/enterprise-packages/postgis-14/pgtopo_export.1)

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

---

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