<?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 to SVG with ID attribute in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/export-to-svg-with-id-attribute/m-p/1338843#M74073</link>
    <description>&lt;P&gt;Hi - We'd like to do something very similar. We are using an SVG as a lightweight interactive map. Our processes is to export a layer of point features to and SVG that we can overlay over a basemap image.&lt;BR /&gt;For a map with a small number of features our workflow for creating the interactive svg maps is:&lt;/P&gt;&lt;DIV&gt;&lt;OL&gt;&lt;LI&gt;&lt;SPAN&gt;Export from ArcGIS Pro to .aix&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;Open .aix in illustrator&lt;/LI&gt;&lt;LI&gt;Overlay layer over AI/Photoshop designed basemap and refine placement of data points&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;&lt;FONT color="#FF6600"&gt;Manually rename data points (paths) to include an id attribute&lt;/FONT&gt; that links the data point to the aspatial data set (essentially an attribute table)&lt;BR /&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;Export to SVG i&lt;SPAN&gt;n illustrator&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;Add interactivity using D3.JS&lt;BR /&gt;&lt;OL&gt;&lt;LI&gt;set CSS styling for points&lt;/LI&gt;&lt;LI&gt;Add hover iterations&lt;/LI&gt;&lt;/OL&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;For a larger dataset, setting the IDs by hand is rather onerous.&amp;nbsp; We'd appreciate any other workflows or methods to get the IDs onto the points (paths).&lt;BR /&gt;&lt;BR /&gt;Thanks.&lt;/P&gt;&lt;/DIV&gt;</description>
    <pubDate>Tue, 17 Oct 2023 20:04:34 GMT</pubDate>
    <dc:creator>JoannaMerson2</dc:creator>
    <dc:date>2023-10-17T20:04:34Z</dc:date>
    <item>
      <title>Export to SVG with ID attribute</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/export-to-svg-with-id-attribute/m-p/1320476#M72286</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;i'd like to convert an existing SHP file to SVG with included id attributes to identify each polygon (path) in the exported SVG.&amp;nbsp; However, when exported, only the &amp;lt;g&amp;gt; tag that includes all polygons in the SVG is assigned an id attribute equal to the SHP name. I would need each &amp;lt;path&amp;gt; element to have an id attribute equal to the id of the polygon from shapefile (well, from it's attribute table).&amp;nbsp;&lt;/P&gt;&lt;P&gt;Step by step replication (version 3.1.2):&lt;/P&gt;&lt;P&gt;Open new project, load a single shapefile, no basemaps. Go to Share, Export Map. Choose SVG under File Type, set location and name, leave Output as image unchecked. Export. Inspect SVG in notepad to see if each &amp;lt;path&amp;gt; element has id assigned.&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I need to see in SVG file is something like:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;svg height="400" width="450"&amp;gt;
  &amp;lt;path id="Poly1" d="M 100 350 l 150 -300" stroke="red"
  stroke-width="3" fill="none" /&amp;gt;
  &amp;lt;path id="Poly2" d="M 250 50 l 150 300" stroke="red"
  stroke-width="3" fill="none" /&amp;gt;
  &amp;lt;path id="Poly3" d="M 175 200 l 150 0" stroke="green" stroke-width="3"
  fill="none" /&amp;gt;
&amp;lt;/svg&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;what I instead get is something like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;svg height="400" width="450"&amp;gt;
  &amp;lt;g id="ShpName"&amp;gt;
    &amp;lt;path d="M 100 350 l 150 -300" stroke="red"
    stroke-width="3" fill="none" /&amp;gt;
    &amp;lt;path d="M 250 50 l 150 300" stroke="red"
    stroke-width="3" fill="none" /&amp;gt;
    &amp;lt;path d="M 175 200 l 150 0" stroke="green" stroke-width="3"
    fill="none" /&amp;gt;
  &amp;lt;/g&amp;gt;
&amp;lt;/svg&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P data-unlink="true"&gt;The help page on exporting to svg &lt;A href="https://pro.arcgis.com/en/pro-app/latest/help/sharing/overview/svg-or-svgz-export.htm" target="_self"&gt;here&lt;/A&gt;&amp;nbsp;mentions "O&lt;SPAN&gt;ptions specific to vector data, such as&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;STRONG&gt;Layers and attributes...&lt;/STRONG&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;, but I cannot find these options anywhere.&lt;/SPAN&gt;&lt;/P&gt;&lt;P data-unlink="true"&gt;&lt;SPAN&gt;A workaround might be to create a separate SHP for each polygon in original SHP and export the map - each SHP would then be it's own &amp;lt;g&amp;gt; element. But I would prefer a more elegant solution if anyone has any idea how to acheive this.&lt;/SPAN&gt;&lt;/P&gt;&lt;P data-unlink="true"&gt;&lt;SPAN&gt;Best regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P data-unlink="true"&gt;&lt;SPAN&gt;T&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 20 Aug 2023 14:03:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/export-to-svg-with-id-attribute/m-p/1320476#M72286</guid>
      <dc:creator>BF_TadejBevk</dc:creator>
      <dc:date>2023-08-20T14:03:51Z</dc:date>
    </item>
    <item>
      <title>Re: Export to SVG with ID attribute</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/export-to-svg-with-id-attribute/m-p/1338843#M74073</link>
      <description>&lt;P&gt;Hi - We'd like to do something very similar. We are using an SVG as a lightweight interactive map. Our processes is to export a layer of point features to and SVG that we can overlay over a basemap image.&lt;BR /&gt;For a map with a small number of features our workflow for creating the interactive svg maps is:&lt;/P&gt;&lt;DIV&gt;&lt;OL&gt;&lt;LI&gt;&lt;SPAN&gt;Export from ArcGIS Pro to .aix&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;Open .aix in illustrator&lt;/LI&gt;&lt;LI&gt;Overlay layer over AI/Photoshop designed basemap and refine placement of data points&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;&lt;FONT color="#FF6600"&gt;Manually rename data points (paths) to include an id attribute&lt;/FONT&gt; that links the data point to the aspatial data set (essentially an attribute table)&lt;BR /&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;Export to SVG i&lt;SPAN&gt;n illustrator&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;Add interactivity using D3.JS&lt;BR /&gt;&lt;OL&gt;&lt;LI&gt;set CSS styling for points&lt;/LI&gt;&lt;LI&gt;Add hover iterations&lt;/LI&gt;&lt;/OL&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;For a larger dataset, setting the IDs by hand is rather onerous.&amp;nbsp; We'd appreciate any other workflows or methods to get the IDs onto the points (paths).&lt;BR /&gt;&lt;BR /&gt;Thanks.&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 17 Oct 2023 20:04:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/export-to-svg-with-id-attribute/m-p/1338843#M74073</guid>
      <dc:creator>JoannaMerson2</dc:creator>
      <dc:date>2023-10-17T20:04:34Z</dc:date>
    </item>
  </channel>
</rss>

