]> granicus.if.org Git - postgis/commitdiff
The official unknown SRID is 0, not -1
authorSandro Santilli <strk@keybit.net>
Mon, 16 Jan 2012 14:33:28 +0000 (14:33 +0000)
committerSandro Santilli <strk@keybit.net>
Mon, 16 Jan 2012 14:33:28 +0000 (14:33 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@8843 b70326c6-7e19-0410-871a-916f4a2858ee

loader/pgsql2shp-core.c

index f391472ef7325a0029424e8156348ad32fd3f0e6..c3075e879f6b70070ca88b866a0e2e878832d7b1 100644 (file)
@@ -1934,7 +1934,7 @@ ShpDumperOpenTable(SHPDUMPERSTATE *state)
                {
                        if (state->pgis_major_version > 0)
                        {
-                               sprintf(buf, "ST_asEWKB(ST_SetSRID(\"%s\"::geometry, -1), 'XDR')", state->geo_col_name);
+                               sprintf(buf, "ST_asEWKB(ST_SetSRID(\"%s\"::geometry, 0), 'XDR')", state->geo_col_name);
                        }
                        else
                        {
@@ -1946,7 +1946,7 @@ ShpDumperOpenTable(SHPDUMPERSTATE *state)
                {
                        if (state->pgis_major_version > 0)
                        {
-                               sprintf(buf, "ST_AsEWKB(ST_SetSRID(\"%s\"::geometry, -1), 'NDR') AS _geoX", state->geo_col_name);
+                               sprintf(buf, "ST_AsEWKB(ST_SetSRID(\"%s\"::geometry, 0), 'NDR') AS _geoX", state->geo_col_name);
                        }
                        else
                        {