FONTSET problem on mac os x - empty rectangles in the image

Webb Sprague webb.sprague at GMAIL.COM
Mon Oct 15 20:53:33 PDT 2007


I am attaching the file, but this didn't fix the problem.  You can see
the empty boxes.

Thx, though ;)

-W

On 10/15/07, Stephen Woodbridge <woodbri at swoodbridge.com> wrote:
> 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
>
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: foo.png
Type: image/png
Size: 28089 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20071015/a1924749/attachment.png>


More information about the MapServer-users mailing list