[mapserver-users] getSymbol (): Symbol definition error.

Smith, Michael ERDC-CRREL-NH Michael.Smith at usace.army.mil
Thu Jan 26 05:43:32 PST 2012


CARTOLINE symbol type has been dropped from MapServer 6. You'll need to
remove any symbol that is CARTOLINE.

The GD driver is no longer used for PNG output. I'd remove the
OUTPUTFORMAT block entirely and just use the built in definition for PNG.


Mike



On 1/26/12 7:03 AM, "Francesc Cañas" <kikocanas at gmail.com> wrote:

>Hello, I want to publish a Mapserver layer with OpenLayers but I generated
>the following error when opening it with
>http://localhost/cgi-bin/mapserv.exe
>
>The error is:
>
>getSymbol (): Symbol definition error. Error Parsing near (Cartoline)
>(line
>26) msOutputFormatValidate (): General error message. Png OUTPUTFORMAT you
>IMAGEMODE RGB / RGBA, Which is not supported for GD drivers.
>
>Indeed reading the mapserver site found that only accepts PC256 GD so I
>changed:
>
>OUTPUTFORMAT
>Png NAME
>DRIVER 'GD / PNG'
>MIMETYPES 'image / png'
>PC256 IMAGEMODE
>EXTENSION 'PNG'
>END
>
>And now the only mistake: getSymbol (): Symbol definition error. Error
>Parsing near (Cartoline) (line 26)
>
>And here if you already know why I can not. The line 26 is this: DRIVER
>'GD
>/ PNG'
>
>The most curious is that with the beta version 3.0.1 MS4W (the have a
>partner) layer if it can be displayed, but with 3.0.3, which is what I
>have,
>I get these errors.
>
>I've read in another forum that changing the .sym and add a # in all
>cartoline symbols, it works. I've tried it and then the message error is:
>
>msSaveImage(): Unable to access file. Failed to create output file
>(/tmp/Projectes Cat13275775744636.png).
>I'm getting crazy.
>
>
>
>The. Map is generated with QGIS 1.7.3. Following in the footsteps of all
>the
>tutorials. The whole code is this:
>
># Map file created from QGIS project file U: /
>Matthias/00_AUMA_projectes/SIG/Projectes_CAT_wgs.qgs
># Edit this file to customize for your map interface
># (Created with MapServer Export plugin PyQgis)
>MAP
>NAME "Projectes Cat"
># Map image size
>SIZE December 12
>UNITS dd
>
>EXTENT -9.569062 32.926808 6.763360 44.857479
>Fontset '. / Font / 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
>95 IMAGEQUALITY
>Png IMAGETYPE
>
>OUTPUTFORMAT
>Png NAME
>DRIVER 'GD / PNG'
>MIMETYPES 'image / png'
>PC256 IMAGEMODE
>EXTENSION 'PNG'
>END
># Legend
>LEGEND
>IMAGECOLOR 255 255 255
>ON STATUS
>KeySize December 18
>LABEL
>TYPE BITMAP
>MEDIUM SIZE
>COLOR 0 0 89
>END
>END
>
># Web interface definition. Only the template parameter
># Is required to display a map. See MapServer documentation
>WEB
># Set to the path ImagePath WHERE Should MapServer
>ITS # write output.
>ImagePath '/ tmp /'
>
># Set ImageURL to the url points to ImagePath That
># As defined in your Web server configuration
>ImageURL '/ tmp /'
>
># WMS server settings
>METADATA
>'Ows_title' 'Project Cat'
>'Ows_onlineresource'
>'http://localhost/cgi-bin/mapserv.exe?map=C:/Users/Francesc/Documents/Proj
>ectes_wgs84_v6.map'
>'Ows_srs' 'EPSG: 4326'
>END
>
># Scale Range at Which Will Operate web interface
># 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
>
>
>thank you!
>
>--
>View this message in context:
>http://osgeo-org.1560.n6.nabble.com/getSymbol-Symbol-definition-error-tp43
>40534p4340534.html
>Sent from the Mapserver - User mailing list archive at Nabble.com.
>_______________________________________________
>mapserver-users mailing list
>mapserver-users at lists.osgeo.org
>http://lists.osgeo.org/mailman/listinfo/mapserver-users




More information about the MapServer-users mailing list