POST
|
Hello, I need to load a elevation data(dt2) into my map. Currently i'm loading map using the following method void LoadMap() { MapGraphicsView* m_mapview = new MapGraphicsView(this); Raster* raster = new Raster("map.tif", this); RasterLayer* rasterLayer = new RasterLayer(raster, this); Basemap* basepmap = new Basemap(rasterLayer, this); Map* m_map = new Map(BasemapType::Imagery, lat_value, long_value, 18, this); m_map->setBasemap(basemap); m_mapView->setMap(m_map); } In the above code how to add the elevation source(*.dt2)?
... View more
07-22-2019
03:08 AM
|
0
|
1
|
563
|
POST
|
Thanks Mr.James Ballard, I can able to make it out based on your input. One more useful sample I found here arcgis-runtime-samples-qt/ArcGISRuntimeSDKQt_CppSamples/Search/FindAddress at master · Esri/arcgis-runtime-samples-qt · …
... View more
08-24-2018
02:29 AM
|
0
|
0
|
968
|
POST
|
Hi, I have to display n number of graphic(PictureMarkerSymbol) in the mapview. I can able to display the graphic in mapview, I need one more additional option like while hovering the mouse over the graphic it should display the unique name of each graphic. Below is the code for adding the graphics(PictureMarkerSymbol) in mapview. In that how to add a tool-tip to each graphic? PictureMarkerSymbol *picSymbol = new PictureMarkerSymbol("icon.png",this); foreach(const Point &pnt, pntList) { Graphic *graphic = new Graphic(pnt, picSymbol); m_graphicsoverlay->graphics()->append(graphic); } m_mapview->graphicsoverlays()->append(m_graphicsoverlay); Thanks Paulraj
... View more
07-31-2018
09:45 PM
|
0
|
2
|
1424
|
POST
|
How to convert the coordinate from WGS84 to Indian Grid Reference System(or any Custom Projection) using ArcGIS Qt C++ SDK? Any examples or sample code could be appreciated. Thanks in advance
... View more
05-10-2018
04:22 AM
|
0
|
1
|
587
|
POST
|
Hi Luke, Thanks for your kind reply. I changed the x, y coordinates value it worked! Previous Value Graphic* redCircle = new Graphic(Point(12.973318, 77.640717, SpatialReference::wgs84()), this); Changed to Graphic* redCircle = new Graphic(Point(77.640717, 12.973318, SpatialReference::wgs84()), this);
... View more
06-29-2017
04:50 AM
|
0
|
0
|
567
|
POST
|
Hi Luke, Thanks for reply. I'm using SDK 100.0 release in QtCreator I followed the examples in GitHub. The simple marker is displaying for online source map, but im not getting the graphic marker in my local raster map file(tif). The Lat, Long values I',m adding in graphic point, but it is not displaying, may be I'm wrong in spacial reference. pls guide me Below is my code, void RasterLayerFile::componentComplete() { QQuickItem::componentComplete(); QString dataPath = QQmlProperty::read(this, "C:\Users\TAS\ArcGIS\Runtime\Data\raster").toString(); // find QML MapView component m_mapView = findChild<MapQuickView*>("mapView"); m_mapView->setWrapAroundMode(WrapAroundMode::Disabled); // Create a map using a raster layer createAndAddRasterLayer(dataPath + "Map.tif"); } void RasterLayerFile::createAndAddRasterLayer(QUrl rasterUrl) { QString dataPath = rasterUrl.toLocalFile(); Raster* raster = new Raster(dataPath, this); RasterLayer* rasterLayer = new RasterLayer(raster, this); Basemap* basemap = new Basemap(rasterLayer, this); m_map = new Map(basemap, this); //Offlne Tif map //m_map = new Map(Basemap::imagery(this), this); //Online Imagery map m_graphicsOverlay = new GraphicsOverlay(this); Graphic* redCircle = new Graphic(Point(12.973318, 77.640717, SpatialReference::wgs84()), this); //Graphic* redCircle = new Graphic(Point(12.973318, 77.640717, SpatialReference::webMercator()), this); SimpleMarkerSymbol* redCircleSymbol = new SimpleMarkerSymbol(SimpleMarkerSymbolStyle::Circle, QColor("red"), 12, this); redCircle->setSymbol(redCircleSymbol); m_graphicsOverlay->graphics()->append((redCircle)); m_mapView->graphicsOverlays()->append(m_graphicsOverlay); m_mapView->setMap(m_map); }
... View more
06-28-2017
10:27 PM
|
0
|
2
|
567
|
POST
|
Hi, I'm trying add some symbols in my map(C++), I followed the code in the link https://developers.arcgis.com/qt/10-2/cpp/guide/create-a-graphics-layer.htm but I cant able to add a header file "GraphicsLayer.h" in my application. Showing error no such file or directory.
... View more
06-28-2017
05:19 AM
|
0
|
4
|
1016
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:24 AM
|