Image Server, Shape Layers and Image bounds problem

From: Paul Chisholm <paulch@bigpond.com>
Date: Tue Apr 09 2002 - 01:37:44 EDT

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

--
[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 01:41:09 2002

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