A geofence is a geometry, most commonly a polygon, used for spatial proximity analysis. For example, an Incident Detector Processor might be configured to detect when the coordinates of a received event are inside or outside a specified set of geofences. A GeoTagger Processor might be configured to include the name of a geofence and whether an event is discovered to be inside in the event's attribute data.
Administrators can create geofences from existing feature datasets (typically polygon feature classes). The following are a few items to remember when working with geofences in GeoEvent Server:
- Individual geofences must have a unique name. When importing geofences from a feature service, you will be asked for the field that contains each feature's name; ideally, this should be a string field type.
- Geofences are organized within named categories. When importing geofences from a feature service, you have the option to either specify the field that contains the category name or enter a literal string and import all of the geofences into the named category.
- Administrators can rename individual geofences or move them into another category by clicking the Edit to the right of the listed geofences in GeoEvent Manager.
- GeoEvent Server can update its known set of geofences based on the contents of a published feature service. Synchronization with the feature service is conducted periodically based on a refresh interval specified by an administrator; every 15 minutes is the system default.
- Geofences are included in the configuration of a filter or processor within a GeoEvent Service to support spatial proximity analysis. Examples include spatial filters for filter elements as well as the Incident Detector Processor and GeoTagger Processor.
View available geofences by browsing to Site > GeoEvent > GeoFences in GeoEvent Manager.
The Introduction to GeoEvent Server tutorial contains exercises illustrating how to import geofences from a feature dataset and how to configure synchronization so GeoEvent Server will automatically update its geofences based on the contents of a published feature service. Access the tutorial from GeoEvent Server tutorials.