POST
|
I've discovered the root of the problem and thought I should put it here in case anyone else runs into the same problem in the future. If you're just trying to display your own maps or charts offline and don't want it to load the rest of the world from the internet you can call new Map() without giving it a Basemap parameter. Trying and failing to load the Basemap from the internet without a connection is what causes it to fail and display nothing. I still can't figure out why I can't reproduce this on another machine, but that appears to be a separate issue, possibly a path problem.
... View more
03-20-2019
11:25 AM
|
0
|
0
|
254
|
POST
|
I finally got my app displaying an ENC from my machine, but if I take the machine offline the map viewer doesn't load anything. When I run the same app on a different computer with a network connection it also doesn't load the ENC. I thought it might be a licensing issue, but adding the line from the (very lacking) licensing documentation causes my app to not run at all. The only reason we chose this route was to be able to display ENCs without a network connection. What is the cause of this behavior?
... View more
03-19-2019
11:46 AM
|
0
|
1
|
303
|
POST
|
Also not exactly what I needed, but your examples did clue me in to a couple of things I had missed. In the end I got it to work the way I wanted. Thanks a lot for your help!
... View more
03-18-2019
08:04 AM
|
0
|
0
|
924
|
POST
|
Thanks for your reply. That example works, but it's not what I'm looking for. That code, like the sample code I used, assumes you want your chart to be the central widget on the main window. I need it to exist in a smaller widget alongside other things on the central widget. I think that's the part I'm having trouble with. Another concern I have is that all these samples are built in Qt Creator and our project is in Visual Studio, so there may be some generated code that I'm not getting. For example I see a .pri file that isn't explained anywhere.
... View more
03-14-2019
11:21 AM
|
0
|
3
|
924
|
POST
|
I followed the example found in this thread and compared it with every other example of ENCs in ArcGIS I could find, which wasn't very many, but my widget doesn't ever display the charts. At this point I've simplified it down to exactly the code from that example with one exception, which is that I'm not displaying it in the centralWidget. It's one of two display widgets on the main window, the other being a QOpenGLWidget. I have the S-57 format ENCs in the right place, I have the hydrography folder from the site, a SENC file gets generated and I get the output line that says "Loaded all maps". I suspect there's another setup step along the way I'm not aware of. Is there any reason that code wouldn't work for a QWidget promoted to my class on the main window?
... View more
03-13-2019
08:39 AM
|
0
|
5
|
1011
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|