Advertisement
default50

shapefile.map

Nov 28th, 2011
141
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 6.46 KB | None | 0 0
  1. ############################################################################################
  2. # author:   Jeff McKenna, jmckenna@gatewaygeomatics.com
  3. # purpose:  to test MapServer's vector drawing capabilities for FOSS4G 2009
  4. #           more info: http://wiki.osgeo.org/wiki/Benchmarking_2009
  5. # requires: associated processed TIGER/Line 2008 shapefiles for Texas
  6. # license:
  7. #
  8. # Copyright (c) 2009, Gateway Geomatics
  9. #
  10. # Permission is hereby granted, free of charge, to any person obtaining a copy of
  11. # this software and associated documentation files (the "Software"), to deal in the
  12. # Software without restriction, including without limitation the rights to use, copy,
  13. # modify, merge, publish, distribute, sublicense, and/or sell copies of the Software,
  14. # and to permit persons to whom the Software is furnished to do so, subject to the
  15. # following conditions:
  16. #
  17. # The above copyright notice and this permission notice shall be included in all copies
  18. # or substantial portions of the Software.
  19. #
  20. # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
  21. # INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
  22. # PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE
  23. # FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
  24. # ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  25. ############################################################################################
  26.  
  27. # MapServer benchmark map file - Shapefile
  28. MAP
  29.  
  30.   NAME  "shapefile_benchmarking"
  31.   STATUS OFF
  32.   EXTENT -104.268 25.864 -93.536 36.486
  33.   UNITS DD
  34.   SHAPEPATH "/opt/benchmarking_data/shapes"
  35.   IMAGECOLOR 255 255 255
  36.   FONTSET "/opt/benchmarking_data/fonts/fonts.txt"
  37.   SYMBOLSET "/opt/benchmarking_data/icons/symbols.txt"  
  38.   IMAGETYPE PNG
  39.  
  40.   CONFIG "MS_ERRORFILE" "/tmp/ms_error.log"
  41.   DEBUG 4
  42.  
  43.   OUTPUTFORMAT
  44.     NAME aggpng24
  45.     DRIVER AGG/PNG
  46.     MIMETYPE "image/png"
  47.     IMAGEMODE RGB
  48.     EXTENSION "png"
  49.   END
  50.  
  51.   #
  52.   # Start of web interface definition
  53.   #
  54.   WEB
  55.     # metadata for WMS service
  56.     METADATA
  57.       "ows_title"           "MapServer vector benchmarking with TIGER/Line 2008 shapefiles, loaded into PostGIS"
  58.       "ows_onlineresource"  "http://mapserver.supertv.channel/cgi-bin/mapserv.fcgi?MAP=/opt/benchmarking/mapserver/postgis.map&"
  59.       "ows_srs"         "EPSG:4269 EPSG:4326"
  60.       "ows_abstract"            "This WMS is run with MapServer 5.6.5, accessing TIGER/Line 2008 shapefiles for the US state of Texas. This was setup for the Web server benchmarking."
  61.       "ows_contactperson"       "Sebastian Cruz"
  62.       "ows_contactorganization" "SuperTVchannel"
  63.       "ows_contactposition"     "Sysadmin"
  64.       "ows_contactelectronicmailaddress" "default50@gmail.com"
  65.       "ows_attribution_title"   "U.S. Census Bureau 2008 TIGER/Line® Shapefiles"
  66.       "ows_attribution_onlineresource" "http://www.census.gov/geo/www/tiger/tgrshp2008/tgrshp2008.html"
  67.     END
  68.     IMAGEPATH "/var/www/ms_tmp"
  69.     IMAGEURL "/ms_tmp/"
  70.   END  
  71.  
  72.   #
  73.   # Projection of output image
  74.   #
  75.   PROJECTION
  76.     "+proj=longlat +ellps=GRS80 +datum=NAD83" #EPSG: 4269
  77.   END
  78.  
  79.   #
  80.   # Start of layer definitions
  81.   #
  82.  
  83.   #######################################
  84.   # Areawater
  85.   #######################################
  86.  
  87.   LAYER
  88.     NAME "areawater-merged"
  89.     # metadata for WMS service
  90.     METADATA
  91.       "ows_title"       "Area Water (lakes)"
  92.       "ows_srs"         "EPSG:4269 EPSG:4326"
  93.       "ows_abstract"            "Area water (i.e. lakes) according to 2008 TIGER/Line® classifications."
  94.       "ows_attribution_title"   "U.S. Census Bureau 2008 TIGER/Line® Shapefiles"
  95.       "ows_attribution_onlineresource" "http://www.census.gov/geo/www/tiger/tgrshp2008/tgrshp2008.html"
  96.     END
  97.     TYPE POLYGON
  98.     STATUS OFF
  99.     DATA "areawater_merge"
  100.     #
  101.     # Projection of data
  102.     #
  103.     PROJECTION
  104.       "+proj=longlat +ellps=GRS80 +datum=NAD83" #EPSG: 4269
  105.     END
  106.     EXTENT -104.268 25.864 -93.536 36.486
  107.   END # layer  
  108.  
  109.   #######################################
  110.   # Roads
  111.   #######################################
  112.  
  113.   LAYER
  114.     NAME "roads-merged"
  115.     # metadata for WMS service
  116.     METADATA
  117.       "ows_title"       "Road features"
  118.       "ows_srs"         "EPSG:4269 EPSG:4326"
  119.       "ows_abstract"            "Roads according to 2008 TIGER/Line® classifications."
  120.       "ows_attribution_title"   "U.S. Census Bureau 2008 TIGER/Line® Shapefiles"
  121.       "ows_attribution_onlineresource" "http://www.census.gov/geo/www/tiger/tgrshp2008/tgrshp2008.html"      
  122.     END
  123.     TYPE LINE
  124.     STATUS OFF
  125.     DATA "edges_merge"
  126.     #
  127.     # Projection of data
  128.     #
  129.     PROJECTION
  130.       "+proj=longlat +ellps=GRS80 +datum=NAD83" #EPSG: 4269
  131.     END
  132.     EXTENT -104.268 25.864 -93.536 36.486
  133.   END # Layer  
  134.  
  135.   #######################################
  136.   # Roads (labelled)
  137.   #######################################
  138.  
  139.   LAYER
  140.     NAME "roads-merged-labelled"
  141.     # metadata for WMS service
  142.     METADATA
  143.       "ows_title"       "Road features (labelled)"
  144.       "ows_srs"         "EPSG:4269 EPSG:4326"
  145.       "ows_abstract"            "Roads according to 2008 TIGER/Line® classifications."
  146.       "ows_attribution_title"   "U.S. Census Bureau 2008 TIGER/Line® Shapefiles"
  147.       "ows_attribution_onlineresource" "http://www.census.gov/geo/www/tiger/tgrshp2008/tgrshp2008.html"      
  148.     END
  149.     TYPE LINE
  150.     STATUS OFF
  151.     DATA "edges_merge"
  152.     #
  153.     # Projection of data
  154.     #
  155.     PROJECTION
  156.       "+proj=longlat +ellps=GRS80 +datum=NAD83" #EPSG: 4269
  157.     END
  158.     EXTENT -104.268 25.864 -93.536 36.486
  159.   END # Layer  
  160.  
  161.   #######################################
  162.   # Named Point Features
  163.   #######################################
  164.  
  165.   LAYER
  166.     NAME "gnis_names"
  167.     # metadata for WMS service
  168.     METADATA
  169.       "ows_title"       "Named Point Features"
  170.       "ows_srs"         "EPSG:4269 EPSG:4326"
  171.       "ows_abstract"            "Named point features, according to the USGS"
  172.       "ows_attribution_title"   "USGS Geographic Names"
  173.       "ows_attribution_onlineresource" "http://geonames.usgs.gov/domestic/download_data.htm"      
  174.     END
  175.     TYPE POINT
  176.     STATUS OFF
  177.     DATA "gnis_names09"
  178.     #
  179.     # Projection of data
  180.     #
  181.     PROJECTION
  182.       "+proj=longlat +ellps=GRS80 +datum=NAD83" #EPSG: 4269
  183.     END
  184.     EXTENT -104.268 25.864 -93.536 36.486
  185.   END # layer    
  186.  
  187. # End of map file
  188. END
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement