- Timestamp:
- Jan 22, 2017, 5:32:02 PM (8 years ago)
- Location:
- trunk/zoo-project/zoo-kernel
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/zoo-project/zoo-kernel/configure.ac
r804 r805 824 824 OTB_RPATH="$OTBPATH/include/OTB-${OTBVERS}/" 825 825 OTB_CPPFLAGS="-I${OTB_RPATH}ApplicationEngine -I$OTB_RPATH/Common -I$ITKPATH/include/ITK-$ITKVERS -I$OTB_RPATH/Utilities/ITK -I$OTB_RPATH/ -I$OTB_RPATH/IO -I$OTB_RPATH/UtilitiesAdapters/OssimAdapters -I$OTB_RPATH/UtilitiesAdapters/CurlAdapters -I$OTB_RPATH/Utilities/BGL -I$OTB_RPATH/UtilitiesAdapters/ITKPendingPatches -I$OTB_RPATH/Utilities/otbconfigfile $GDAL_CFLAGS" 826 OTB_LDFLAGS="-L/usr/lib/x86_64-linux-gnu/ -lOTBImageIO-$OTBVERS -lOTBCommon-$OTBVERS -lOTBApplicationEngine-$OTBVERS -L$ITKPATH/lib -lITKBiasCorrection-$ITKVERS -lITKCommon-$ITKVERS -lITKIOImageBase-$ITKVERS -lITKKLMRegionGrowing-$ITKVERS -lITKLabelMap-$ITKVERS -lITKMesh-$ITKVERS -lITKMetaIO-$ITKVERS -lITKOptimizers-$ITKVERS -lITKPath-$ITKVERS -lITKPolynomials-$ITKVERS -lITKQuadEdgeMesh-$ITKVERS -lITKSpatialObjects-$ITKVERS -lITKStatistics-$ITKVERS -lITKVNLInstantiation-$ITKVERS -lITKWatersheds-$ITKVERS -litkNetlibSlatec-$ITKVERS -litksys-$ITKVERS -litkv3p_lsqr-$ITKVERS -litkv3p_netlib-$ITKVERS -litkvcl-$ITKVERS -litkvnl-$ITKVERS -litkvnl_algo-$ITKVERS"826 OTB_LDFLAGS="-L/usr/lib/x86_64-linux-gnu/ -lOTBImageIO-$OTBVERS -lOTBCommon-$OTBVERS -lOTBApplicationEngine-$OTBVERS -L$ITKPATH/lib $ITK_LDFLAGS" 827 827 else 828 828 OTB_CPPFLAGS="-I$OTBPATH/include/otb/ApplicationEngine -I$OTBPATH/include/otb/Common -I$ITKPATH/include/ITK-$ITKVERS -I$OTBPATH/include/otb/Utilities/ITK -I$OTBPATH/include/otb/ -I$OTBPATH/include/otb/IO -I$OTBPATH/include/otb/UtilitiesAdapters/OssimAdapters -I$OTBPATH/include/otb/UtilitiesAdapters/CurlAdapters -I$OTBPATH/include/otb/Utilities/BGL -I$OTBPATH/include/otb/UtilitiesAdapters/ITKPendingPatches -I$OTBPATH/include/otb/Utilities/otbconfigfile $GDAL_CFLAGS" 829 OTB_LDFLAGS="-L$OTBPATH/lib/otb -lOTBIO -lOTBCommon -lOTBApplicationEngine -L$ITKPATH/lib -lITKBiasCorrection-$ITKVERS -lITKCommon-$ITKVERS -lITKIOImageBase-$ITKVERS -lITKKLMRegionGrowing-$ITKVERS -lITKLabelMap-$ITKVERS -lITKMesh-$ITKVERS -lITKMetaIO-$ITKVERS -lITKOptimizers-$ITKVERS -lITKPath-$ITKVERS -lITKPolynomials-$ITKVERS -lITKQuadEdgeMesh-$ITKVERS -lITKSpatialObjects-$ITKVERS -lITKStatistics-$ITKVERS -lITKVNLInstantiation-$ITKVERS -lITKWatersheds-$ITKVERS -litkNetlibSlatec-$ITKVERS -litksys-$ITKVERS -litkdouble-conversion-$ITKVERS -litkv3p_lsqr-$ITKVERS -litkv3p_netlib-$ITKVERS -litkvcl-$ITKVERS -litkvnl-$ITKVERS -litkvnl_algo-$ITKVERS -litkzlib-$ITKVERS"829 OTB_LDFLAGS="-L$OTBPATH/lib/otb -lOTBIO -lOTBCommon -lOTBApplicationEngine -L$ITKPATH/lib $ITK_LDFLAGS" 830 830 831 831 fi -
trunk/zoo-project/zoo-kernel/server_internal.c
r798 r805 791 791 * check for useMapServer presence 792 792 */ 793 map* tmpCheck=getMap(tmpIoType->content,"useMapServer"); 794 if(tmpCheck!=NULL){ 795 // Get the default value 796 tmpIoType=getIoTypeFromElement(tmpInputs,tmpInputs->name,NULL); 797 tmpCheck=getMap(tmpMaps->content,"mimeType"); 798 addToMap(tmpMaps->content,"requestedMimeType",tmpCheck->value); 799 map* cursor=tmpIoType->content; 800 while(cursor!=NULL){ 801 addToMap(tmpMaps->content,cursor->name,cursor->value); 802 cursor=cursor->next; 803 } 793 if(tmpIoType!=NULL){ 794 map* tmpCheck=getMap(tmpIoType->content,"useMapServer"); 795 if(tmpCheck!=NULL){ 796 // Get the default value 797 tmpIoType=getIoTypeFromElement(tmpInputs,tmpInputs->name,NULL); 798 tmpCheck=getMap(tmpMaps->content,"mimeType"); 799 addToMap(tmpMaps->content,"requestedMimeType",tmpCheck->value); 800 map* cursor=tmpIoType->content; 801 while(cursor!=NULL){ 802 addToMap(tmpMaps->content,cursor->name,cursor->value); 803 cursor=cursor->next; 804 } 804 805 805 cursor=tmpInputs->content; 806 while(cursor!=NULL){ 807 if(strcasecmp(cursor->name,"Title")==0 || 808 strcasecmp(cursor->name,"Abstract")==0) 809 addToMap(tmpMaps->content,cursor->name,cursor->value); 810 cursor=cursor->next; 806 cursor=tmpInputs->content; 807 while(cursor!=NULL){ 808 if(strcasecmp(cursor->name,"Title")==0 || 809 strcasecmp(cursor->name,"Abstract")==0) 810 addToMap(tmpMaps->content,cursor->name,cursor->value); 811 cursor=cursor->next; 812 } 811 813 } 812 814 } -
trunk/zoo-project/zoo-kernel/service.c
r794 r805 635 635 iotype* getIoTypeFromElement(elements* e,char *name, map* values){ 636 636 elements* cursor=e; 637 if(values!=NULL) 637 if(values!=NULL){ 638 638 while(cursor!=NULL){ 639 639 if(strcasecmp(cursor->name,name)==0 && (cursor->defaults!=NULL || cursor->supported!=NULL)){ … … 651 651 cursor=cursor->next; 652 652 } 653 }else{ 654 while(cursor!=NULL){ 655 if(strcasecmp(cursor->name,name)==0 && cursor->defaults!=NULL){ 656 return cursor->defaults; 657 } 658 cursor=cursor->next; 659 } 660 } 653 661 return NULL; 654 662 }
Note: See TracChangeset
for help on using the changeset viewer.