HOW TO

Find all POI within a rectangle

Last Published: April 25, 2020

Summary

To display points on a map, it may be necessary to locate all points of interest (POI) that fall within a rectangular area. At this time, there is no ArcWeb Services method specifically designed for this. However, a 'whereClause' can be used to find the POI.

Procedure

Use the 'whereClause' parameter to define a bounding extent. This can be used with either the method findNearest or the method findWithin where the radius is set larger than the desired rectangle.

Example:
whereClause = "X >= -150.0 AND X <= -30.0 AND Y >= 15.0 AND Y <= 60.0"

Article ID:000007471

Software:
  • Legacy Products

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options

Discover more on this topic