is layerdefs parameter only for WMS MapServer services?

2230
1
06-26-2014 11:36 AM
todddoerr
New Contributor III
So according to this document (http://resources.arcgis.com/en/help/main/10.2/index.html#/Filtering_features_using_the_layerDefs_par...) there's a layerDefs parameter that can be appended to a WMS getMap that will filter your results.
Apparently this parameter only applies to MapServer services, though.  Because when I try it on my ImageServer service I get an error.
My url is:
http://igskmncngs137.cr.usgs.gov/arcgis/services/Greenness/USGS_Greenness/ImageServer/WMSServer?requ...{"USGS_Greenness":"Name='GREENNESS.GREENNESS_DAV_1'"}

My response is:
<ServiceExceptionReport version="1.1.1"><ServiceException code="InvalidFormat">
Can't parse XML request.
  </ServiceException></ServiceExceptionReport>

Can anybody confirm layerDefs doesn't work with ImageServer services?  Or if it is supposed to work, what does a valid request look like?

I've also tried defining and using an OGC dimension called "name".  Then my wms call looks like this:
"http://igskmncngs137.cr.usgs.gov/arcgis/services/Greenness/USGS_Greenness/ImageServer/WMSServer?requ..."

But no matter what value I put in for dim_name I always get back the same image.

Any help you can provide on either parameter will be greatly appreciated.


Thank you.
Tags (2)
0 Kudos
1 Reply
WenxueJu
Esri Contributor
Hi,

Your observation is correct. layerDefs is only supported by WMS based on map serices. dimensions (other than time) were not supported before.

In 10.3 image service WMS, all dimensions will be are supported. A new "query" parameter is added so users can define a where clause to filter images (just like layerDefs for map service WMS). Both features will be available in the coming up EAP version (Early Adopter Program).
0 Kudos