Importing vector data

First of all, let's load the two layers saved on the disk--the GeoNames and the administrative boundaries layers. We can import layers with the Import layer/file button accessed from QGIS's database manager. QGIS automatically converts the specified layer to a PostGIS table by providing the required properties. We can import virtually any vector layer with the following steps:

  1. Choose the input layer in the Input field. We can also specify layers not loaded in QGIS with the browse button (...) next to the field.
  2. Choose a Schema to load the layer into. In our case, the public schema is the only one available.
  3. Provide a table (PostGIS layer) name in the Table field.
  4. Define the source and target projections. It can be omitted ...

Get Practical GIS now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.