Changeset 24780


Ignore:
Timestamp:
05/04/20 12:55:08 (5 years ago)
Author:
Mathieu Morlighem
Message:

CHG: renaming proj.4 proj

Location:
issm/trunk-jpl
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/m4/issm_options.m4

    r24675 r24780  
    14711471        fi
    14721472        dnl }}}
    1473         dnl PROJ.4{{{
     1473        dnl PROJ{{{
    14741474        AC_ARG_WITH(
    14751475                [proj4-dir],
    1476                 AS_HELP_STRING([--with-proj4-dir=DIR], [PROJ.4 root directory]),
    1477                 [PROJ4_ROOT=${withval}],
    1478                 [PROJ4_ROOT="no"]
    1479         )
    1480         AC_MSG_CHECKING([for PROJ.4])
    1481         if test "x${PROJ4_ROOT}" == "xno"; then
    1482                 HAVE_PROJ4=no
    1483         else
    1484                 HAVE_PROJ4=yes
    1485                 if ! test -d "${PROJ4_ROOT}"; then
    1486                         AC_MSG_ERROR([PROJ.4 directory provided (${PROJ4_ROOT}) does not exist!]);
    1487                 fi
    1488         fi
    1489         AC_MSG_RESULT([${HAVE_PROJ4}])
    1490 
    1491         dnl PROJ.4 libraries and header files
    1492         if test "x${HAVE_PROJ4}" == "xyes"; then
    1493                 PROJ4INCL="-I${PROJ4_ROOT}/include"
    1494                 PROJ4LIB="-L${PROJ4_ROOT}/lib -lproj"
    1495                 AC_DEFINE([_HAVE_PROJ4_], [1], [with PROJ4 in ISSM src])
    1496                 AC_SUBST([PROJ4INCL])
    1497                 AC_SUBST([PROJ4LIB])
    1498         fi
    1499         AM_CONDITIONAL([PROJ4], [test "x${HAVE_PROJ4}" == "xyes"])
     1476                AS_HELP_STRING([--with-proj4-dir=DIR], [PROJ root directory]),
     1477                [PROJ_ROOT=${withval}],
     1478                [PROJ_ROOT="no"]
     1479        )
     1480        AC_MSG_CHECKING([for PROJ])
     1481        if test "x${PROJ_ROOT}" == "xno"; then
     1482                HAVE_PROJ=no
     1483        else
     1484                HAVE_PROJ=yes
     1485                if ! test -d "${PROJ_ROOT}"; then
     1486                        AC_MSG_ERROR([PROJ directory provided (${PROJ_ROOT}) does not exist!]);
     1487                fi
     1488        fi
     1489        AC_MSG_RESULT([${HAVE_PROJ}])
     1490
     1491        dnl PROJ libraries and header files
     1492        if test "x${HAVE_PROJ}" == "xyes"; then
     1493                PROJINCL="-I${PROJ_ROOT}/include"
     1494                PROJLIB="-L${PROJ_ROOT}/lib -lproj"
     1495                AC_DEFINE([_HAVE_PROJ_], [1], [with PROJ in ISSM src])
     1496                AC_SUBST([PROJINCL])
     1497                AC_SUBST([PROJLIB])
     1498        fi
     1499        AM_CONDITIONAL([PROJ], [test "x${HAVE_PROJ}" == "xyes"])
    15001500        dnl }}}
    15011501        dnl SLEPc{{{
  • issm/trunk-jpl/src/c/modules/CoordinateSystemTransformx/CoordinateSystemTransformx.cpp

    r23285 r24780  
    1111void CoordinateSystemTransformx(double** px_dest,double** py_dest,double* x_src,double* y_src,int size,const char* str_src,const char* str_dst){
    1212
    13 #if !defined(_HAVE_PROJ4_)
    14         _error_("proj.4 has not been installed");
     13#if !defined(_HAVE_PROJ_)
     14        _error_("proj not installed");
    1515#else
    1616
     
    2727        projPJ pj_src  = pj_init_plus(str_src);
    2828        projPJ pj_dst  = pj_init_plus(str_dst);
    29         if(!pj_src) _error_("Failed to initialize PROJ.4 with source projection \""    <<str_src<<"\"\n");
    30         if(!pj_dst) _error_("Failed to initialize PROJ.4 with destination projection\""<<str_dst<<"\"\n");
     29        if(!pj_src) _error_("Failed to initialize PROJ with source projection \""    <<str_src<<"\"\n");
     30        if(!pj_dst) _error_("Failed to initialize PROJ with destination projection\""<<str_dst<<"\"\n");
    3131
    3232        /*Perform transformation*/
    3333        int p = pj_transform(pj_src,pj_dst,size,1,x_dest,y_dest,NULL);
    34         if(p!=0) _error_("Reprojection failed, PROJ.4 error code: "<<p<<"\n");
     34        if(p!=0) _error_("Reprojection failed, PROJ error code: "<<p<<"\n");
    3535
    3636        /*Output : */
Note: See TracChangeset for help on using the changeset viewer.