ogr/ogrct.cpp
OGRCoordinateTransformation*  
OGRCreateCoordinateTransformation( OGRSpatialReference *poSource, 
                                   OGRSpatialReference *poTarget )

{
    OGRProj4CT  *poCT;

    if( !LoadProjLibrary() )
    {
        CPLError( CE_Failure, CPLE_NotSupported, 
                  "Unable to load PROJ.4 library (%s), creation of\n"
                  "OGRCoordinateTransformation failed.",
                  LIBNAME );
        return NULL;
    }

    poCT = new OGRProj4CT();
    
    if( !poCT->Initialize( poSource, poTarget ) )
    {
        delete poCT;
        return NULL;
    }
    else
    {
        return poCT;
    }
}
/**
 * Create transformation object.
 *
 * This is the same as the C function OCTNewCoordinateTransformation().
 *
 * Input spatial reference system objects are assigned 
 * by copy (calling clone() method) and no ownership transfer occurs.
 *
 * The delete operator, or OCTDestroyCoordinateTransformation() should
 * be used to destroy transformation objects. 
 *
 * @param poSource source spatial reference system. 
 * @param poTarget target spatial reference system. 
 * @return NULL on failure or a ready to use transformation object.
 */
Create transformation object.
This is the same as the C function OCTNewCoordinateTransformation().

Input spatial reference system objects are assigned
by copy (calling clone() method) and no ownership transfer occurs.

The delete operator, or OCTDestroyCoordinateTransformation() should
be used to destroy transformation objects.

@param poSource source spatial reference system.
@param poTarget target spatial reference system.
@return NULL on failure or a ready to use transformation object.
Create transformation object . This is the same as the C function OCTNewCoordinateTransformation () . Input spatial reference system objects are assigned by copy ( calling clone () method ) and no ownership transfer occurs . The delete operator or OCTDestroyCoordinateTransformation () should be used to destroy transformation objects . @param poSource source spatial reference system . @param poTarget target spatial reference system . @return NULL on failure or a ready to use transformation object .
OGRCoordinateTransformation*  
OGRCreateCoordinateTransformation( OGRSpatialReference *poSource, 
                                   OGRSpatialReference *poTarget )
{
    OGRProj4CT  *poCT;
    if( !LoadProjLibrary() )
    {
        CPLError( CE_Failure, CPLE_NotSupported, 
                  "Unable to load PROJ.4 library (%s), creation of\n"
                  "OGRCoordinateTransformation failed.",
                  LIBNAME );
        return NULL;
    }
    poCT = new OGRProj4CT();
    if( !poCT->Initialize( poSource, poTarget ) )
    {
        delete poCT;
        return NULL;
    }
    else
    {
        return poCT;
    }
}
OGRCoordinateTransformation * OGRCreateCoordinateTransformation ( OGRSpatialReference * poSource , OGRSpatialReference * poTarget ) { OGRProj4CT * poCT ; if ( ! LoadProjLibrary ( ) ) { CPLError ( CE_Failure , CPLE_NotSupported , " \n " " " , LIBNAME ) ; return NULL ; } poCT = new OGRProj4CT ( ) ; if ( ! poCT -> Initialize ( poSource , poTarget ) ) { delete poCT ; return NULL ; } else { return poCT ; } }
Create transformation object.
Create transformation object .