Understanding raster custom transparency options (making null data 100% transparent) in QGIS? ...

Why are my pictures showing a dark band on one edge?

One-one communication

Did Mueller's report provide an evidentiary basis for the claim of Russian govt election interference via social media?

What to do with repeated rejections for phd position

Would it be easier to apply for a UK visa if there is a host family to sponsor for you in going there?

Intuitive explanation of the rank-nullity theorem

Is there any word for a place full of confusion?

What order were files/directories output in dir?

Has negative voting ever been officially implemented in elections, or seriously proposed, or even studied?

Semigroups with no morphisms between them

How do living politicians protect their readily obtainable signatures from misuse?

How much damage would a cupful of neutron star matter do to the Earth?

How were pictures turned from film to a big picture in a picture frame before digital scanning?

How can I set the aperture on my DSLR when it's attached to a telescope instead of a lens?

Did any compiler fully use 80-bit floating point?

How do I find out the mythology and history of my Fortress?

Project Euler #1 in C++

How can I prevent/balance waiting and turtling as a response to cooldown mechanics

What is the chair depicted in Cesare Maccari's 1889 painting "Cicerone denuncia Catilina"?

How many time has Arya actually used Needle?

Should a wizard buy fine inks every time he want to copy spells into his spellbook?

What is best way to wire a ceiling receptacle in this situation?

How to compare two different files line by line in unix?

What's the point of the test set?



Understanding raster custom transparency options (making null data 100% transparent) in QGIS?



Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern)
Announcing the arrival of Valued Associate #679: Cesar Manara
Unicorn Meta Zoo #1: Why another podcast?QGIS composer - How can I eliminate striping across transparent raster layers?QGIS 2.0 Problem with loading a Layer Style file that contains a transparent pixel listQGIS print composer: Transparency in legend symbolsQGIS 2.01 - raster transparency not working properlyQGIS raster no data value changed to -inf when viewing at smaller scaleQGIS heatmap classification and symbology?QGIS Viewshed Analysis ColoursQGIS 2.18 r.patch fails “Input raster map contains cells with NULL-value (no-data)”How to clip a 3-band raster when unwanted, bordering cells have values?How to use Custom Transparency band for an elevation raster - QGIS3





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}







1















I have a raster with a large null area (see the solid black area in the image below). The "Band 1" value throughout this null area is -3.402823e+38.



Raster



I'm trying to make sense of the result of my setting the "custom transparency options" so that "Band 1" values from 0 to 0 are 100% transparent (see settings below). Please note that at no point am I making changes to the default Style properties of the raster.



Settings



As a result of these settings, the null area does become transparent but the rest of the raster now has strange banding (see result below). My expectation was that the only visual difference between the initial raster and the result raster would be 100% transparency in the null area.



Result



Am I missing something?



EDIT: Per request, here are the the Style settings:



Style settings



And I have set '0' as an Additional no data value, as shown below.



AdditionalNullData



I have further discovered that I achieve the same strange banded raster result even if I delete the custom 0 to 0, 100% transparency option. To achieve this strange banded raster, I only need to select "Band 1" as the transparency band as shown below.



Band1TransparencyBand










share|improve this question
















bumped to the homepage by Community 22 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
















  • You have to show and style manager window. This is very strange result

    – nagib
    Mar 25 '18 at 19:29











  • Try typing 0 in Additional no data value.

    – Techie_Gus
    Mar 25 '18 at 20:55











  • I edited the Question in response to the above comments.

    – Mike E
    Mar 25 '18 at 23:49






  • 1





    I think your last line in the Edit is the perfect answer to your question. The band selected for Transparency band is treated as the alpha band (as in RGBA composite images) to control the transparency.

    – Kazuhito
    Mar 26 '18 at 0:31











  • I don't quite follow you. Which settings do you propose I alter so that the null/"no data" region is 100% transparent and the other values maintain their typical black-to-white coloring without the banding?

    – Mike E
    Mar 26 '18 at 2:06


















1















I have a raster with a large null area (see the solid black area in the image below). The "Band 1" value throughout this null area is -3.402823e+38.



Raster



I'm trying to make sense of the result of my setting the "custom transparency options" so that "Band 1" values from 0 to 0 are 100% transparent (see settings below). Please note that at no point am I making changes to the default Style properties of the raster.



Settings



As a result of these settings, the null area does become transparent but the rest of the raster now has strange banding (see result below). My expectation was that the only visual difference between the initial raster and the result raster would be 100% transparency in the null area.



Result



Am I missing something?



EDIT: Per request, here are the the Style settings:



Style settings



And I have set '0' as an Additional no data value, as shown below.



AdditionalNullData



I have further discovered that I achieve the same strange banded raster result even if I delete the custom 0 to 0, 100% transparency option. To achieve this strange banded raster, I only need to select "Band 1" as the transparency band as shown below.



Band1TransparencyBand










share|improve this question
















