Advertisement
Guest User

Untitled

a guest
Mar 1st, 2021
277
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.41 KB | None | 0 0
  1. My Mapfile:
  2. #
  3. # Start of map file
  4. #
  5. #
  6. MAP
  7. CONFIG "MS_ERRORFILE" "ms_error.txt"
  8. CONFIG "CPL_DEBUG" "ON"
  9. DEBUG 5
  10. NAME "SEGIS"
  11. STATUS ON
  12. SIZE 800 600
  13. SYMBOLSET "../../etc/symbols.txt"
  14. EXTENT -170 10 175 75
  15. UNITS DD
  16. IMAGECOLOR 0 0 0
  17. FONTSET "../../etc/fonts.txt"
  18. #
  19. # Start of web interface definition
  20. #
  21. WEB
  22. IMAGEPATH "/ms4w/tmp/ms_tmp/"
  23. IMAGEURL "/ms_tmp/"
  24. TEMPLATE "../htdocs/segis-demo-template.html"
  25. METADATA
  26. "wms_title" "WMS"
  27. "wms_onlineresource" "http://localhost/cgi-bin/mapserv.exe?map=wms.map&?"
  28. "wms_srs" "EPSG:4326"
  29. "wms_enable_request" "*"
  30. "ows_enable_request" "*"
  31. "wms_feature_info_mime_type" "text/html"
  32. "wms_format" "image/png"
  33. "wms_rootlayer_name" ""
  34. END # Metadata
  35. END # Web
  36. ##
  37. ## Output projection
  38. ##
  39. PROJECTION
  40. "init=epsg:4326"
  41. END # Projection
  42. SYMBOL
  43. NAME "circle"
  44. TYPE ellipse
  45. POINTS 1 1 END
  46. END # Symbol
  47. #
  48. # Start of layer definitions
  49. #
  50. LAYER
  51. DEBUG 5
  52. NAME "Installations"
  53. METADATA
  54. "wms_title" "Installations"
  55. "wms_srs" "EPSG:4326"
  56. "wms_enable_request" "*"
  57. "ows_enable_request" "*"
  58. "wms_feature_info_mime_type" "text/html"
  59. "wms_format" "image/png"
  60. END # Metadata
  61. TYPE POINT
  62. STATUS ON
  63. CONNECTIONTYPE POSTGIS
  64. CONNECTION "host=localhost dbname=postgis user=XXXXXXXX password=XXXXX port=5432"
  65. DATA "wkb_geometry from fy19_mirta_points using srid=4326"
  66. PROCESSING "CLOSE_CONNECTION=DEFER"
  67. PROJECTION
  68. "init=epsg:4326"
  69. END # Projection
  70. # TEMPLATE
  71. CLASS
  72. NAME "Installations"
  73. STYLE
  74. SYMBOL "circle"
  75. SIZE 8
  76. COLOR 0 0 0
  77. END # Style
  78. END # Class
  79. END # Layer
  80. LAYER
  81. DEBUG 5
  82. NAME "InstallationBoundaries"
  83. METADATA
  84. "wms_title" "InstallationBoundaries"
  85. "wms_srs" "EPSG:4326"
  86. "wms_enable_request" "*"
  87. "ows_enable_request" "*"
  88. "wms_feature_info_mime_type" "text/html"
  89. "wms_format" "image/png"
  90. END # Metadata
  91. TYPE POLYGON
  92. STATUS ON
  93. CONNECTIONTYPE POSTGIS
  94. CONNECTION "host=localhost dbname=postgis user=XXXXXXXX password=XXXXX port=5432"
  95. DATA "wkb_geometry from public.fy19_mirta_boundaries using srid=4326 using unique ogc_fid"
  96. PROJECTION
  97. "init=epsg:4326"
  98. END # Projection
  99. CLASS
  100. NAME "InstallationBoundaries"
  101. STYLE
  102. COLOR 232 232 232
  103. OUTLINECOLOR 120 120 120
  104. END # Style
  105. END # Class
  106. END # Layer
  107. END # Map File
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement