<?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: How to get linear distance units of a layer? in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-get-linear-distance-units-of-a-layer/m-p/415558#M38248</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;All, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; They have added getUnitValueForSR(sr) ability in 3.13&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="https://developers.arcgis.com/javascript/jsapi/esri.geometry.scaleutils-amd.html#getunitvalueforsr" rel="nofollow" target="_blank"&gt;esri/geometry/scaleUtils | API Reference | ArcGIS API for JavaScript&lt;/A&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 07 Mar 2015 14:28:34 GMT</pubDate>
    <dc:creator>RobertScheitlin__GISP</dc:creator>
    <dc:date>2015-03-07T14:28:34Z</dc:date>
    <item>
      <title>How to get linear distance units of a layer?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-get-linear-distance-units-of-a-layer/m-p/415553#M38243</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This must be an easy one, but i am having a hard time with this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do i read the linear distance units of a feature layer or a dynamic map service using the javascript API?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for e.g., wkid 4326 it is degrees, 102100 it is meters and for some it is feet etc.,&lt;/P&gt;&lt;P&gt;what about spatial references which have only a WKT (custom) and no WKID?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i&amp;nbsp; need to display the linear units of a layer (feature/dynamic) programatically to show the units in which the areas and lengths are being displayed in a popup. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Feb 2015 19:22:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-get-linear-distance-units-of-a-layer/m-p/415553#M38243</guid>
      <dc:creator>WhereMatters</dc:creator>
      <dc:date>2015-02-16T19:22:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to get linear distance units of a layer?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-get-linear-distance-units-of-a-layer/m-p/415554#M38244</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you are referring to the feature attributes then the values will be in the coordinate system of the source data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When working with a map service you can access the &lt;A href="https://developers.arcgis.com/javascript/jsapi/arcgisdynamicmapservicelayer-amd.html#spatialreference"&gt;spatialReference&lt;/A&gt; property. However the &lt;A href="https://developers.arcgis.com/javascript/jsapi/spatialreference-amd.html" title="https://developers.arcgis.com/javascript/jsapi/spatialreference-amd.html"&gt;SpatialReference&lt;/A&gt; class does not contain a property for linear units.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you need the linear units then you could create a function to lookup the value based on a WKID. The following links contain all supported coordinate systems and includes the linear unit values:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;A href="https://developers.arcgis.com/javascript/jshelp/pcs.html"&gt;Projected Coordinate Systems&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;&lt;A href="https://developers.arcgis.com/javascript/jshelp/gcs.html"&gt;Geographic Coordinate Systems&lt;/A&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Feb 2015 20:38:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-get-linear-distance-units-of-a-layer/m-p/415554#M38244</guid>
      <dc:creator>OwenEarley</dc:creator>
      <dc:date>2015-02-16T20:38:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to get linear distance units of a layer?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-get-linear-distance-units-of-a-layer/m-p/415555#M38245</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Owen, thank you so much for the response, but seriously,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Something as fundamental as this is not provided out of the box in the API?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;maybe i dont understand the complexity of the problem that the API team may have in providing this OOTB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As you say, we'l have to create a function to read the WKT value based on a WKID from the links you posted and then extract the units from the WKT and convert them to esriLinearUnits, correct?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Feb 2015 22:00:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-get-linear-distance-units-of-a-layer/m-p/415555#M38245</guid>
      <dc:creator>WhereMatters</dc:creator>
      <dc:date>2015-02-16T22:00:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to get linear distance units of a layer?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-get-linear-distance-units-of-a-layer/m-p/415556#M38246</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I was also very surprised to see how little information was contained in the JS API SpatialReference object. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Feb 2015 22:39:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-get-linear-distance-units-of-a-layer/m-p/415556#M38246</guid>
      <dc:creator>OwenEarley</dc:creator>
      <dc:date>2015-02-16T22:39:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to get linear distance units of a layer?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-get-linear-distance-units-of-a-layer/m-p/415557#M38247</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you know the WKID you can look up the WKT on &lt;A href="http://www.epsg-registry.org/" title="http://www.epsg-registry.org/"&gt;EPSG Geodetic Parameter Registry&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;E.g., &lt;A href="http://www.epsg-registry.org/export.htm?wkt=urn:ogc:def:crs:EPSG::2927" title="http://www.epsg-registry.org/export.htm?wkt=urn:ogc:def:crs:EPSG::2927"&gt;http://www.epsg-registry.org/export.htm?wkt=urn:ogc:def:crs:EPSG::2927&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Feb 2015 19:19:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-get-linear-distance-units-of-a-layer/m-p/415557#M38247</guid>
      <dc:creator>JeffJacobson</dc:creator>
      <dc:date>2015-02-18T19:19:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to get linear distance units of a layer?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-get-linear-distance-units-of-a-layer/m-p/415558#M38248</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;All, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; They have added getUnitValueForSR(sr) ability in 3.13&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="https://developers.arcgis.com/javascript/jsapi/esri.geometry.scaleutils-amd.html#getunitvalueforsr" rel="nofollow" target="_blank"&gt;esri/geometry/scaleUtils | API Reference | ArcGIS API for JavaScript&lt;/A&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 07 Mar 2015 14:28:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-get-linear-distance-units-of-a-layer/m-p/415558#M38248</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2015-03-07T14:28:34Z</dc:date>
    </item>
  </channel>
</rss>

