POST
|
Hello @cwaller I have created a quick sample code which exercises the QSerialPort on Windows and it works for me. In this code snippet I hard-coded the port parameters, but it should be fine since you said you can read the port without problems: void nmeaTestClass::startGpsLocationReading()
{
QSerialPort* serialPort = new QSerialPort();
NmeaLocationDataSource* nmeaLocationDataSource = new NmeaLocationDataSource(this);
m_mapview->locationDisplay()->setDataSource(nmeaLocationDataSource);
connect(serialPort, &QSerialPort::readyRead, this, [serialPort, nmeaLocationDataSource]()
{
const QByteArray locData = serialPort->readLine(1024);
nmeaLocationDataSource->pushData(locData);
});
serialPort->setPortName("COM4");
serialPort->setBaudRate(9600);
serialPort->setDataBits(QSerialPort::DataBits::Data8);
serialPort->setParity(QSerialPort::Parity::NoParity);
serialPort->setStopBits(QSerialPort::StopBits::OneStop);
serialPort->setFlowControl(QSerialPort::FlowControl::NoFlowControl);
serialPort->open(QIODevice::ReadWrite);
m_mapview->locationDisplay()->start();
} May I ask if you were following similar steps? If so, and still doesn't work, then if you could share your code-snippet that would be great help. Also, may I ask what platform are you trying to run your application? Also, unfortunately QML does not support QSerialPort, but QBluetoothSocket is supported on both C++ and QML.
... View more
05-19-2021
10:04 AM
|
0
|
0
|
701
|
POST
|
Hello Girish, It is unclear whether it is a bug in the app code or in the Runtime SDK. My recommendation is that you contact Esri Support Services (Esri Support | ArcGIS Technical Support ) to help you make that determination, as I unfortunately don't have the bandwidth to further troubleshoot the issue myself.
... View more
09-21-2020
08:18 AM
|
0
|
0
|
1631
|
POST
|
Hello Girish, I took a quick look and didn't notice anything blatantly wrong in your code. It might be worth reaching out to support services (Esri Support | ArcGIS Technical Support ) so to get some assistance troubleshooting and to see if you are encountering a bug in the software. Kind regards, Marton
... View more
09-14-2020
09:06 AM
|
0
|
2
|
1631
|
POST
|
Hello Girish, Looks like you're on the right track, as the tiles are displaying well enough; now you will just need to determine why the tiles are not displaying in the correct location. Glad to see you're getting close, Marton
... View more
09-11-2020
06:42 AM
|
0
|
4
|
1631
|
POST
|
Hello Girish, Thanks for your reply. I had a look into it and sure enough the Java sample is an old 10.2.x version; currently in our 100.x we do thing differently. The ImageTiledLayer class can still be subclassed, within which you would connect to the tileRequest signal. This signal is emitted when tiles are requested and inside its callback the following three functions can be called: setNoDataTile, setTileData, and setTileError. This setTileData function is the one which updates the tiles to the ones which are extracted from the mbtiles file. Hope this help, Marton
... View more
09-11-2020
02:23 AM
|
0
|
6
|
1631
|
POST
|
Hello Girish, Thank you for your question! TextSymbol should work over scene view in both C++ and QML; there is a sample within Scene, Surface Placement which showcases its usage. If it doesn't work for you, may I ask what exactly is the problem or error message? Also, which versions of Qt and ArcGIS Runtime Qt SDK are you using, and on which platforms?
... View more
09-09-2020
08:13 AM
|
0
|
2
|
459
|
POST
|
Hello Girish, Thank you for getting in touch! Unfortunately, we do not support the .mbtiles format out of the box. However, the ImageTiledLayer class can be extended to support this format; and this can be done both in C++ and QML: ImageTiledLayer Class | ArcGIS for Developers ImageTiledLayer QML Type | ArcGIS for Developers Alas, we do not seem to have a sample that showcases this behaviour but it is feasible within ArcGIS, as I found an Android sample, written in Java, which does make use of an .mbtiles format: Local MBTiles | ArcGIS for Developers Please note that the handling of the SQLite datafile reading has to be implemented on your side. Hope this helps, Marton
... View more
09-09-2020
03:56 AM
|
0
|
8
|
1631
|
Online Status |
Offline
|
Date Last Visited |
09-13-2022
05:16 PM
|