<div dir="ltr"><div>Hi all,<br><br><br></div><div>we have case where we get large number of WGS84 coordinates in database real fast.<br><br></div><div>We would like to put geofence (polygons) that we are monitoring and if coordinate enters polygon system should generate some kinda of alarm.<br>

<br></div><div>Idea was to have algo in realtime as much as possible:<br><br></div><div>1. Trigger on INSERT<br></div><div>2. If coordinate ST_Intersect with polygons in DB create alarm in another table.<br></div><div><br>

</div><div><br></div><div>Is this strategy good or checking intersection will kill db.<br></div><div><div><br><br></div><div>What is strategy in general for checking if some coordinates are in specific polygons in realtime?<br>

<br><br></div><div>Thanks for help.<br><br>N.<br></div><div><br><br>-- <br>God is Real, unless declared Integer. <br>J. Allan Toogood, FORTRAN programmer</div></div></div>