AnsweredAssumed Answered

Identify task returning extra results

Question asked by jestanford on May 11, 2016
Latest reply on May 13, 2016 by jestanford

Hi,

I'm having an issue where the identify task seems to be returning records for layers that I have not specified. Sometimes it will return records for the same layer twice.

 

My request looks like this: //[server_name]/arcgis/rest/services/[service_name]/MapServer/identify?geometry={"x":-9857097.368979331,"y":5159521.918742495,"spatialReference":{"wkid":102100}}&geometryType=esriGeometryPoint&sr=102100&layers=visible:5,139,22,135,133,24,25,28,141,73,115&layerDefs=&time=&layerTimeOptions=&tolerance=5&mapExtent={"xmin":-9912437.77745782,"ymin":5112742.457431949,"xmax":-9766901.675602788,"ymax":5190861.1003394285,"spatialReference":{"wkid":102100}}&imageDisplay=952,511,96&returnGeometry=true

 

 

So, I'm requesting layers 5,139,22,135,133,24,25,28,141,73,115 only.

 

But my results look like this (attributes and geometry removed for brevity):

{

    "results": [{

        "layerId": 139,

        "layerName": "2016 TIP Points"

    }, {

        "layerId": 6,

        "layerName": " 2013 TIP Points"

    }, {

        "layerId": 139,

        "layerName": "2016 TIP Points"

    }, {

        "layerId": 73,

        "layerName": "Road Jurisdiction"

    }, {

        "layerId": 73,

        "layerName": "Road Jurisdiction"

    }, {

        "layerId": 115,

        "layerName": "County"

    }]

}

 

So, why am I getting results for layer 6 and layer 139 and 73 twice (there is only one feature there)? If I identify at a different location I get a different set of extra layers being queried.

 

Any ideas? Am I not using the Layers parameter correctly?

 

Thanks!

Jill

Outcomes