So, when I add the # in the symbol file (.sym), I convert the line in a comment, isn&#39;t it? Then, all the cartolines are in some way nulls. <div><br><div>But still doesn&#39;t work, what means: msSaveImage(): Unable to access file. Failed to create output file?</div>
<div><br></div><div>Thanks a lot!</div><div><br><br><div class="gmail_quote">2012/1/26 Havard Tveite [via OSGeo.org] <span dir="ltr">&lt;<a href="/user/SendEmail.jtp?type=node&node=4340556&i=0" target="_top" rel="nofollow" link="external">[hidden email]</a>&gt;</span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">

        The type cartoline for symbols is no longer used.
<br>Dashed lines and styling are specified in LAYER-&gt;CLASS-&gt;STYLE.
<br><br>Some examples:
<br><a href="http://mapserver.org/mapfile/symbology/construction.html#use-of-the-pattern-and-gap-parameters" rel="nofollow" link="external" target="_blank">http://mapserver.org/mapfile/symbology/construction.html#use-of-the-pattern-and-gap-parameters</a><br>
<br>Håvard
<br><br>On 1/26/2012 1:03 PM, Francesc Cañas wrote:
</div></div><div><div><div class="h5"><div class='shrinkable-quote'><br>&gt; Hello, I want to publish a Mapserver layer with OpenLayers but I generated
<br>&gt; the following error when opening it with
<br>&gt; <a href="http://localhost/cgi-bin/mapserv.exe" rel="nofollow" link="external" target="_blank">http://localhost/cgi-bin/mapserv.exe</a><br>&gt;
<br>&gt; The error is:
<br>&gt;
<br>&gt; getSymbol (): Symbol definition error. Error Parsing near (Cartoline) (line
<br>&gt; 26) msOutputFormatValidate (): General error message. Png OUTPUTFORMAT you
<br>&gt; IMAGEMODE RGB / RGBA, Which is not supported for GD drivers.
<br>&gt;
<br>&gt; Indeed reading the mapserver site found that only accepts PC256 GD so I
<br>&gt; changed:
<br>&gt;
<br>&gt; OUTPUTFORMAT
<br>&gt; Png NAME
<br>&gt; DRIVER &#39;GD / PNG&#39;
<br>&gt; MIMETYPES &#39;image / png&#39;
<br>&gt; PC256 IMAGEMODE
<br>&gt; EXTENSION &#39;PNG&#39;
<br>&gt; END
<br>&gt;
<br>&gt; And now the only mistake: getSymbol (): Symbol definition error. Error
<br>&gt; Parsing near (Cartoline) (line 26)
<br>&gt;
<br>&gt; And here if you already know why I can not. The line 26 is this: DRIVER &#39;GD
<br>&gt; / PNG&#39;
<br>&gt;
<br>&gt; The most curious is that with the beta version 3.0.1 MS4W (the have a
<br>&gt; partner) layer if it can be displayed, but with 3.0.3, which is what I have,
<br>&gt; I get these errors.
<br>&gt;
<br>&gt; I&#39;ve read in another forum that changing the .sym and add a # in all
<br>&gt; cartoline symbols, it works. I&#39;ve tried it and then the message error is:
<br>&gt;
<br>&gt; msSaveImage(): Unable to access file. Failed to create output file
<br>&gt; (/tmp/Projectes Cat13275775744636.png).
<br>&gt; I&#39;m getting crazy.
<br>&gt;
<br>&gt;
<br>&gt;
<br>&gt; The. Map is generated with QGIS 1.7.3. Following in the footsteps of all the
<br>&gt; tutorials. The whole code is this:
<br>&gt;
<br>&gt; # Map file created from QGIS project file U: /
<br>&gt; Matthias/00_AUMA_projectes/SIG/Projectes_CAT_wgs.qgs
<br>&gt; # Edit this file to customize for your map interface
<br>&gt; # (Created with MapServer Export plugin PyQgis)
<br>&gt; MAP
<br>&gt; NAME &quot;Projectes Cat&quot;
<br>&gt; # Map image size
<br>&gt; SIZE December 12
<br>&gt; UNITS dd
<br>&gt;
<br>&gt; EXTENT -9.569062 32.926808 6.763360 44.857479
<br>&gt; Fontset &#39;. / Font / fonts.txt&#39;
<br>&gt; SYMBOLSET &#39;. / Symbols / symbols.sym&#39;
<br>&gt; PROJECTION
<br>&gt; &#39;Proj = longlat&#39;
<br>&gt; &#39;Datum = WGS84&#39;
<br>&gt; &#39;No_defs&#39;
<br>&gt; END
<br>&gt;
<br>&gt; # Background color for the map canvas - change as Desired
<br>&gt; IMAGECOLOR 255 255 255
<br>&gt; 95 IMAGEQUALITY
<br>&gt; Png IMAGETYPE
<br>&gt;
<br>&gt; OUTPUTFORMAT
<br>&gt; Png NAME
<br>&gt; DRIVER &#39;GD / PNG&#39;
<br>&gt; MIMETYPES &#39;image / png&#39;
<br>&gt; PC256 IMAGEMODE
<br>&gt; EXTENSION &#39;PNG&#39;
<br>&gt; END
<br>&gt; # Legend
<br>&gt; LEGEND
<br>&gt; IMAGECOLOR 255 255 255
<br>&gt; ON STATUS
<br>&gt; KeySize December 18
<br>&gt; LABEL
<br>&gt; TYPE BITMAP
<br>&gt; MEDIUM SIZE
<br>&gt; COLOR 0 0 89
<br>&gt; END
<br>&gt; END
<br>&gt;
<br>&gt; # Web interface definition. Only the template parameter
<br>&gt; # Is required to display a map. See MapServer documentation
<br>&gt; WEB
<br>&gt; # Set to the path ImagePath WHERE Should MapServer
<br>&gt; ITS # write output.
<br>&gt; ImagePath &#39;/ tmp /&#39;
<br>&gt;
<br>&gt; # Set ImageURL to the url points to ImagePath That
<br>&gt; # As defined in your Web server configuration
<br>&gt; ImageURL &#39;/ tmp /&#39;
<br>&gt;
<br>&gt; # WMS server settings
<br>&gt; METADATA
<br>&gt; &#39;Ows_title&#39; &#39;Project Cat&#39;
<br>&gt; &#39;Ows_onlineresource&#39;
<br>&gt; &#39;<a href="http://localhost/cgi-bin/mapserv.exe?map=C:/Users/Francesc/Documents/Projectes_wgs84_v6.map&#39;" rel="nofollow" link="external" target="_blank">http://localhost/cgi-bin/mapserv.exe?map=C:/Users/Francesc/Documents/Projectes_wgs84_v6.map&#39;</a></div>
&gt; &#39;Ows_srs&#39; &#39;EPSG: 4326&#39;
<div class='shrinkable-quote'><br>&gt; END
<br>&gt;
<br>&gt; # Scale Range at Which Will Operate web interface
<br>&gt; # Template and header / footer settings
<br>&gt; # Only the template parameter is required to display a map. See MapServer
<br>&gt; documentation
<br>&gt; TEMPLATE &#39;fooOnlyForWMSGetFeatureInfo&#39;
<br>&gt; END
<br>&gt;
<br>&gt; LAYER
<br>&gt; NAME &#39;Provincias_wgs84&#39;
<br>&gt; TYPE POLYGON
<br>&gt; DUMP true
<br>&gt; TEMPLATE fooOnlyForWMSGetFeatureInfo
<br>&gt; EXTENT -9.569062 32.926808 6.763360 44.857479
<br>&gt; DATA &#39;C: / Users/Francesc/Documents/SHP/Provincias_wgs84.shp&#39;
<br>&gt; METADATA
<br>&gt; &#39;Ows_title&#39; &#39;Provincias_wgs84&#39;
<br>&gt; END
<br>&gt; STATUS OFF
<br>&gt; TRANSPARENCY 100
<br>&gt; PROJECTION
<br>&gt; &#39;Proj = longlat&#39;
<br>&gt; &#39;Datum = WGS84&#39;
<br>&gt; &#39;No_defs&#39;
<br>&gt; END
<br>&gt; CLASS
<br>&gt; NAME &#39;Provincias_wgs84&#39;
<br>&gt; STYLE
<br>&gt; WIDTH 0.35
<br>&gt; OUTLINECOLOR 0 0 0
<br>&gt; END
<br>&gt; END
<br>&gt; END
<br>&gt;
<br>&gt; LAYER
<br>&gt; NAME &#39;Projectes_UTM31_wgs84&#39;
<br>&gt; TYPE POINT
<br>&gt; DUMP true
<br>&gt; TEMPLATE fooOnlyForWMSGetFeatureInfo
<br>&gt; EXTENT -9.569062 32.926808 6.763360 44.857479
<br>&gt; DATA &#39;C: / Users/Francesc/Documents/SHP/Projectes_UTM31_wgs84.shp&#39;
<br>&gt; METADATA
<br>&gt; &#39;Ows_title&#39; &#39;Projectes_UTM31_wgs84&#39;
<br>&gt; END
<br>&gt; STATUS OFF
<br>&gt; TRANSPARENCY 100
<br>&gt; PROJECTION
<br>&gt; &#39;Proj = longlat&#39;
<br>&gt; &#39;Datum = WGS84&#39;
<br>&gt; &#39;No_defs&#39;
<br>&gt; END
<br>&gt; CLASS
<br>&gt; NAME &#39;Projectes_UTM31_wgs84&#39;
<br>&gt; STYLE
<br>&gt; SYMBOL &quot;circle&quot;
<br>&gt; SIZE 7.0
<br>&gt; OUTLINECOLOR 0 0 0
<br>&gt; COLOR 103 132 169
<br>&gt; END
<br>&gt; END
<br>&gt; END
<br>&gt;
<br>&gt; END
<br>&gt;
<br>&gt;
<br>&gt; thank you!
<br>&gt;
<br>&gt; --
<br>&gt; View this message in context: <a href="http://osgeo-org.1560.n6.nabble.com/getSymbol-Symbol-definition-error-tp4340534p4340534.html" rel="nofollow" link="external" target="_blank">http://osgeo-org.1560.n6.nabble.com/getSymbol-Symbol-definition-error-tp4340534p4340534.html</a></div>
&gt; Sent from the Mapserver - User mailing list archive at Nabble.com.
<br>&gt; _______________________________________________
<br>&gt; mapserver-users mailing list
<br></div></div>&gt; <a href="http://user/SendEmail.jtp?type=node&amp;node=4340552&amp;i=0" rel="nofollow" link="external" target="_blank">[hidden email]</a>
<br>&gt; <a href="http://lists.osgeo.org/mailman/listinfo/mapserver-users" rel="nofollow" link="external" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a><br>&gt;
</div><div class="im"><br>-- 
<br>Håvard Tveite
<br>Department of Mathematical Sciences and Technology, UMB
<br>Drøbakveien 31, POBox 5003, N-1432 Ås, NORWAY
<br>Phone: +47 64965483 Fax: +47 64965401 <a href="http://www.umb.no/imt/" rel="nofollow" link="external" target="_blank">http://www.umb.no/imt/</a><br>_______________________________________________
<br>mapserver-users mailing list
<br></div><a href="http://user/SendEmail.jtp?type=node&amp;node=4340552&amp;i=1" rel="nofollow" link="external" target="_blank">[hidden email]</a>
<br><a href="http://lists.osgeo.org/mailman/listinfo/mapserver-users" rel="nofollow" link="external" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a><br>
        
        <br>
        <br>
        <hr noshade size="1" color="#cccccc">
        <div style="color:#444;font:12px tahoma,geneva,helvetica,arial,sans-serif">
                <div style="font-weight:bold">If you reply to this email, your message will be added to the discussion below:</div>
                <a href="http://osgeo-org.1560.n6.nabble.com/getSymbol-Symbol-definition-error-tp4340534p4340552.html" target="_blank" rel="nofollow" link="external">http://osgeo-org.1560.n6.nabble.com/getSymbol-Symbol-definition-error-tp4340534p4340552.html</a>
        </div>
        <div style="color:#666;font:11px tahoma,geneva,helvetica,arial,sans-serif;margin-top:.4em;line-height:1.5em">
                
                To unsubscribe from getSymbol (): Symbol definition error., <a href="" target="_blank" rel="nofollow" link="external">click here</a>.<br>

                <a href="http://osgeo-org.1560.n6.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&amp;id=instant_html%21nabble%3Aemail.naml&amp;base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.InstantMailNamespace&amp;breadcrumbs=instant+emails%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml" rel="nofollow" style="font:9px serif" target="_blank" link="external">NAML</a>
        </div></blockquote></div><br><br clear="all"><div><br></div>-- <br><a href="http://kikocanas.blogspot.com" target="_blank" rel="nofollow" link="external">http://kikocanas.blogspot.com</a><br>
</div></div>

        
<br/><hr align="left" width="300" />
View this message in context: <a href="http://osgeo-org.1560.n6.nabble.com/getSymbol-Symbol-definition-error-tp4340534p4340556.html">Re: getSymbol (): Symbol definition error.</a><br/>
Sent from the <a href="http://osgeo-org.1560.n6.nabble.com/Mapserver-User-f4226646.html">Mapserver - User mailing list archive</a> at Nabble.com.<br/>