Spatial analysis

Spatial analysis is the process of using analytical techniques to find relationships, discover patterns, and solve problems with geographic data. This section covers how to use ArcGIS REST JS to perform feature analysis with the spatial analysis service and then show the results in a map.

What is feature analysis?

Feature analysis is the process of using the spatial analysis service to perform server-side geometric and analytic operations on feature data. To perform a feature analysis, you input feature data (typically a feature layer), execute one or more operations with ArcGIS REST JS, then display the output in a map to visualize and evaluate the results.

Feature analysis can help solve many different types of problems. For example, you can perform feature analysis in order to:

  • Understand where features are or where multiple features exist.
  • Measure sizes, shapes, and distributions of features.
  • Discover and quantify relationships between features.
  • Make predictions based on existing or theoretical patterns and relationships.

The operation you use depends on the type of problem you are trying to solve. Each operation reveals information about the input layers, and can return results as a new hosted feature layer. Operations are job requests performed server-side that are designed to process large amounts of feature data in the ArcGIS cloud infrastructure.

Types of feature analysis

You can perform many different types of feature analyses with the spatial analysis service. The operations are grouped into the following categories:

  • Find data: Find and export feature data using SQL or spatial queries.
  • Combine data: Create new feature data by combining multiple data sources.
  • Summarize data: Calculate statistics on feature data.
  • Analyze patterns: Identify spatial patterns and relationships in feature data.
  • Calculate geometries: Create new feature data and perform calculations on existing data.

How to perform feature analysis

To perform a feature analysis, you need to provide feature data as input, then use ArcGIS REST JS to access the spatial analysis service and execute an operation. You must authenticate requests to the spatial analysis service with user authentication in order to perform spatial analysis operations.

The steps to access the service using ArcGIS REST JS are:

  1. Prepare feature data to be used in the analysis.
  2. Select an operation based on the problem you want to solve.
  3. Get the spatial analysis service URL from your organization.
  4. Submit a job request to the service using ArcGIS REST JS with your chosen operation and parameters.
  5. Check the status to see when the job is complete.
  6. Get the results.


Run a find hot spot analysis on traffic and parking violations in San Francisco (Consumes credits). Results displayed using Esri Leaflet



ArcGIS REST JSRelated tutorials

Get analysis data

Perform feature analysis

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.