Re-rendering tilekeys?

classic Classic list List threaded Threaded
7 messages Options
Johnson prem Johnson prem
Reply | Threaded
Open this post in threaded view
|

Re-rendering tilekeys?

Hi

Is there any way to re-render already rendered tilekeys without removing and adding the imagelayer?
The purpose is to display tiles with updated Look up table.


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

Re: Re-rendering tilekeys?

There is a method:

MapNode->getTerrainEngine()->invalidateRegion(const GeoExtent& extent)

Honestly: it's been forever since this was tested, so it may or may not work. Be sure to disable any caching if you try this.
Glenn Waldron / Pelican Mapping
Johnson prem Johnson prem
Reply | Threaded
Open this post in threaded view
|

Re: Re-rendering tilekeys?

Thanks gwaldron.

I am surprised that display update such as stretching (through histogram) of specific imagelayer
performed smoothly from QGIS to osgEarth (as plugin).
But the samething i could not do in my application which is built with only osgearth. Very sure that i am missing something. it rebuilds entire imagelayer tiles and appeals visually not good.
Can you suggest how it can be done better?
gwaldron gwaldron
Reply | Threaded
Open this post in threaded view
|

Re: Re-rendering tilekeys?

I assume you tried my suggestion and it didn't work.
Perhaps you can enter a Github issue for that so we get it on the list. Thanks.
Glenn Waldron / Pelican Mapping
Johnson prem Johnson prem
Reply | Threaded
Open this post in threaded view
|

Re: Re-rendering tilekeys?

Yes gwaldron. I tried but didn't work.
Even with MPTerrainEngine, didn't happen.
I work on osg2.8, for your information.bit unlucky.
is anyother way?
 
gwaldron gwaldron
Reply | Threaded
Open this post in threaded view
|

Re: Re-rendering tilekeys?

No, I cannot think of another way. Sorry.
Glenn Waldron / Pelican Mapping
Johnson prem Johnson prem
Reply | Threaded
Open this post in threaded view
|

Re: Re-rendering tilekeys?

Extremely sorry. It works fine with MPTerrainEngine.
I forgot to set incrementalUpdate flag to true.
The MPTerrainEngine is amazing.

Thanks gwaldron.