Perform OGC tests

To check that everything works, run the OGC Test suite, as these scripts use the PostGIS functions. Using this test suite also helps verify that the Simple Features for SQL specification from the Open Geospatial Consortium (OGC) are implemented.

Browse to the /opt/bitnami/postgresql/data/pg_hba.conf/postgresql/share/contrib/postgis-2.0/extras/ogc_test_suite directory and run these commands:

$ createdb -T template_postgis ogc
$ psql -a -f 1_schema.sql ogc >& 1_output.txt
$ psql -a -f 2_queries.sql ogc >& 2_output.txt
$ psql -a -f 3_cleanup.sql ogc >& 3_output.txt
Last modification April 8, 2020