Skip to content

About the north and south polar voids and layer overlay problems. #2408

Discussion options

You must be logged in to vote

The reason for the "hole" at the poles is because the data is in the Spherical Mercator projection, which only reaches +/- 85 degrees latitude (approximately).

As for the overlay, unless the GeoTIFF has the white color set as the NO-DATA color, it will render. You can use a layer shader to remove it in some cases; here's a simple example:

<shader>
  <![CDATA[
    #pragma vp_function chroma_key, fragment
    void chroma_key(inout vec4 color) {
        const vec3 no_data = vec3(1,1,1);
        float dist = distance(color.rgb, no_data);
        if (dist <= 0.2)
            color.a = 0.0;
    }
  ]]>
</shader>

Replies: 3 comments 8 replies

Comment options

You must be logged in to vote
1 reply
@luohuiiqng
Comment options

Answer selected by luohuiiqng
Comment options

You must be logged in to vote
1 reply
@luohuiiqng
Comment options

Comment options

You must be logged in to vote
6 replies
@crystalsky
Comment options

@crystalsky
Comment options

@gwaldron
Comment options

@crystalsky
Comment options

@gwaldron
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants