[297] | 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" |
---|
[364] | 9 | #include "cpl_multiproc.h" |
---|
[297] | 10 | #include "ogr_api.h" |
---|
| 11 | #include "gdal.h" |
---|
| 12 | #include "ogr_srs_api.h" |
---|
| 13 | #include "ulinet.h" |
---|
[364] | 14 | #ifdef WIN32 |
---|
| 15 | #include <unistd.h> |
---|
| 16 | #endif |
---|
[297] | 17 | |
---|
| 18 | #include <mapserver.h> |
---|
| 19 | |
---|
[364] | 20 | #ifdef __cplusplus |
---|
| 21 | extern "C" { |
---|
| 22 | #endif |
---|
| 23 | //#include <mapserver.h> |
---|
[297] | 24 | /** |
---|
| 25 | * Map composed by a main.cfg maps name as key and the corresponding |
---|
| 26 | * MapServer Mafile Metadata name to use |
---|
| 27 | * see doc from here : |
---|
| 28 | * - http://mapserver.org/ogc/wms_server.html |
---|
| 29 | * - http://mapserver.org/ogc/wfs_server.html |
---|
| 30 | * - http://mapserver.org/ogc/wcs_server.html |
---|
| 31 | */ |
---|
| 32 | map* getCorrespondance(); |
---|
| 33 | void setMapSize(maps* output,double minx,double miny,double maxy,double maxx); |
---|
| 34 | void setReferenceUrl(maps* m,maps* tmpI); |
---|
| 35 | |
---|
| 36 | /** |
---|
| 37 | * Set projection using Authority Code and Name if available or fallback to |
---|
| 38 | * proj4 definition if available or fallback to default EPSG:4326 |
---|
| 39 | */ |
---|
| 40 | void setSrsInformations(maps* output,mapObj* m,layerObj* myLayer, char* pszProjection); |
---|
| 41 | |
---|
| 42 | void setMsExtent(maps* output,mapObj* m,layerObj* myLayer, |
---|
| 43 | double minX,double minY,double maxX,double maxY); |
---|
| 44 | int tryOgr(maps* conf,maps* output,mapObj* m); |
---|
| 45 | |
---|
| 46 | int tryGdal(maps* conf,maps* output,mapObj* m); |
---|
| 47 | /** |
---|
| 48 | * Create a MapFile for WMS, WFS or WCS Service output |
---|
| 49 | */ |
---|
| 50 | void outputMapfile(maps* conf,maps* outputs); |
---|
[364] | 51 | #ifdef __cplusplus |
---|
| 52 | } |
---|
| 53 | #endif |
---|
[297] | 54 | |
---|
| 55 | #endif |
---|
| 56 | #endif |
---|
| 57 | |
---|