Problem: ANGLEITEM and TRANSPARENT

Peter Sykora peter_sykora at GMX.AT
Thu Apr 5 05:43:30 EDT 2007


Hi,
due to the fact that Mapserver is not able to place rotated symbols with transparency, I´ve tried to create different workarounds but still run into problems there.
My idea was to create and rotate the transparent symbols dynamically for every map request with MagickWand (php API for image magick) and save them on the local filesystem. This works fine so far.

Now I thought I could dynamically create new symbols with php Mapscript for all the images I´ve created, but the php API doesn´t show any possibility to set the transparency index. The members and functions of symbol objects are a lot less in the php API than in the language-agnostic API. Does anybody know the reason for that?

The second workaround I thought about was to place the image symbols on the map using the pasteImage() function from the image class to paste the images manually on the map image. The problem is that the php API does not support the creation of new image objects using a file on the system like it is described here: http://mapserver.gis.umn.edu/docs/howto/mapscript_imagery/#creating-a-new-imageobj

Thanks for any hints
Peter
 

-------- Original-Nachricht --------
Datum: Tue, 3 Apr 2007 03:21:01 -0500
Von: Peter Sykora <peter_sykora at GMX.AT>
An: MAPSERVER-USERS at LISTS.UMN.EDU
Betreff: Re: [UMN_MAPSERVER-USERS] Problem: ANGLEITEM and TRANSPARENT

> >I didn't follow the previous posts in this thread, but just in case I
> >thought I'd ask: did you try setting TRANSPARENCY ALPHA in your layer?
> 
> Hi Daniel,
> thanks for your hint, but it had no effect on my results. I think the
> TRANSPARENCY ALPHA is useful to create transparent 24 bit images, but I
> can´t image that it has any relevance with this specific problem when
> images
> are rotated. Again, the transparency works fine when symbols are not
> rotated, so the problem must be somewhere else.
> 
> Peter

-- 
______________________________________________________

Peter Sykora
   A-4040 Linz, Fröhlerweg 45
   Festnetz: +43 732 995435
   Mobil: +43 676 5832583
   mailto: peter_sykora at gmx.at

http://www.carto.net/ps/
http://canyon.carto.net/
http://doris.ooe.gv.at/

"Feel free" - 10 GB Mailbox, 100 FreeSMS/Monat ...
Jetzt GMX TopMail testen: http://www.gmx.net/de/go/topmail



More information about the mapserver-users mailing list