| 1 | #ifndef ZOO_SERVICE_INTERNAL_MS_H |
|---|
| 2 | #define ZOO_SERVICE_INTERNAL_MS_H 1 |
|---|
| 3 | #ifdef USE_MS |
|---|
| 4 | |
|---|
| 5 | #include <sys/stat.h> |
|---|
| 6 | #include "service_internal.h" |
|---|
| 7 | #include "service.h" |
|---|
| 8 | #include "cpl_conv.h" |
|---|
| 9 | #include "ogr_api.h" |
|---|
| 10 | #include "gdal.h" |
|---|
| 11 | #include "ogr_srs_api.h" |
|---|
| 12 | #include "ulinet.h" |
|---|
| 13 | |
|---|
| 14 | #include <mapserver.h> |
|---|
| 15 | |
|---|
| 16 | /** |
|---|
| 17 | * Map composed by a main.cfg maps name as key and the corresponding |
|---|
| 18 | * MapServer Mafile Metadata name to use |
|---|
| 19 | * see doc from here : |
|---|
| 20 | * - http://mapserver.org/ogc/wms_server.html |
|---|
| 21 | * - http://mapserver.org/ogc/wfs_server.html |
|---|
| 22 | * - http://mapserver.org/ogc/wcs_server.html |
|---|
| 23 | */ |
|---|
| 24 | map* getCorrespondance(); |
|---|
| 25 | void setMapSize(maps* output,double minx,double miny,double maxy,double maxx); |
|---|
| 26 | void setReferenceUrl(maps* m,maps* tmpI); |
|---|
| 27 | |
|---|
| 28 | /** |
|---|
| 29 | * Set projection using Authority Code and Name if available or fallback to |
|---|
| 30 | * proj4 definition if available or fallback to default EPSG:4326 |
|---|
| 31 | */ |
|---|
| 32 | void setSrsInformations(maps* output,mapObj* m,layerObj* myLayer, char* pszProjection); |
|---|
| 33 | |
|---|
| 34 | void setMsExtent(maps* output,mapObj* m,layerObj* myLayer, |
|---|
| 35 | double minX,double minY,double maxX,double maxY); |
|---|
| 36 | int tryOgr(maps* conf,maps* output,mapObj* m); |
|---|
| 37 | |
|---|
| 38 | int tryGdal(maps* conf,maps* output,mapObj* m); |
|---|
| 39 | /** |
|---|
| 40 | * Create a MapFile for WMS, WFS or WCS Service output |
|---|
| 41 | */ |
|---|
| 42 | void outputMapfile(maps* conf,maps* outputs); |
|---|
| 43 | |
|---|
| 44 | #endif |
|---|
| 45 | #endif |
|---|
| 46 | |
|---|