So, when I add the # in the symbol file (.sym), I convert the line in a comment, isn't it? Then, all the cartolines are in some way nulls. <div><br><div>But still doesn'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"><<a href="/user/SendEmail.jtp?type=node&node=4340556&i=0" target="_top" rel="nofollow" link="external">[hidden email]</a>></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->CLASS->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>> Hello, I want to publish a Mapserver layer with OpenLayers but I generated
<br>> the following error when opening it with
<br>> <a href="http://localhost/cgi-bin/mapserv.exe" rel="nofollow" link="external" target="_blank">http://localhost/cgi-bin/mapserv.exe</a><br>>
<br>> The error is:
<br>>
<br>> getSymbol (): Symbol definition error. Error Parsing near (Cartoline) (line
<br>> 26) msOutputFormatValidate (): General error message. Png OUTPUTFORMAT you
<br>> IMAGEMODE RGB / RGBA, Which is not supported for GD drivers.
<br>>
<br>> Indeed reading the mapserver site found that only accepts PC256 GD so I
<br>> changed:
<br>>
<br>> OUTPUTFORMAT
<br>> Png NAME
<br>> DRIVER 'GD / PNG'
<br>> MIMETYPES 'image / png'
<br>> PC256 IMAGEMODE
<br>> EXTENSION 'PNG'
<br>> END
<br>>
<br>> And now the only mistake: getSymbol (): Symbol definition error. Error
<br>> Parsing near (Cartoline) (line 26)
<br>>
<br>> And here if you already know why I can not. The line 26 is this: DRIVER 'GD
<br>> / PNG'
<br>>
<br>> The most curious is that with the beta version 3.0.1 MS4W (the have a
<br>> partner) layer if it can be displayed, but with 3.0.3, which is what I have,
<br>> I get these errors.
<br>>
<br>> I've read in another forum that changing the .sym and add a # in all
<br>> cartoline symbols, it works. I've tried it and then the message error is:
<br>>
<br>> msSaveImage(): Unable to access file. Failed to create output file
<br>> (/tmp/Projectes Cat13275775744636.png).
<br>> I'm getting crazy.
<br>>
<br>>
<br>>
<br>> The. Map is generated with QGIS 1.7.3. Following in the footsteps of all the
<br>> tutorials. The whole code is this:
<br>>
<br>> # Map file created from QGIS project file U: /
<br>> Matthias/00_AUMA_projectes/SIG/Projectes_CAT_wgs.qgs
<br>> # Edit this file to customize for your map interface
<br>> # (Created with MapServer Export plugin PyQgis)
<br>> MAP
<br>> NAME "Projectes Cat"
<br>> # Map image size
<br>> SIZE December 12
<br>> UNITS dd
<br>>
<br>> EXTENT -9.569062 32.926808 6.763360 44.857479
<br>> Fontset '. / Font / fonts.txt'
<br>> SYMBOLSET '. / Symbols / symbols.sym'
<br>> PROJECTION
<br>> 'Proj = longlat'
<br>> 'Datum = WGS84'
<br>> 'No_defs'
<br>> END
<br>>
<br>> # Background color for the map canvas - change as Desired
<br>> IMAGECOLOR 255 255 255
<br>> 95 IMAGEQUALITY
<br>> Png IMAGETYPE
<br>>
<br>> OUTPUTFORMAT
<br>> Png NAME
<br>> DRIVER 'GD / PNG'
<br>> MIMETYPES 'image / png'
<br>> PC256 IMAGEMODE
<br>> EXTENSION 'PNG'
<br>> END
<br>> # Legend
<br>> LEGEND
<br>> IMAGECOLOR 255 255 255
<br>> ON STATUS
<br>> KeySize December 18
<br>> LABEL
<br>> TYPE BITMAP
<br>> MEDIUM SIZE
<br>> COLOR 0 0 89
<br>> END
<br>> END
<br>>
<br>> # Web interface definition. Only the template parameter
<br>> # Is required to display a map. See MapServer documentation
<br>> WEB
<br>> # Set to the path ImagePath WHERE Should MapServer
<br>> ITS # write output.
<br>> ImagePath '/ tmp /'
<br>>
<br>> # Set ImageURL to the url points to ImagePath That
<br>> # As defined in your Web server configuration
<br>> ImageURL '/ tmp /'
<br>>
<br>> # WMS server settings
<br>> METADATA
<br>> 'Ows_title' 'Project Cat'
<br>> 'Ows_onlineresource'
<br>> '<a href="http://localhost/cgi-bin/mapserv.exe?map=C:/Users/Francesc/Documents/Projectes_wgs84_v6.map'" rel="nofollow" link="external" target="_blank">http://localhost/cgi-bin/mapserv.exe?map=C:/Users/Francesc/Documents/Projectes_wgs84_v6.map'</a></div>
> 'Ows_srs' 'EPSG: 4326'
<div class='shrinkable-quote'><br>> END
<br>>
<br>> # Scale Range at Which Will Operate web interface
<br>> # Template and header / footer settings
<br>> # Only the template parameter is required to display a map. See MapServer
<br>> documentation
<br>> TEMPLATE 'fooOnlyForWMSGetFeatureInfo'
<br>> END
<br>>
<br>> LAYER
<br>> NAME 'Provincias_wgs84'
<br>> TYPE POLYGON
<br>> DUMP true
<br>> TEMPLATE fooOnlyForWMSGetFeatureInfo
<br>> EXTENT -9.569062 32.926808 6.763360 44.857479
<br>> DATA 'C: / Users/Francesc/Documents/SHP/Provincias_wgs84.shp'
<br>> METADATA
<br>> 'Ows_title' 'Provincias_wgs84'
<br>> END
<br>> STATUS OFF
<br>> TRANSPARENCY 100
<br>> PROJECTION
<br>> 'Proj = longlat'
<br>> 'Datum = WGS84'
<br>> 'No_defs'
<br>> END
<br>> CLASS
<br>> NAME 'Provincias_wgs84'
<br>> STYLE
<br>> WIDTH 0.35
<br>> OUTLINECOLOR 0 0 0
<br>> END
<br>> END
<br>> END
<br>>
<br>> LAYER
<br>> NAME 'Projectes_UTM31_wgs84'
<br>> TYPE POINT
<br>> DUMP true
<br>> TEMPLATE fooOnlyForWMSGetFeatureInfo
<br>> EXTENT -9.569062 32.926808 6.763360 44.857479
<br>> DATA 'C: / Users/Francesc/Documents/SHP/Projectes_UTM31_wgs84.shp'
<br>> METADATA
<br>> 'Ows_title' 'Projectes_UTM31_wgs84'
<br>> END
<br>> STATUS OFF
<br>> TRANSPARENCY 100
<br>> PROJECTION
<br>> 'Proj = longlat'
<br>> 'Datum = WGS84'
<br>> 'No_defs'
<br>> END
<br>> CLASS
<br>> NAME 'Projectes_UTM31_wgs84'
<br>> STYLE
<br>> SYMBOL "circle"
<br>> SIZE 7.0
<br>> OUTLINECOLOR 0 0 0
<br>> COLOR 103 132 169
<br>> END
<br>> END
<br>> END
<br>>
<br>> END
<br>>
<br>>
<br>> thank you!
<br>>
<br>> --
<br>> 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>
> Sent from the Mapserver - User mailing list archive at Nabble.com.
<br>> _______________________________________________
<br>> mapserver-users mailing list
<br></div></div>> <a href="http://user/SendEmail.jtp?type=node&node=4340552&i=0" 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>>
</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&node=4340552&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&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.InstantMailNamespace&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/>