MaskLayer display error

classic Classic list List threaded Threaded
4 messages Options
lher86 lher86
Reply | Threaded
Open this post in threaded view
|

MaskLayer display error

I have a terrain model in which it includes a hole. The hole is introduced by adding a FeatureMaskLayer layer. The problem arises when representing it. It seems to work perfectly, but at certain zoom levels it represents the hole badly. In this figure the display is ok. On this other zoom the hole is bad represented. When i zoom in the error disappears. Could you please tell me some solution ? Thanks
gwaldron gwaldron
Reply | Threaded
Open this post in threaded view
|

Re: MaskLayer display error

Please post an earth file that we can use to reproduce the error.
Glenn Waldron / Pelican Mapping
lher86 lher86
Reply | Threaded
Open this post in threaded view
|

Re: MaskLayer display error

Hi Glenn

I'm sending you the earth file.

sample.earth
cotas.tif
monzon.TIF

Thanks
gwaldron gwaldron
Reply | Threaded
Open this post in threaded view
|

Re: MaskLayer display error

Thanks.

Just a guess, but to me this looks like an error caused by precision loss. The MaskGenerator that osgEarth uses to cut holes uses OSG's osgUtil::DelaunayTriangulator internally; that class operates on single-precision floating point coordinates. So it's quite possible that the operation is introducing errors by truncating the input values.

Assuming this is the issue, I'm sorry but we don't have an easy fix at the moment! I recommend logging a GitHub issue (include your sample earth file -- no need for the imagery) so we can track it.
Glenn Waldron / Pelican Mapping