POST
|
Hi Jen, I have already downloaded the new release, can I use right now the tif map? if so, should I use the ArcGISLocalTiledLayer class? Regards, David
... View more
05-21-2014
09:49 AM
|
0
|
1
|
1395
|
POST
|
Hi, I had a look at the example "Download Cache Tile (Beta)" and the program never starts the download of the cache tile, no signals were emitted from the tilecachetask and the progress bar wasn't displayed. Trying to check this behavior, I did a small program based on this example and I got the same result, the TileCacheTask did not download the tiles. Then I modified the initialization of the TileCacheTask, adding an "userCredentials" with the info of my ESRI Global Account and later the info of my Developer Account, in both cases the TileCacheTask emitted the signal "tileCacheError" showing an "Invalid token" error and later the TileCacheStatus signal. How can I solve this problem? Please find below my snippet of code. Best regards, David // adding the tileServiceLayer m_tiledServiceLayer = EsriRuntimeQt::ArcGISTiledMapServiceLayer("http://services.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer"); m_map.addLayer(m_tiledServiceLayer); // tileCacheTask m_serviceUrl = "http://tiledbasemaps.arcgis.com/arcgis/rest/services/World_Street_Map/MapServer"; m_usercredentials.setUserAccount("*****", "***"); m_tileCacheTask = EsriRuntimeQt::TileCacheTask(m_serviceUrl, m_usercredentials); // Add a rectangle QPoint pointo; mapPoint= m_map.toMapPoint(m_lastMouseCoord.x(), m_lastMouseCoord.y()); pointo.setX(mapPoint.x()); pointo.setY(mapPoint.y()); m_extentRectangle.setTopLeft(pointo); m_extentRectangle.setWidth(20000); m_extentRectangle.setHeight(20000); EsriRuntimeQt::Point topLeftMapPoint = Point(pointo.x(), pointo.y()); EsriRuntimeQt::Point bottomRightMapPoint = Point(m_extentRectangle.bottomRight().x(), m_extentRectangle.bottomRight().y()); // create and set the extent m_cacheExtent = EsriRuntimeQt::Envelope(topLeftMapPoint.x(), bottomRightMapPoint.y(), bottomRightMapPoint.x(), topLeftMapPoint.y()); poly2.startPath(m_extentRectangle.topLeft().x(),m_extentRectangle.topLeft().y()); poly2.lineTo(m_extentRectangle.topRight().x(), m_extentRectangle.topRight().y()); poly2.lineTo(m_extentRectangle.bottomRight().x(), m_extentRectangle.bottomRight().y()); poly2.lineTo(m_extentRectangle.bottomLeft().x(), m_extentRectangle.bottomLeft().y()); poly2.closePathWithLine(); EsriRuntimeQt::SimpleLineSymbol line2(QColor(0,0,0), 1); EsriRuntimeQt::SimpleFillSymbol simpleFillSym2(QColor(165,42,42,255), EsriRuntimeQt::SimpleFillSymbolStyle::DiagonalCross, line2); EsriRuntimeQt::Graphic graphic21(poly2, simpleFillSym2); m_graphicsLayer.addGraphic(graphic21); m_mapAction->setChecked(false); EsriRuntimeQt::GenerateTileCacheParameters params(true, QList<double>() << 0 << 1 << 2 << 3 << 4,EsriRuntimeQt::ExportBy::Id,m_cacheExtent,m_map.spatialReference()); QString tileCachePath = "../../temp/test.tpk"; QFile downloadFile(tileCachePath); QDir downloadDir(tileCachePath); // Submit the task and download the file m_tileCacheTask.submitTileCacheJobAndDownload(params, tileCachePath);
... View more
05-14-2014
11:32 AM
|
0
|
1
|
2845
|
POST
|
Hi, I am interested in use the offline mode. I have a satellite map in tif format (with the GIS info embedded), but I'm not able to load it using the EsriRuntimeQt::ArcGISLocalTiledLayer class, I only get a blank panel. I'm able to load the tpk examples but not this image, it is possible to use this kind of files or should I convert the picture to a tpk file using Arcgis Desktop? Please find below the snippet of code I'm using: QString tiledBaseMapLayer = "~/Downloads/maps/california/IMG_PHR.TIF"; EsriRuntimeQt::ArcGISLocalTiledLayer m_tiledLayer = EsriRuntimeQt::ArcGISLocalTiledLayer(tiledBaseMapLayer); m_map.addLayer(m_tiledLayer); Thanks, David
... View more
05-12-2014
08:58 AM
|
0
|
5
|
6230
|
POST
|
Thanks Jen, I'm downloading the software, but having a look at the API documentation this version there are more features and improvements, nice work!! Regards, David
... View more
11-06-2013
11:40 AM
|
0
|
0
|
322
|
POST
|
Hello, In the examples is clear how to move from screen coordinates to map coordinates and from decimal degrees (lat, lon) to map coordinates, but I was wondering how can I convert from map coordinates to decimal degrees? I had a look at the API reference, GeometryEngine class and I didn't find any method to do this purpose. I saw that in other platforms there is a method named MapPointToDecimalDegrees. Best regards, David
... View more
10-18-2013
12:25 PM
|
0
|
4
|
3103
|
POST
|
Hi Jean, Thanks for your help. Now everything is working fine. I moved to the right Ubuntu version (12.04) and started using the script. David
... View more
10-03-2013
06:26 AM
|
0
|
0
|
466
|
POST
|
Hi, We have installed ArcGIS Qt SDK on LinuxMint 15 with Qt 4.8 and qtcreator 2.8. We are not able to create a basic example using QtCreator we get the following error: /home/david/build-untitled1-Desktop_Qt_4_8_5-Debug/..untitled1/mainwindow.cpp:16: undefined reference to `EsriRuntimeQt::Map::create(QWidget*)' /home/david/build-untitled1-Desktop_Qt_4_8_5-Debug/../untitled1/mainwindow.cpp:23: undefined reference to `EsriRuntimeQt::ArcGISRuntime::installDirectory()' collect2: error: ld returned 1 exit status make: *** [arcgis_runtime_sdk_10_2_for_qt_application] Error 1 And this is our .pro file : #------------------------------------------------- # # Project created by QtCreator 2013-02-20T10:13:43 # #------------------------------------------------- QT += core gui opengl xml network TARGET = arcgis_runtime_sdk_10_2_for_qt_application TEMPLATE = app win32:CONFIG += \ embed_manifest_exe # This variable should be set to x86_64 or x86 based on 64 or 32 bit Targets respectively. QMAKE_TARGET.arch = $$(BUILD_ARCH) unix:QMAKE_CXXFLAGS+=--std=c++0x INCLUDEPATH += /opt/ArcGis/arcgis/runtime_sdk/qt10.2/sdk/include contains(QMAKE_TARGET.arch, x86):{ unix:LIBS += \ -L/usr/lib win32:{ LIBS += \ -L"$$(ARCGISRUNTIMESDKQT_10_2)"/ArcGISRuntime10.2/Client32 CONFIG(debug, debug|release) { LIBS += \ -lEsriRuntimeQtd } else { LIBS += \ -lEsriRuntimeQt } } } else { unix:LIBS += \ -L/usr/lib64 \ -L/opt/ArcGis/arcgis/runtime_sdk/qt10.2/ArcGISRuntime10.2/ClientLx/libEsriRuntimeQt.so win32:{ LIBS += \ -L"$$(ARCGISRUNTIMESDKQT_10_2)"/ArcGISRuntime10.2/Client64 CONFIG(debug, debug|release) { LIBS += \ -lEsriRuntimeQtd } else { LIBS += \ -lEsriRuntimeQt } } } SOURCES += main.cpp \ mainwindow.cpp HEADERS += mainwindow.h Best regards, David
... View more
09-12-2013
07:13 AM
|
0
|
5
|
4134
|
POST
|
Hi, We have installed ArcGIS Qt SDK on LinuxMint 15 with Qt 4.8 and qtcreator 2.8. We are not able to create a basic example using QtCreator we get the following error: /home/david/build-untitled1-Desktop_Qt_4_8_5-Debug/..untitled1/mainwindow.cpp:16: undefined reference to `EsriRuntimeQt::Map::create(QWidget*)' /home/david/build-untitled1-Desktop_Qt_4_8_5-Debug/../untitled1/mainwindow.cpp:23: undefined reference to `EsriRuntimeQt::ArcGISRuntime::installDirectory()' collect2: error: ld returned 1 exit status make: *** [arcgis_runtime_sdk_10_2_for_qt_application] Error 1 And this is our .pro file : #------------------------------------------------- # # Project created by QtCreator 2013-02-20T10:13:43 # #------------------------------------------------- QT += core gui opengl xml network TARGET = arcgis_runtime_sdk_10_2_for_qt_application TEMPLATE = app win32:CONFIG += \ embed_manifest_exe # This variable should be set to x86_64 or x86 based on 64 or 32 bit Targets respectively. QMAKE_TARGET.arch = $$(BUILD_ARCH) unix:QMAKE_CXXFLAGS+=--std=c++0x INCLUDEPATH += /opt/ArcGis/arcgis/runtime_sdk/qt10.2/sdk/include contains(QMAKE_TARGET.arch, x86):{ unix:LIBS += \ -L/usr/lib win32:{ LIBS += \ -L"$$(ARCGISRUNTIMESDKQT_10_2)"/ArcGISRuntime10.2/Client32 CONFIG(debug, debug|release) { LIBS += \ -lEsriRuntimeQtd } else { LIBS += \ -lEsriRuntimeQt } } } else { unix:LIBS += \ -L/usr/lib64 \ -L/opt/ArcGis/arcgis/runtime_sdk/qt10.2/ArcGISRuntime10.2/ClientLx/libEsriRuntimeQt.so win32:{ LIBS += \ -L"$$(ARCGISRUNTIMESDKQT_10_2)"/ArcGISRuntime10.2/Client64 CONFIG(debug, debug|release) { LIBS += \ -lEsriRuntimeQtd } else { LIBS += \ -lEsriRuntimeQt } } } SOURCES += main.cpp \ mainwindow.cpp HEADERS += mainwindow.h Best regards, David
... View more
09-12-2013
07:10 AM
|
0
|
0
|
2620
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:24 AM
|