]> granicus.if.org Git - postgis/commit
Improve GeoJSON SRID handling.
authorDarafei Praliaskouski <me@komzpa.net>
Tue, 6 Aug 2019 19:15:24 +0000 (19:15 +0000)
committerDarafei Praliaskouski <me@komzpa.net>
Tue, 6 Aug 2019 19:15:24 +0000 (19:15 +0000)
commitaafcb2e8ef797be6537f160dc321396a6fb5c8c9
tree6e04390460937c993c0931291d4abd65e14fcfaa
parent8442b3c5f42a7cfe5e5bb08741c1c6aeb6c9126d
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
42 files changed:
NEWS
doc/reference_input.xml
doc/reference_output.xml
extras/ogc_test_suite/3_cleanup.sql
liblwgeom/liblwgeom.h.in
postgis/lwgeom_export.c
postgis/lwgeom_in_geojson.c
postgis/postgis.sql.in
postgis/postgis_after_upgrade.sql
raster/test/regress/loader/Projected-post.sql
raster/test/regress/loader/Projected-pre.sql
regress/core/geography.sql
regress/core/in_geojson.sql
regress/core/in_geojson_expected
regress/core/in_gml.sql
regress/core/in_kml.sql
regress/core/knn_recheck.sql
regress/core/legacy.sql
regress/core/out_geography.sql
regress/core/out_geography_expected
regress/core/out_geometry.sql
regress/core/out_geometry_expected
regress/core/regress_management.sql
regress/core/regress_proj.sql
regress/core/tickets.sql
regress/loader/ReprojectPts-post.sql
regress/loader/ReprojectPts-pre.sql
regress/loader/ReprojectPtsD-post.sql
regress/loader/ReprojectPtsD-pre.sql
regress/loader/ReprojectPtsGeog-post.sql
regress/loader/ReprojectPtsGeog-pre.sql
regress/loader/ReprojectPtsGeogD-post.sql
regress/loader/ReprojectPtsGeogD-pre.sql
regress/run_test.pl
topology/test/regress/copytopology.sql
topology/test/regress/gml.sql
topology/test/regress/st_createtopogeo.sql
topology/test/regress/st_modedgesplit.sql
topology/test/regress/st_newedgessplit.sql
topology/test/regress/st_remedgemodface.sql
topology/test/regress/st_remedgenewface.sql
topology/test/regress/topogeo_addlinestring.sql