[Mapserver-users] generate maps in WBMP (for WAP)
Daniel Morissette
morissette at dmsolutions.ca
Thu Jul 10 12:39:57 PDT 2003
Unfortunately I don't think I can help much with your specific problem.
All I can tell you is that we have produced WBMPs from PHP MapScript
using MapServer 4.0 before so I know it _should_ work but I have no clue
why it doesn't work for you.
Daniel
Pedro Salazar wrote:
>
> > Yes it's possible. GD supports WBMP so it should just be a matter of
> > setting "IMAGETYPE WBMP" in your mapfile. Note that you should take
> > into consideration the fact that WBMP images can have only 2 colors as
> > you design your mapfile.
>
> I'm using mapscript. If I use:
>
> print $query->header('image/vnd.wap.wbmp');
> $img->saveImage($tmp_file,$mapscript::MS_WBMP, $map->{transparent},
> $map->{interlace}, 0);
> system("cat $tmp_file");
>
> Shouldn't this work? ... Well, I have a viewer (wApua for linux) that I
> can see some BMP images converted to WBMP, but the WBMP files generated
> by mapserver I can't see on my viewer!!
>
> BTW, I used 'image/png' and MS_PNG for PNG images, so I just replace
> this values with the WBMP values above.
>
> thanks,
> Pedro Salazar
> --
> PS
> pedro-b-salazar at ptinovacao.pt
> PGP:0E129E31D803BC61
>
More information about the MapServer-users
mailing list