Ignore:
Timestamp:
May 3, 2017, 12:53:06 PM (7 years ago)
Author:
djay
Message:

Commit the minimal requirements for remote HPC support

File:
1 edited

Legend:

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

    r781 r822  
    131131 */
    132132void setReferenceUrl(maps* m,maps* tmpI){
     133  fprintf(stderr,"%s %D \n",__FILE__,__LINE__);
     134  fflush(stderr);
     135  dumpMaps(tmpI);
     136  fprintf(stderr,"%s %D \n",__FILE__,__LINE__);
     137  fflush(stderr);
    133138  outputMapfile(m,tmpI);
     139  fprintf(stderr,"%s %D \n",__FILE__,__LINE__);
     140  fflush(stderr);
     141  dumpMaps(tmpI);
     142  fprintf(stderr,"%s %D \n",__FILE__,__LINE__);
     143  fflush(stderr);
    134144  map *msUrl=getMapFromMaps(m,"main","mapserverAddress");
    135145  if(msUrl==NULL){
     
    150160    {"WMS","1.3.0","GetMap","layers=%s","wms_extent"},
    151161    {"WFS","1.1.0","GetFeature","typename=%s","wcs_extent"},
    152     {"WCS","1.1.0","GetCoverage","coverage=%s","wcs_extent"}
     162    //{"WCS","1.1.0","GetCoverage","coverage=%s","wcs_extent"}
     163    {"WCS","2.0.0","GetCoverage","coverageid=%s","wcs_extent"}
    153164  };
    154165  int proto=0;
     
    988999 */
    9891000void outputMapfile(maps* conf,maps* outputs){
    990 
     1001  fprintf(stderr,"%s %D \n",__FILE__,__LINE__);
     1002  fflush(stderr);
     1003  dumpMaps(outputs);
     1004  fprintf(stderr,"%s %D \n",__FILE__,__LINE__);
     1005  fflush(stderr);
    9911006  /**
    9921007   * First store the value on disk
     
    9981013      ext="json";
    9991014
     1015  fprintf(stderr,"%s %D \n",__FILE__,__LINE__);
     1016  fflush(stderr);
    10001017  map* tmpMap=getMapFromMaps(conf,"main","dataPath");
    10011018  map* sidMap=getMapFromMaps(conf,"lenv","usid");
     
    10091026  map* sizeMap=getMap(outputs->content,"size");
    10101027  map* vData=getMap(outputs->content,"value");
     1028  fprintf(stderr,"%s %D \n",__FILE__,__LINE__);
     1029  fflush(stderr);
    10111030  if(sizeMap!=NULL){
    10121031    zWrite(f,vData->value,atoi(sizeMap->value)*sizeof(char));
     
    10151034    zWrite(f,vData->value,(strlen(vData->value)+1)*sizeof(char));
    10161035  }
     1036  fprintf(stderr,"%s %D \n",__FILE__,__LINE__);
     1037  fflush(stderr);
    10171038  close(f);
     1039  fprintf(stderr,"%s %D \n",__FILE__,__LINE__);
     1040  fflush(stderr);
    10181041  addToMap(outputs->content,"storage",pszDataSource);
    10191042  free(pszDataSource);
     1043  fprintf(stderr,"%s %D \n",__FILE__,__LINE__);
     1044  fflush(stderr);
    10201045
    10211046  /*
     
    10241049  mapObj *myMap=msNewMapObj();
    10251050  free(myMap->name);
     1051  fprintf(stderr,"%s %D \n",__FILE__,__LINE__);
     1052  fflush(stderr);
    10261053  myMap->name=zStrdup("ZOO-Project_WXS_Server");
     1054  fprintf(stderr,"%s %D \n",__FILE__,__LINE__);
     1055  fflush(stderr);
    10271056  msMapSetSize(myMap,2048,2048);
     1057  fprintf(stderr,"%s %D \n",__FILE__,__LINE__);
     1058  fflush(stderr);
    10281059  msMapSetExtent(myMap,-1,-1,1,1);
     1060  fprintf(stderr,"%s %D \n",__FILE__,__LINE__);
     1061  fflush(stderr);
    10291062 
    10301063  /*
     
    10351068  tmp1=getMapFromMaps(conf,"main","tmpUrl");
    10361069  myMap->web.imageurl=zStrdup(tmp1->value);
     1070  fprintf(stderr,"%s %D \n",__FILE__,__LINE__);
     1071  fflush(stderr);
    10371072 
    10381073  /*
     
    10451080  msAppendOutputFormat(myMap,msCloneOutputFormat(o1));
    10461081  msFreeOutputFormat(o1);
     1082  fprintf(stderr,"%s %D \n",__FILE__,__LINE__);
     1083  fflush(stderr);
    10471084
    10481085#ifdef USE_KML
    10491086  outputFormatObj *o2=msCreateDefaultOutputFormat(NULL,"KML","kml");
    1050   o2->inmapfile=MS_TRUE; 
    1051   msAppendOutputFormat(myMap,msCloneOutputFormat(o2));
    1052   msFreeOutputFormat(o2);
    1053 #endif
     1087  if(!o2){
     1088    perror("Unable to initialize KML driver");
     1089    fprintf(stderr,"Unable to initialize KML driver !\n");
     1090  }else{
     1091    o2->inmapfile=MS_TRUE; 
     1092    msAppendOutputFormat(myMap,msCloneOutputFormat(o2));
     1093    msFreeOutputFormat(o2);
     1094  }
     1095#endif
     1096  fprintf(stderr,"%s %D \n",__FILE__,__LINE__);
     1097  fflush(stderr);
    10541098
    10551099  outputFormatObj *o3=msCreateDefaultOutputFormat(NULL,"GDAL/GTiff","tiff");
     
    10621106    msFreeOutputFormat(o3);
    10631107  }
     1108  fprintf(stderr,"%s %D \n",__FILE__,__LINE__);
     1109  fflush(stderr);
    10641110
    10651111  outputFormatObj *o4=msCreateDefaultOutputFormat(NULL,"GDAL/AAIGRID","grd");
     
    10721118    msFreeOutputFormat(o4);
    10731119  }
     1120  fprintf(stderr,"%s %D \n",__FILE__,__LINE__);
     1121  fflush(stderr);
    10741122
    10751123#ifdef USE_CAIRO
     
    10851133  }
    10861134#endif
     1135  fprintf(stderr,"%s %D \n",__FILE__,__LINE__);
     1136  fflush(stderr);
    10871137
    10881138  /*
     
    10911141  msLoadProjectionStringEPSG(&myMap->projection,"EPSG:4326");
    10921142  myMap->transparent=1;
     1143  fprintf(stderr,"%s %D \n",__FILE__,__LINE__);
     1144  fflush(stderr);
    10931145
    10941146  /**
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