I have a graphic object returned from a featureset that represents a county. I need to run a spacial query with the geometry of the returned county. If the object is a graphic how do I extract the geometry of the graphic so I can use that geometry in a spacial query??
This doesn't work...
private function doQuery(orCounty:Graphic):void
{
try
{
var queryParcel:Query = new Query();
queryParcel.spatialRelationship = Query.SPATIAL_REL_WITHIN
queryParcel.geometry = orCounty.geometry
queryParcel.returnGeometry = true;
queryTaskParcel.execute(queryParcel, new AsyncResponder(onResult, onFault));