Mismatch between LayerDefiniton and QueryTask results

470
1
09-06-2010 04:27 AM
AndrewClark
New Contributor III
I have a system that was using LayerDefinitions to filter a bus route dataset to show an individual route. I've now decided to move to using a QueryTask and rendering on a graphics layer, as I'll also have to use the same method for other data in the Map Service. I've used the same layer from the same map service with the same query I was applying through LayerDefinitions, but the rendered results of the QueryTask shows a broken polyline, whereas the old method shows a continuous PolyLine.

Doesn't make sense. I'm just going to inspect the HTTP traffic and see if it's something to do with the message size, but if you have a perspective on this please reply.


Thanks.
0 Kudos
1 Reply
AndrewClark
New Contributor III
Problem sorted, duplicate OBJECTID's in the data!!! Identified by looking at the attribute table in ArcMap and selecting by attributes - showing all didn't show all selected, but showing selected did show the correct results (All and Selected buttons at the bottom of table attributes view).
0 Kudos