transparent symbols

Rodrigo Martín LÓPEZ GREGORIO rodrigomlg at GMAIL.COM
Thu Mar 1 10:11:48 EST 2007


Hola nuria, supongo que hablarás español, si no te escribo nuevamente en
inglés.

En mi caso tengo definidos varios símbolos de tipo pixmap pero usando
imágenes gif con transparencia de la siguiente manera:

SYMBOL
  NAME "imgmonasterio"
  TYPE pixmap
  IMAGE "stern.gif"
END

En este caso el archivo stern.gif (nótese que es un archivo GIF, no png como
en tu caso) tendría definida el área transparente en el mismo archivo (con
cualquier software de edición de imágenes no demasiado básico lo podés
hacer).

Y luego, el layer de puntos correspondiente tengo lo siguiente:

LAYER
    ...
    DATA "the_geom from monasterios"
    ...
    TYPE POINT
    ...
    TRANSPARENCY ALPHA
    ....
    CLASS
        NAME "monasterios"
        STYLE
           ANTIALIAS TRUE
           COLOR 0 0 0
           OUTLINECOLOR 0 0 0
           SIZE 15
           SYMBOL "imgmonasterio"
        END
    END
END

Espero que te sirva. Cualquier duda consultá nuevamente. Saludos.

On 3/1/07, Nuria González <nataprivate at hotmail.com> wrote:
>
> Hi,
>
> I set a symbol definition in the .map file:
>
> SYMBOL
>   NAME "imgmonasterio"
>   TYPE PIXMAP
>   IMAGE "stern.png"
>   TRANSPARENT 13
> END
>
> and in the class of the layer (of type point) I set:
> STYLE
>   COLOR 255 255 0
> END
> STYLE
>     SYMBOL "imgmonasterio"
>     COLOR 0 0 0
>     OUTLINECOLOR 0 0 0
> END
>
> but I get the image inside a white rectangle. I try with stern.gif (that
> is
> a transparent image) but I got the same result.
> I try it in a layer of type polygon and it works ok. Then, I don't
> understand how the TRANSPARENT label works. It is only possible for
> polygon
> layers?
>
> Thanks in advance.
>
> _________________________________________________________________
> Descarga gratis la Barra de Herramientas de MSN
>
> http://www.msn.es/usuario/busqueda/barra?XAPID=2031&DI=1055&SU=http%3A//www.hotmail.com&HL=LINKTAG1OPENINGTEXT_MSNBH
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20070301/1addfe5a/attachment.html


More information about the mapserver-users mailing list