Advertisement
asanchez75

mapserver/scripts

Jun 11th, 2011
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.22 KB | None | 0 0
  1. ===========================hola.map=============================================
  2.  
  3. MAP
  4. #This is our "Hello World" mapfile
  5. NAME "Hello_world"
  6. SIZE 400 300
  7. IMAGECOLOR 249 245 186
  8. IMAGETYPE png
  9. EXTENT -1.00 -1.00 1.00 1.00
  10. WEB
  11. TEMPLATE "/var/www/mapserver/plantilla.html"
  12. IMAGEPATH "/var/www/mapserver/ms_tmp/"
  13. IMAGEURL "/mapserver/ms_tmp/"
  14. END
  15. LAYER
  16. STATUS default
  17. TYPE point
  18. FEATURE
  19. POINTS 0.0 0.0 END
  20. TEXT "Hello Carlos"
  21. END
  22.  
  23. CLASS
  24. STYLE
  25. COLOR 255 0 0
  26. END
  27. LABEL
  28. TYPE bitmap
  29. END
  30. END
  31. END
  32. END
  33.  
  34. ===============================inicio.html====================================================
  35.  
  36. <html>
  37. <head><title>MapServer Hello World</title></head>
  38. <body>
  39. <form method=POST action="/cgi-bin/mapserv">
  40. <input type="submit" value="Click Me">
  41. <input type="hidden" name="map" value="/var/www/mapserver/hola.map">
  42. </form>
  43. </body>
  44. </html>
  45.  
  46. ===============================plantilla.html====================================================
  47.  
  48. <!-- MapServer Template -->
  49. <html>
  50. <head> <title>MapServer Plantilla</title></head>
  51. <body>
  52. <img src="[img]" width=400 height=300 border=0>
  53. </body>
  54. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement