[mapserver-users] pixmap legend
Fons Arts
f.arts at gisarts.nl
Tue Nov 19 11:40:55 PST 2013
Hi Till,
Thanks for your quick response.
The path is not the problem. I've tried several variations without any
success.
I debugged in the layer section but that doesn't give any result.
"REQUEST=GetLegendGraphic&mode=legendicon&icon=bag_adres" gives a lovely
with rectangle.
Another idea?
thanks
gr Fons
------------------------------------------------------------------------
Hi Fons,
it looks like mapserver does not find your pixmap-file.
You know that the path
"/pixmap/..."
means, that mapserver looks for this file in the servers root directory?
If the pixmap is stored relative to the mapfile, remove the leading "/"
in your path:
"pixmap/...."
Till
On 19-11-2013 14:19, Fons Arts wrote:
> Hi list,
>
> I trying to overrule a hardcoded legendicon Az (annotation) with a
> pixmap in the class section.
>
>
>
> map file
> LEGEND
> STATUS on
> KEYSIZE 26 13
> END
>
> LAYER
> CONNECTIONTYPE postgis
> NAME "bag_adres"
> GROUP "bag_adres"
> CONNECTION
> *************************************************************
> DATA "geom from public.bag_adres USING UNIQUE oid"
> TYPE ANNOTATION
> TOLERANCE 10
> MAXSCALE 3500
> MINSCALE 0
> STATUS ON
> LABELITEM "huisnummers"
> TEMPLATE "blank.html"
> CLASS
> NAME 'Huisnummers'
> * KEYIMAGE "/pixmap/adres.png"*
> LABEL
> COLOR 0 0 0
> SHADOWCOLOR 255 255 255
> TYPE truetype
> FONT arialvet
> SIZE 8
> POSITION CC
> PARTIALS FALSE
> ANTIALIAS TRUE
> OFFSET 0 0
> END
> END
> END
>
> The result is a white image.
>
>
>
> thanks in advance.
> gr Fons
--
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20131119/93655ee8/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/png
Size: 585 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20131119/93655ee8/attachment.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/png
Size: 522 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20131119/93655ee8/attachment-0001.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: logo.jpg
Type: image/jpeg
Size: 19036 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20131119/93655ee8/attachment.jpg>
More information about the MapServer-users
mailing list