Ignore:
Timestamp:
Feb 8, 2018, 12:37:09 PM (6 years ago)
Author:
djay
Message:

Use correct declaration of the zo_DS variable in libzoo_service.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/prototype-v0/zoo-project/zoo-kernel/service_internal_ms.c

    r862 r865  
    13811381  myMap->transparent=1;
    13821382
    1383   /**
    1384    * Set metadata extracted from main.cfg file maps
    1385    */
    1386   maps* cursor=conf;
    1387   map* correspondance=getCorrespondance();
    1388   while(cursor!=NULL){
    1389     map* _cursor=cursor->content;
    1390     map* vMap;
    1391     while(_cursor!=NULL){
    1392       if((vMap=getMap(correspondance,_cursor->name))!=NULL){
    1393         if (msInsertHashTable(&(myMap->web.metadata), vMap->value, _cursor->value) == NULL){
    1394 #ifdef DEBUGMS
    1395           fprintf(stderr,"Unable to add metadata");
    1396 #endif
    1397           return;
    1398         }
    1399       }
    1400       _cursor=_cursor->next;
    1401     }
    1402     cursor=cursor->next;
    1403   }
    1404   freeMap(&correspondance);
    1405   free(correspondance);
    1406 
    14071383  /*
    14081384   * Set mapserver PROJ_LIB/GDAL_DATA or any other config parameter from
     
    14451421  }
    14461422  msInsertHashTable(&(myMap->web.metadata), "ows_srs", "EPSG:4326");
     1423
     1424  /**
     1425   * Set metadata extracted from main.cfg file maps
     1426   */
     1427  maps* cursor=conf;
     1428  map* correspondance=getCorrespondance();
     1429  while(cursor!=NULL){
     1430    if(strstr(cursor->name,"_help")==NULL){
     1431      map* _cursor=cursor->content;
     1432      map* vMap;
     1433      while(_cursor!=NULL){
     1434        if((vMap=getMap(correspondance,_cursor->name))!=NULL){
     1435          if (msInsertHashTable(&(myMap->web.metadata), vMap->value, _cursor->value) == NULL){
     1436#ifdef DEBUGMS
     1437            fprintf(stderr,"Unable to add metadata");
     1438#endif
     1439            freeMap(&correspondance);
     1440            free(correspondance);
     1441            return;
     1442          }
     1443        }
     1444        _cursor=_cursor->next;
     1445      }
     1446    }
     1447    cursor=cursor->next;
     1448  }
     1449  freeMap(&correspondance);
     1450  free(correspondance);
     1451
    14471452
    14481453  if(tryOgr(conf,outputs,myMap)<0)
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