<?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: KML imagery is vertically squished with certain Basemaps in Qt Maps SDK Questions</title>
    <link>https://community.esri.com/t5/qt-maps-sdk-questions/kml-imagery-is-vertically-squished-with-certain/m-p/1108201#M4437</link>
    <description>&lt;P&gt;The basemaps look different to me.&amp;nbsp; What was their coordinate systems&lt;/P&gt;</description>
    <pubDate>Sat, 16 Oct 2021 20:08:21 GMT</pubDate>
    <dc:creator>DanPatterson</dc:creator>
    <dc:date>2021-10-16T20:08:21Z</dc:date>
    <item>
      <title>KML imagery is vertically squished with certain Basemaps</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/kml-imagery-is-vertically-squished-with-certain/m-p/1108198#M4436</link>
      <description>&lt;P&gt;For whatever reason, with most basemaps the imagery from the attached KML file is vertically-- but not horizontally-- squished.&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;ArcGIS.Enums.BasemapTopographicVector&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2021-10-16 at 14.10.05.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/25358i5D876181DBD96FC3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screen Shot 2021-10-16 at 14.10.05.png" alt="Screen Shot 2021-10-16 at 14.10.05.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, at least with `BasemapStyleArcGISImageryStandard` it works.&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;ArcGIS&lt;/SPAN&gt;.Enums.BasemapStyleArcGISImageryStandard&lt;/PRE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2021-10-16 at 14.09.50.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/25359iAA89191C43C4E70A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screen Shot 2021-10-16 at 14.09.50.png" alt="Screen Shot 2021-10-16 at 14.09.50.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Using some debug statements to look at the spatial references, I'm not seeing a difference between the two basemaps. AFAICT so far, the KML should be projected the same in both cases but very visibly is not.&lt;/P&gt;&lt;P&gt;Thoughts on how this can be fixed?&lt;/P&gt;</description>
      <pubDate>Sat, 16 Oct 2021 21:04:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/kml-imagery-is-vertically-squished-with-certain/m-p/1108198#M4436</guid>
      <dc:creator>KennSebesta</dc:creator>
      <dc:date>2021-10-16T21:04:06Z</dc:date>
    </item>
    <item>
      <title>Re: KML imagery is vertically squished with certain Basemaps</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/kml-imagery-is-vertically-squished-with-certain/m-p/1108201#M4437</link>
      <description>&lt;P&gt;The basemaps look different to me.&amp;nbsp; What was their coordinate systems&lt;/P&gt;</description>
      <pubDate>Sat, 16 Oct 2021 20:08:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/kml-imagery-is-vertically-squished-with-certain/m-p/1108201#M4437</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2021-10-16T20:08:21Z</dc:date>
    </item>
    <item>
      <title>Re: KML imagery is vertically squished with certain Basemaps</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/kml-imagery-is-vertically-squished-with-certain/m-p/1108216#M4438</link>
      <description>&lt;P&gt;Could you check if you can alternatively use&lt;/P&gt;&lt;LI-CODE lang="cpp"&gt;Enums.BasemapStyleArcGISTopographic&lt;/LI-CODE&gt;&lt;P&gt;More options in&amp;nbsp;&lt;A href="https://developers.arcgis.com/qt/qml/api-reference/enums-basemapstyle.html" target="_blank"&gt;Enums.BasemapStyle enumeration | ArcGIS Runtime API for Qt | ArcGIS Developer&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 17 Oct 2021 05:17:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/kml-imagery-is-vertically-squished-with-certain/m-p/1108216#M4438</guid>
      <dc:creator>JayantaPoddar</dc:creator>
      <dc:date>2021-10-17T05:17:34Z</dc:date>
    </item>
    <item>
      <title>Re: KML imagery is vertically squished with certain Basemaps</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/kml-imagery-is-vertically-squished-with-certain/m-p/1108564#M4439</link>
      <description>&lt;PRE&gt;&lt;SPAN&gt;ArcGIS.Enums.BasemapTopographicVector&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;This is invalid and should be&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Enums.BasemapStyleArcGISTopographic&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What is happening is the basemap style enum was invalid so the basemap fails to load, so the map takes on the first layer's spatial reference, which is the KML in WGS84. The basemap styles are all in web mercator, so we are comparing two different spatial references, hence the different shape.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Oct 2021 19:40:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/kml-imagery-is-vertically-squished-with-certain/m-p/1108564#M4439</guid>
      <dc:creator>LucasDanzinger</dc:creator>
      <dc:date>2021-10-18T19:40:26Z</dc:date>
    </item>
    <item>
      <title>Re: KML imagery is vertically squished with certain Basemaps</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/kml-imagery-is-vertically-squished-with-certain/m-p/1108956#M4440</link>
      <description>&lt;P&gt;I use&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;import&lt;/SPAN&gt; Esri.ArcGISRuntime 100.11 as &lt;SPAN&gt;ArcGIS&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;so the `ArcGIS` component is correct. The&amp;nbsp;&lt;STRONG&gt;BasemapTopographicVector&lt;/STRONG&gt; is documented at&amp;nbsp;&lt;A href="https://developers.arcgis.com/qt/qml/api-reference/qml-esri-arcgisruntime-basemaptopographicvector.html," target="_blank" rel="noopener"&gt;https://developers.arcgis.com/qt/qml/api-reference/qml-esri-arcgisruntime-basemaptopographicvector.html,&lt;/A&gt;&amp;nbsp;so I will assume that that is correct as well.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How would I align the spatial reference, either by setting the basemap's or the KML's? I've tried with something like&lt;/P&gt;&lt;PRE&gt;        &lt;SPAN&gt;spatialReference&lt;/SPAN&gt;: Factory.SpatialReference.createWgs84() // I've also tried Factory.SpatialReference.createWebMercator()&lt;BR /&gt;        &lt;SPAN&gt;initBasemapStyle&lt;/SPAN&gt;: Enums.BasemapStyleNone&lt;/PRE&gt;&lt;P&gt;but that doesn't seem to work. It seems like KMLLayer documentation does not mention supporting reprojection, so maybe the only way to do this is to project everything into WGS84.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Oct 2021 18:31:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/kml-imagery-is-vertically-squished-with-certain/m-p/1108956#M4440</guid>
      <dc:creator>KennSebesta</dc:creator>
      <dc:date>2021-10-19T18:31:48Z</dc:date>
    </item>
    <item>
      <title>Re: KML imagery is vertically squished with certain Basemaps</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/kml-imagery-is-vertically-squished-with-certain/m-p/1108958#M4441</link>
      <description>&lt;P&gt;It seems like I can use all the&amp;nbsp;BasemapStyleArcGISXXX maps listed at &lt;A href="https://developers.arcgis.com/qt/qml/api-reference/enums-basemapstyle.html" target="_blank"&gt;https://developers.arcgis.com/qt/qml/api-reference/enums-basemapstyle.html&lt;/A&gt;. Whereas everything listed in the "Inherited by" box at&amp;nbsp;&lt;A href="https://developers.arcgis.com/qt/qml/api-reference/qml-esri-arcgisruntime-basemap.html" target="_blank"&gt;https://developers.arcgis.com/qt/qml/api-reference/qml-esri-arcgisruntime-basemap.html&lt;/A&gt;&amp;nbsp;results in the wrong projection.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Oct 2021 18:19:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/kml-imagery-is-vertically-squished-with-certain/m-p/1108958#M4441</guid>
      <dc:creator>KennSebesta</dc:creator>
      <dc:date>2021-10-19T18:19:09Z</dc:date>
    </item>
    <item>
      <title>Re: KML imagery is vertically squished with certain Basemaps</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/kml-imagery-is-vertically-squished-with-certain/m-p/1108971#M4442</link>
      <description>&lt;P&gt;Using the SetMapSpatialReference sample app, and adding the KML layer, it looks like it clobbers the map's spatial reference.&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;import&lt;/SPAN&gt; QtQuick 2.6&lt;BR /&gt;&lt;SPAN&gt;import&lt;/SPAN&gt; Esri.ArcGISRuntime 100.11&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Rectangle&lt;/SPAN&gt; {&lt;BR /&gt;    &lt;SPAN&gt;width&lt;/SPAN&gt;: 800&lt;BR /&gt;    &lt;SPAN&gt;height&lt;/SPAN&gt;: 600&lt;BR /&gt;&lt;BR /&gt;    &lt;SPAN&gt;MapView&lt;/SPAN&gt; {&lt;BR /&gt;        &lt;SPAN&gt;anchors.fill&lt;/SPAN&gt;: &lt;SPAN&gt;parent&lt;BR /&gt;&lt;/SPAN&gt;        &lt;SPAN&gt;wrapAroundMode&lt;/SPAN&gt;: &lt;SPAN&gt;Enums&lt;/SPAN&gt;.WrapAroundModeDisabled&lt;BR /&gt;&lt;BR /&gt;        &lt;SPAN&gt;Map&lt;/SPAN&gt; {&lt;BR /&gt;            &lt;SPAN&gt;id&lt;/SPAN&gt;: &lt;SPAN&gt;map&lt;BR /&gt;&lt;/SPAN&gt;            &lt;SPAN&gt;//&lt;/SPAN&gt; &lt;SPAN&gt;Specify&lt;/SPAN&gt; &lt;SPAN&gt;the&lt;/SPAN&gt; &lt;SPAN&gt;SpatialReference&lt;BR /&gt;&lt;/SPAN&gt;            &lt;SPAN&gt;spatialReference&lt;/SPAN&gt;: &lt;SPAN&gt;SpatialReference&lt;/SPAN&gt; { &lt;SPAN&gt;wkid&lt;/SPAN&gt;:54024 }&lt;BR /&gt;&lt;BR /&gt;            &lt;SPAN&gt;KmlLayer&lt;/SPAN&gt; {&lt;BR /&gt;                &lt;SPAN&gt;dataset&lt;/SPAN&gt;:  &lt;SPAN&gt;KmlDataset&lt;/SPAN&gt; {&lt;BR /&gt;                    &lt;SPAN&gt;url&lt;/SPAN&gt;: &lt;SPAN&gt;"http://www.chartbundle.com/charts/kml/sec.kml"&lt;BR /&gt;&lt;/SPAN&gt;                }&lt;BR /&gt;            }&lt;BR /&gt;        }&lt;BR /&gt;    }&lt;BR /&gt;&lt;BR /&gt;    &lt;SPAN&gt;Basemap&lt;/SPAN&gt; {&lt;BR /&gt;        &lt;SPAN&gt;id&lt;/SPAN&gt;: &lt;SPAN&gt;basemap&lt;BR /&gt;&lt;/SPAN&gt;        &lt;SPAN&gt;ArcGISMapImageLayer&lt;/SPAN&gt; {&lt;BR /&gt;            &lt;SPAN&gt;url&lt;/SPAN&gt;: &lt;SPAN&gt;"https://sampleserver6.arcgisonline.com/arcgis/rest/services/SampleWorldCities/MapServer"&lt;BR /&gt;&lt;/SPAN&gt;        }&lt;BR /&gt;    }&lt;BR /&gt;&lt;BR /&gt;    &lt;SPAN&gt;Component.onCompleted&lt;/SPAN&gt;: {&lt;BR /&gt;        &lt;SPAN&gt;map&lt;/SPAN&gt;.basemap = &lt;SPAN&gt;basemap&lt;/SPAN&gt;;&lt;BR /&gt;    }&lt;BR /&gt;}&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Without &lt;STRONG&gt;KMLLayer&lt;/STRONG&gt;:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2021-10-19 at 14.39.36.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/25560i5F071FA7D3840454/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screen Shot 2021-10-19 at 14.39.36.png" alt="Screen Shot 2021-10-19 at 14.39.36.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;With &lt;STRONG&gt;KMLLayer&lt;/STRONG&gt;:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2021-10-19 at 14.39.43.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/25561i4024F499C8A9256C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screen Shot 2021-10-19 at 14.39.43.png" alt="Screen Shot 2021-10-19 at 14.39.43.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Oct 2021 18:41:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/kml-imagery-is-vertically-squished-with-certain/m-p/1108971#M4442</guid>
      <dc:creator>KennSebesta</dc:creator>
      <dc:date>2021-10-19T18:41:13Z</dc:date>
    </item>
  </channel>
</rss>

