Quantcast

getSymbol (): Symbol definition error.

classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

getSymbol (): Symbol definition error.

Francesc Cañas
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!
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: getSymbol (): Symbol definition error.

Havard Tveite
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://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://lists.osgeo.org/mailman/listinfo/mapserver-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: getSymbol (): Symbol definition error.

Francesc Cañas
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] <[hidden email]>
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://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://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.
NAML



--
http://kikocanas.blogspot.com
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: getSymbol (): Symbol definition error.

Smith, Michael ERDC-CRREL-NH
In reply to this post by Francesc Cañas
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" <[hidden email]> 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
>[hidden email]
>http://lists.osgeo.org/mailman/listinfo/mapserver-users

_______________________________________________
mapserver-users mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/mapserver-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: getSymbol (): Symbol definition error.

jmckenna
Administrator
On 12-01-26 9:43 AM, Smith, Michael ERDC-CRREL-NH wrote:
> 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 is right: your MS4W 3.0.1 contains MapServer 5.6.6, whereas your
MS4W 3.0.3 contains MapServer 6.0.1

As an aside, with the latest MS4W (3.0.4-beta1) you can get both
versions through the commandline:


 > mapserv -v

MapServer version 6.1-dev (MS4W 3.0.4) OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG
OUTPUT=KML SUPPOR
TS=PROJ SUPPORTS=AGG SUPPORTS=CAIRO SUPPORTS=FREETYPE SUPPORTS=ICONV
SUPPORTS=FRIBIDI SUPP
ORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER
SUPPORTS=WFS_CLIENT SUPPORTS=WCS_S
ERVER SUPPORTS=SOS_SERVER SUPPORTS=FASTCGI SUPPORTS=THREADS
SUPPORTS=GEOS INPUT=JPEG INPUT
=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE



-jeff




--
Jeff McKenna
MapServer Consulting and Training Services
http://www.gatewaygeomatics.com/


_______________________________________________
mapserver-users mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/mapserver-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: getSymbol (): Symbol definition error.

Francesc Cañas

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


Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: getSymbol (): Symbol definition error.

Rahkonen Jukka  (Tike)
Hi,

I may remember wrong but it may be that the template file must really exist and it can be otherwise empty but it must contain this magic string in the first line.
<!-- MapServer Template -->

-Jukka Rahkonen-

Francesc Cañas wrote:

>
>
> 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/Do
cuments/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-definitio
> n-error-tp4340534p4342552.html
> Sent from the Mapserver - User mailing list archive at Nabble.com.
> _______________________________________________
> mapserver-users mailing list
> [hidden email]
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
> _______________________________________________
mapserver-users mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/mapserver-users
Loading...