FONTSET problem on mac os x - empty rectangles in the image
Stephen Woodbridge
woodbri at SWOODBRIDGE.COM
Mon Oct 15 20:33:40 PDT 2007
Is this a transparent overlay layer? is IMAGECOLOR 0 0 0? if so then
that color is transparent and you leters are also transparent. If that
is the case change your label COLOR 1 1 1 and it should fix the problem.
-Steve
Webb Sprague wrote:
> Hi again
>
> I am trying to get labels based on a the "name" field in a postgis
> table (of GNIS placenames). Everything works great (the overlay, the
> triangle symbol, etc), but in the image, I get empty boxes where the
> letters should be (though I get a one-to-one box to letter). If
> anyone can help, I would sure appreciate it. (I am running a generic
> mapserver from installed by fink.)
>
> Here is the view definition in sql:
>
> SELECT placenames.gid AS oid, placenames.name, placenames.desig,
> placenames.elev, placenames.the_geom
> FROM placenames
> WHERE placenames.desig::text = 'airport'::text
> ORDER BY placenames.gid;
>
> Here is the my font file (yes, the files do exist):
>
> MAPSCRIPT[2]$ cat fonts.list
> arial /Library/Fonts/ArialHB.ttf
> arial2 /Library/Fonts/Arial
> MAPSCRIPT[2]$
>
> Here is the layer in my mapfile:
>
> LAYER
> NAME "airports"
> CONNECTIONTYPE postgis
> CONNECTION "user=wsprague dbname=or_gis host=localhost"
> DATA "the_geom from airports_view"
> STATUS DEFAULT
> TYPE POINT
>
> LABELITEM "name"
> LABELCACHE ON
>
> CLASS
> NAME "LocationSymbol"
> SYMBOL "triangle"
> COLOR 100 100 82
>
> LABEL
> # OUTLINECOLOR 255 255 255
> # MINDISTANCE 200 # Label only at close range
> COLOR 0 0 0
> TYPE TRUETYPE
> SIZE 12
> FONT "arial"
> POSITION cc
> ANGLE AUTO
> PARTIALS FALSE
> END #end label
>
> END
> END
More information about the MapServer-users
mailing list