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

ST_Raster.hasStats

  • Definition
  • Syntax
  • Returns
  • Parameters
  • Example

Definition

The ST_Raster.hasStats function indicates whether or not the ST_Raster has images statistics calculated. It returns 1 if the statistics are present and 0 if they are not.

Syntax

Oracle

hasStats()

PostgreSQL

hasStats(raster IN ST_RASTER)

SQL Server

hasStats()

Returns

Oracle

Number

PostgreSQL

Boolean

SQL Server

Integer

Parameters

None

Example

The following query shows whether the image statistics are available or not for each raster in the table:

Oracle

SELECT t.image.raster_id, t.image.hasStats()
FROM FOO t;

T.IMAGE.RASTER_ID T.IMAGE.HASSTATS()
---------------   ------------------
              2                1
              3                0
             23                0
             24                0
             42                0
             43                0

PostgreSQL

SELECT raster_id(image), hasStats(image)
FROM foo;


RASTER_ID(IMAGE) HASSTATS(IMAGE)
---------------  ---------------
              2                1
              3                0
             23                0
             24                0
             42                0
             43                0

SQL Server

SELECT image.raster_id, image.hasStats()
FROM foo;

IMAGE.RASTER_ID IMAGE.HASSTATS()
--------------- ----------------
              2                1
              3                0
             23                0
             24                0
             42                0
             43                0

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