bumped to the homepage by Community 22 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
















  • You have to show and style manager window. This is very strange result

    – nagib
    Mar 25 '18 at 19:29











  • Try typing 0 in Additional no data value.

    – Techie_Gus
    Mar 25 '18 at 20:55











  • I edited the Question in response to the above comments.

    – Mike E
    Mar 25 '18 at 23:49






  • 1





    I think your last line in the Edit is the perfect answer to your question. The band selected for Transparency band is treated as the alpha band (as in RGBA composite images) to control the transparency.

    – Kazuhito
    Mar 26 '18 at 0:31











  • I don't quite follow you. Which settings do you propose I alter so that the null/"no data" region is 100% transparent and the other values maintain their typical black-to-white coloring without the banding?

    – Mike E
    Mar 26 '18 at 2:06














1












1








1








I have a raster with a large null area (see the solid black area in the image below). The "Band 1" value throughout this null area is -3.402823e+38.



Raster



I'm trying to make sense of the result of my setting the "custom transparency options" so that "Band 1" values from 0 to 0 are 100% transparent (see settings below). Please note that at no point am I making changes to the default Style properties of the raster.



Settings



As a result of these settings, the null area does become transparent but the rest of the raster now has strange banding (see result below). My expectation was that the only visual difference between the initial raster and the result raster would be 100% transparency in the null area.



Result



Am I missing something?



EDIT: Per request, here are the the Style settings:



Style settings



And I have set '0' as an Additional no data value, as shown below.



AdditionalNullData



I have further discovered that I achieve the same strange banded raster result even if I delete the custom 0 to 0, 100% transparency option. To achieve this strange banded raster, I only need to select "Band 1" as the transparency band as shown below.



Band1TransparencyBand










share|improve this question
















I have a raster with a large null area (see the solid black area in the image below). The "Band 1" value throughout this null area is -3.402823e+38.



Raster



I'm trying to make sense of the result of my setting the "custom transparency options" so that "Band 1" values from 0 to 0 are 100% transparent (see settings below). Please note that at no point am I making changes to the default Style properties of the raster.



Settings



As a result of these settings, the null area does become transparent but the rest of the raster now has strange banding (see result below). My expectation was that the only visual difference between the initial raster and the result raster would be 100% transparency in the null area.



Result



Am I missing something?



EDIT: Per request, here are the the Style settings:



Style settings



And I have set '0' as an Additional no data value, as shown below.



AdditionalNullData



I have further discovered that I achieve the same strange banded raster result even if I delete the custom 0 to 0, 100% transparency option. To achieve this strange banded raster, I only need to select "Band 1" as the transparency band as shown below.



Band1TransparencyBand







qgis raster transparency null






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Mar 25 '18 at 23:49







Mike E

















asked Mar 25 '18 at 18:33









Mike EMike E

362




362





bumped to the homepage by Community 22 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.







bumped to the homepage by Community 22 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.















  • You have to show and style manager window. This is very strange result

    – nagib
    Mar 25 '18 at 19:29











  • Try typing 0 in Additional no data value.

    – Techie_Gus
    Mar 25 '18 at 20:55











  • I edited the Question in response to the above comments.

    – Mike E
    Mar 25 '18 at 23:49






  • 1





    I think your last line in the Edit is the perfect answer to your question. The band selected for Transparency band is treated as the alpha band (as in RGBA composite images) to control the transparency.

    – Kazuhito
    Mar 26 '18 at 0:31











  • I don't quite follow you. Which settings do you propose I alter so that the null/"no data" region is 100% transparent and the other values maintain their typical black-to-white coloring without the banding?

    – Mike E
    Mar 26 '18 at 2:06



















  • You have to show and style manager window. This is very strange result

    – nagib
    Mar 25 '18 at 19:29











  • Try typing 0 in Additional no data value.

    – Techie_Gus
    Mar 25 '18 at 20:55











  • I edited the Question in response to the above comments.

    – Mike E
    Mar 25 '18 at 23:49






  • 1





    I think your last line in the Edit is the perfect answer to your question. The band selected for Transparency band is treated as the alpha band (as in RGBA composite images) to control the transparency.

    – Kazuhito
    Mar 26 '18 at 0:31











  • I don't quite follow you. Which settings do you propose I alter so that the null/"no data" region is 100% transparent and the other values maintain their typical black-to-white coloring without the banding?

    – Mike E
    Mar 26 '18 at 2:06

















You have to show and style manager window. This is very strange result

– nagib
Mar 25 '18 at 19:29





You have to show and style manager window. This is very strange result

– nagib
Mar 25 '18 at 19:29













Try typing 0 in Additional no data value.

– Techie_Gus
Mar 25 '18 at 20:55





Try typing 0 in Additional no data value.

– Techie_Gus
Mar 25 '18 at 20:55













I edited the Question in response to the above comments.

– Mike E
Mar 25 '18 at 23:49





I edited the Question in response to the above comments.

