ZOO-Project: service_internal_ms.h File Reference
ZOO-Project
service_internal_ms.h File Reference
#include <sys/stat.h>
#include "service.h"
#include "cpl_conv.h"
#include "cpl_multiproc.h"
#include "ogr_api.h"
#include "gdal.h"
#include "ogr_srs_api.h"
#include <mapserver.h>

Go to the source code of this file.

Functions

mapgetCorrespondance ()
 Get a list of configuration keys having a corresponding mandatory ows_*. More...
 
void setMapSize (maps *output, double minx, double miny, double maxy, double maxx)
 Add width and height keys to an output maps containing the maximum width and height for displaying the full data extent. More...
 
void setReferenceUrl (maps *m, maps *tmpI)
 Add a Reference key to an output containing the WMFS/WFS/WCS request for accessing service result. More...
 
void setSrsInformations (maps *output, mapObj *m, layerObj *myLayer, char *pszProjection)
 Set projection for a layer in a MAPFILE using Authority Code and Name if available or fallback to proj4 definition if available or fallback to default EPSG:4326. More...
 
void setMsExtent (maps *output, mapObj *m, layerObj *myLayer, double minX, double minY, double maxX, double maxY)
 Set the MAPFILE extent, the the ows_extent for the layer, add wms_extent and wfs_extent to the output maps and call setMapSize. More...
 
int tryOgr (maps *conf, maps *output, mapObj *m)
 Try to open a vector output and define the corresponding layer in the MAPFILE. More...
 
int tryGdal (maps *conf, maps *output, mapObj *m)
 Try to open a raster output and define the corresponding layer in the MAPFILE. More...
 
void outputMapfile (maps *conf, maps *outputs)
 Create a MapFile for WMS, WFS or WCS Service output. More...
 
void saveMapNames (maps *, maps *, char *)
 Save the map fullpath in a text file (.maps) More...
 

Function Documentation

map* getCorrespondance ( )

Get a list of configuration keys having a corresponding mandatory ows_*.

Map composed by a main.cfg maps name as key and the corresponding MapServer Mafile Metadata name to use see doc from here :

Returns
a new map containing a table linking a name of a configuration key to a corresponding mandatory ows_* keyword (ie. "fees" => "ows_fees").
void outputMapfile ( maps conf,
maps outputs 
)

Create a MapFile for WMS, WFS or WCS Service output.

Parameters
confthe conf maps containing the main.cfg settings
outputsa specific output maps

First store the value on disk

Set a ows_rootlayer_title,

Enable all the WXS requests using ows_enable_request see http://mapserver.org/trunk/development/rfc/ms-rfc-67.html

Set metadata extracted from main.cfg file maps

void saveMapNames ( maps conf,
maps output,
char *  mapfile 
)

Save the map fullpath in a text file (.maps)

Parameters
confthe main configuration map pointer
outputthe current output for which a mapfile has been generated
mapfilethe mapfile saved to store in the text file
void setMapSize ( maps output,
double  minx,
double  miny,
double  maxx,

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