# Highest Rain Value in a county

**URL:** <https://community.thinkgeo.com/t/highest-rain-value-in-a-county/9580>\
**Category:** WinForms\
**Created:** [August 20, 2019, 3:08pm UTC](https://community.thinkgeo.com/t/highest-rain-value-in-a-county/9580 "2019-08-20T15:08:12Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dib](https://community.thinkgeo.com/user_avatar/community.thinkgeo.com/dib/32/19493_2.png) [@Dib](https://community.thinkgeo.com/u/Dib)\
**Post date:** [August 20, 2019, 3:08pm UTC](https://community.thinkgeo.com/t/highest-rain-value-in-a-county/9580/1 "2019-08-20T15:08:12Z")

</div>

Hello,

We are loading the NWS kml file that shows expected/forecast rainfall totals for the US via polygons. What we want to do is get the highest value with the boundaries of a specific county. I’ve tried looping through individual counties, but that takes much too long. It seems there should be an easier way to do this within the ThinkGeo framework. Any ideas?

We do have a county layer on the map. It seems like there should be a way to use this layer, and the rainfall KML layer, to query within the borders of a county.

I want to use the QueryTools.GetFeaturesOverlapping (or touching/containing/intersecting, etc), but they all say they are not implemented.

Thanks,  
Dib

---

<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:** [August 21, 2019, 5:57am UTC](https://community.thinkgeo.com/t/highest-rain-value-in-a-county/9580/2 "2019-08-21T05:57:59Z")

</div>

Hi Dib,

I want to know which layer you are using, KmlFeatureLayer or KmlRasterLayer.

If you are using KmlFeatureLayer, it only support GetAllFeatures, GetFeaturesByIds, GetFeaturesInsideBoundingBox.

If they are not enough for your scenario, I think you can try to add all features into a inmemory feature layer and then did spatial query.

Wish that’s helpful.

Regards,

Ethan
