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

Francesc Cañas kikocanas at gmail.com
Thu Jan 26 07:24:34 EST 2012


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.

But still doesn't work, what means: msSaveImage(): Unable to access file.
Failed to create output file?

Thanks a lot!


2012/1/26 Havard Tveite [via OSGeo.org] <
ml-node+s1560n4340552h12 at n6.nabble.com>

> The type cartoline for symbols is no longer used.
> Dashed lines and styling are specified in LAYER->CLASS->STYLE.
>
> Some examples:
>
> http://mapserver.org/mapfile/symbology/construction.html#use-of-the-pattern-and-gap-parameters
>
> Håvard
>
> On 1/26/2012 1:03 PM, Francesc Cañas 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/Projectes_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-tp4340534p4340534.html
> > Sent from the Mapserver - User mailing list archive at Nabble.com.
> > _______________________________________________
> > mapserver-users mailing list
> > [hidden email] <http://user/SendEmail.jtp?type=node&node=4340552&i=0>
> > http://lists.osgeo.org/mailman/listinfo/mapserver-users
> >
>
> --
> Håvard Tveite
> Department of Mathematical Sciences and Technology, UMB
> Drøbakveien 31, POBox 5003, N-1432 Ås, NORWAY
> Phone: +47 64965483 Fax: +47 64965401 http://www.umb.no/imt/
> _______________________________________________
> mapserver-users mailing list
> [hidden email] <http://user/SendEmail.jtp?type=node&node=4340552&i=1>
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
>
> ------------------------------
>  If you reply to this email, your message will be added to the discussion
> below:
>
> http://osgeo-org.1560.n6.nabble.com/getSymbol-Symbol-definition-error-tp4340534p4340552.html
>  To unsubscribe from getSymbol (): Symbol definition error., click here<http://osgeo-org.1560.n6.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=4340534&code=a2lrb2NhbmFzQGdtYWlsLmNvbXw0MzQwNTM0fC0xMDU3ODIxNDYx>
> .
> NAML<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>
>



-- 
http://kikocanas.blogspot.com


--
View this message in context: http://osgeo-org.1560.n6.nabble.com/getSymbol-Symbol-definition-error-tp4340534p4340556.html
Sent from the Mapserver - User mailing list archive at Nabble.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20120126/fc265b4c/attachment-0001.html


More information about the mapserver-users mailing list