Paul,
When the shape layer is missing, is it even being asked for any
graphics? You could set a -Ddebug.shape command line to see if it is
getting pinged. Actually, you could use -Ddebug.imageserver for better
messages about what the image server is doing with what layers.
I haven't seen this behavior. The ImageServer should be calling the
layer's ProjectionPainter method (renderDataForProjection()), so the
layer shouldn't be reacting differently to any one projection over
another - i.e. what you are expecting to happen should be happening.
- Don
On Tuesday, April 9, 2002, at 01:37 AM, Paul Chisholm wrote:
> Hi,
>
> I have a server that uses OpenMap to generate JPEG files and it is
> exhibiting some strange behaviour. The images are created via the
> ImageServer class. Two different types of image are generated, one
> essentially a large scale version of the other. Both consist of a shape
> layer and a few other (non Shape) layers. What happens is:
>
> - request first image, ok
> - request second image, shape layer missing
> - request first image, shape layer missing
> - request second image, shape layer missing
> - request second image, ok
> - request second image, ok
> - request first image, shape layer missing
> etc
>
> The pattern is that each time I change between maps the shape layer is
> missing from the image. However, a subsequent request for the same map
> includes the shape layer.
>
> I experimented with various parameters and eventually found that the
> cause of the missing shape layer is due to the change in dimensions of
> the image. That is, when there is a change to either <width> or
> <height> in the following (wrt the previous request) the shape layer is
> missing from the image (95% of the time).
>
> server.setLayers(<layers>);
> Mercator proj = new Mercator(<centre>, <scale>, <width>,
> <height>);
> byte[] bytes = server.getMapImage(proj);
>
> Changing <centre>, <scale> or <layers> causes no problem.
>
> I am using OpenMap 4.4.2 on Windows NT 4 (SP6). Anyone know of any
> reason why this behaviour occurs, or how I might be configuring
> something incorrectly to induce the behaviour.
>
> Thanks,
> Paul Chisholm
>
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
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 Tue Apr 9 10:53:45 2002
This archive was generated by hypermail 2.1.8 : Thu May 12 2005 - 07:18:32 EDT