Developer Discussions

Discuss topics with other Hexagon Geospatial Power Portfolio developers and experts to get the most out of our products.
Showing results for 
Search instead for 
Do you mean 
Reply
Highlighted
Occasional Contributor
Posts: 18
Registered: ‎11-11-2015

Issue with WMS 1.3.0 configuration

[ Edited ]

We have MWS Services which supports 1.3.0 version and above.

Took sample WMS configuration JSON from

https://bitbucket.org/HGDN/hgdn_mobile/src/master/mmw/common/configurations/config_wms.json

 

Replaced with our services and version to 1.3.0 in above sample file.

 

However our service always receiving 1.1.1 version only in the request.

 

JSON Configuration

 

"servicesMetadata": [
    {
      "id": "8ab9f1e2-7424-42b1-9554-7e650edc1ac2",
      "operationsMetadata": {
        "getCapabilities": {
          "parameters": {
            "formats": [
              "text/xml"
            ]
          },
          "endpoints": {
            "get": "http://in-sgimobdev4/NetWorksWfsService/wms",
            "post": "http://in-sgimobdev4/NetWorksWfsService/wms"
          }
        },
        "getMap": {
          "parameters": {
            "formats": [
              "image/png",
              "image/jpeg"
            ]
          },
          "endpoints": {
            "get": "http://in-sgimobdev4/NetWorksWfsService/wms",
            "post": "http://in-sgimobdev4/NetWorksWfsService/wms"
          }
        },
        "getFeatureInfo": {
          "parameters": {
            "formats": [
              "text/html"
            ]
          },
          "endpoints": {
            "get": "http://in-sgimobdev4/NetWorksWfsService/wms",
            "post": "http://in-sgimobdev4/NetWorksWfsService/wms"
          }
        }
      },
      "rootLayer": {
        "title": "SECONDARY",
        "name": "SECONDARY",
        "crs": [
          "EPSG:3857"
        ],
        "layers": [
          {
            "title": "SECONDARY",
            "name": "SECONDARY"
          }
        ]
      },
      "serviceTitle": "SECONDARY",
      "version": "1.3.0",
      "type": "wmsServiceMetadata"
    }

Request receiving @ service is

 

{Method: GET, RequestUri: 'http://in-sgimobdev4/NetWorksWfsService/wms?
SERVICE=WMS&REQUEST=GetMap&VERSION=1.1.1&LAYERS=SECONDARY&STYLES=&FORMAT=image%2Fpng&TRANSPARENT=true
&HEIGHT=256&WIDTH=256&CONTINUOUSWORLD=true&SRS=EPSG:3857
&BBOX=-9940482.654430602,5322463.153553393,-9920914.775189595,5342031.032794398

 

Highlighted
Technical Evangelist
Posts: 184
Registered: ‎07-30-2015

Re: Issue with WMS 1.3.0 configuration

You're right. From the code I can tell:

  • in case of map display only WMS 1.1.1 is supported
  • in case of getFeatureInfo WMS 1.1.1 and 1.3.0 are supported

 

The component reponsible for WMS map display wasn't developed as a part of Mobile SDK and I can't tell you why it supports only 1.1.1.

 

If you need WMS 1.3.0 support, I can add the Jira story, but in the end you'll have to discuss it Vince.

Highlighted
Occasional Contributor
Posts: 18
Registered: ‎11-11-2015

Re: Issue with WMS 1.3.0 configuration

Without Map, it is difficult to implement functionality,so we have to wait for your solution on it

Highlighted
Technical Evangelist
Posts: 184
Registered: ‎07-30-2015

Re: Issue with WMS 1.3.0 configuration

We added WMS 1.3.0 support in 15.1.54 build.