From: Regina Obe Date: Mon, 13 May 2013 04:14:54 +0000 (+0000) Subject: dustymugs must have made a correction to pseudo_color -- no black background anymore... X-Git-Tag: 2.1.0beta3~69 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=eaece2d3dbe5e0eced16c8969a29f00be789adcf;p=postgis dustymugs must have made a correction to pseudo_color -- no black background anymore, also add in visualizations for new named color ramps and liink fromST_AsPNNG TOST_COLRMap git-svn-id: http://svn.osgeo.org/postgis/trunk@11455 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/doc/html/images/st_colormap_bluered.png b/doc/html/images/st_colormap_bluered.png new file mode 100644 index 000000000..9d1db05c4 Binary files /dev/null and b/doc/html/images/st_colormap_bluered.png differ diff --git a/doc/html/images/st_colormap_fire.png b/doc/html/images/st_colormap_fire.png new file mode 100644 index 000000000..ad42cd57f Binary files /dev/null and b/doc/html/images/st_colormap_fire.png differ diff --git a/doc/html/images/st_colormap_pseudo.png b/doc/html/images/st_colormap_pseudo.png index 7562a05d1..b8e3f3f47 100644 Binary files a/doc/html/images/st_colormap_pseudo.png and b/doc/html/images/st_colormap_pseudo.png differ diff --git a/doc/reference_raster.xml b/doc/reference_raster.xml index f674c52f5..b5ed13419 100644 --- a/doc/reference_raster.xml +++ b/doc/reference_raster.xml @@ -7523,7 +7523,7 @@ FROM dummy_rast WHERE rid=2; See Also - , , + , , , @@ -10906,8 +10906,10 @@ FROM (SELECT , ref.rast, '8BUI'::text, i*5) As rast FROM ref cross JOIN generate_series(1,10,3) As i ) As shapes ; SELECT ST_NumBands(rast) As n_orig - , ST_NumBands(ST_ColorMap(rast, 'pseudocolor')) As npseudo , ST_NumBands(ST_ColorMap(rast, 'greyscale')) As ngrey + , ST_NumBands(ST_ColorMap(rast, 'pseudocolor')) As npseudo + , ST_NumBands(ST_ColorMap(rast, 'fire')) As nfire + , ST_NumBands(ST_ColorMap(rast, 'bluered')) As nbluered , ST_NumBands(ST_ColorMap(rast, '100% 255 0 0 80% 160 0 0 50% 130 0 0 @@ -10915,17 +10917,19 @@ FROM (SELECT 20% 60 0 0 0% 0 0 0 nv 255 255 255')) As nred -FROM funky_shapes; - - n_orig | npseudo | ngrey | nred ---------+---------+-------+------ - 1 | 4 | 1 | 3 - +FROM funky_shapes; + + n_orig | ngrey | npseudo | nfire | nbluered | nred +--------+-------+---------+-------+----------+------ + 1 | 1 | 4 | 4 | 4 | 3 + Examples: Compare different color map looks using ST_AsPNG SELECT ST_AsPNG(rast) As orig_png , ST_AsPNG(ST_ColorMap(rast,'greyscale')) As grey_png , ST_AsPNG(ST_ColorMap(rast, 'pseudocolor')) As pseudo_png + , ST_AsPNG(ST_ColorMap(rast, 'pseudocolor')) As fire_png + , ST_AsPNG(ST_ColorMap(rast, 'bluered')) As bluered_png , ST_AsPNG(ST_ColorMap(rast, '100% 255 0 0 80% 160 0 0 50% 130 0 0 @@ -10936,7 +10940,7 @@ nv 255 255 255')) As red_png FROM funky_shapes; - + @@ -10957,8 +10961,6 @@ FROM funky_shapes; - - @@ -10968,6 +10970,26 @@ FROM funky_shapes; + + + + + + + + fire_png + + + + + + + + + bluered_png + + +