Guest User

Mapserver mapfile example

a guest
Oct 15th, 2020
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.06 KB | None | 0 0
  1. MAP
  2. NAME "Default"
  3. SIZE 1100 1100
  4. STATUS ON
  5. SYMBOLSET "../v2_prod/default/symbolsv2.sym"
  6. FONTSET "../v2_prod/default/fonts/fonts.txt"
  7. EXTENT 2.74 50.5 2.75 50.55
  8. UNITS DD
  9. SHAPEPATH "./shp/"
  10. IMAGECOLOR 255 255 255
  11.  
  12. CONFIG "MS_ERRORFILE" "../v2_prod/log/ms_erreur.txt"
  13. CONFIG "CPL_DEBUG" "ON"
  14. CONFIG "PROJ_DEBUG" "ON"
  15. CONFIG "ON_MISSING_DATA" "LOG"
  16. DEBUG 5
  17.  
  18. PROJECTION
  19. "init=epsg:4326"
  20. END
  21.  
  22. WEB
  23. METADATA
  24. "wms_title" "Map wms"
  25. "ows_title" "Map ows"
  26. "wfs_title" "Map wfs"
  27. "wms_onlineresource" "https://toto.com/wms.php"
  28. "wfs_onlineresource" "https://toto.com/wfs.php"
  29. "wms_srs" "EPSG:4326 EPSG:2154 EPSG:3942 EPSG:3943 EPSG:3944 EPSG:3945 EPSG:3946 EPSG:3947 EPSG:3948 EPSG:3949 EPSG:3950 EPSG:21781"
  30. "wfs_srs" "EPSG:4326 EPSG:2154 EPSG:3942 EPSG:3943 EPSG:3944 EPSG:3945 EPSG:3946 EPSG:3947 EPSG:3948 EPSG:3949 EPSG:3950 EPSG:21781"
  31. "wfs_getfeature_formatlist" "dxf,midmif,multimidmif,shapezip,ogrgml,kmz,kml,csv,png,jpg"
  32. "wfs_encoding" "UTF-8"
  33. "wms_enable_request" "*"
  34. "ows_enable_request" "*"
  35. "wfs_enable_request" "*"
  36. END
  37. END # WEB
  38.  
  39. OUTPUTFORMAT
  40. NAME "png"
  41. DRIVER AGG/PNG
  42. MIMETYPE "image/png"
  43. IMAGEMODE RGB
  44. EXTENSION "png"
  45. FORMATOPTION "GAMMA=0.75"
  46. END
  47.  
  48. OUTPUTFORMAT
  49. NAME "kml"
  50. DRIVER KML
  51. MIMETYPE "application/vnd.google-earth.kml+xml"
  52. IMAGEMODE RGB
  53. EXTENSION "kml"
  54. FORMATOPTION "maxfeaturestodraw=100000"
  55. #FORMATOPTION 'ATTACHMENT=gmap75.kml' #name of kml file returned
  56. END
  57.  
  58. LAYER NAME "Points"
  59. STATUS ON
  60. PROCESSING "ITEMS=class,id"
  61. TILEITEM "location"
  62. TYPE POINT
  63. UNITS DD
  64. LABELITEM "id"
  65. CLASSITEM "class"
  66.  
  67. METADATA
  68. "ows_title" "points"
  69. "ows_description" "points"
  70. "wfs_title" "points"
  71. "wfs_srs" "EPSG:4326"
  72. "gml_include_items" "id"
  73. "gml_featureid" "id"
  74. "gml_types" "auto"
  75.  
  76. END
  77.  
  78. CLASS
  79. NAME "classTest"
  80. EXPRESSION "classTest"
  81. STYLE
  82. SYMBOL "517901521836918.png"
  83. END # STYLE
  84. LABEL
  85. POSITION AUTO
  86. END
  87. END # CLASS
  88.  
  89. FEATURE
  90. ITEMS "classTest;1"
  91. POINTS
  92. 2.7315187454224 50.510137996321
  93. END
  94. END
  95.  
  96. FEATURE
  97. ITEMS "classTest;2"
  98. POINTS
  99. 2.7306862828333 50.509975886833
  100. END
  101. END
  102.  
  103. END # LAYER
  104.  
  105. END # MAP
  106.  
Add Comment
Please, Sign In to add comment