Ignore:
Timestamp:
Feb 16, 2015, 10:45:52 PM (7 years ago)
Author:
djay
Message:

Add the PHP ZOO-API, fix issue if ZTS is not defined, correct loading of the PHP script depending of the ZOO-Kernel location, use a ZEND_HANDLE_FD rather than the ZEND_HANDLE_FP used before, correct location of the hello.php service.

File:
1 edited

Legend:

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

    r579 r586  
    2323 */
    2424
    25 #ifdef USE_MS
     25/**
     26 * Cross platform definition of layerObj->class
     27 */
    2628#ifndef WIN32
    2729#define CLASS class
     
    3234
    3335/**
     36 * Get a list of configuration keys having a corresponding mandatory ows_*.
    3437 * Map composed by a main.cfg maps name as key and the corresponding
    3538 * MapServer Mafile Metadata name to use
     
    3841 *  - http://mapserver.org/ogc/wfs_server.html
    3942 *  - http://mapserver.org/ogc/wcs_server.html
     43 *
     44 * @return a new map containing a table linking a name of a configuration key
     45 * to a corresponding mandatory ows_* keyword (ie. "fees" => "ows_fees").
    4046 */
    4147map* getCorrespondance(){
     
    6773}
    6874
     75/**
     76 * Add width and height keys to an output maps containing the maximum width
     77 * and height for displaying the full data extent.
     78 * Restriction to an image having a size of 640x480 (width * height)
     79 *
     80 * @param output
     81 * @param minx the lower left x coordinate
     82 * @param miny the lower left y coordinate
     83 * @param maxx the upper right x coordinate
     84 * @param maxy the upper right y coordinate
     85 */
    6986void setMapSize(maps* output,double minx,double miny,double maxx,double maxy){
    7087  double maxWidth=640;
     
    104121}
    105122
     123/**
     124 * Add a Reference key to an output containing the WMFS/WFS/WCS request for
     125 * accessing service result
     126 *
     127 * @param m the conf maps containing the main.cfg settings
     128 * @param tmpI the specific output maps to add the Reference key
     129 */
    106130void setReferenceUrl(maps* m,maps* tmpI){
    107131  outputMapfile(m,tmpI);
     
    205229
    206230/**
    207  * Set projection using Authority Code and Name if available or fallback to
    208  * proj4 definition if available or fallback to default EPSG:4326
     231 * Set projection for a layer in a MAPFILE using Authority Code and Name if
     232 * available or fallback to proj4 definition if available or fallback to
     233 * default EPSG:4326
     234 *
     235 * @param output the output maps
     236 * @param m the opened mapObj
     237 * @param myLayer the layerObj
     238 * @param pszProjection a char* containing the SRS definition in WKT format
    209239 */
    210240void setSrsInformations(maps* output,mapObj* m,layerObj* myLayer,
     
    299329}
    300330
     331/**
     332 * Set the MAPFILE extent, the the ows_extent for the layer, add wms_extent and
     333 * wfs_extent to the output maps and call setMapSize.
     334 *
     335 * @param output the specific output
     336 * @param m the mapObj
     337 * @param myLayer the layerObj
     338 * @param minX the lower left x coordinate
     339 * @param minY the lower left y coordinate
     340 * @param maxX the upper right x coordinate
     341 * @param maxY the upper right y coordinate
     342 * @see setMapSize
     343 */
    301344void setMsExtent(maps* output,mapObj* m,layerObj* myLayer,
    302345                 double minX,double minY,double maxX,double maxY){
     
    357400}
    358401
     402/**
     403 * Try to open a vector output and define the corresponding layer in the MAPFILE
     404 *
     405 * @param conf the conf maps containing the main.cfg settings
     406 * @param output the specific output maps
     407 * @param m the mapObj
     408 */
    359409int tryOgr(maps* conf,maps* output,mapObj* m){
    360410
     
    663713}
    664714
    665 
     715/**
     716 * Try to open a raster output and define the corresponding layer in the MAPFILE
     717 *
     718 * @param conf the conf maps containing the main.cfg settings
     719 * @param output the specific output maps
     720 * @param m the mapObj
     721 */
    666722int tryGdal(maps* conf,maps* output,mapObj* m){
    667723  map* tmpMap=getMap(output->content,"storage");
     
    914970/**
    915971 * Create a MapFile for WMS, WFS or WCS Service output
     972 *
     973 * @param conf the conf maps containing the main.cfg settings
     974 * @param outputs a specific output maps
    916975 */
    917976void outputMapfile(maps* conf,maps* outputs){
    918977
    919978  /**
    920    * Firs store the value on disk
     979   * First store the value on disk
    921980   */
    922981  map* mime=getMap(outputs->content,"mimeType");
     
    11061165}
    11071166
    1108 #endif
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