Changeset 26957


Ignore:
Timestamp:
04/15/22 12:14:35 (3 years ago)
Author:
Mathieu Morlighem
Message:

CHG: minor

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/wrappers/CoordTransform/CoordTransform.cpp

    r26415 r26957  
    6565                }
    6666
    67                 PJ *P;
    6867                size_t sx = sizeof(double);
    6968                size_t sy = sizeof(double);
     
    7170                size_t ny = size;
    7271
    73                 P = proj_create_crs_to_crs(PJ_DEFAULT_CTX,projin,projout,NULL);
     72                PJ* P = proj_create_crs_to_crs(PJ_DEFAULT_CTX,projin,projout,NULL);
    7473
    75                 if ( 0 == P ) {
     74                if(P==0){
    7675                        proj_destroy(P);
    77                         _error_("failed to initialize CRS transformation object");
     76                        _error_("Projection string not recognized");
    7877                }
    7978
    8079                int p = proj_trans_generic(P, PJ_FWD, xout, sx, nx, yout, sy, ny, 0, 0, 0, 0, 0, 0);
    8180
    82                 if ( 0 == p ){
     81                if(p==0){
    8382                        proj_destroy(P);
    84                         _error_("no successful transformations");
     83                        _error_("projection failed");
    8584                }
    8685
     86                /*Cleanup*/
    8787                proj_destroy(P);
    8888
Note: See TracChangeset for help on using the changeset viewer.