Ignore:
Timestamp:
Feb 1, 2018, 11:27:28 AM (6 years ago)
Author:
djay
Message:

Add the capability to publish heatmap or any templated mapfile using the epecific msInclude and msLayer keys for an output. For MapServer? published output, define 4096 as the default maxsize and use pixel width or height for raster files. use the correct MapServer? imagemode depending on GDALGetRasterDataType (MS_IMAGEMODE_BYTE for GDT_Byte, MS_IMAGEMODE_INT16 for GDT_Int16 and MS_IMAGEMODE_FLOAT32 for GDT_Float32). Create a text file (.maps) listing every mapfiles created for a MapServer? published output (or inputs) using saveMapNames function. Fixes in ulinet, use uuid for naming temporary files. Add dialect input to the ogr2ogr service. Use the .maps file for removing a file from the DeleteData? service

File:
1 edited

Legend:

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

    r860 r862  
    25622562      xmlNodePtr txt=xmlNewText(BAD_CAST tmp->value);
    25632563      xmlAddChild(nc1,txt);
     2564      if(cnt==0)
     2565        setMapInMaps(m,"lenv","message",tmp->value);
    25642566    }
    25652567    else{
     
    27182720      toto=getMap(tmpI->content,"asReference");
    27192721#ifdef USE_MS
    2720     restartNoMS:
    27212722      map* geodatatype=getMap(tmpI->content,"geodatatype");
    2722      
    27232723      if(toto!=NULL && strcasecmp(toto->value,"true")==0 &&
    27242724         (testMap==NULL ||
     
    27492749            map *ext=getMap(tmpI->content,"extension");
    27502750            char file_ext[32];
    2751 
     2751           
    27522752            if( ext != NULL && ext->value != NULL) {
    27532753              strncpy(file_ext, ext->value, 32);
     
    28122812          }
    28132813          addToMap(tmpI->content,"Reference",file_url);
    2814           /*maps* curs=tmpI;
    2815           curs=curs->next;
    2816           map* test=getMap(tmpI->content,"replicateStorageNext");
    2817           if(test!=NULL && strncasecmp(test->value,"true",4)==0)
    2818             while(curs!=NULL){
    2819               addToMap(curs->content,"storage",file_path);
    2820               curs=curs->next;
    2821               }
    2822           if(file_path!=NULL)
    2823           free(file_path);*/
    28242814          if(file_name!=NULL)
    28252815            free(file_name);
     
    28302820#ifdef USE_MS
    28312821      else{
    2832         if(testMap!=NULL){
    2833           setMapInMaps(m,"lenv","state","out");
    2834           setReferenceUrl(m,tmpI);
    2835           geodatatype=getMap(tmpI->content,"geodatatype");
    2836           if(geodatatype!=NULL && strcasecmp(geodatatype->value,"other")==0)
    2837             goto restartNoMS;
    2838         }
    2839       }
     2822          if(testMap!=NULL){
     2823            setMapInMaps(m,"lenv","state","out");
     2824            setReferenceUrl(m,tmpI);
     2825            geodatatype=getMap(tmpI->content,"geodatatype");
     2826            if(geodatatype!=NULL && strcasecmp(geodatatype->value,"other")==0)
     2827              res=SERVICE_FAILED;
     2828          }
     2829        }
    28402830#endif
    28412831      if(file_name!=NULL){
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