Ignore:
Timestamp:
Oct 11, 2012, 11:45:00 AM (12 years ago)
Author:
djay
Message:

Make GdalExtractProfile? Service working on windows platforms.

Location:
trunk/zoo-project/zoo-services/gdal/profile
Files:
1 added
2 edited

Legend:

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

    r284 r371  
    44CC=gcc
    55
    6 cgi-env/gdal_profile_service.zo: service.c
    7         g++  -DZOO_SERVICE ${CFLAGS} -shared -fpic -o cgi-env/gdal_profile_service.zo ./service.c ${GDAL_LIBS} ${MACOS_LD_FLAGS}
     6cgi-env/profile_service.zo: service.c
     7        g++  -DZOO_SERVICE ${CFLAGS} -shared -fpic -o cgi-env/profile_service.zo ./service.c ${GDAL_LIBS} ${MACOS_LD_FLAGS}
    88
    99clean:
  • trunk/zoo-project/zoo-services/gdal/profile/service.c

    r348 r371  
    4040#endif
    4141
     42#ifdef WIN32
     43__declspec(dllexport)
     44#endif
    4245#ifdef ZOO_SERVICE
    4346int GdalExtractProfile(maps*& conf,maps*& inputs,maps*& outputs)
     
    8285        adfMinMax[1] = GDALGetRasterMaximum( hBand, &bGotMax );
    8386        if( ! (bGotMin && bGotMax) )
    84             GDALComputeRasterMinMax( hBand, TRUE, adfMinMax );
    85 
     87          GDALComputeRasterMinMax( hBand, TRUE, adfMinMax );
    8688#ifdef ZOO_SERVICE
    8789          tmp1=getMapFromMaps(inputs,"Geometry","value");
     
    9092          OGRGeometryH geometry=OGR_G_CreateGeometryFromJson(argv[2]);
    9193#endif
     94
    9295          OGR_G_Segmentize(geometry, adfGeoTransform[1]);
    9396          int nbGeom=OGR_G_GetPointCount(geometry);
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