<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<span style="color:#1F497D">>I have included links to two example
jpgs to show what happens. 1.9.jpg shows what happens when I use
the method detailed below.</span><br>
<br>
Is it a raster with integer values (but without color table)? In
that case, switch the renderer type to singleband pseudo color and
insert the color for each value.<br>
<br>
Marco<br>
<br>
Am 19.06.2012 11:18, schrieb James Stott:
<blockquote
cite="mid:B398947DCAB85D46809151E678999F21060FDE85@srv01.NPA.LOCAL"
type="cite">
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
<style type="text/css">
<!-- /* Style Definitions */ p.f057f5b9-031b-4310-bcca-5394bd920376, li.f057f5b9-031b-4310-bcca-5394bd920376, div.f057f5b9-031b-4310-bcca-5394bd920376, table.f057f5b9-031b-4310-bcca-5394bd920376Table {margin:0cm; margin-bottom:.0001pt;}div.Section1 {page:Section1;}-->
</style>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
<meta content="Microsoft Word 14 (filtered medium)"
name="Generator">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]-->
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
{font-family:Verdana;
panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
{font-family:Consolas;
panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";
color:black;
mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
p
{mso-style-priority:99;
mso-margin-top-alt:auto;
margin-right:0cm;
mso-margin-bottom-alt:auto;
margin-left:0cm;
font-size:12.0pt;
font-family:"Times New Roman","serif";
color:black;}
pre
{mso-style-priority:99;
mso-style-link:"HTML Preformatted Char";
margin:0cm;
margin-bottom:.0001pt;
font-size:10.0pt;
font-family:"Courier New";
color:black;}
p.00e76487-5839-46ee-8f22-5ec11d56685b, li.00e76487-5839-46ee-8f22-5ec11d56685b, div.00e76487-5839-46ee-8f22-5ec11d56685b
{mso-style-name:00e76487-5839-46ee-8f22-5ec11d56685b;
margin:0cm;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman","serif";
color:black;}
span.EmailStyle18
{mso-style-type:personal;
font-family:"Calibri","sans-serif";
color:windowtext;}
span.HTMLPreformattedChar
{mso-style-name:"HTML Preformatted Char";
mso-style-priority:99;
mso-style-link:"HTML Preformatted";
font-family:Consolas;
color:black;
mso-fareast-language:EN-US;}
span.EmailStyle23
{mso-style-type:personal-reply;
font-family:"Calibri","sans-serif";
color:#1F497D;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
<p class="f057f5b9-031b-4310-bcca-5394bd920376" style="
margin-bottom:5px;"> </p>
<div class="WordSection1">
<p class="MsoNormal"><span style="color:#1F497D">I have included
links to two example jpgs to show what happens. 1.9.jpg
shows what happens when I use the method detailed below.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">I would like
the raster to display as in the 1.8 jpg.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">QGIS 1.8 <a
moz-do-not-send="true"
href="https://docs.google.com/open?id=0B6r5nAOdEBZrSjhyaHdoUW9LY0U">https://docs.google.com/open?id=0B6r5nAOdEBZrSjhyaHdoUW9LY0U</a><o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">QGIS 1.9 <a
moz-do-not-send="true"
href="https://docs.google.com/open?id=0B6r5nAOdEBZrLUJ1dDNNM3BJZVE">https://docs.google.com/open?id=0B6r5nAOdEBZrLUJ1dDNNM3BJZVE</a>
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
</div>
<p style=" margin-top:5px; margin-bottom: 10px"> <span
style="font-family: 'Verdana','sans-serif'; color: #00227c;
font-size: 10pt"> <strong>James Stott</strong> <span
style="font-size: 8pt">BSc (Hons) MSc</span> | Senior
Professional<br>
<span style="font-size: 8pt"><b style="font-weight: bold">Nicholas
Pearson Associates </b> | 30 Brock Street | Bath | BA1
2LN<br>
<b>T:</b> 01225 445548 | <b>M:</b> -<br>
<a moz-do-not-send="true"
href="http://www.npaconsult.co.uk/" style="font-family:
'Verdana','sans-serif'; color: #00227c; font-size: 8pt;
text-decoration: none;"><strong>www.npaconsult.co.uk</strong></a>
</span> </span> <br>
</p>
<div class="WordSection1">
<div>
<div style="border:none;border-top:solid #B5C4DF
1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span
style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext;mso-fareast-language:EN-GB"
lang="EN-US">From:</span></b><span
style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext;mso-fareast-language:EN-GB"
lang="EN-US"> <a class="moz-txt-link-abbreviated" href="mailto:qgis-user-bounces@lists.osgeo.org">qgis-user-bounces@lists.osgeo.org</a>
[<a class="moz-txt-link-freetext" href="mailto:qgis-user-bounces@lists.osgeo.org">mailto:qgis-user-bounces@lists.osgeo.org</a>] <b>On Behalf
Of </b>Marco Hugentobler<br>
<b>Sent:</b> 19 June 2012 09:49<br>
<b>To:</b> <a class="moz-txt-link-abbreviated" href="mailto:qgis-user@lists.osgeo.org">qgis-user@lists.osgeo.org</a><br>
<b>Subject:</b> Re: [Qgis-user] QGIS Master and Rasters
to grayscale<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Hi James<br>
<br>
You may go to the raster properties, select render type
singleband gray. Then select contrast enhancement 'stretch to
min/max' and click on 'load' to get the min/max values from
the datasource.<br>
<br>
Having this by default (options page) is not yet available
with the new raster classes. A bugticket is already filled.<br>
<br>
Regards,<br>
Marco<br>
<br>
Am 19.06.2012 10:17, schrieb James Stott: <o:p></o:p></p>
<p class="MsoNormal">I sometimes display my Ordnance Survey
rasters as single band gray to allow my data to show more
clearly over the top of it.<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">In the new master I cannot achieve the same
effect. My raster goes solid grey.<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">Old settings:<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">Render as: Single Band gray<o:p></o:p></p>
<p class="MsoNormal">Single band properties – gray band: Band 1<o:p></o:p></p>
<p class="MsoNormal">Single band properties – color map:
grayscale<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">New settings:<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">Render type: Singleband gray<o:p></o:p></p>
<p class="MsoNormal">Gray band: Palette<o:p></o:p></p>
<p class="MsoNormal">Contrast enhancement: No enhancement<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">How do I achieve the same effect as before?
The raster displays fine in colour, just not in grayscale. I
am guessing it’s down to the new raster properties in master.<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p
style="mso-margin-top-alt:3.75pt;margin-right:0cm;margin-bottom:7.5pt;margin-left:0cm"><strong><span
style="font-size:10.0pt;font-family:"Verdana","sans-serif";color:#00227C">James
Stott</span></strong><span
style="font-size:10.0pt;font-family:"Verdana","sans-serif";color:#00227C">
</span><span
style="font-size:8.0pt;font-family:"Verdana","sans-serif";color:#00227C">BSc
(Hons) MSc</span><span
style="font-size:10.0pt;font-family:"Verdana","sans-serif";color:#00227C">
| Senior Professional<br>
</span><b><span
style="font-size:8.0pt;font-family:"Verdana","sans-serif";color:#00227C">Nicholas
Pearson Associates </span></b><span
style="font-size:8.0pt;font-family:"Verdana","sans-serif";color:#00227C">|
30 Brock Street | Bath | BA1 2LN<br>
<b>T:</b> 01225 445548 | <b>M:</b> -<br>
<a moz-do-not-send="true"
href="http://www.npaconsult.co.uk/"><strong><span
style="font-family:"Verdana","sans-serif";color:#00227C;text-decoration:none">www.npaconsult.co.uk</span></strong></a>
</span><o:p></o:p></p>
<table class="MsoNormalTable"
style="width:525.0pt;border-collapse:collapse;outline-style:
none" cellpadding="0" cellspacing="0" width="700" border="0">
<tbody>
<tr>
<td style="padding:0cm 0cm 0cm 0cm">
<p class="MsoNormal"><span
style="font-size:12.0pt;font-family:"Times New
Roman","serif";mso-fareast-language:EN-GB"><a
moz-do-not-send="true"
href="http://www.npaconsult.co.uk/"><span
style="border:none windowtext
1.0pt;padding:0cm;text-decoration:none"><img
alt="Nicholas Pearson Associates, Logo"
id="_x0000_i1025"
src="cid:part5.05030202.00030204@sourcepole.ch"
height="46" width="174" border="0"></span></a><a
moz-do-not-send="true"
href="http://www.npaconsult.co.uk/about-news.asp"><span
style="border:none windowtext
1.0pt;padding:0cm;text-decoration:none"><img
alt="Nicholas Pearson Associates, Latest News"
id="_x0000_i1026"
src="cid:part7.08040209.05000306@sourcepole.ch"
height="46" width="524" border="0"></span></a><o:p></o:p></span></p>
</td>
</tr>
</tbody>
</table>
<p
style="mso-margin-top-alt:5.65pt;margin-right:0cm;margin-bottom:5.65pt;margin-left:0cm"><span
style="font-size:7.0pt;font-family:"Verdana","sans-serif""><a
moz-do-not-send="true"
href="http://www.npaconsult.co.uk/terms.asp"><span
style="color:black;text-decoration:none">Information and
Registered Address</span></a> <o:p></o:p></span></p>
<p
style="mso-margin-top-alt:3.75pt;margin-right:0cm;margin-bottom:7.5pt;margin-left:0cm"><span
style="font-size:7.0pt;font-family:"Verdana","sans-serif";color:#666666">This
Electronic Transmission is intended only for the attention
of the addressee. It may contain privileged and confidential
information. If you are not the person for whom it is
intended, you must not copy, distribute or take any action
in reliance on it. If you have received this electronic
transmission in error please notify us immediately by
telephone, delete the transmission and destroy any hard
copies. <o:p></o:p></span></p>
<p
style="mso-margin-top-alt:3.75pt;margin-right:0cm;margin-bottom:7.5pt;margin-left:0cm"><span
style="font-size:7.0pt;font-family:"Verdana","sans-serif";color:#666666">Nicholas
Pearson Associates has used all reasonable efforts to ensure
that this message and any attachments are free from viruses.<o:p></o:p></span></p>
<p
style="mso-margin-top-alt:3.75pt;margin-right:0cm;margin-bottom:7.5pt;margin-left:0cm"><span
style="font-size:7.0pt;font-family:"Verdana","sans-serif";color:#666666">Nicholas
Pearson Associates, 30 Brock Street, Bath, BA1 2LN , Tel:
+44 (0) 01225 445548, Fax: +44 (0) 01225 312387, Website: <a
moz-do-not-send="true" href="http://www.npaconsult.co.uk/">http://www.npaconsult.co.uk</a><o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:12.0pt;font-family:"Times New
Roman","serif";mso-fareast-language:EN-GB"><br>
<br>
<br>
<o:p></o:p></span></p>
<pre>_______________________________________________<o:p></o:p></pre>
<pre>Qgis-user mailing list<o:p></o:p></pre>
<pre><a moz-do-not-send="true" href="mailto:Qgis-user@lists.osgeo.org">Qgis-user@lists.osgeo.org</a><o:p></o:p></pre>
<pre><a moz-do-not-send="true" href="http://lists.osgeo.org/mailman/listinfo/qgis-user">http://lists.osgeo.org/mailman/listinfo/qgis-user</a><o:p></o:p></pre>
<p class="MsoNormal"><span
style="font-size:12.0pt;font-family:"Times New
Roman","serif";mso-fareast-language:EN-GB"><br>
<br>
<br>
<o:p></o:p></span></p>
<pre>-- <o:p></o:p></pre>
<pre>Dr. Marco Hugentobler<o:p></o:p></pre>
<pre>Sourcepole - Linux & Open Source Solutions<o:p></o:p></pre>
<pre>Weberstrasse 5, CH-8004 Zürich, Switzerland<o:p></o:p></pre>
<pre><a moz-do-not-send="true" href="mailto:marco.hugentobler@sourcepole.ch">marco.hugentobler@sourcepole.ch</a> <a moz-do-not-send="true" href="http://www.sourcepole.ch">http://www.sourcepole.ch</a><o:p></o:p></pre>
<pre>Technical Advisor QGIS Project Steering Committee<o:p></o:p></pre>
</div>
</blockquote>
<br>
<br>
<pre class="moz-signature" cols="72">--
Dr. Marco Hugentobler
Sourcepole - Linux & Open Source Solutions
Weberstrasse 5, CH-8004 Zürich, Switzerland
<a class="moz-txt-link-abbreviated" href="mailto:marco.hugentobler@sourcepole.ch">marco.hugentobler@sourcepole.ch</a> <a class="moz-txt-link-freetext" href="http://www.sourcepole.ch">http://www.sourcepole.ch</a>
Technical Advisor QGIS Project Steering Committee</pre>
</body>
</html>