Probably multiple ways to handle this, but I need to set a definition expression on a polygon FeatureLayer using the intersection of another polygon FeatureLayer. I had been simply using a WHERE clause on an attribute, but the requirement has changed to use the geometry from a different FeatureLayer.

Any help is appreciated.

What I have so far:

`createFuncLocLayer: function () {`

this.funcLocLayer = new FeatureLayer(this.config.functionalLocationLayer);

this.workplanBoundaryLayer.queryFeatures(this.queryWorkplanLayer(), lang.hitch(this, function (result) {

var wpGeometry = geometryEngine.geodesicBuffer(result.features[0].geometry, -20, "meters")

//How can I apply this.funcLocLayer.setDefinitionExpression to use the wpGeometry variable?

}));

James,

A Query class has a where property and a geometry property. You may be use to using the where but you can also just use the geometry property instead or or in addition to the where property.