Select to view content in your preferred language

Geometry not returned in AGSQueryTask

2028
2
05-25-2011 07:44 PM
RobertMartin2
Deactivated User
Hello,

I am trying to execute an AGSQueryTask with a 'where' clause of 1=1 to retrieve all features. The objects of the resulting AGSFeatureSet have all the right entries in the attributes dictionary, but their geometry is null. Unfortunately I need the geometry (or more specifically, their envelope) in order to display a callout. I tried playing around with the query task sample code and had the same result. Is there something I'm not following?


Thank you in advance,
Robert Martin
0 Kudos
2 Replies
Mdhanu
by
Emerging Contributor
Hi,

You can write this code then u can get the geometry also.
self.query.returnGeometry = YES;

Regards
Dhanu
0 Kudos
RobertMartin2
Deactivated User
Thank you Dhanu!
0 Kudos