[Chameleon] Bug when publising truetype symbol

Bart van den Eijnden bartvde at xs4all.nl
Thu Aug 25 13:48:49 EDT 2005


Which Mapscript version are you running?

Bart

On Thu, 25 Aug 2005 18:29:19 +0200, Pierre Racine  
<racine_pierre at hotmail.com> wrote:

> Hi,
>
> Publishing this map file with Chameleon:
> __________________________________________
> MAP
>     EXTENT -100 -100 100 100 #Coor latlong world
>     SIZE 500 500
>     FONTSET "D:\ms4w\fonts\fonts.txt"
>     UNITS dd
>
>
> SYMBOL
>   NAME "natcap"
>   FONT arial
>   TYPE TRUETYPE
>   FILLED true
>   ANTIALIAS true
>   CHARACTER "x"
> END
>
>     PROJECTION
>         "init=epsg:4269"
>     END
>
>     LAYER
>         NAME smallpointslayer
>         STATUS DEFAULT
>         TYPE point
>
>         PROJECTION
>             "init=epsg:4269"
>         END
>
>         FEATURE
>             POINTS 1 1 END
>         END
>
>         CLASS
>             MINSIZE 1
>             STYLE
>                 SYMBOL "natcap"
>                 #SYMBOL "circle"
>                 SIZE 12
>                 COLOR 0 0 0
>                 OUTLINECOLOR 0 0 0
>             END
>         END
>     END
>
> END
> ______________________________________________
>
> The URL is:
>
> http://127.0.0.1/chameleon/samples/sample_basic_plainbuttons.phtml
>
> I get the following result:
> ________________________________________________________
> Warning: [MapServer Error]: getSymbol(): Parsing error near (8):(line  
> 27) in  
> D:\ms4w\apps\chameleon\htdocs\widgets\MapDHTML\MapDHTML.widget.php on  
> line 176
>
> Warning: Failed to open map file  
> d:/ms4w/tmp/sess_430df0d764d6f//mapDHTML_adjust.map in  
> D:\ms4w\apps\chameleon\htdocs\widgets\MapDHTML\MapDHTML.widget.php on  
> line 176
>
> Fatal error: [MapServer Error]: setExtent(): Given map extent is  
> invalid. in  
> D:\ms4w\apps\chameleon\htdocs\widgets\MapDHTML\MapDHTML.widget.php on  
> line 178
> __________________________________________________________
>
> The temporary map file generated contains the "POSITION 8" directive in  
> the symbol definition which I guess is wrong. Here is the temporary map:
>
> MAP
>   EXTENT -100 -100 100 100
>   FONTSET "D:\ms4w\fonts\fonts.txt"
>   IMAGECOLOR 255 255 255
>   IMAGETYPE gif
>   SIZE 400 300
>   STATUS ON
>   UNITS DD
>   NAME "MS"
>
>   OUTPUTFORMAT
>     NAME gif
>     MIMETYPE image/gif
>     DRIVER GD/GIF
>     EXTENSION gif
>     IMAGEMODE PC256
>     TRANSPARENT FALSE
>   END
>
>   SYMBOL
>     NAME "natcap"
>     TYPE TRUETYPE
>     ANTIALIAS TRUE
>     CHARACTER x
>     GAP 0
>     FONT arial
>     POSITION 8
>   END
>
>   PROJECTION
>     "init=epsg:4269"
>   END
>   LEGEND
>       IMAGECOLOR 255 255 255
>     KEYSIZE 20 10
>     KEYSPACING 5 5
>     LABEL
>       SIZE MEDIUM
>       TYPE BITMAP
>       BUFFER 0
>       COLOR 0 0 0
>       FORCE FALSE
>       MINDISTANCE -1
>       MINFEATURESIZE -1
>       OFFSET 0 0
>       PARTIALS TRUE
>       POSITION CC
>     END
>     POSITION LL
>     STATUS OFF
>   END
>
>   QUERYMAP
>       COLOR 255 255 0
>     SIZE -1 -1
>     STATUS OFF
>     STYLE HILITE
>   END
>
>   REFERENCE
>     COLOR -1 -1 -1
>     EXTENT -2.59456e+006 -712631 3.46736e+006 3.84e+006
>     IMAGE "D:\ms4w\apps\chameleon\samples\htdocs/images/keymap.png"
>     OUTLINECOLOR 255 0 0
>     SIZE 100 75
>     STATUS OFF
>       MARKER 0
>       MARKERSIZE 0
>       MINBOXSIZE 3
>       MAXBOXSIZE 0
>   END
>
>   SCALEBAR
>       COLOR 0 0 0
>     IMAGECOLOR 255 255 255
>     INTERVALS 4
>     LABEL
>       SIZE MEDIUM
>       TYPE BITMAP
>       BUFFER 0
>       COLOR 0 0 0
>       FORCE FALSE
>       MINDISTANCE -1
>       MINFEATURESIZE -1
>       OFFSET 0 0
>       PARTIALS TRUE
>     END
>     POSITION LL
>     SIZE 200 3
>     STATUS OFF
>     STYLE 0
>     UNITS MILES
>   END
>
>   WEB
>     IMAGEPATH "d:/ms4w/tmp/ms_tmp/"
>     IMAGEURL "/ms_tmp/"
>       METADATA
>       END
>     QUERYFORMAT text/html
>   END
>
>   LAYER
>       METADATA
>       END
>     NAME "smallpointslayer"
>     PROJECTION
>       "init=epsg:4269"
>     END
>     SIZEUNITS PIXELS
>     STATUS DEFAULT
>     TOLERANCE 0
>     TOLERANCEUNITS PIXELS
>     TYPE POINT
>     UNITS METERS
>     CLASS
>       METADATA
>       END
>       STYLE
>           COLOR 0 0 0
>         MAXSIZE 500
>         MINSIZE 1
>           OUTLINECOLOR 0 0 0
>         SIZE 12
>         SYMBOL "natcap"
>       END
>     END
>     FEATURE
>       POINTS
>         1 1
>       END
>     END
>   END
>
> END
>
> Pierre Racine
>
>
> _______________________________________________
> Chameleon mailing list
> Chameleon at lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/chameleon
>



-- 
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/


More information about the Chameleon mailing list