Ignore:
Timestamp:
Sep 20, 2019, 5:14:48 PM (5 years ago)
Author:
djay
Message:

Fix issue when RELY_ON_DB is on and data is published. Ensure to use WPS 3 only when required. Set wmfs_link, wfs_link or wcs_link only when found in the metadata.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/zoo-project/zoo-kernel/service_internal_hpc.c

    r939 r955  
    10561056                maps* tmp=getMaps(*real_outputs,input->name);
    10571057                char serviceName[9];
    1058                 freeMap(&tmp->content);
    1059                 free(tmp->content);
    1060                 tmp->content=NULL;
    10611058                maps* output=getMaps(*real_outputs,input->name);
    10621059                setMapInMaps(output->child,"download_link","generated_file",targetPath);
     
    10671064                setMapInMaps(output->child,"download_link","asReference","true");
    10681065                setMapInMaps(output->child,"download_link","inRequest","true");
    1069                 setMapInMaps(output->child,"wms_link","generated_file",targetPath);
    1070                 setMapInMaps(output->child,"wms_link","storage",targetPath);
    1071                 setMapInMaps(output->child,"wms_link","useMapserver","true");
    1072                 setMapInMaps(output->child,"wms_link","msOgc","WMS");
    1073                 setMapInMaps(output->child,"wms_link","requestedMimeType","image/png");
    1074                 setMapInMaps(output->child,"wms_link","asReference","true");
    1075                 if(getMaps(output->child,"wcs_link")!=NULL){
    1076                   sprintf(serviceName,"wcs_link");
    1077                   setMapInMaps(output->child,"wcs_link","msOgc","WCS");
    1078                 }else{
    1079                   sprintf(serviceName,"wfs_link");
    1080                   setMapInMaps(output->child,"wfs_link","msOgc","WFS");
    1081                 }
    1082                 setMapInMaps(output->child,serviceName,"storage",targetPath);
    1083                 setMapInMaps(output->child,serviceName,"generated_file",targetPath);
    1084                 setMapInMaps(output->child,serviceName,"useMapserver","true");
    1085                 setMapInMaps(output->child,serviceName,"asReference","true");
     1066                if(getMaps(output->child,"wms_link")!=NULL){
     1067                  setMapInMaps(output->child,"wms_link","generated_file",targetPath);
     1068                  setMapInMaps(output->child,"wms_link","storage",targetPath);
     1069                  setMapInMaps(output->child,"wms_link","useMapserver","true");
     1070                  setMapInMaps(output->child,"wms_link","msOgc","WMS");
     1071                  setMapInMaps(output->child,"wms_link","requestedMimeType","image/png");
     1072                  setMapInMaps(output->child,"wms_link","asReference","true");
     1073                  if(getMaps(output->child,"wcs_link")!=NULL){
     1074                    sprintf(serviceName,"wcs_link");
     1075                    setMapInMaps(output->child,"wcs_link","msOgc","WCS");
     1076                  }else{
     1077                    sprintf(serviceName,"wfs_link");
     1078                    setMapInMaps(output->child,"wfs_link","msOgc","WFS");
     1079                  }
     1080                  setMapInMaps(output->child,serviceName,"storage",targetPath);
     1081                  setMapInMaps(output->child,serviceName,"generated_file",targetPath);
     1082                  setMapInMaps(output->child,serviceName,"useMapserver","true");
     1083                  setMapInMaps(output->child,serviceName,"asReference","true");
     1084                }
     1085                freeMap(&tmp->content);
     1086                free(tmp->content);
     1087                tmp->content=NULL;
    10861088              }else{
    10871089                map* hpcStdErr=getMapFromMaps(*main_conf,"henv","StdErr");
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