[postgis-tickets] r15361 - Get rid of logic that set out_srid to same as input srid and change to not try to transform when out_srid is unknown.
Regina Obe
lr at pcorp.us
Sun Apr 23 13:21:53 PDT 2017
Author: robe
Date: 2017-04-23 13:21:53 -0700 (Sun, 23 Apr 2017)
New Revision: 15361
Modified:
trunk/raster/loader/raster2pgsql.c
Log:
Get rid of logic that set out_srid to same as input srid and change to not try to transform when out_srid is unknown.
References #3738 for PostGIS 2.4 trunk
Modified: trunk/raster/loader/raster2pgsql.c
===================================================================
--- trunk/raster/loader/raster2pgsql.c 2017-04-21 19:40:18 UTC (rev 15360)
+++ trunk/raster/loader/raster2pgsql.c 2017-04-23 20:21:53 UTC (rev 15361)
@@ -2317,7 +2317,7 @@
sscanf(optarg, "%d", &config->srid);
sscanf(ptr, "%d", &config->out_srid);
} else {
- config->srid = config->out_srid = atoi(optarg);
+ config->srid = atoi(optarg);
}
}
/* band index */
@@ -2648,15 +2648,11 @@
}
}
- if (config->srid != config->out_srid) {
+ if (config->srid != config->out_srid && config->out_srid != SRID_UNKNOWN) {
if (config->copy_statements) {
rterror(_("Invalid argument combination - cannot use -Y with -s FROM_SRID:TO_SRID"));
exit(1);
}
- if (config->out_srid == SRID_UNKNOWN) {
- rterror(_("Unknown target SRID is invalid when source SRID is given"));
- exit(1);
- }
}
/* register GDAL drivers */
More information about the postgis-tickets
mailing list