[Mapserver-users] WMS Problems...

Frank Warmerdam warmerdam at pobox.com
Tue Mar 2 19:13:39 PST 2004


Steve Lime wrote:
> Hi Folks: I'm running into a few WMS issues that perhaps others have
> witnessed (this is all MapServer 4.0, w/GDAL and Proj):
> 
> - In a GetCapabilties request (version 1.1.1) tiff is showing up as an
> output format even though a tiff output format is not set. GetMap
> requests wanting tiff output subsequently fail. Seems to work (I get a
> file and not an error) if I add a tiff output format. For some reason I
> thought there was a default tiff format but if so it ain't working.

Steve,

I would assume the TIFF that is showing up is from GDAL.  I don't know why
the built-in GDAL/GTiff output format definition wouldn't work the same
as one you define yourself.  Can you produce a smallish example to demonstrate
the problem?

> - In a GetCapabilties request (version 1.0.0) I can't seem to extend
> the list of output formats by defining more of them in the map file. I
> always and up with the 4 standard GD formats, but at least tiff ain't
> there. ;-)

What kinds of OUTPUTFORMAT definition are you using that isn't showing up?

> - How would one advertise the ability to create DIFFERENT tiff formats?
> (e.g. 8-bit vs. 24-bit) For many databsets it makes sense to use one or
> the other. I've tried creating 2 output formats but that doesn't seem to
> have any effect, nor can I or a user choose one.

Good question.  As things stand you could have several output format
definitions using the GeoTIFF driver, but with different names.  As
things stand I think the WMS server code allows formats to be selected
by mime type (first matching ... formats declared in the .map file take
precidence over implicit definitions) or by the output format name.  However,
I think (not so sure on this point) that only the mime types are listed
in the capabilities document, so variations on the same format aren't going
to be visible externally.

It seems to me there is some way of adding options to mime types.  Perhaps
we could have something like a mime type of "image/tiff+24bit" or something.
Anyone know more about this?

Best regards,
-- 
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | Geospatial Programmer for Rent




More information about the MapServer-users mailing list