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
Staff
Posts: 14
Registered: ‎02-10-2016

Read WMS with WebMap-SDK

[ Edited ]

Hi,

 

According to ticket 00062232 there is a problem loading a WMS-layer via WebMap 2020 within GeoMedia SmartClient 2020. The same code worked with GeoMedia SmartClient/WebMap 2018. I've compiled against MapSrv*.dlls version 16.6.24.0 and there is no compiler error.

 

The GWMLog ends with

 

2020-05-11 11:09:53 (60,398643) - Loading LE
2020-05-11 11:09:53 (60,452027) - Exit CGWMDisplayRule:: DisplayBackground - -2147221199(80040131)
2020-05-11 11:09:53 (60,452056) - Start Display Rules loop for vector
2020-05-11 11:09:53 (60,452064) - End of Loops
2020-05-11 11:09:53 (60,452112) - Exit CGWMMapServer::CreateMapByFixedRange - -2147221199 (80040131)
2020-05-11 11:09:53 (60,452124) - Exit CGWMMapServer::CreateMapByRange - -2147221199 (80040131)

 

Is there any way to find out what the error code exactly means?

 

Best regards,

Gerd

Gerd Müller-Schramm
Developer
gerd.mueller-schramm@hexagongeospatial.com
Highlighted
Technical Evangelist
Posts: 557
Registered: ‎09-11-2015

Re: Read WMS with WebMap-SDK

[ Edited ]

Hi Gerd,

 

as far as I know, the error codes are usually (almost) meaningless. They come from the underlying COM engine, so most often they mean that a referenced object does not exist since its reference has dropped to zero. A solution here is not to use Queries and Markers, which is deprecated API, and use OriginatingPipe instead.

 

Pavel

Highlighted
Staff
Posts: 14
Registered: ‎02-10-2016

Re: Read WMS with WebMap-SDK

Hi Pavel,

 

Thanks for the hint. Are there any code samples on how to use OriginatingPipe?

 

Regards,

Gerd

Gerd Müller-Schramm
Developer
gerd.mueller-schramm@hexagongeospatial.com