<?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: Export Features to GPX files in ArcGIS StoryMaps Questions</title>
    <link>https://community.esri.com/t5/arcgis-storymaps-questions/export-features-to-gpx-files/m-p/1656331#M5444</link>
    <description>&lt;P&gt;Hi Ken,&lt;/P&gt;&lt;P&gt;I'm looking to implement something similar in my tool - where I can download a gpx or kml file containing a maps current features. I'd love to hear more about how you went about doing this.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 08 Oct 2025 17:18:51 GMT</pubDate>
    <dc:creator>JMMFIRE</dc:creator>
    <dc:date>2025-10-08T17:18:51Z</dc:date>
    <item>
      <title>Export Features to GPX files</title>
      <link>https://community.esri.com/t5/arcgis-storymaps-questions/export-features-to-gpx-files/m-p/639714#M1263</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I recently&amp;nbsp;did a search for tools that will convert feature layers to GPX format. Not finding anything, I ended up writing one. I deployed it to an Azure portal as a severless compute function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can see the results in this storymap:&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://storymaps.arcgis.com/stories/75ef83f01c424d95bf75a7e28d4d1608" title="https://storymaps.arcgis.com/stories/75ef83f01c424d95bf75a7e28d4d1608" rel="nofollow noopener noreferrer" target="_blank"&gt;The 2020 BMW RA Rally&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The routes in this storymap were created using the Directions capability in the standard ArcGIS Online web map viewer. The resulting route feature collections were published as hosted feature layers and shared publicly. The URLs to those feature layers are configured as parameters in the links in each of the 'Download GPX file' buttons in the storymap.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If anyone is interested&amp;nbsp;you can leverage a similar capability in your own storymaps or other applications using this function:&lt;/P&gt;&lt;P&gt;&lt;A href="https://arcgis2gpx.azurewebsites.net/api/Layers2GPX" style="color: #2989c5; text-decoration: none;" rel="nofollow noopener noreferrer" target="_blank"&gt;https://arcgis2gpx.azurewebsites.net/api/Layers2GPX&lt;/A&gt;&lt;A style="color: #606060;" target="_blank"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It takes GET or POST requests and accepts point or polyline feature layers. The features in point feature layers become GPX waypoints while the features in polyline feature layers become GPX tracks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The minimum parameters required for GET requests&amp;nbsp;is the url to a point or polyline feature layer. Thus you can create a URL for a hyperlink in a web page, storymap or other document as follows:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://arcgis2gpx.azurewebsites.net/api/Layers2GPX?url=https://services1.arcgis.com/EvDRLcHhbHG5BnwT/arcgis/rest/services/Hiking_Routes/FeatureServer/0&amp;amp;name=Name&amp;amp;desc=Description" rel="nofollow noopener noreferrer" target="_blank"&gt;https://arcgis2gpx.azurewebsites.net/api/Layers2GPX?url=https://services1.arcgis.com/EvDRLcHhbHG5BnwT/arcgis/rest/services/Hiking_Routes/FeatureServer/0&amp;amp;name=Name&amp;amp;desc=Description&lt;/A&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://arcgis2gpx.azurewebsites.net/api/Layers2GPX?url=https://services1.arcgis.com/fBc8EJBxQRMcHlei/arcgis/rest/services/Appalachian_National_Scenic_Trail/FeatureServer/0" title="https://arcgis2gpx.azurewebsites.net/api/Layers2GPX?url=https://services1.arcgis.com/fBc8EJBxQRMcHlei/arcgis/rest/services/Appalachian_National_Scenic_Trail/FeatureServer/0" rel="nofollow noopener noreferrer" target="_blank"&gt;https://arcgis2gpx.azurewebsites.net/api/Layers2GPX?url=https://services1.arcgis.com/fBc8EJBxQRMcHlei/arcgis/rest/services/Appalachian_National_Scenic_Trail/FeatureServer/0&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The minimum payload for a POST request is a json object with a title element (which will become the output GPX filename) and an array of feature layer urls. Thus you can combine multiple point and/or polyline feature layers into a single GPX file. Example:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;{
 "title":"Some Trails",
 "returnFile":"true",
 "layers":[
 {
 "url":"https://services1.arcgis.com/EvDRLcHhbHG5BnwT/arcgis/rest/services/Hiking_Routes/FeatureServer/0",
 "name":"Name",
 "desc":"Description",
 "where":"AscentFT&amp;gt;3600"
 },
 {
 "url":"https://services1.arcgis.com/fBc8EJBxQRMcHlei/arcgis/rest/services/Appalachian_National_Scenic_Trail/FeatureServer/0",
 "name":"Name",
 "desc":"Description",
 "where":"Length_Ft&amp;gt;40000"
 }
 ]
}

&lt;SPAN style="color: #3d3d3d; "&gt;Additionally, both methods allow you to include optional parameters for each url to indicate wich fields from the source feature layers to utilize for the different GPX elements such as&lt;/SPAN&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;name, desc, cmt, etc&lt;/PRE&gt;&lt;/PRE&gt;&lt;P&gt;Click the function URL above for a complete list of optional parameters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I cannot guarantee how long the function will remain up. If you want the code let me know.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you find an error in functinality or behavior, please also let me know.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ken&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 03:10:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-storymaps-questions/export-features-to-gpx-files/m-p/639714#M1263</guid>
      <dc:creator>KenGorton</dc:creator>
      <dc:date>2021-12-12T03:10:49Z</dc:date>
    </item>
    <item>
      <title>Re: Export Features to GPX files</title>
      <link>https://community.esri.com/t5/arcgis-storymaps-questions/export-features-to-gpx-files/m-p/1517389#M4784</link>
      <description>&lt;P&gt;As I understand&amp;nbsp;&lt;A href="https://arcgis2gpx.azurewebsites.net/api/Layers2GPX" target="_blank" rel="nofollow noopener noreferrer"&gt;https://arcgis2gpx.azurewebsites.net/api/Layers2GPX&lt;/A&gt;&amp;nbsp;currently is down? Is there any alternative?&lt;/P&gt;</description>
      <pubDate>Fri, 09 Aug 2024 11:40:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-storymaps-questions/export-features-to-gpx-files/m-p/1517389#M4784</guid>
      <dc:creator>UrSuS</dc:creator>
      <dc:date>2024-08-09T11:40:40Z</dc:date>
    </item>
    <item>
      <title>Re: Export Features to GPX files</title>
      <link>https://community.esri.com/t5/arcgis-storymaps-questions/export-features-to-gpx-files/m-p/1656331#M5444</link>
      <description>&lt;P&gt;Hi Ken,&lt;/P&gt;&lt;P&gt;I'm looking to implement something similar in my tool - where I can download a gpx or kml file containing a maps current features. I'd love to hear more about how you went about doing this.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Oct 2025 17:18:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-storymaps-questions/export-features-to-gpx-files/m-p/1656331#M5444</guid>
      <dc:creator>JMMFIRE</dc:creator>
      <dc:date>2025-10-08T17:18:51Z</dc:date>
    </item>
  </channel>
</rss>

