From: Sandro Santilli Date: Mon, 13 Feb 2012 14:17:24 +0000 (+0000) Subject: Refine user feedback about SRID conversion and reserved zones X-Git-Tag: 2.0.0alpha5~32 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0d992710cea5ec2310f47c8b854d8f4d3f8870b2;p=postgis Refine user feedback about SRID conversion and reserved zones git-svn-id: http://svn.osgeo.org/postgis/trunk@9166 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/utils/postgis_restore.pl b/utils/postgis_restore.pl index 3c09da6ad..d61f35e34 100755 --- a/utils/postgis_restore.pl +++ b/utils/postgis_restore.pl @@ -370,15 +370,15 @@ clamp_srid if ( $oldsrid < 0 ) { $newsrid = 0; + printf STDERR " WARNING: SRID $oldsrid converted to $newsrid (official UNKNOWN)\n"; } elsif ( $oldsrid > $SRID_MAXIMUM ) { $newsrid = $SRID_USER_MAXIMUM + 1 + # -1 is to reduce likelyhood of clashes # NOTE: must match core implementation (lwutil.c) ( $oldsrid % ( $SRID_MAXIMUM - $SRID_USER_MAXIMUM - 1 ) ); - } - - if ( $oldsrid != $newsrid ) { - printf STDERR " WARNING: SRID value $oldsrid converted to $newsrid\n"; + printf STDERR " WARNING: SRID $oldsrid converted to $newsrid (in reserved zone)\n"; + } elsif ( $oldsrid > $SRID_USER_MAXIMUM ) { + printf STDERR " WARNING: SRID $newsrid is in reserved zone\n"; } return $newsrid;