<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Add graphic in local raster file in Qt Maps SDK Questions</title>
    <link>https://community.esri.com/t5/qt-maps-sdk-questions/add-graphic-in-local-raster-file/m-p/314643#M1578</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A href="https://community.esri.com/migrated-users/281068"&gt;Paulraj J&lt;/A&gt;‌, could I just confirm that your are using version 10.2.X of the SDK and not the 100.0 release?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For version 100.0, this GitHub repository (&lt;A class="link-titled" href="https://github.com/Esri/arcgis-runtime-samples-qt/tree/master/ArcGISRuntimeSDKQt_CppSamples" title="https://github.com/Esri/arcgis-runtime-samples-qt/tree/master/ArcGISRuntimeSDKQt_CppSamples"&gt;arcgis-runtime-samples-qt/ArcGISRuntimeSDKQt_CppSamples at master · Esri/arcgis-runtime-samples-qt · GitHub&lt;/A&gt;&amp;nbsp;) has some examples of the kinds of things you are doing. The code in the link you posted would not be valid&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are using 10.2.6, perhaps you could provide some more details of how your project is set up? E.g. are you using QtCreator as your IDE?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Luke&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 28 Jun 2017 13:19:12 GMT</pubDate>
    <dc:creator>LukeSmallwood</dc:creator>
    <dc:date>2017-06-28T13:19:12Z</dc:date>
    <item>
      <title>Add graphic in local raster file</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/add-graphic-in-local-raster-file/m-p/314642#M1577</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm trying add some symbols in my map(C++), I followed the code in the link&amp;nbsp;&lt;A class="jivelink2" href="https://developers.arcgis.com/qt/10-2/cpp/guide/create-a-graphics-layer.htm" title="https://developers.arcgis.com/qt/10-2/cpp/guide/create-a-graphics-layer.htm"&gt;https://developers.arcgis.com/qt/10-2/cpp/guide/create-a-graphics-layer.htm&lt;/A&gt;&amp;nbsp;but I cant able to add a header file &lt;SPAN style="color: #000000;"&gt;"GraphicsLayer.h" in my application. Showing error no such file or directory.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Jun 2017 12:19:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/add-graphic-in-local-raster-file/m-p/314642#M1577</guid>
      <dc:creator>PaulrajJ</dc:creator>
      <dc:date>2017-06-28T12:19:12Z</dc:date>
    </item>
    <item>
      <title>Re: Add graphic in local raster file</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/add-graphic-in-local-raster-file/m-p/314643#M1578</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A href="https://community.esri.com/migrated-users/281068"&gt;Paulraj J&lt;/A&gt;‌, could I just confirm that your are using version 10.2.X of the SDK and not the 100.0 release?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For version 100.0, this GitHub repository (&lt;A class="link-titled" href="https://github.com/Esri/arcgis-runtime-samples-qt/tree/master/ArcGISRuntimeSDKQt_CppSamples" title="https://github.com/Esri/arcgis-runtime-samples-qt/tree/master/ArcGISRuntimeSDKQt_CppSamples"&gt;arcgis-runtime-samples-qt/ArcGISRuntimeSDKQt_CppSamples at master · Esri/arcgis-runtime-samples-qt · GitHub&lt;/A&gt;&amp;nbsp;) has some examples of the kinds of things you are doing. The code in the link you posted would not be valid&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are using 10.2.6, perhaps you could provide some more details of how your project is set up? E.g. are you using QtCreator as your IDE?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Luke&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Jun 2017 13:19:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/add-graphic-in-local-raster-file/m-p/314643#M1578</guid>
      <dc:creator>LukeSmallwood</dc:creator>
      <dc:date>2017-06-28T13:19:12Z</dc:date>
    </item>
    <item>
      <title>Re: Add graphic in local raster file</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/add-graphic-in-local-raster-file/m-p/314644#M1579</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Luke,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for reply. I'm using SDK 100.0 release in QtCreator&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;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&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below is my code,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;void RasterLayerFile::componentComplete()&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp; QQuickItem::componentComplete();&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; QString dataPath = QQmlProperty::read(this, "C:\Users\TAS\ArcGIS\Runtime\Data\raster").toString();&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; // find QML MapView component&lt;BR /&gt;&amp;nbsp; m_mapView = findChild&amp;lt;MapQuickView*&amp;gt;("mapView");&lt;BR /&gt;&amp;nbsp; m_mapView-&amp;gt;setWrapAroundMode(WrapAroundMode::Disabled);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; // Create a map using a raster layer&lt;BR /&gt;&amp;nbsp; createAndAddRasterLayer(dataPath + "Map.tif");&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;void RasterLayerFile::createAndAddRasterLayer(QUrl rasterUrl)&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp; QString dataPath = rasterUrl.toLocalFile();&lt;BR /&gt;&amp;nbsp; Raster* raster = new Raster(dataPath, this);&lt;BR /&gt;&amp;nbsp; RasterLayer* rasterLayer = new RasterLayer(raster, this);&lt;BR /&gt;&amp;nbsp; Basemap* basemap = new Basemap(rasterLayer, this);&lt;BR /&gt;&amp;nbsp; m_map = new Map(basemap, this);&amp;nbsp;&amp;nbsp; //Offlne Tif map&lt;BR /&gt;&amp;nbsp; //m_map = new Map(Basemap::imagery(this), this);&amp;nbsp;&amp;nbsp;&amp;nbsp; //Online Imagery map&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; m_graphicsOverlay = new GraphicsOverlay(this);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Graphic* redCircle = new Graphic(Point(12.973318, 77.640717, SpatialReference::wgs84()), this);&lt;BR /&gt;&amp;nbsp; //Graphic* redCircle = new Graphic(Point(12.973318, 77.640717, SpatialReference::webMercator()), this);&lt;BR /&gt;&amp;nbsp; SimpleMarkerSymbol* redCircleSymbol = new SimpleMarkerSymbol(SimpleMarkerSymbolStyle::Circle, QColor("red"), 12, this);&lt;BR /&gt;&amp;nbsp; redCircle-&amp;gt;setSymbol(redCircleSymbol);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; m_graphicsOverlay-&amp;gt;graphics()-&amp;gt;append((redCircle));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; m_mapView-&amp;gt;graphicsOverlays()-&amp;gt;append(m_graphicsOverlay);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; m_mapView-&amp;gt;setMap(m_map);&lt;BR /&gt;}&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Jun 2017 05:27:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/add-graphic-in-local-raster-file/m-p/314644#M1579</guid>
      <dc:creator>PaulrajJ</dc:creator>
      <dc:date>2017-06-29T05:27:32Z</dc:date>
    </item>
    <item>
      <title>Re: Add graphic in local raster file</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/add-graphic-in-local-raster-file/m-p/314645#M1580</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A href="https://community.esri.com/migrated-users/281068"&gt;Paulraj J&lt;/A&gt;‌,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you add the following code to your&amp;nbsp;&lt;SPAN style="background-color: #ffffff;"&gt;createAndAddRasterLayer function you should see the WKID of the spatial reference from your raster layer logged to the QtCreator console:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN style="color: #c0c0c0;"&gt;&amp;nbsp; &lt;/SPAN&gt;connect(rasterLayer,&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&amp;amp;&lt;SPAN style="color: #800080;"&gt;RasterLayer&lt;/SPAN&gt;::doneLoading,&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #808000;"&gt;this&lt;/SPAN&gt;,&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;[&lt;SPAN style="color: #808000;"&gt;this&lt;/SPAN&gt;,&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;rasterLayer](&lt;SPAN style="color: #800080;"&gt;Error&lt;/SPAN&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;loadError)&lt;/PRE&gt;&lt;PRE&gt;&lt;SPAN style="color: #c0c0c0;"&gt;&amp;nbsp; &lt;/SPAN&gt;{&lt;/PRE&gt;&lt;PRE&gt;&lt;PRE&gt;&lt;SPAN style="color: #c0c0c0;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #808000;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;(!loadError.isEmpty())&lt;/PRE&gt;&lt;PRE&gt;&lt;SPAN style="color: #c0c0c0;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;{&lt;/PRE&gt;&lt;PRE&gt;&lt;SPAN style="color: #c0c0c0;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #000080;"&gt;qDebug&lt;/SPAN&gt;()&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&amp;lt;&amp;lt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;loadError.message()&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&amp;lt;&amp;lt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;loadError.additionalMessage();&lt;/PRE&gt;&lt;PRE&gt;&lt;SPAN style="color: #c0c0c0;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #808000;"&gt;return&lt;/SPAN&gt;;&lt;/PRE&gt;&lt;PRE&gt;&lt;SPAN style="color: #c0c0c0;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;}&lt;/PRE&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;SPAN style="color: #c0c0c0;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;m_mapView&lt;/SPAN&gt;-&amp;gt;setViewpointCenter(rasterLayer-&amp;gt;fullExtent().center(),&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000080;"&gt;80000&lt;/SPAN&gt;);&lt;/PRE&gt;&lt;PRE&gt;&lt;SPAN style="color: #c0c0c0;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #000080;"&gt;qDebug&lt;/SPAN&gt;()&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&amp;lt;&amp;lt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000;"&gt;"MapView&lt;/SPAN&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000;"&gt;wkid"&lt;/SPAN&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&amp;lt;&amp;lt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;m_mapView&lt;/SPAN&gt;-&amp;gt;spatialReference().wkid();&lt;/PRE&gt;&lt;PRE&gt;&lt;SPAN style="color: #c0c0c0;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #000080;"&gt;qDebug&lt;/SPAN&gt;()&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&amp;lt;&amp;lt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000;"&gt;"rasterLayer&lt;/SPAN&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000;"&gt;wkid"&lt;/SPAN&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&amp;lt;&amp;lt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;rasterLayer-&amp;gt;spatialReference().wkid();&lt;/PRE&gt;&lt;PRE&gt;&lt;SPAN style="color: #c0c0c0;"&gt;&amp;nbsp; &lt;/SPAN&gt;});&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example, with a local file I am using I see:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #aa0000;"&gt;rasterLayer wkid 26910&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the reported wkid is 0 then your raster is not getting loaded with a valid Spatial Reference and so the position that you create the graphics at will not match.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It also looks like your dataPath is missing a directory separator at the end - I think at the moment the url you are passing would be "&lt;SPAN style="background-color: #ffffff;"&gt;C:\Users\TAS\ArcGIS\Runtime\Data\rasterMap.tif" - but I could be wrong.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;I hope that helps,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;Luke&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Jun 2017 08:34:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/add-graphic-in-local-raster-file/m-p/314645#M1580</guid>
      <dc:creator>LukeSmallwood</dc:creator>
      <dc:date>2017-06-29T08:34:33Z</dc:date>
    </item>
    <item>
      <title>Re: Add graphic in local raster file</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/add-graphic-in-local-raster-file/m-p/314646#M1581</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Luke,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your kind reply.&lt;/P&gt;&lt;P&gt;I changed the x, y coordinates value it worked!&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Previous Value&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Graphic* redCircle = new Graphic(Point(12.973318, 77.640717, SpatialReference::wgs84()), this);&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Changed to &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Graphic* redCircle = new Graphic(Point(77.640717, 12.973318, SpatialReference::wgs84()), this);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Jun 2017 11:50:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/add-graphic-in-local-raster-file/m-p/314646#M1581</guid>
      <dc:creator>PaulrajJ</dc:creator>
      <dc:date>2017-06-29T11:50:31Z</dc:date>
    </item>
  </channel>
</rss>