– Mike E
Mar 25 '18 at 23:49




1




1





I think your last line in the Edit is the perfect answer to your question. The band selected for Transparency band is treated as the alpha band (as in RGBA composite images) to control the transparency.

– Kazuhito
Mar 26 '18 at 0:31





I think your last line in the Edit is the perfect answer to your question. The band selected for Transparency band is treated as the alpha band (as in RGBA composite images) to control the transparency.

– Kazuhito
Mar 26 '18 at 0:31













I don't quite follow you. Which settings do you propose I alter so that the null/"no data" region is 100% transparent and the other values maintain their typical black-to-white coloring without the banding?

– Mike E
Mar 26 '18 at 2:06





I don't quite follow you. Which settings do you propose I alter so that the null/"no data" region is 100% transparent and the other values maintain their typical black-to-white coloring without the banding?

– Mike E
Mar 26 '18 at 2:06










1 Answer
1






active

oldest

votes


















0














To set the transparency, all you have to do is what you did without setting the transparency band to band 1, i.e. leave it on "None"



For example, to make the ocean bathymetry transparent in this elevation layer:



The transparency tab of the QGIS layer properties panel



Set the range you want (0 - 0 in your case, -11000 - 0 in mine) and leave the transparency band alone.



The transparency tab of the QGIS layer properties panel with a pixel range set






share|improve this answer
























  • (I'm pretty much telling you what @kazuhito was telling you above, just explaining in a little more detail.)

    – Peter Hanley
    Oct 16 '18 at 19:57












Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "79"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fgis.stackexchange.com%2fquestions%2f277074%2funderstanding-raster-custom-transparency-options-making-null-data-100-transpar%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









0














To set the transparency, all you have to do is what you did without setting the transparency band to band 1, i.e. leave it on "None"



For example, to make the ocean bathymetry transparent in this elevation layer:



The transparency tab of the QGIS layer properties panel



Set the range you want (0 - 0 in your case, -11000 - 0 in mine) and leave the transparency band alone.



The transparency tab of the QGIS layer properties panel with a pixel range set






share|improve this answer
























  • (I'm pretty much telling you what @kazuhito was telling you above, just explaining in a little more detail.)

    – Peter Hanley
    Oct 16 '18 at 19:57
















0














To set the transparency, all you have to do is what you did without setting the transparency band to band 1, i.e. leave it on "None"



For example, to make the ocean bathymetry transparent in this elevation layer:



The transparency tab of the QGIS layer properties panel



Set the range you want (0 - 0 in your case, -11000 - 0 in mine) and leave the transparency band alone.



The transparency tab of the QGIS layer properties panel with a pixel range set






share|improve this answer
























  • (I'm pretty much telling you what @kazuhito was telling you above, just explaining in a little more detail.)

    – Peter Hanley
    Oct 16 '18 at 19:57














0












0








0







To set the transparency, all you have to do is what you did without setting the transparency band to band 1, i.e. leave it on "None"



For example, to make the ocean bathymetry transparent in this elevation layer:



The transparency tab of the QGIS layer properties panel



Set the range you want (0 - 0 in your case, -11000 - 0 in mine) and leave the transparency band alone.



The transparency tab of the QGIS layer properties panel with a pixel range set






share|improve this answer













To set the transparency, all you have to do is what you did without setting the transparency band to band 1, i.e. leave it on "None"



For example, to make the ocean bathymetry transparent in this elevation layer:



The transparency tab of the QGIS layer properties panel



Set the range you want (0 - 0 in your case, -11000 - 0 in mine) and leave the transparency band alone.



The transparency tab of the QGIS layer properties panel with a pixel range set







share|improve this answer












share|improve this answer



share|improve this answer










answered Oct 16 '18 at 19:55









Peter HanleyPeter Hanley

18315




18315













  • (I'm pretty much telling you what @kazuhito was telling you above, just explaining in a little more detail.)

    – Peter Hanley
    Oct 16 '18 at 19:57



















  • (I'm pretty much telling you what @kazuhito was telling you above, just explaining in a little more detail.)

    – Peter Hanley
    Oct 16 '18 at 19:57

















(I'm pretty much telling you what @kazuhito was telling you above, just explaining in a little more detail.)

– Peter Hanley
Oct 16 '18 at 19:57





(I'm pretty much telling you what @kazuhito was telling you above, just explaining in a little more detail.)

– Peter Hanley
Oct 16 '18 at 19:57


















draft saved

draft discarded




















































Thanks for contributing an answer to Geographic Information Systems Stack Exchange!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fgis.stackexchange.com%2fquestions%2f277074%2funderstanding-raster-custom-transparency-options-making-null-data-100-transpar%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Щит и меч (фильм) Содержание Названия серий | Сюжет |...

is 'sed' thread safeWhat should someone know about using Python scripts in the shell?Nexenta bash script uses...

Meter-Bus Содержание Параметры шины | Стандартизация |...