ArcGIS Desktop

  • Documentation
  • Support

  • My Profile
  • Help
  • Sign Out
ArcGIS Desktop

ArcGIS Online

The mapping platform for your organization

ArcGIS Desktop

A complete professional GIS

ArcGIS Enterprise

GIS in your enterprise

ArcGIS for Developers

Tools to build location-aware apps

ArcGIS Solutions

Free template maps and apps for your industry

ArcGIS Marketplace

Get apps and data for your organization

  • Documentation
  • Support
Esri
  • Sign In
user
  • My Profile
  • Sign Out

Help

  • Home
  • Get Started
  • Map
  • Analyze
  • Manage Data
  • Tools
  • More...

When are spatial indexes used?

Spatial indexes are used with queries in Oracle and PostgreSQL that call functions to compare geometries. The Oracle and PostgreSQL ST_Geometry functions that use spatial indexes are the ones that test spatial relationships.

  • ST_Contains (PostgreSQL only)
  • ST_Crosses
  • ST_Disjoint (PostgreSQL only)
  • ST_Equals
  • ST_Intersects
  • ST_Overlaps
  • ST_Relate (Oracle only)
  • ST_Touches
  • ST_Within

Additionally, the spatial column must appear immediately after the spatial relationship function in the query for the spatial index to be used.

Tip:

For information on DB2 ST_Geometry functions that can use a spatial index, see the DB2 documentation.

See the IBM Informix Spatial DataBlade Module User's Guide for information on functions that utilize Informix's R-tree spatial index.

Spatial indexes are not used automatically with any ST_Geometry functions in SQLite.

Related topics

  • Relational functions for ST_Geometry

ArcGIS Desktop

  • Home
  • Documentation
  • Support

ArcGIS Platform

  • ArcGIS Online
  • ArcGIS Desktop
  • ArcGIS Enterprise
  • ArcGIS for Developers
  • ArcGIS Solutions
  • ArcGIS Marketplace

About Esri

  • About Us
  • Careers
  • Insiders Blog
  • User Conference
  • Developer Summit
Esri
Tell us what you think.
© Copyright 2016 Environmental Systems Research Institute, Inc. | Privacy | Legal