Hexagon Geospatial
MENU

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
SMC
Contributor
Posts: 51
Registered: ‎04-11-2016
Accepted Solution

Smart Client: Pass parameter to a WMS

[ Edited ]

Hi All,

 

Is it possible to pass a parameter to a WMS via Smart Client

 

For example, I have an external WMS that accepts a variable being passed to it (e.g. a JobID). The WMS then filters data based on the passed parameter. 

 

What I need to do is to hopefully create a session variable called JobID and pass that SESSION variable from Smart Client to the WMS.

 

Anyone come across a way to do this?

 

Note that the WMS is working fine in Smart Client i.e. Smart Client can communicate to it, and all data is rendered correctly. A call something along the lines of this occurs.

 

http://webgis/DrawingRasters?Bbox=314821.3438112928%2C396700.23767495947%2C316028.04019522294%2C397053.71121543733&Crs=EPSG%3A29903&FORMAT=image%2Fpng&Height=744&Layers=NIEHouses&Request=GetMap&SERVICE=WMS&SRS=EPSG%3A29903&Styles=&Transparent=TRUE&VERSION=1.3.0&Width=1598

 

What I want to happen is for Smart Client to automatically append say &JobID=SESSION.JOBID to the end of the call.

 

Is that possible?

 

Regards,

Simon

 

Highlighted
Contributor
Posts: 28
Registered: ‎11-04-2015

Re: Smart Client: Pass parameter to a WMS

SMC
Contributor
Posts: 51
Registered: ‎04-11-2016

Re: Smart Client: Pass parameter to a WMS

Hi Lukas,

 

Thanks for the update.

 

I will tackle this another way. My current thinking is to move the data the WMS is presenting into a GeoMedia SQL table and filter on that via the Session Filters. Its a pain as the customer will need a set of GeoMedia too but its a way forward.

 

Regards,

Simon

Do you need immediate support?
Please submit a Ticket through our
Development Ticket Portal.