- Timestamp:
- Feb 8, 2018, 12:37:09 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/prototype-v0/zoo-project/zoo-kernel/service_internal_ms.c
r862 r865 1381 1381 myMap->transparent=1; 1382 1382 1383 /**1384 * Set metadata extracted from main.cfg file maps1385 */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 DEBUGMS1395 fprintf(stderr,"Unable to add metadata");1396 #endif1397 return;1398 }1399 }1400 _cursor=_cursor->next;1401 }1402 cursor=cursor->next;1403 }1404 freeMap(&correspondance);1405 free(correspondance);1406 1407 1383 /* 1408 1384 * Set mapserver PROJ_LIB/GDAL_DATA or any other config parameter from … … 1445 1421 } 1446 1422 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 1447 1452 1448 1453 if(tryOgr(conf,outputs,myMap)<0)
Note: See TracChangeset
for help on using the changeset viewer.