Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
UTFGrid driver doesn't specify GetMap format application/json in Capabilities #5560
I have implemented a simple service with some points and specified an UTFGrid. Problem is, the output-format "application/json" is not specified in the Capabilities. A client can not determine if the service supports UTFGrid or not. I can send a WMS Request with FORMAT="application/json" although it's like a shot in the dark. My proposal: If I define a driver UTFGrid in my mapfile, the corresponding mimetype should be placed in the GetMap Formats section of the capabilities.
Steps to reproduce
I have defined a service with a UTF-Grid output.
Works, if I use my internal example request. I get an UTF-Grid and everythings fine.
<WMS_Capabilities> <Capability> <Request> <GetMap> <Format>image/png</Format> <Format>image/jpeg</Format> <Format>image/png; mode=8bit</Format> <Format>application/x-pdf</Format> <Format>image/svg+xml</Format> <Format>image/tiff</Format> [...]
Therefore I can't determine if a service supports UTFGrid or not and if I can ask as a client for the format application/json.
What I expect to happen and how I workaround at it
I expect to have this definition of the output-format
<GetMap> [...] <Format>application/json</Format> [...]
Right now I get this by defining the output-formats by hand in the WEB-METADATA section of my mapfile:
I expect it to happen automatically if I define the driver. You can even define the mimetype for yourself. Which could be also part of the Capabilities.