1

I'm trying to customize the response of a GetFeatureInfo request. I want that ArcGIS Server uses a certain HTML document as a template for responding to GetFeatureInfo requests of a one particular WMS. The other services the server publish must not use it.

I know it's possible to add an XSLT template as a request parameter to the GetFeatureInfo request like "www.mywms.com/wms?REQUEST=GetFeatureInfo&SERVICE=WMS&[...]&template=path-to-xslt-document.xslt", but I want that any GetFeatureInfo response of my ArcGIS Server WMS will be modified into a HTML document without setting a parameter at the WMS Server Connection Properties.

I could not found out how configure ArcGIS Server to do this.

Editing the Capabilities document may be one approach but I don't know how to set the parameters.

  • Does that server support queries with &INFO_FORMAT=text/html? – user30184 Feb 9 '17 at 10:49
  • Yes, it does. It is also mentioned in the Capabilities document in the <GetFeatureInfo><Format>text/html</Format></GetFeatureInfo> element. – JakobT Feb 9 '17 at 10:53
  • So do you still have a problem? – user30184 Feb 9 '17 at 10:56
  • 1
    Yes, because I don't want the default html to be used. As far as I know ArcGIS Server supports a set of different templates that can be used to modify the response of a GetFeatureInfo request. But when I change these files all my services published by this server will use this changed template. I want that the response of one certain WMS will appear like my html document demands without any setting on the client side. That's the point, I want to set a server-side template so the client don't has to add anything. – JakobT Feb 9 '17 at 11:09
  • Ok, I understand now but I do not know how to do it. Perhaps right people would read the question if the title describes more closely what is the challenge. – user30184 Feb 9 '17 at 11:55

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.