ArcGIS Desktop

  • ArcGIS Pro
  • ArcMap

  • 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 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

ArcMap

  • Home
  • Get Started
  • Map
  • Analyze
  • Manage Data
  • Tools
  • Extensions

ST_Equalsrs

  • Definition
  • Syntax
  • Return type
  • Example
Note:

PostgreSQL only

Definition

ST_Equalsrs checks to find whether two spatial reference systems of two different feature classes are identical. If the spatial reference systems are identical, t (true) is returned. If the spatial reference systems are not identical, ST_Equalsrs returns f (false).

Syntax

sde.st_equalsrs (srid1 integer, srid2 integer)

Return type

Integer

Example

In this example, the spatial reference IDs (SRID) of different feature classes are discovered, then ST_Equalsrs is used to see whether the SRIDs represent the same spatial reference system.

SELECT srid, table_name
FROM sde_layers
WHERE table_name = 'transmains' OR table_name = 'streets';

sridtable_name

2

streets

6

transmains

Results of sde_layers query

Now, use ST_Equalsrs to determine whether the spatial reference systems identified by these two SRIDs are the same.

SELECT sde.st_equalsrs(2,6) ;

 st_equalsrs

-------------

          0

(1 row)

ArcGIS Desktop

  • Home
  • Documentation
  • Support

ArcGIS

  • ArcGIS Online
  • ArcGIS Desktop
  • ArcGIS Enterprise
  • ArcGIS
  • ArcGIS Developer
  • ArcGIS Solutions
  • ArcGIS Marketplace

About Esri

  • About Us
  • Careers
  • Esri Blog
  • User Conference
  • Developer Summit
Esri
Tell us what you think.
Copyright © 2021 Esri. | Privacy | Legal