<?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 Raster over basemap in Qt Maps SDK Questions</title>
    <link>https://community.esri.com/t5/qt-maps-sdk-questions/raster-over-basemap/m-p/1325235#M5019</link>
    <description>&lt;P&gt;Hi folks,&lt;/P&gt;&lt;P&gt;Hoping this is an easy one.&lt;/P&gt;&lt;P&gt;I want to have a single map view which contains multiple offline raster files rendered over online web maps.&lt;/P&gt;&lt;P&gt;The QML looks like this:&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;MapView {&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; Map {&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Basemap {&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; initStyle: Enums.BasemapStyleArcGISImageryStandard&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; RasterLayer {&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Raster {&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; path: "file:///myfile.png"&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; }&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;}&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;This works for GeoTiff files, but not for PNG/JPG with associated world files. I have used Process Explorer (on Windows) to verify that the PGW/JGW files are found. I do not see anything wrong in the debug output and the format looks correct to me. Here is an example PGW:&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;0.00009554533861386&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;0&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;0&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;-0.00009554533861386&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;26.13346608087920941&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;-24.63415136266930716&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;When I debug the difference between the GeoTiff layer and the PNG/JPG ones, I see that the SpatialReference of the layer is null, whereas for the GeoTiff layer it is 4326.&lt;BR /&gt;&lt;BR /&gt;I could not figure out how to force the SpatialReference onto a raster layer. Is this a thing?&lt;/P&gt;&lt;P&gt;Note that this issue reproduces with the "Raster layer" SDK sample even with 200.2.0, i.e. my GeoTiff works, but my PNG/JPG + world files do not.&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
    <pubDate>Mon, 04 Sep 2023 19:23:51 GMT</pubDate>
    <dc:creator>JustinSteventon</dc:creator>
    <dc:date>2023-09-04T19:23:51Z</dc:date>
    <item>
      <title>Raster over basemap</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/raster-over-basemap/m-p/1325235#M5019</link>
      <description>&lt;P&gt;Hi folks,&lt;/P&gt;&lt;P&gt;Hoping this is an easy one.&lt;/P&gt;&lt;P&gt;I want to have a single map view which contains multiple offline raster files rendered over online web maps.&lt;/P&gt;&lt;P&gt;The QML looks like this:&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;MapView {&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; Map {&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Basemap {&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; initStyle: Enums.BasemapStyleArcGISImageryStandard&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; RasterLayer {&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Raster {&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; path: "file:///myfile.png"&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; }&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;}&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;This works for GeoTiff files, but not for PNG/JPG with associated world files. I have used Process Explorer (on Windows) to verify that the PGW/JGW files are found. I do not see anything wrong in the debug output and the format looks correct to me. Here is an example PGW:&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;0.00009554533861386&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;0&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;0&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;-0.00009554533861386&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;26.13346608087920941&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;-24.63415136266930716&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;When I debug the difference between the GeoTiff layer and the PNG/JPG ones, I see that the SpatialReference of the layer is null, whereas for the GeoTiff layer it is 4326.&lt;BR /&gt;&lt;BR /&gt;I could not figure out how to force the SpatialReference onto a raster layer. Is this a thing?&lt;/P&gt;&lt;P&gt;Note that this issue reproduces with the "Raster layer" SDK sample even with 200.2.0, i.e. my GeoTiff works, but my PNG/JPG + world files do not.&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 04 Sep 2023 19:23:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/raster-over-basemap/m-p/1325235#M5019</guid>
      <dc:creator>JustinSteventon</dc:creator>
      <dc:date>2023-09-04T19:23:51Z</dc:date>
    </item>
    <item>
      <title>Re: Raster over basemap</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/raster-over-basemap/m-p/1326044#M5023</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/290397"&gt;@JustinSteventon&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;I have some info to share, but admittedly I am not an expert on our supported raster formats.&lt;/P&gt;&lt;P&gt;I recommend taking a look at&amp;nbsp;&lt;A href="https://gist.github.com/nixta/9cf3b53e3340dc3314c6db40af06c709" target="_blank"&gt;https://gist.github.com/nixta/9cf3b53e3340dc3314c6db40af06c709&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You may need more than just the world files for those formats. You may also need auxiliary files as well.&lt;/P&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/help/data/imagery/auxiliary-files.htm" target="_blank"&gt;https://pro.arcgis.com/en/pro-app/latest/help/data/imagery/auxiliary-files.htm&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Sep 2023 17:48:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/raster-over-basemap/m-p/1326044#M5023</guid>
      <dc:creator>JamesBallard1</dc:creator>
      <dc:date>2023-09-06T17:48:22Z</dc:date>
    </item>
    <item>
      <title>Re: Raster over basemap</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/raster-over-basemap/m-p/1326110#M5024</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/405084"&gt;@JamesBallard1&lt;/a&gt;, that was the trick. I did not know about auxiliary files and now I do :-).&lt;/P&gt;</description>
      <pubDate>Wed, 06 Sep 2023 19:57:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/raster-over-basemap/m-p/1326110#M5024</guid>
      <dc:creator>JustinSteventon</dc:creator>
      <dc:date>2023-09-06T19:57:16Z</dc:date>
    </item>
  </channel>
</rss>

