Ignore:
Timestamp:
Dec 3, 2015, 8:44:39 AM (9 years ago)
Author:
djay
Message:

Add WCPS-Proxy, data-api proxy and update Makefile for dealing with specific location of fastcgi. Add status update for contour lines computation.

Location:
trunk/zoo-project/zoo-services/gdal/contour
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/zoo-project/zoo-services/gdal/contour/Makefile

    r650 r743  
    11ZRPATH=../../..
    22include ${ZRPATH}/zoo-kernel/ZOOMakefile.opts
    3 CFLAGS=-DZOO_SERVICE ${ZOO_CFLAGS} ${XML2CFLAGS} ${GDAL_CFLAGS} ${PYTHONCFLAGS} -DLINUX_FREE_ISSUE #-DDEBUG
     3CFLAGS=-DZOO_SERVICE -I${INST_INCLUDE} ${ZOO_CFLAGS} ${XML2CFLAGS} ${GDAL_CFLAGS} ${PYTHONCFLAGS} -DLINUX_FREE_ISSUE #-DDEBUG
    44CC=gcc
    55
    66cgi-env/contour_service.zo: service.c
    7         g++ ${CFLAGS} -shared -fpic -o cgi-env/contour_service.zo ./service.c ${GDAL_LIBS} ${MACOS_LD_FLAGS} -lzoo_service
     7        g++ ${CFLAGS} -shared -fpic -o cgi-env/contour_service.zo ./service.c ${GDAL_LIBS} ${MACOS_LD_FLAGS} -L${INST_LIB} -lzoo_service ${FCGI_LDFLAGS}
    88install:
    99        install -d ${CGI_DIR}/gdal/contour
  • trunk/zoo-project/zoo-services/gdal/contour/service.c

    r450 r743  
    3636#ifdef ZOO_SERVICE
    3737#include "service.h"
     38#include "service_internal.h"
    3839#endif
    3940CPL_CVSID("$Id: gdal_contour.cpp 25643 2013-02-12 13:50:42Z bishop $");
     
    7374    exit( 1 );
    7475}
     76
     77#ifdef ZOO_SERVICE
     78  int pfnProgress1( double dfComplete, const char *pszMessage, void *pData)
     79  {
     80    maps* conf=(maps*)pData;
     81    map* tmpMap=getMapFromMaps(conf,"lenv","status");
     82    char tmpStr[4];
     83    sprintf(tmpStr,"%d",(int) (dfComplete*100));
     84    if(tmpMap!=NULL && strcmp(tmpMap->value,tmpStr)!=0){
     85      if( pszMessage != NULL && strlen(pszMessage)>1){
     86        updateStatus(conf,(int) (dfComplete*100), pszMessage);
     87      }     
     88      else
     89        updateStatus(conf,(int) (dfComplete*100), "Processing...");
     90    }
     91    return TRUE;
     92  }
     93#endif
    7594
    7695/************************************************************************/
     
    106125    const char *pszNewLayerName = "contour";
    107126    int bQuiet = FALSE;
    108     GDALProgressFunc pfnProgress = NULL;
    109     fprintf(stderr,"DEBUG HELLO %f %d\n",__FILE__,__LINE__);
    110     fflush(stderr);
    111127#ifndef ZOO_SERVICE
    112128    /* Check that we are running against at least GDAL 1.4 */
     
    262278    }
    263279   
    264     if (!bQuiet)
    265         pfnProgress = GDALTermProgress;
    266 
     280    /*if (!bQuiet)
     281      pfnProgress = GDALTermProgress;*/
     282    //pfnProgress = GDALTermProgress;
    267283/* -------------------------------------------------------------------- */
    268284/*      Open source raster file.                                        */
     
    372388                                 OGR_FD_GetFieldIndex( OGR_L_GetLayerDefn( hLayer ),
    373389                                                       pszElevAttrib ),
    374                          pfnProgress, NULL );
     390                         pfnProgress1, conf );
    375391
    376392    OGR_DS_Destroy( hDS );
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