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

Applying a color map to raster values in an ST_Raster column

A color map can be applied to a single-band 8- or 16-bit raster value.

To apply a color map to a qualifying raster value, use the ST_Raster setColormap function, which accepts as input the file name of a TIFF image file.

  1. Use an UPDATE SQL statement and an input image file to add a color map to specific records in a table.

    In these examples, the color map from the colormap.tif file is used to add a color map to those raster values in the forest table.

    Oracle

    UPDATE FOREST t
    SET raster = t.raster.setColormap('/net/gis/images/colormap.tif');
    

    PostgreSQL

    UPDATE forest
    SET raster = setColormap(raster,'/net/gis/images/colormap.tif');
    

    SQL Server

    UPDATE forest
    SET raster = raster.setColormap('/net/gis/images/colormap.tif');
    

Related topics

  • ST_Raster.setColormap

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