Workaround WMS layer in ArcGIS 100.x? WMS support coming?

1591
1
02-06-2017 06:39 PM
normheske
New Contributor

I see that WMS layers aren't supported yet in ArcGIS 100.0. I am trying to implement my own as one of our sources is WMS only. I have a

  public class MyCustomAttemptWmsLayer extends ImageAdjustmentLayer implements RemoteResource


but I haven't found a way yet to override the internal implementation of requests in such a way that I can control the query strings in the request. I need to manipulate the query string such that a WMS-compliant GET request goes out like this:

http://myserver/arcgis/services/Elevation/MapServer/WmsServer?REQUEST=GetMap&SERVICE=WMS&VERSION=1.3...


I see when I use the standard ArcGISMapImageLayer, (non-WMS) GET requests goes out like this:


http://myserver/arcgis/rest/services/Satellite/MapServer/export?bbox=-5.6249999999999165%2C32.171556...

seems like it should be that big a stretch to use that bbox but add the other params I need.

1) Anyone in the community or in ESRI have suggestions as to whether what I am doing is possible?

2) Can ESRI tell me an estimate as to when a WMSLayer will be part of the Java ArcGIS 100 release?

0 Kudos
1 Reply
nita14
by
Occasional Contributor III

Hi Norm,

Well, as of ArcGIS Runtime SDK 10.2.4, I used 3rd party library or simple HTTPClient instance to get WMS Styled layer (custom SLD wasn't supported in Runtime) as an image and display it in JMap component. I would try doing the same thing for JavaFX. To send request you need only current map extent and size of window, other things can be even hardcoded or got from GetCapabilties endpoint.

Hope this helps,

Regards

Adam 

0 Kudos