Advertisement
Guest User

Untitled

a guest
Feb 22nd, 2016
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.28 KB | None | 0 0
  1. MAP
  2. EXTENT -10935437.00 -2950754.00 12888108.00 14825919.00
  3.  
  4. UNITS meters
  5. #EXTENT -15 30 40 70
  6. #UNITS dd
  7. SIZE 600 500
  8. SHAPEPATH "../../../pmapper_demodata"
  9. SYMBOLSET "../common/symbols/symbols-pmapper.sym"
  10. FONTSET "../common/fonts/msfontset.txt"
  11. RESOLUTION 96
  12. IMAGETYPE png
  13. INTERLACE OFF
  14. #CONFIG "PROJ_LIB" "C:/proj/nad/"
  15. PROJECTION
  16. # ETRS-LAEA
  17. #"init=epsg:3035"
  18. #"+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs"
  19. #"+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +no_defs"
  20. "+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs"
  21. END
  22. #
  23. # Start of web interface definition
  24. #
  25. WEB
  26. TEMPLATE "map.html"
  27. IMAGEPATH "C:/ms4w/tmp/ms_tmp/"
  28. IMAGEURL "/ms_tmp/"
  29. METADATA
  30. #"MAPFILE_ENCODING" "ISO-8859-1"
  31. #"ows_title" "WMS Demo Server"
  32. #"ows_onlineresource" "http://wms.yourserver.org?owskey=test&"
  33. #"ows_srs" "EPSG:3035 EPSG:4326"
  34. END # Metadata
  35. END # Web
  36. #
  37. # Start of Reference map definition
  38. #
  39. REFERENCE
  40. EXTENT -10935437.00 -2950754.00 12888108.00 14825919.00
  41. IMAGE "../../images/reference.png"
  42. SIZE 199 149
  43. COLOR -1 -1 -1
  44. OUTLINECOLOR 255 0 0
  45. END # Reference
  46. #
  47. # Start of legend object
  48. #
  49. LEGEND
  50. STATUS OFF
  51. IMAGECOLOR 255 255 255
  52. # OUTLINECOLOR 0 0 0
  53. POSITION ll
  54. KEYSIZE 18 12
  55. KEYSPACING 10 5
  56. TEMPLATE "void"
  57. LABEL
  58. TYPE TRUETYPE
  59. FONT "FreeSans"
  60. SIZE small
  61. POSITION AUTO
  62. COLOR 0 0 89
  63. OUTLINECOLOR 255 255 255
  64. ANTIALIAS TRUE
  65. END
  66. END
  67.  
  68. #
  69. # Start of ScaleBar definition
  70. #
  71. SCALEBAR
  72. STATUS off
  73. TRANSPARENT off
  74. INTERVALS 4
  75. SIZE 200 3
  76. UNITS kilometers
  77. COLOR 250 250 250
  78. OUTLINECOLOR 0 0 0
  79. BACKGROUNDCOLOR 100 100 100
  80. STYLE 0
  81. POSTLABELCACHE true
  82. LABEL
  83. COLOR 0 0 90
  84. #OUTLINECOLOR 200 200 200
  85. SIZE small
  86. END # Label
  87. END # Reference
  88. # SYMBOLS USED IN PMAPPER
  89. # - 'circle' always necessary (used e.g. for highlight)
  90. # - 'square' used in currecnt map file
  91. # Symbols can also be defined via tag SYMBOLSET (see above)
  92. Symbol
  93. Name 'circle'
  94. Type ELLIPSE
  95. Filled TRUE
  96. Points
  97. 1 1
  98. END
  99. END
  100.  
  101. Symbol
  102. Name 'square'
  103. Type VECTOR
  104. Filled TRUE
  105. Points
  106. 0 1
  107. 0 0
  108. 1 0
  109. 1 1
  110. 0 1
  111. END
  112. END
  113.  
  114.  
  115. #================== START OF LAYER SECTION =====================#
  116.  
  117. # Start of Layer PostGIS
  118. LAYER
  119. CONNECTIONTYPE postgis
  120. NAME "seamarks1"
  121. # Connect to a remote spatial database
  122. CONNECTION "user=postgres dbname=seamarks host=localhost password=metricos1979 port=5432"
  123. PROCESSING "CLOSE_CONNECTION=DEFER"
  124. # Get the lines from the 'geom' column of the 'roads' table
  125. DATA "way from planet_osm_point using srid=900913 using unique osm_id"
  126. STATUS ON
  127. TYPE POINT
  128. TOLERANCE 6
  129. TOLERANCEUNITS pixels
  130. CLASS
  131. Name 'seamarks1'
  132. COLOR 250 0 0
  133. OUTLINECOLOR 250 0 0
  134. SYMBOL 'square'
  135. SIZE 5
  136. END # Class
  137. END
  138.  
  139. # Start of Layer PostGIS
  140. LAYER
  141. CONNECTIONTYPE postgis
  142. NAME "water_polygons"
  143. # Connect to a remote spatial database
  144. CONNECTION "user=postgres dbname=water_polygons host=localhost password=metricos1979 port=5432"
  145. PROCESSING "CLOSE_CONNECTION=DEFER"
  146. # Get the lines from the 'geom' column of the 'roads' table
  147. DATA "geom from water_polygons using srid=3857 using unique gid"
  148. STATUS ON
  149. TYPE POLYGON
  150. CLASS
  151. Name 'water_polygons'
  152. COLOR 184 207 231
  153. OUTLINECOLOR 222 193 124
  154. END # Class
  155. END
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement