Closed rajadain closed 2 years ago
Terence, you are correct! It is definitely advisable to install postgis extension before running the ogr2ogr. In fact, the first paragraph of the PostgreSQL / PostGIS vector driver states that without postgis there will be reduced functionalities.
I have an ingrained habit of installing postgis, along with a few other extensions, whenever I create a new database/schema that I did not notice the ordering in the readme. Good catch!
Overview
If the data is imported before the postgis extension exists, the table's wkb_geometry column is of the type
bytea
. When the import is done with postgis already installed, the type isgeometry(MultiPolygon,4269)
.Demo
Before:
After: