POST
|
Hi James, thank you for confirmation. Yes, it is the problem we are hitting, there is a 256 open file limit on iOS (we are testing on), the app crashes around 190 created layers and does not crash when we limit the number of created layers. The error we are getting (from Qt) is: QThreadPipe: Unable to create pipe: Too many open files QEventDispatcherUNIXPrivate(): Can not continue without a thread pipe It seems that removing previously created layers from the map operational layers helps. Our usecase is somewhat non-standard, we have just a single zoom-level and quite restricted area, but we have a lot of time-dependent and elevation-dependent layers. I was wandering whether it is possible to tell the layer to load all tiles and close the file handle, but I guess this is too much to ask from the QML/Qt API. Cheers, Michal
... View more
02-07-2020
07:18 AM
|
0
|
2
|
1201
|
POST
|
I need to create large number (hundreds) of custom ImageTiledLayer layers which use locally stored tiles. It works fine on desktop (Linux) and Android, but crashes on iOS. It turned out, that the cause of the crash is that the app has too many open file handles, as on iOS the limit is typically fairly low (e.g., 256). The app crashes when opening around 190 layers. I have a couple of questions: - Can anyone confirm this is really the case? Is the ImageTiledLayer keeping open file handlers? - If so, can we somehow determine how many? Is it one per tile, or one per layer? - Also is there any way how to force the layer to close the file handlers after loading the tiles? Best Regards, Michal Stolba
... View more
02-05-2020
06:14 AM
|
0
|
4
|
1269
|
POST
|
Hi, I am using ImageTiledLayer to display raster tiles stored in local filesystem. All works fine. Now sometimes I need to download only some tiles (still fine) and for the tiles which are not in the filesystem show some "No Data" tile. I tired the following approaches: 1. Set noDataTileBehavior : Enums.NoDataTileBehaviorShow This has no effect at all. I suspect I need to provide a special NoData tile but I don't know how to get it and how to tell the layer about it. When the provided file is simply no there, the tile is empty. 2. Check file existence and if the file does not exist provide my own special No Data tile. This would be good as I could customize the tile. But! The tileCallback function does not pass beyond the file existence check! No error, no logging afterwards. I have tried both pure JS way and Qt way. No success. Is there any working way to achieve what I am trying to do? Thanks in advance for any help!
... View more
12-17-2019
03:58 AM
|
0
|
2
|
636
|
POST
|
It's much less often so it should be doable. Your tip seems to be what I was looking for but I was not aware of the MapView draw status. Thanks for your help!
... View more
02-17-2019
04:37 AM
|
0
|
0
|
1261
|
POST
|
Hi Lucas, thanks again for a quick reply. The approach you suggest is actually what I ended up using, but there is another problem. The load status of the layer changes to Loaded before the layer is fully displayed which results in the old layer first disappearing and then appearing again (with the new data) creating an undesirable flickering effect. The code I am using is functionally this: newLayer.onLoadStatusChanged.connect(function() { if(newLayer.loadStatus === Enums.LoadStatusLoaded){ map.operationalLayers.clear(); } }); map.operationalLayers.append(newLayer); Do you have any idea if I am doing something wrong or is it expected behaviour? Best, Michal
... View more
02-15-2019
07:44 AM
|
0
|
2
|
1261
|
POST
|
Thank you. Maybe the question was not posed well. What I am working on is basically a dynamic tiled layer with additional parameters, that is, when the additional parameters are changed, I need to reload the layer. My idea was that if the cache was disabled the layer would request the tiles every time again. So the most important question is, can I force a tiled layer to reload? From all resources I have seen it seems that the answer is no.
... View more
02-15-2019
01:48 AM
|
0
|
4
|
1261
|
POST
|
Dear all, I am implementing a custom tile layer using ServiceImageTiledLayer because of some custom tile parameters we need to take into account. The problem is that when I incorporate the new parameters into the tile URL in tileUrlCallback, the tiles are already cached and thus does not update (if I zoom in or pan to a new area, the tiles are loaded with the correct new parameters). Is there a way to reload the whole layer? Or is there a way to disable the cache so that ServiceImageTiledLayer is requesting the tiles always again? I was thinking about setting the cache size to 0, but I cannot find how. I only found the "esri.mapping.cache.disk.size" of the Esri QLocation plugin, but I am not using the plugin, I am using the ArcGIS Runtime. Is there a way to set this (or similar) property? Any help would be greatly appreciated, best, Michal
... View more
02-08-2019
06:47 AM
|
0
|
6
|
1560
|
POST
|
Hi Mark, thank you very much, that means I don't need to waste more time on trying that! The SDK approach seems to be the most suitable. Best, Michal
... View more
01-30-2019
10:56 AM
|
0
|
0
|
5923
|
POST
|
I am trying to export vector tiles (.vtpk) for offline use, preferably from https://www.arcgis.com/home/item.html?id=f42ec2699c7d4819bbbe60eca31b6b3e or even better the vector variant of Light Gray Canvas (I would even like to do some edits to the map or add my own style). I am trying to do it via ArcGIS Pro, but regardless of what I try, I get Error 00102 "Map does not contain a required layer type for web vector tile layer" What am I doing wrong? Or could you suggest some other way to do the desired task? I have also tried Tile Package Kreator but id does not seem to support vector tiles.
... View more
01-30-2019
05:57 AM
|
1
|
14
|
7534
|
Title | Kudos | Posted |
---|---|---|
1 | 01-30-2019 05:57 AM |
Online Status |
Offline
|
Date Last Visited |
04-06-2022
09:26 AM
|