Changeset 6075


Ignore:
Timestamp:
May 2, 2007, 2:04:18 PM (17 years ago)
Author:
warmerdam
Message:

avoid calling pj_transform for simple equal projections

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/mapserver/mapproject.c

    r5215 r6075  
    118118
    119119/* -------------------------------------------------------------------- */
     120/*      If the source and destination are simple and equal, then do     */
     121/*      nothing.                                                        */
     122/* -------------------------------------------------------------------- */
     123  if( in && in->numargs == 1 && out && out->numargs == 1
     124      && strcmp(in->args[0],out->args[0]) == 0 )
     125  {
     126      /* do nothing, no transformation required */
     127  }
     128
     129/* -------------------------------------------------------------------- */
    120130/*      If we have a fully defined input coordinate system and          */
    121131/*      output coordinate system, then we will use pj_transform.        */
    122132/* -------------------------------------------------------------------- */
    123   if( in && in->proj && out && out->proj )
     133  else if( in && in->proj && out && out->proj )
    124134  {
    125135      double    z = 0.0;
Note: See TracChangeset for help on using the changeset viewer.