Changeset 26415
- Timestamp:
- 08/31/21 19:49:53 (4 years ago)
- Location:
- issm/trunk-jpl/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/c/modules/CoordinateSystemTransformx/CoordinateSystemTransformx.cpp
r26367 r26415 4 4 5 5 /*Header files*/ 6 #include <proj.h>7 8 6 #include "./CoordinateSystemTransformx.h" 9 7 #include "../../shared/shared.h" 10 8 #include "../../toolkits/toolkits.h" 9 #include <proj.h> 11 10 12 11 void CoordinateSystemTransformx(double** px_dest,double** py_dest,double* x_src,double* y_src,int size,const char* str_src,const char* str_dst){ 13 12 14 13 /* 15 NOTE: 16 - Compilation of this module is fenced in Makefile.am, so we do not 17 have to check again if _HAVE_PROJ_ is defined 18 - As of at least PROJ 8, version macros are defined, 19 20 https://proj.org/development/reference/macros.html 14 NOTE: 15 - Compilation of this module is fenced in Makefile.am, so we do not have to 16 check again if _HAVE_PROJ_ is defined 21 17 */ 22 #if !defined(PROJ_VERSION_MAJOR) || !PROJ_AT_LEAST_VERSION(8, 0, 0) 23 _error_("PROJ major version >= 8 required"); 24 #else 18 #if defined(PROJ_VERSION_MAJOR) && PROJ_VERSION_MAJOR >= 6 25 19 /* 26 20 Converts an array of longitude (x_src) and array of latitude (y_src) in the … … 76 70 *px_dest=x_dest; 77 71 *py_dest=y_dest; 72 #else 73 _error_("PROJ version >= 6 required"); 78 74 #endif 79 75 } -
issm/trunk-jpl/src/wrappers/CoordTransform/CoordTransform.cpp
r26368 r26415 4 4 5 5 /*Header files*/ 6 #include "./CoordTransform.h" 6 7 #include <proj.h> 7 8 8 #include "./CoordTransform.h"9 10 9 /* 11 NOTE: 12 - Compilation of this module is fenced in Makefile.am, so we do not 13 have to check again if _HAVE_PROJ_ is defined 14 - As of at least PROJ 8, version macros are defined, 15 16 https://proj.org/development/reference/macros.html 10 NOTE: 11 - Compilation of this module is fenced in Makefile.am, so we do not have to 12 check again if _HAVE_PROJ_ is defined 17 13 */ 18 #if !defined(PROJ_VERSION_MAJOR) || !PROJ_AT_LEAST_VERSION(8, 0, 0) 19 _error_("PROJ major version >= 8 required"); 20 #else 14 #if defined(PROJ_VERSION_MAJOR) && PROJ_VERSION_MAJOR >= 6 21 15 /* 22 16 Converts an array of longitude (x_src) and array of latitude (y_src) in the … … 108 102 MODULEEND(); 109 103 } 110 104 #else 105 _error_("PROJ version >= 6 required"); 111 106 #endif -
issm/trunk-jpl/src/wrappers/matlab/Makefile.am
r26385 r26415 194 194 ContourToNodes_matlab_la_LIBADD = ${deps} 195 195 196 if PROJ 196 197 CoordTransform_matlab_la_SOURCES = ../CoordTransform/CoordTransform.cpp 197 198 CoordTransform_matlab_la_LIBADD = ${deps} 199 endif 198 200 199 201 DistanceToMaskBoundary_matlab_la_SOURCES = ../DistanceToMaskBoundary/DistanceToMaskBoundary.cpp
Note:
See TracChangeset
for help on using the changeset viewer.