Display Feature based on Definition Query?

332
1
06-16-2020 07:52 AM
JessicaGoodsell1
New Contributor

I'm in the process of developing a script that will allow me to show the extent of flooding (contours that have been turned into polygons) based on the current water table elevation found at a dam. The polygons were created in one feature class, the elevation data is coming from NOAA using their Map Server which is updated hourly. 

 

I don't know if it's possible or not but what I'd like it to do is basically the same thing as a definition query where it only shows a feature if the "contours" attribute in my flooding feature is the same or greater than the "observed" attribute for that dam in the NOAA feature.

 

Am I on to something or do I need to find a workaround and do a query that simply highlights the current stage but still shows all stages?

 

Thanks,

Jessica

0 Kudos
1 Reply
TanuHoque
Esri Regular Contributor

Jessica Goodsell

Are you trying to do it in a JS API app or in a Desktop app such as ArcGIS Pro or ArcMap?
You mentioned 'feature class' that is why I'm asking.

Plus which scripting language you are using?

0 Kudos