How to dump directly to the web browser

Sean Gillies sgillies at FRII.COM
Mon Dec 13 09:17:34 EST 2004


On Dec 13, 2004, at 4:13 AM, Jose Luis Gonzalez wrote:

> --0-341181828-1102936437=:31144
> Content-Type: text/plain; charset=iso-8859-1
> Content-Transfer-Encoding: 8bit
>
> Hello to everyone
>
> I am using Mapserver 4.4 and java (servlets), and I have used the
> example that the instalation program gives me. I't this one:
>
>                 mapObj map = new mapObj("test_nofontset.map");
>                 map.getImagecolor().setRGB(153, 153, 204);
>                 styleObj st = map.getLayer(1).getClass(0).getStyle(0);
>                 st.getColor().setHex("#000000");
>                 imageObj img = map.draw();
>                 System.out.println("The map will be drawn to:
> result5.png");
>                 img.save("result5.png", map);
>
> But what I want to do is to draw directly to the web browser, not to
> save the file.
>
> Could someone tell me how to do it?
>
> Thank you
>
> Jose Luis
>

Jose,

This feature exists for the Python mapscript module but not yet
for Java because I am not a Java user and have not been able to
justify the time to do it.

I believe there is someone working on it and it may be ready
for a 4.4.1 or 4.4.2 release.

cheers,
Sean

--
Sean Gillies
sgillies at frii dot com
http://users.frii.com/sgillies



More information about the mapserver-users mailing list