Q&A - Question

Opening .ttkgp in viewer stalls the UI thread

Question
AdaC asked on December 19, 2017, keyword: Developer Kernel
Hi,

In C#/Wpf I have a TGIS_ViewerWnd dropped into my UserControl. When I call viewer.Open to open my ttkgp file, the UI thread stalls while the layers are loaded and displayed.

With our app, the first thing it does when it boots up is load the .ttkgp file. The user has to wait several seconds before they can start interacting with the application.

Are there any strategies I can employ to allow the user to start using other parts of the app while the map loads?

Thankyou,

Hamish
Answers
Tomasz Kosinski (TatukGIS) replied December 02, 2017
You can call GIS.Lock..GIS.Unlock to postpone initial redraw
 
AdaC replied December 02, 2017
I tried using Lock and Unlock. However, when the map loads it still takes several seconds and the UI stalls while the map is loaded and rendered. Is there a way to load/render the map without blocking the UI thread?
Tomasz Kosinski (TatukGIS) replied December 05, 2017
Map will block UI (we are working to eliminate this). However loading project w/o rendering map should be fast - at this strange, we do not read data. The exception is a layer like GML, CAD - reading such kind of data requires full interpretation upon opening.
Please, contact support@ providing information what kind of data are in your project. 
 
AdaC replied December 19, 2017
Thanks for your answer (regarding the blocking). I look forward to the solution (I'm assuming this is the progressive rendering feature mentioned on this page - http://docs.tatukgis.com/DK11/readme:whatsmissing).

I'll debug the project/load issue first and then contact support. Thanks for your help!
If you would like to answer the question please Sign In.
*
*
Please review our recent Privacy Policy.
If you have any questions or requests, please contact us.
Rules
The Questions and Answers (Q & A) is intended to provide a means of communication between TatukGIS customers.
 
  1. Licensed users (with active maintenance play) of TatukGIS products may contribute to the Q & A content. Read-only access is available to anyone.
  2. Keep the content positive and professional.
  3. Be courteous to others by posting information when a question or issue asked on the Q & A is answered or resolved by other means (such as with help from TatukGIS technical support). Offer others at least a hint how the posted question was answered or the issue was resolved.
  4. The Q & A is not a replacement for TatukGIS technical support. TatukGIS team may or may not regularly follow or contribute content.