Changeset 26957
- Timestamp:
- 04/15/22 12:14:35 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/wrappers/CoordTransform/CoordTransform.cpp
r26415 r26957 65 65 } 66 66 67 PJ *P;68 67 size_t sx = sizeof(double); 69 68 size_t sy = sizeof(double); … … 71 70 size_t ny = size; 72 71 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); 74 73 75 if ( 0 == P ){74 if(P==0){ 76 75 proj_destroy(P); 77 _error_(" failed to initialize CRS transformation object");76 _error_("Projection string not recognized"); 78 77 } 79 78 80 79 int p = proj_trans_generic(P, PJ_FWD, xout, sx, nx, yout, sy, ny, 0, 0, 0, 0, 0, 0); 81 80 82 if ( 0 == p){81 if(p==0){ 83 82 proj_destroy(P); 84 _error_(" no successful transformations");83 _error_("projection failed"); 85 84 } 86 85 86 /*Cleanup*/ 87 87 proj_destroy(P); 88 88
Note:
See TracChangeset
for help on using the changeset viewer.