<?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 UnitsPerDIP question in Qt Maps SDK Questions</title>
    <link>https://community.esri.com/t5/qt-maps-sdk-questions/unitsperdip-question/m-p/42314#M181</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Y'all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; This is an embarrassing question to ask, because it will expose my ignorance to GIS topics.&amp;nbsp; But I can't figure out how to do this operation and I'm wondering if someone could throw me a bone.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; So I have an image that I need to scale based on the zoom level of the map and place in a PictureMarkerSymbol.&amp;nbsp; (Operating in Map / MapGraphicsView).&amp;nbsp;&amp;nbsp;When I place the image at location 0,0 (WGS84), the UnitsPerDIP call returns a value that scales the image appropriately.&amp;nbsp; But (perhaps obviously), when I place the image at a location away from (0,0), the image's size is different.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; So is the solution to use the GeometryEngine to MoveGeodetic to the location in question?&amp;nbsp; If so, I don't really understand how to "move" a PictureMarkerSymbol (which is referenced by a single point) instead of something like the 4 corners of an envelope... but an envelope isn't the geometry I need.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Another way to put it:&amp;nbsp; I have an icon that is a 10x10 meter square.&amp;nbsp; When I scale my original graphic's PNG using UnitsPerDIP at location 0,0 it scales properly.&amp;nbsp; When I scale it at WGS84 lon,lat (-70.6, 41.9) the graphic renders to somewhere in the mid 7 meters per side.&amp;nbsp; How do I make it 10x10 meters at (-70.6, 41.9)?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Brian Crist&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 03 Nov 2020 22:55:06 GMT</pubDate>
    <dc:creator>BrianCrist</dc:creator>
    <dc:date>2020-11-03T22:55:06Z</dc:date>
    <item>
      <title>UnitsPerDIP question</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/unitsperdip-question/m-p/42314#M181</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Y'all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; This is an embarrassing question to ask, because it will expose my ignorance to GIS topics.&amp;nbsp; But I can't figure out how to do this operation and I'm wondering if someone could throw me a bone.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; So I have an image that I need to scale based on the zoom level of the map and place in a PictureMarkerSymbol.&amp;nbsp; (Operating in Map / MapGraphicsView).&amp;nbsp;&amp;nbsp;When I place the image at location 0,0 (WGS84), the UnitsPerDIP call returns a value that scales the image appropriately.&amp;nbsp; But (perhaps obviously), when I place the image at a location away from (0,0), the image's size is different.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; So is the solution to use the GeometryEngine to MoveGeodetic to the location in question?&amp;nbsp; If so, I don't really understand how to "move" a PictureMarkerSymbol (which is referenced by a single point) instead of something like the 4 corners of an envelope... but an envelope isn't the geometry I need.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Another way to put it:&amp;nbsp; I have an icon that is a 10x10 meter square.&amp;nbsp; When I scale my original graphic's PNG using UnitsPerDIP at location 0,0 it scales properly.&amp;nbsp; When I scale it at WGS84 lon,lat (-70.6, 41.9) the graphic renders to somewhere in the mid 7 meters per side.&amp;nbsp; How do I make it 10x10 meters at (-70.6, 41.9)?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Brian Crist&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Nov 2020 22:55:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/unitsperdip-question/m-p/42314#M181</guid>
      <dc:creator>BrianCrist</dc:creator>
      <dc:date>2020-11-03T22:55:06Z</dc:date>
    </item>
    <item>
      <title>Re: UnitsPerDIP question</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/unitsperdip-question/m-p/1001234#M3818</link>
      <description>&lt;P&gt;UnitsPerDip was primarily created for creating a scale bar. The inherent problem with measuring distance is that many map projections don't preserve distance. Web mercator, for example preserves direction but not distance or size - the further you move away from the equator, the more inaccurate the distance will get. The best solution is to use a spatial reference that preserves distance. This Learn ArcGIS lesson might be interesting to you&amp;nbsp;&lt;A href="https://learn.arcgis.com/en/projects/choose-the-right-projection/" target="_blank"&gt;https://learn.arcgis.com/en/projects/choose-the-right-projection/&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 13 Nov 2020 15:38:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/unitsperdip-question/m-p/1001234#M3818</guid>
      <dc:creator>LucasDanzinger</dc:creator>
      <dc:date>2020-11-13T15:38:26Z</dc:date>
    </item>
  </channel>
</rss>

