Opened 11 years ago

Closed 11 years ago

Last modified 11 years ago

#2290 closed enhancement (fixed)

[raster] ST_ColorMap

Reported by: Bborie Park Owned by: Bborie Park
Priority: medium Milestone: PostGIS 2.1.0
Component: raster Version: master
Keywords: history Cc:

Description

Apply a user-specified colormap to a user-specified band (defaulting to 1).

ST_ColorMap(
  rast raster, nband int,
  colormap text,
  method text
)

The color map is specified in the same format as that for gdaldem's color-relief. Some predefined color maps can also be specified by keywords (probably after the explicit mechanism works well).

Change History (8)

comment:1 by robe, 11 years ago

cool any chance we can have this for 2.1?

comment:2 by Bborie Park, 11 years ago

Probably… I'll try to get it done for 2.1.

comment:3 by robe, 11 years ago

Milestone: PostGIS FuturePostGIS 2.1.0

That'll be great. I've switched to 2.1 and we can always switch back if you can't get to it by then.

comment:4 by Bborie Park, 11 years ago

Status: newassigned

comment:5 by Bborie Park, 11 years ago

Keywords: history added
Resolution: fixed
Status: assignedclosed

Added in r11392

comment:6 by robe, 11 years ago

Cool I'll test this out tomorrow or later tonight.

comment:7 by robe, 11 years ago

This is super neat. Now I don't have to create all these stupid bands to output my images in png bright color anymore and will be great for my geometry map charts.

I put in an example at r11394 . I still need to put in an example of a custom colormap.

comment:8 by robe, 11 years ago

Okay I added an example of a custom color map at r11398

Note: See TracTickets for help on using tickets.