---
name: "pgtopo_import"
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_import"
---

# pgtopo\_import(1)

postgis topology importer

## NAME

pgtopo\_import - postgis topology importer

## SYNTAX

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

## 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

The \<topology\> 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

These are the supported options

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

- **--skip-layers**

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

- **--only-layers**

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

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

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

## EXAMPLES

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

\# **pgtopo\_import city\_data \< city\_data.pgtopo\_export \| psql newdb**

## AUTHORS

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

## SEE ALSO

[pgtopo\_export(1)](/pgtopo_export/1.md)

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