Hello Francesc,
you should change the pathes.
FONTSET './fonts/fonts.txt'
SYMBOLSET './symbols/symbols.sym'
The fonts.txt and symbols.sym (or whatever filename) should be created if
neccessary. If you have point layer then you must create your own
symbolset, otherwise to can erase the SYMBOLSET line.
If you have trutype labels then you must create your fontset file,
otherwise you can erase the FONTSET line.
You must change
IMAGEPATH '/C:/Users/Francesc/Documents/temp/'
to point to the document folder (or subfolder of that) of your web server.
In case of ms4w:
IMAGEPATH 'C:/ms4w/Apache/htdocs/ms_tmp/'
IMAGEURL is the path from the Apache's document folder:
IMAGEURL '/ms_tmp/'
If you move your vector or raster files you must change the DATA for the
layer. This case you had better to set up SHAPEPATH in your map file.
Regards
Zoltan
On Mon, 30 Jan 2012, Francesc Caas wrote:
Hi,
I've created a map file with the PyQgis Mapserver export pluggin but it
doesn't work. They tell me it's cause the plugguin it's for older versions
of mapserver. (I have the 6.0.1)
What changes I have to do in the .map file to makes it work?
Thanks!
Map code:
# Map file created from QGIS project file
C:/Users/Francesc/Documents/Projectes_CAT_wgs.qgs
# Edit this file to customize for your map interface
# (Created with PyQgis MapServer Export plugin)
MAP
NAME "Projectes Auma UTM31"
# Map image size
SIZE 100 100
UNITS dd
EXTENT -9.569062 32.926808 6.763360 44.857479
FONTSET './fonts/fonts.txt'
SYMBOLSET './symbols/symbols.sym'
PROJECTION
'proj=longlat'
'datum=WGS84'
'no_defs'
END
# Background color for the map canvas -- change as desired
IMAGECOLOR 255 255 255
IMAGEQUALITY 95
IMAGETYPE png
OUTPUTFORMAT
NAME png
DRIVER 'GD/PNG'
MIMETYPE 'image/png'
IMAGEMODE RGBA
EXTENSION 'png'
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 'C:/Users/Francesc/Documents/temp/'
# Set IMAGEURL to the url that points to IMAGEPATH
# as defined in your web server configuration
IMAGEURL '/C:/Users/Francesc/Documents/temp/'
# WMS server settings
METADATA
'ows_title' 'Projectes Auma UTM31'
'ows_onlineresource'
'http://localhost/cgi-bin/mapserv.exe?map=C:/Users/Francesc/Documents/Projectes_wgs84_v7.map'
'ows_srs' 'EPSG:4326'
END
#Scale range at which web interface will operate
# Template and header/footer settings
# Only the template parameter is required to display a map. See
MapServer documentation
TEMPLATE 'fooOnlyForWMSGetFeatureInfo'
END
LAYER
NAME 'Provincias_wgs84'
TYPE POLYGON
DUMP true
TEMPLATE fooOnlyForWMSGetFeatureInfo
EXTENT -9.569062 32.926808 6.763360 44.857479
DATA 'C:/Users/Francesc/Documents/SHP/Provincias_wgs84.shp'
METADATA
'ows_title' 'Provincias_wgs84'
END
STATUS OFF
TRANSPARENCY 100
PROJECTION
'proj=longlat'
'datum=WGS84'
'no_defs'
END
CLASS
NAME 'Provincias_wgs84'
STYLE
WIDTH 0.35
OUTLINECOLOR 0 0 0
END
END
END
LAYER
NAME 'Projectes_UTM31_wgs84'
TYPE POINT
DUMP true
TEMPLATE fooOnlyForWMSGetFeatureInfo
EXTENT -9.569062 32.926808 6.763360 44.857479
DATA 'C:/Users/Francesc/Documents/SHP/Projectes_UTM31_wgs84.shp'
METADATA
'ows_title' 'Projectes_UTM31_wgs84'
END
STATUS OFF
TRANSPARENCY 100
PROJECTION
'proj=longlat'
'datum=WGS84'
'no_defs'
END
CLASS
NAME 'Projectes_UTM31_wgs84'
STYLE
SYMBOL "circle"
SIZE 7.0
OUTLINECOLOR 0 0 0
COLOR 103 132 169
END
END
END
END
--
View this message in context:
http://osgeo-org.1560.n6.nabble.com/PyQgis-MapServer-Export-with-Mapserver-6-0-1-tp4350528p4350528.html
Sent from the Quantum GIS - User mailing list archive at Nabble.com.
_______________________________________________
Qgis-user mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/qgis-user
_______________________________________________
Qgis-user mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/qgis-user