[mapserver-users] Truetype symbols won't render in AGG png?
thomas bonfort
thomas.bonfort at gmail.com
Fri Apr 18 07:46:24 PDT 2008
ok, the culprit is CHARACTER "o"
try replacing that with
CHARACTER 'o' .
... or wait for the 5.2 ms4w binaries, as this bug is fixed there
cheers,
thomas
On Fri, Apr 18, 2008 at 4:05 PM, Barend Kobben <kobben at itc.nl> wrote:
> > can you include your symbol and layer definition please?
>
> Sure, the .map file (with only the layer for these symbols) is at the bottom
> of this message.
>
>
> > what version are you using? ms4w , ... ?
> From the Getcapabilities output:
> MapServer version 5.0.2 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP
> OUTPUT=PDF OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG
> SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT
> SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER
> SUPPORTS=SOS_SERVER SUPPORTS=FASTCGI SUPPORTS=THREADS SUPPORTS=GEOS
> INPUT=JPEG INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE
>
> It's the MS binaries as included in ms4w, but used as a CGI 'behind' IIS 6,
> running on Windows Server 2003 SP 2.
>
>
> > do you have the possibility
> > of using a locally compiled version from the development branch (ie
> > trunk)?
> No.
>
> --
>
> Barend Köbben
> International Institute for Geo-Information
> Sciences and Earth Observation (ITC)
> PO Box 6
> 7500AA Enschede, The Netherlands
> +31 (0)53 4874253
>
>
>
>
> #####################################
>
> MAP
> NAME Thailand
>
>
> IMAGETYPE PNG24 ## employ AGG to for anti-aliassing
> OUTPUTFORMAT
> NAME 'AGG'
> DRIVER AGG/PNG
> MIMETYPE "image/png"
> IMAGEMODE RGB
> EXTENSION "png"
> END
>
> PROJECTION
> "init=epsg:4326"
> END
>
> FONTSET "fonts/fonts.list"
>
> LEGEND
> KEYSIZE 15 10
> LABEL
> TYPE TRUETYPE
> FONT Arial
> SIZE 9
> COLOR 0 0 0
> END
> STATUS EMBED
> POSITION UR
> END
>
> EXTENT 97.35 5.61 105.64 20.47
>
> WEB
> IMAGEPATH "C:/tmp/ms_tmp/"
> IMAGEURL "/ms_tmp/"
> METADATA
> "map" "D:/Inetpub/geoserver/mapserver/config.map"
> "ows_schemas_location" "http://schemas.opengeospatial.net"
> "ows_title" "Sample WMS"
> "ows_abstract" "Sample WMS. Enjoy!"
> "ows_keywordlist" "Thailand,WMS,ITC"
> "ows_onlineresource"
>
> "http://geoserver.itc.nl/cgi-bin/mapserv.exe?map=D:/Inetpub/geoserver/mapser
> ver/config.map&"
> "wms_srs" "EPSG:4326 EPSG:4240 EPSG:24047"
> "wms_feature_info_mime_type" "application/vnd.ogc.gml"
> "wms_feature_info_mime_type" "text/plain"
> "wms_feature_info_mime_type" "text/html"
> "wms_server_version" "1.1.1"
> "wms_formatlist" "image/png,image/gif,image/wbmp,image/jpeg"
> "wms_format" "image/png"
> END
> END
>
> SYMBOL
> NAME "Airport"
> TYPE TRUETYPE
> FONT ESRI_Default_Marker
> FILLED true
> ANTIALIAS true
> CHARACTER "o"
> END
>
> LAYER
> NAME airports
> TYPE POINT
> STATUS OFF
> DATA data/airports
> METADATA
> "wms_title" "airports"
> END
> PROJECTION
> "init=epsg:4326"
> END
>
> LABELITEM "NameEnglis"
> TOLERANCE 8
> TOLERANCEUNITS inches
> CLASS
> NAME "airports"
> TEMPLATE "templates/airports_query.html"
> STYLE
> SYMBOL "airport"
> SIZE 22
> COLOR 0 0 0
> END
> LABEL
> COLOR 0 0 0
> TYPE TRUETYPE
> FONT arial
> MINSIZE 6
> MAXSIZE 12
> POSITION AUTO
> PARTIALS FALSE
> MINDISTANCE 300
> BUFFER 4
> END
> END
> END
>
> END
> #####################################
>
>
>
> International Institute for Geo-Information Science and Earth Observation (ITC)
> Chamber of Commerce: 410 27 560
>
> E-mail disclaimer
> The information in this e-mail, including any attachments, is intended for the addressee only. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or action in relation to the content of this information is strictly prohibited. If you have received this e-mail by mistake, please delete the message and any attachment and inform the sender by return e-mail. ITC accepts no liability for any error or omission in the message content or for damage of any kind that may arise as a result of e-mail transmission.
>
More information about the MapServer-users
mailing list