Permalink
Browse files

msProjectionsDiffer(): restrict attempts normalization with proj.4

  • Loading branch information...
rouault committed Oct 12, 2017
1 parent 8501873 commit 581ec9fcdd42c88348277d1a35a9f48ebfd382bc
Showing with 5 additions and 1 deletion.
  1. +5 −1 mapproject.c
View
@@ -1132,7 +1132,11 @@ int msProjectionsDiffer( projectionObj *proj1, projectionObj *proj2 )
int ret;
ret = msProjectionsDifferInternal(proj1, proj2);
if( ret )
if( ret &&
/* to speed up things, do normalization only if one proj is */
/* likely of the form init=epsg:XXX and the other proj=XXX datum=YYY... */
( (proj1->numargs == 1 && proj2->numargs > 1) ||
(proj1->numargs > 1 && proj2->numargs == 1) ) )
{
projectionObj* p1normalized;
projectionObj* p2normalized;

0 comments on commit 581ec9f

Please sign in to comment.