<?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 Arcade script to convert Geometry output from one wkid to another wkid id in ArcGIS Online Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-questions/arcade-script-to-convert-geometry-output-from-one/m-p/1385921#M57653</link>
    <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;My Arcade skills are limited, I can follow a basic script, however, writing one is often above my pay grade.&amp;nbsp; I even asked Chat GPT to help and it didn't work out.&amp;nbsp; Normally ChatGPT manages to figure it out&lt;/P&gt;&lt;P&gt;So, here goes.&lt;/P&gt;&lt;P&gt;This the basic code&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AndrewBlakie_0-1708679211193.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/95615iA22540E66E9604F6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AndrewBlakie_0-1708679211193.png" alt="AndrewBlakie_0-1708679211193.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;and it creates an output in Web Mercator.&amp;nbsp; I live in New Zealand and we/I use wkid 2193 -&amp;gt; NZTM2000.&amp;nbsp; What I want to do is convert the output from wkid 102100 to wkid 2193.&lt;/P&gt;&lt;P&gt;This is how it displays in the popup&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LAST KNOWN POSITION&lt;/STRONG&gt;: {"x":19221380.628,"y":-5366791.241,"z":2.3000000000029104,"spatialReference":{"latestWkid":3857,"wkid":102100}}&amp;nbsp;&lt;/P&gt;&lt;P&gt;What we are converting is hourly pings from a Garmin Mini Inreach2 device which I am displaying on a map to show the bosses the last know locations for our workers.&amp;nbsp; To explain further why its done on a map is because the portal provider has two factor authoriation.&amp;nbsp; One of which is an admin email address which isn't monitored overnight and the weekends and the other is my cell phone and sometimes I go to sleep or go hunting where there is no cell phone coverage..&amp;nbsp; The end result is that the bosses can't access the portal to see the dots.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am sure that someone is clever than ChatGPT as its only clever as January 2022.&lt;/P&gt;&lt;P&gt;Thanks for your help&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Andrew&lt;/P&gt;</description>
    <pubDate>Fri, 23 Feb 2024 10:29:46 GMT</pubDate>
    <dc:creator>AndrewBlakie</dc:creator>
    <dc:date>2024-02-23T10:29:46Z</dc:date>
    <item>
      <title>Arcade script to convert Geometry output from one wkid to another wkid id</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/arcade-script-to-convert-geometry-output-from-one/m-p/1385921#M57653</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;My Arcade skills are limited, I can follow a basic script, however, writing one is often above my pay grade.&amp;nbsp; I even asked Chat GPT to help and it didn't work out.&amp;nbsp; Normally ChatGPT manages to figure it out&lt;/P&gt;&lt;P&gt;So, here goes.&lt;/P&gt;&lt;P&gt;This the basic code&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AndrewBlakie_0-1708679211193.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/95615iA22540E66E9604F6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AndrewBlakie_0-1708679211193.png" alt="AndrewBlakie_0-1708679211193.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;and it creates an output in Web Mercator.&amp;nbsp; I live in New Zealand and we/I use wkid 2193 -&amp;gt; NZTM2000.&amp;nbsp; What I want to do is convert the output from wkid 102100 to wkid 2193.&lt;/P&gt;&lt;P&gt;This is how it displays in the popup&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LAST KNOWN POSITION&lt;/STRONG&gt;: {"x":19221380.628,"y":-5366791.241,"z":2.3000000000029104,"spatialReference":{"latestWkid":3857,"wkid":102100}}&amp;nbsp;&lt;/P&gt;&lt;P&gt;What we are converting is hourly pings from a Garmin Mini Inreach2 device which I am displaying on a map to show the bosses the last know locations for our workers.&amp;nbsp; To explain further why its done on a map is because the portal provider has two factor authoriation.&amp;nbsp; One of which is an admin email address which isn't monitored overnight and the weekends and the other is my cell phone and sometimes I go to sleep or go hunting where there is no cell phone coverage..&amp;nbsp; The end result is that the bosses can't access the portal to see the dots.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am sure that someone is clever than ChatGPT as its only clever as January 2022.&lt;/P&gt;&lt;P&gt;Thanks for your help&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Andrew&lt;/P&gt;</description>
      <pubDate>Fri, 23 Feb 2024 10:29:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/arcade-script-to-convert-geometry-output-from-one/m-p/1385921#M57653</guid>
      <dc:creator>AndrewBlakie</dc:creator>
      <dc:date>2024-02-23T10:29:46Z</dc:date>
    </item>
  </channel>
</rss>

