<?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 The conversion method of scale and resolution in Lods and the coefficient of the semi-axis of the earth in the geographic coordinate system in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/the-conversion-method-of-scale-and-resolution-in/m-p/1197829#M78121</link>
    <description>&lt;P&gt;I want use the `lod.scale` to calculate resolution with custom method, but the result is difference with lod.resolution. like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;// wkid: 4490

// json result
const source = {
  scale: 5000000,
  resolution: 0.011897305029151402
}

// custom method
const metersPerInch = 0.0254;
const dpi = 96;
const metersPerDegrees = (2 * Math.PI * 6378137) / 360;
const customResolution = ((metersPerInch / dpi) * source.scale) / metersPerDegrees;

// customResolution = 0.011897305029149903
// difference = 1.4988010832439613e-15&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thank your!&lt;/P&gt;</description>
    <pubDate>Mon, 01 Aug 2022 04:33:27 GMT</pubDate>
    <dc:creator>yujinpan</dc:creator>
    <dc:date>2022-08-01T04:33:27Z</dc:date>
    <item>
      <title>The conversion method of scale and resolution in Lods and the coefficient of the semi-axis of the earth in the geographic coordinate system</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/the-conversion-method-of-scale-and-resolution-in/m-p/1197829#M78121</link>
      <description>&lt;P&gt;I want use the `lod.scale` to calculate resolution with custom method, but the result is difference with lod.resolution. like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;// wkid: 4490

// json result
const source = {
  scale: 5000000,
  resolution: 0.011897305029151402
}

// custom method
const metersPerInch = 0.0254;
const dpi = 96;
const metersPerDegrees = (2 * Math.PI * 6378137) / 360;
const customResolution = ((metersPerInch / dpi) * source.scale) / metersPerDegrees;

// customResolution = 0.011897305029149903
// difference = 1.4988010832439613e-15&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thank your!&lt;/P&gt;</description>
      <pubDate>Mon, 01 Aug 2022 04:33:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/the-conversion-method-of-scale-and-resolution-in/m-p/1197829#M78121</guid>
      <dc:creator>yujinpan</dc:creator>
      <dc:date>2022-08-01T04:33:27Z</dc:date>
    </item>
  </channel>
</rss>

