postgis/extras/ogc_test_suite
Darafei Praliaskouski aafcb2e8ef Improve GeoJSON SRID handling.
If SRID is not specified, set it to 4326 by default on parsing, following RFC7946.
If SRID is not 4326 on serialization, it will be marked in JSON unless disabled, making round trips almost lossless.

Fixes spatial_ref_sys truncation in all the tests.
Closes #4377
Closes https://github.com/postgis/postgis/pull/455




git-svn-id: http://svn.osgeo.org/postgis/trunk@17678 b70326c6-7e19-0410-871a-916f4a2858ee
2019-08-06 19:15:24 +00:00
..
1_schema.sql Fix various misspellings of "geometry" 2019-03-29 15:56:43 +00:00
2_queries.sql Update OGC certification scripts to match new function signatures 2019-02-15 18:52:38 +00:00
3_cleanup.sql Improve GeoJSON SRID handling. 2019-08-06 19:15:24 +00:00
Makefile Update OGC certification scripts to match new function signatures 2019-02-15 18:52:38 +00:00
README Update test running instructions 2019-02-15 19:01:06 +00:00

This test suite was originally downloaded from 
http://cite.opengeospatial.org/teamengine/about/sfs/1.2.1/site/
and legal adaptations necessary for PostGIS were added to allow it
to run.

  dropdb --if-exists ogc_test_suite
  createdb ogc_test_suite
  psql ogc_test_suite < ../../postgis/postgis.sql
  psql -c 'create extension postgis' ogc_test_suite
  psql -a -f 1_schema.sql  ogc_test_suite >& 1_output.txt
  psql -a -f 2_queries.sql ogc_test_suite >& 2_output.txt
  psql -a -f 3_cleanup.sql ogc_test_suite >& 3_output.txt

- Load the test files in order. File 2 has the actual tests, with the
  correct answers for each test in the comments.