About the north and south polar voids and layer overlay problems. #2408
-
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 8 replies
-
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> |
Beta Was this translation helpful? Give feedback.
-
(In the future, please post a new question to a new thread - thanks.) You must use the GDAL WMTS mini-driver to access WMTS in osgEarth. Here is an example: <GDALImage name="my wmts layer">
<connection>
WMTS:https://basemap.nationalmap.gov/arcgis/rest/services/USGSShadedReliefOnly/MapServer/WMTS/1.0.0/WMTSCapabilities.xml
</connection>
</GDALImage> More information is at https://gdal.org/drivers/raster/wmts.html |
Beta Was this translation helpful? Give feedback.
-
I use this config for earth file, but the osgearth_imgui couldn't display the map layer, could you give me a help????
|
Beta Was this translation helpful? Give feedback.
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: