[mapserver-users] Re: getSymbol (): Symbol definition error.
Francesc Cañas
kikocanas at gmail.com
Fri Jan 27 01:08:12 PST 2012
Ok, at first, thanks for helping me,
But I feel lost, this is never ending story.
I've removed all cartoline in the symbols.sym, I've removed the OUTPUTFORMAT
block entirely but now i have a new error message:
Content-type: text/html msReturnPage(): Web application error. Malformed
template name (fooOnlyForWMSGetFeatureInfo)
I thing maybe is because I didn't change the BROWSEFORMAT, so I do
BROWSEFORMAT "image/png".
For the fist time the screen don't display an error message, but don't
display anything at all.
The code now is like this:
# 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 Cat"
SIZE 100 100
UNITS dd
IMAGETYPE png
EXTENT -9.569062 32.926808 6.763360 44.857479
FONTSET 'C:/Users/Francesc/Documents/font/fonts.txt'
SYMBOLSET 'C:/Users/Francesc/Documents/symbols/symbols.sym'
PROJECTION
'proj=longlat'
'datum=WGS84'
'no_defs'
END
# Background color for the map canvas -- change as desired
IMAGECOLOR 255 255 255
# 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
BROWSEFORMAT "image/png"
# Set IMAGEPATH to the path where MapServer should
# write its output.
IMAGEPATH 'G:/Francesc/ms4w/tmp'
# Set IMAGEURL to the url that points to IMAGEPATH
# as defined in your web server configuration
IMAGEURL 'G:/Francesc/ms4w/tmp'
# WMS server settings
METADATA
'ows_title' 'Projectes Cat'
'ows_onlineresource'
'http://localhost/cgi-bin/mapserv.exe?map=C:/Users/Francesc/Documents/Projectes_wgs84_v6.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/getSymbol-Symbol-definition-error-tp4340534p4342552.html
Sent from the Mapserver - User mailing list archive at Nabble.com.
More information about the MapServer-users
mailing list