MS_GeneralView.map # Map file created from QGIS project file D:/03_GISDatabase/GISDatabase_sample_postgresql_single.
qgs # Edit this file to customize for your map interface # (Created with PyQgis MapServer Export plugin) MAP NAME "Mato Grosso do Sul" # Map image size SIZE 200 200 UNITS meters EXTENT -61.490529 -25.844501 -47.590487 -15.389598 #FONTSET './fonts/[Link]' #SYMBOLSET './symbols/[Link]' PROJECTION 'proj=longlat' 'datum=WGS84' 'no_defs' END # Background color for the map canvas -- change as desired IMAGECOLOR 255 255 255 IMAGEQUALITY 95 IMAGETYPE gif OUTPUTFORMAT NAME gif DRIVER 'GD/GIF' MIMETYPE 'image/gif' EXTENSION 'gif' END # Legend LEGEND IMAGECOLOR 255 255 255 STATUS ON KEYSIZE 18 12 LABEL TYPE BITMAP SIZE MEDIUM COLOR 0 0 89 END END # Web interface definition. Only the template parameter # is required to display a map. See MapServer documentation WEB # Set IMAGEPATH to the path where MapServer should # write its output. IMAGEPATH 'D:/03_GISDatabase/MS_MapServerFiles/' # Set IMAGEURL to the url that points to IMAGEPATH # as defined in your web server configuration IMAGEURL '/'
1/29/2012
# WMS server settings METADATA 'ows_title' 'Mato Grosso do Sul' 'ows_onlineresource' '[Link] D:/03_GISDatabase/MS_MapServerFiles/MS_GeneralView.map' 'ows_srs' 'EPSG:4326' END #Scale range at which web interface will operate 1
MS_GeneralView.map
1/29/2012
# Template and header/footer settings # Only the template parameter is required to display a map. See MapServer documentation TEMPLATE 'fooOnlyForWMSGetFeatureInfo' END LAYER NAME 'Municpios' TYPE POLYGON DUMP true TEMPLATE fooOnlyForWMSGetFeatureInfo EXTENT -61.490529 -25.844501 -47.590487 -15.389598 CONNECTIONTYPE postgis CONNECTION "dbname='GISDatabase' host=localhost port=5432 user='postgres' password='xp#riA10' sslmode=disable" DATA 'the_geom FROM "MS_Municipios_SAD69" USING UNIQUE gid USING srid= 4618' METADATA 'ows_title' 'Municpios' END STATUS OFF TRANSPARENCY 100 PROJECTION 'proj=longlat' 'datum=WGS84' 'no_defs' END CLASS NAME 'Municpios' STYLE WIDTH 0.91 OUTLINECOLOR 0 0 0 END END END END