# How to find out if some features are contained with Restriction Layer

**URL:** <https://community.thinkgeo.com/t/how-to-find-out-if-some-features-are-contained-with-restriction-layer/8349>\
**Category:** MVC\
**Created:** [January 4, 2017, 3:22pm UTC](https://community.thinkgeo.com/t/how-to-find-out-if-some-features-are-contained-with-restriction-layer/8349 "2017-01-04T15:22:04Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![reza\_assar](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/r/71e660/32.png) [@reza\_assar](https://community.thinkgeo.com/u/reza_assar)\
**Post date:** [January 4, 2017, 3:22pm UTC](https://community.thinkgeo.com/t/how-to-find-out-if-some-features-are-contained-with-restriction-layer/8349/1 "2017-01-04T15:22:05Z")

</div>

I have a `RestrictionLayer` added to my `CustomOverlays`.  
I also have a bunch of features in another `ShapeFileFeatureLayer`  
And want to see if all (or part) of them are contained in `RestrictionLayer` boundaries or not. And return a boolean result.  
Thanks.

---

<div class="post-metadata">

**Author:** ![reza\_assar](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/r/71e660/32.png) [@reza\_assar](https://community.thinkgeo.com/u/reza_assar)\
**Post date:** [January 4, 2017, 3:33pm UTC](https://community.thinkgeo.com/t/how-to-find-out-if-some-features-are-contained-with-restriction-layer/8349/2 "2017-01-04T15:33:57Z")

</div>

Ahh!  
I think i find it: `var featureIsInOperableConfine=restrictionLayer.Zones.Any(zone=>zone.Contains(feature));`

---

<div class="post-metadata">

**Author:** ![Ethan](https://community.thinkgeo.com/user_avatar/community.thinkgeo.com/ethan/32/19964_2.png) [@Ethan](https://community.thinkgeo.com/u/Ethan)\
**Post date:** [January 5, 2017, 6:20am UTC](https://community.thinkgeo.com/t/how-to-find-out-if-some-features-are-contained-with-restriction-layer/8349/3 "2017-01-05T06:20:56Z")

</div>

Hi Reza,

I am glad to hear you solved that.

Regards,

Don
