k.ibrahim-mysynergis-esridist

Query Local Data Problems

Discussion created by k.ibrahim-mysynergis-esridist on Sep 8, 2011
Latest reply on Sep 9, 2011 by k.ibrahim-mysynergis-esridist
Hey,

I got following problem i got a LocalArcGISDynamicMapServiceLayer containing several layers and i want to perform a special search. So what i do is the following:

                QueryTask queryTask = new QueryTask();
                queryTask.Url = _localDynamicMapServiceLayer.Url + "/2"; //3,4
                queryTask.ExecuteCompleted += QueryTask_ExecuteCompleted;
                queryTask.Failed += QueryTask_Failed;
                Query query = new ESRI.ArcGIS.Client.Tasks.Query();
                query.OutFields.Add("*");
                query.Geometry = args.Geometry;
                query.ReturnGeometry = true;
                query.ReturnIdsOnly = false;
               queryTask.ExecuteAsync(query);

My Problem is that i do get the Geometry only for some layers till now it looks like if i am not able to get Polygon features the Geometry value is always null of the result features i get. If Polyline layer is used it works fine. The query does always find features but its just the geometry field that isnt set. Any Ideas?  or workarounds? thx alot

Outcomes