Changeset 586 for trunk/zoo-project/zoo-kernel/service_internal_ms.c
- Timestamp:
- Feb 16, 2015, 10:45:52 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/zoo-project/zoo-kernel/service_internal_ms.c
r579 r586 23 23 */ 24 24 25 #ifdef USE_MS 25 /** 26 * Cross platform definition of layerObj->class 27 */ 26 28 #ifndef WIN32 27 29 #define CLASS class … … 32 34 33 35 /** 36 * Get a list of configuration keys having a corresponding mandatory ows_*. 34 37 * Map composed by a main.cfg maps name as key and the corresponding 35 38 * MapServer Mafile Metadata name to use … … 38 41 * - http://mapserver.org/ogc/wfs_server.html 39 42 * - 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"). 40 46 */ 41 47 map* getCorrespondance(){ … … 67 73 } 68 74 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 */ 69 86 void setMapSize(maps* output,double minx,double miny,double maxx,double maxy){ 70 87 double maxWidth=640; … … 104 121 } 105 122 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 */ 106 130 void setReferenceUrl(maps* m,maps* tmpI){ 107 131 outputMapfile(m,tmpI); … … 205 229 206 230 /** 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 209 239 */ 210 240 void setSrsInformations(maps* output,mapObj* m,layerObj* myLayer, … … 299 329 } 300 330 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 */ 301 344 void setMsExtent(maps* output,mapObj* m,layerObj* myLayer, 302 345 double minX,double minY,double maxX,double maxY){ … … 357 400 } 358 401 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 */ 359 409 int tryOgr(maps* conf,maps* output,mapObj* m){ 360 410 … … 663 713 } 664 714 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 */ 666 722 int tryGdal(maps* conf,maps* output,mapObj* m){ 667 723 map* tmpMap=getMap(output->content,"storage"); … … 914 970 /** 915 971 * 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 916 975 */ 917 976 void outputMapfile(maps* conf,maps* outputs){ 918 977 919 978 /** 920 * Firs store the value on disk979 * First store the value on disk 921 980 */ 922 981 map* mime=getMap(outputs->content,"mimeType"); … … 1106 1165 } 1107 1166 1108 #endif
Note: See TracChangeset
for help on using the changeset viewer.