Re: ImageServer update projection problem

From: Don Dietrick <dietrick@bbn.com>
Date: Wed Sep 11 2002 - 10:35:26 EDT

Hi Martijn,

Use ImageServer.createImage() instead. The getMapImage() stuff tried
to let the layers launch their swing workers, and track when they
finished, but that proves unreliable. The createImage() code uses the
ProjectionPainter interface that the Layer implements, and calls them
all serially.

The getMapImage() code is commented out in 4.5.3.

- Don

On Wednesday, September 11, 2002, at 04:48 AM, MARTIJN VAN DER PAUW
wrote:

> Hello,
>
> I have a problem using the ImageServer. The imageserver runs on the
> server. Multiple users ask the imageserver for images with all
> different Projections. The layyers differ as well.
>
> The problem is, the following.
>
> When a user asks the imageserver for an image with exactly the same
> projection as the previous projection, everything goes ok.
>
> When an image with a different Projection is asked, an image is
> returned with all layers updated except for a locationlayer where I've
> put some custom info in ( OMgrid as a OMGraphic)
>
> I've tried methods on the layer like doPrepare() and enable and I 've
> tried methods on the Imageserver but nothing seems to work. The only
> thing that will work is to do a ImageServer.getMapImage(Projection)
> twice!! after each other. This is exactly what I don 't want to do at
> this point while this takes about 1 second of expensive time at this
> point. Could someone tell me what I should do to do it on another > way.
>
> Regards,
> Martijn
>
>
> Martijn van der Pauw, internetontwikkelaar.
> Meteo Consult
> martijn@weer.nl
> tel: 0317 - 399800
> fax: 0317 - 423164
> http://www.weer.nl
>
> --
> [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"]
>
>

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Don Dietrick, BBN Technologies, dietrick@bbn.com
10 Moulton Street, Cambridge, MA 02138
617-873-3031 [fax]-2794
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

--
[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 Wed Sep 11 10:40:33 2002

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