[postgis-tickets] r17626 - Missed a spot - get rid of hard-coding of 4326 for geography srid
Regina Obe
lr at pcorp.us
Sun Jul 28 07:01:37 PDT 2019
Author: robe
Date: 2019-07-28 19:01:37 -0700 (Sun, 28 Jul 2019)
New Revision: 17626
Modified:
trunk/loader/shp2pgsql-core.c
Log:
Missed a spot - get rid of hard-coding of 4326 for geography srid
References #4466
Modified: trunk/loader/shp2pgsql-core.c
===================================================================
--- trunk/loader/shp2pgsql-core.c 2019-07-29 01:47:16 UTC (rev 17625)
+++ trunk/loader/shp2pgsql-core.c 2019-07-29 02:01:37 UTC (rev 17626)
@@ -1387,7 +1387,11 @@
else
dimschar = "";
- stringbuffer_aprintf(sb, ",\n\"%s\" geography(%s%s,%d)", state->geo_col, state->pgtype, dimschar, 4326);
+ if (state->to_srid == SRID_UNKNOWN ){
+ state->to_srid = 4326;
+ }
+
+ stringbuffer_aprintf(sb, ",\n\"%s\" geography(%s%s,%d)", state->geo_col, state->pgtype, dimschar, state->to_srid);
}
stringbuffer_aprintf(sb, ")");
More information about the postgis-tickets
mailing list