Opened 6 years ago

Closed 6 years ago

Last modified 6 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: trunk
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 Changed 6 years ago by robe

cool any chance we can have this for 2.1?

comment:2 Changed 6 years ago by Bborie Park

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

comment:3 Changed 6 years ago by robe

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 Changed 6 years ago by Bborie Park

Status: newassigned

comment:5 Changed 6 years ago by Bborie Park

Keywords: history added
Resolution: fixed
Status: assignedclosed

Added in r11392

comment:6 Changed 6 years ago by robe

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

comment:7 Changed 6 years ago by robe

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 Changed 6 years ago by robe

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

Note: See TracTickets for help on using tickets.