pre-release version 0.9 (September, 2001)
© Pedro Pereira Gonçalves (pedro@inovagis.org)
All the WMS in GIServer work as cascanding requests that are launch in an equal number to the layers requested and all its parameters are sent to the different cascanding requests. For example, when requesting more than one layer the FORMAT parameter is applied to all the layers requested. This means that for the : LAYERS=TERRA.PATHFINDER,TERRA.BORDERS& BBOX=-10,32,20,47& WIDTH=200&HEIGHT=100& FORMAT=JPEG Both cascanding layers (TERRA.PATHFINDER,TERRA.BORDERS) will be requested with the JPEG format. However, in this case the second layer is a transparent vectorial, that when drawn in the JPEG format will loose part of its transparency characteristics. The solution to this problem is to tell the GIServer to request that specific layer with the GIF format, but maintaing the final resulting image with the JPEG format. This is done adding the TERRA.BORDERS.FORMAT=GIF tag to our request. LAYERS=TERRA.PATHFINDER,TERRA.BORDERS& BBOX=-10,32,20,47& WIDTH=200&HEIGHT=100& FORMAT=JPEG& TERRA.BORDERS.FORMAT=GIF Because this last request does not follows WMS specification it is necessary to create a new STYLE in that layer registration. ![]() With this the style DEFAULT was created with the value FORMAT=GIF. So the request : LAYERS=TERRA.PATHFINDER,TERRA.BORDERS& BBOX=-10,32,20,47& WIDTH=200& HEIGHT=100& STYLES=,DEFAULT& FORMAT=JPEG With this solution it is possible to maintain the request in a given format while informing the GIServer to deal with specific layers in other formats. See also: | ||||||||||||||||
|
|