AnsweredAssumed Answered

Qyery Geometry problem in qml

Question asked by tanerkoka on Nov 12, 2015
Latest reply on Nov 13, 2015 by tanerkoka

Hi,

I have Qyery object  and I have point feature class service table.I want to query point feature class with polygon geometry but when I use feature.geometry can't query when I use feature.geometry.queryEnvelope() I can query but I want to query only that feature geometry not envelope.Here is the objects below:

 

Query

{

id: baseProjeQuery

}

FeatureLayer

{

   id:featureProjeLayer

featureTable: geodatabaseProjeTable

   selectionColor: "cyan

 

}

GeodatabaseFeatureServiceTable

   {

        id:geodatabaseProjeTable
        url:"http://.............................../MapServer/0"
}

 

function Query()

{

 

    baseProjeQuery.geometry=feature.geometry;  //can't return result

 

    baseProjeQuery.geometry=feature.geometry.queryEnvelope(); //return result but within envelope

 

    baseProjeQuery.spatialRelationship=Enums.SpatialRelationshipIntersects;

 

    geodatabaseProjeTable.queryServiceFeatures(baseProjeQuery);

}

 

Thanks for helping

Outcomes