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

Cropping an ST_Raster value

Use the crop function to remove all the raster data beyond a specified extent from a raster stored in an ST_Raster column.

The crop function is useful for removing unwanted pixel data from a raster value. For example, if the mosaic function was used on the wrong raster data source and now the raster value has an extent that is much larger than desired, the crop function can be used to reduce the extent.

  1. Crop all the raster values in the urban_area table to a pixel extent of (0,0,100,100).

    Oracle

    UPDATE URBAN_AREA t
    SET RASTER = t.raster.crop ('0,0,100,100', 'pixel');
    

    PostgreSQL

    UPDATE urban_area
    SET raster = crop (raster, '0,0,100,100', 'pixel');
    

    SQL Server

    UPDATE urban_area
    SET raster = raster.crop ('0,0,100,100','pixel');
    

Related topics

  • ST_Raster.crop

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