Changeset 372


Ignore:
Timestamp:
Oct 15, 2012, 4:40:47 PM (11 years ago)
Author:
djay
Message:

Fix for issue when using Gdal_Translate service without providing any GCP.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/zoo-project/zoo-services/gdal/translate/service.c

    r369 r372  
    171171    }
    172172
     173    fprintf(stderr,"DEBUG pszDest : %s %d\n",pszDest,__LINE__);
    173174    tmpMap=NULL;
    174175    tmpMap=getMapFromMaps(inputs,"GCP","value");
    175     if(tmpMap!=NULL){
     176    if(tmpMap!=NULL && strncasecmp(tmpMap->value,"NULL",4)!=0){
    176177      map* length=getMapFromMaps(inputs,"GCP","length");
    177178      int len=0;
     
    256257    }
    257258
     259    fprintf(stderr,"DEBUG pszDest : %s %d\n",pszDest,__LINE__);
    258260    tmpMap=NULL;
    259261    tmpMap=getMapFromMaps(inputs,"SRS","value");
     
    298300    }
    299301
     302    fprintf(stderr,"DEBUG pszDest : %s %d\n",pszDest,__LINE__);
    300303    if( pszDest == NULL ){
    301304        fprintf(stderr,"exit line 416");
     
    307310      }
    308311
     312    fprintf(stderr,"DEBUG pszDest : %s %d\n",pszDest,__LINE__);
    309313    if ( strcmp(pszSource, pszDest) == 0)
    310314      {
     
    317321      }
    318322
     323    fprintf(stderr,"DEBUG pszDest : %s %d\n",pszDest,__LINE__);
    319324    /* ----------------------------------------------------------------- */
    320325    /*      Attempt to open source file.                                 */
     
    322327
    323328    hDataset = GDALOpenShared( pszSource, GA_ReadOnly );
     329    fprintf(stderr,"DEBUG pszDest : %s %d\n",pszDest,__LINE__);
    324330   
    325331    if( hDataset == NULL ){
     
    332338    }
    333339
     340    fprintf(stderr,"DEBUG pszDest : %s %d\n",pszDest,__LINE__);
    334341    /* ----------------------------------------------------------------- */
    335342    /*      Handle subdatasets.                                          */
Note: See TracChangeset for help on using the changeset viewer.

Search

Context Navigation

ZOO Sponsors

http://www.zoo-project.org/trac/chrome/site/img/geolabs-logo.pnghttp://www.zoo-project.org/trac/chrome/site/img/neogeo-logo.png http://www.zoo-project.org/trac/chrome/site/img/apptech-logo.png http://www.zoo-project.org/trac/chrome/site/img/3liz-logo.png http://www.zoo-project.org/trac/chrome/site/img/gateway-logo.png

Become a sponsor !

Knowledge partners

http://www.zoo-project.org/trac/chrome/site/img/ocu-logo.png http://www.zoo-project.org/trac/chrome/site/img/gucas-logo.png http://www.zoo-project.org/trac/chrome/site/img/polimi-logo.png http://www.zoo-project.org/trac/chrome/site/img/fem-logo.png http://www.zoo-project.org/trac/chrome/site/img/supsi-logo.png http://www.zoo-project.org/trac/chrome/site/img/cumtb-logo.png

Become a knowledge partner

Related links

http://zoo-project.org/img/ogclogo.png http://zoo-project.org/img/osgeologo.png