Re: [OpenMap Users] Store image

From: Don Dietrick <dietrick@bbn.com>
Date: Fri Mar 05 2004 - 09:14:02 EST

I think I've finally figured out what you are asking for.

If you run the com.bbn.openmap.image.ImageServer on your
openmap.properties file used for your applet, it will produce a image
file of the settings you have in the openmap.properties. You'll have
to set up some additional properties in the openmap.properties file to
let the ImageServer know what kind of image to create:

layers=graticule shapePolitical (or whatever layers you want), as in
the openmap.layers property)
formatters=jpeg
jpeg.class=com.bbn.openmap.image.SunJPEGFormatter

The projection properties (Scale, Projection, Height, Width, Latitude,
Longitude) will dictate where the map image gets created.

I think you want to create a timer process where an ImageServer gets
kicked off every so often to create a image showing the current status
of your layers, overwriting the same image file so the latest version
is always available at the same URL.

- Don

On Mar 5, 2004, at 4:23 AM, Trainee AES, (IE10) wrote:

> Hi,
> everyone, i want to store the applet image by creating an object of
> the
> class, how to write this class so that whenever i create object i
> should get
> the current map design in .jpeg/.gif file.
>
> Thanks.
> --
> [To unsubscribe to this list send an email to "majdart@bbn.com"
> with the following text in the BODY of the message "unsubscribe
> openmap-users"]
>

--
[To unsubscribe to this list send an email to "majdart@bbn.com"
with the following text in the BODY of the message "unsubscribe openmap-users"]
Received on Fri Mar 5 09:14:29 2004

This archive was generated by hypermail 2.1.8 : Thu May 12 2005 - 07:18:38 EDT