<?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: arcgisbinding package in R in R-ArcGIS Questions</title>
    <link>https://community.esri.com/t5/r-arcgis-questions/arcgisbinding-package-in-r/m-p/767050#M21</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry Annie, complete help is a bit away for me... still on my reading list but the &lt;A href="https://r-arcgis.github.io/assets/arcgisbinding.pdf"&gt;manual page 14&lt;/A&gt; gives some suggestions but you may want to wait for more concrete examples,&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 31 May 2017 10:19:49 GMT</pubDate>
    <dc:creator>DanPatterson_Retired</dc:creator>
    <dc:date>2017-05-31T10:19:49Z</dc:date>
    <item>
      <title>arcgisbinding package in R</title>
      <link>https://community.esri.com/t5/r-arcgis-questions/arcgisbinding-package-in-r/m-p/767047#M18</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;When using the `arcgisbinding` package in R, how do you access the x,y co-ordinate points of class `arc.shape` and type &lt;STRONG&gt;Polyline? &lt;/STRONG&gt;There is documentation online &lt;A href="https://github.com/R-ArcGIS/r-bridge/issues/5"&gt;here&lt;/A&gt; that explains how to do this for type &lt;STRONG&gt;Point&lt;/STRONG&gt;, but the format for &lt;STRONG&gt;Polyline&lt;/STRONG&gt; is different, it looks like a list of vectors as opposed to a single vector.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 May 2017 08:51:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/r-arcgis-questions/arcgisbinding-package-in-r/m-p/767047#M18</guid>
      <dc:creator>AnnieO_Donnell</dc:creator>
      <dc:date>2017-05-31T08:51:43Z</dc:date>
    </item>
    <item>
      <title>Re: arcgisbinding package in R</title>
      <link>https://community.esri.com/t5/r-arcgis-questions/arcgisbinding-package-in-r/m-p/767048#M19</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The link is not very useful.&amp;nbsp; In any event a polyline could be a list of lists of course since each part of a polyline would be represented as a list (vector) of points so the list of list structure is not strange&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 May 2017 09:55:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/r-arcgis-questions/arcgisbinding-package-in-r/m-p/767048#M19</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2017-05-31T09:55:41Z</dc:date>
    </item>
    <item>
      <title>Re: arcgisbinding package in R</title>
      <link>https://community.esri.com/t5/r-arcgis-questions/arcgisbinding-package-in-r/m-p/767049#M20</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The link describes exactly what I&amp;nbsp;am trying to do - pull data from ArcGIS into an R environment, modify this in some way in R and push data back to ArcGIS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I try to do this with a &lt;STRONG&gt;Polyline&lt;/STRONG&gt; shape I&amp;nbsp;get&amp;nbsp;a length of shape error (same as the link). The link I&amp;nbsp;posted describes how to solve this for &lt;STRONG&gt;point&lt;/STRONG&gt; line only:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;```&lt;/P&gt;&lt;PRE style="color: #24292e; background-color: #f6f8fa; padding: 16px;"&gt;&lt;SPAN class="" style="color: #a71d5d;"&gt;&amp;gt;&lt;/SPAN&gt; &lt;SPAN class="" style="color: #333333;"&gt;d&lt;/SPAN&gt;&lt;SPAN class="" style="color: #a71d5d;"&gt;&amp;lt;-&lt;/SPAN&gt;arc.open(&lt;SPAN class="" style="color: #183691;"&gt;"c:&lt;SPAN class=""&gt;\\&lt;/SPAN&gt;data&lt;SPAN class=""&gt;\\&lt;/SPAN&gt;points.shp"&lt;/SPAN&gt;)&lt;SPAN class="" style="color: #a71d5d;"&gt;&amp;gt;&lt;/SPAN&gt; &lt;SPAN class="" style="color: #333333;"&gt;df&lt;/SPAN&gt;&lt;SPAN class="" style="color: #a71d5d;"&gt;&amp;lt;-&lt;/SPAN&gt;arc.select(&lt;SPAN class="" style="color: #333333;"&gt;d&lt;/SPAN&gt;)&lt;SPAN class="" style="color: #a71d5d;"&gt;&amp;gt;&lt;/SPAN&gt; &lt;SPAN class="" style="color: #333333;"&gt;g&lt;/SPAN&gt;&lt;SPAN class="" style="color: #a71d5d;"&gt;&amp;lt;-&lt;/SPAN&gt;arc.shape(&lt;SPAN class="" style="color: #333333;"&gt;df&lt;/SPAN&gt;)&lt;SPAN class="" style="color: #a71d5d;"&gt;&amp;gt;&lt;/SPAN&gt; &lt;SPAN class="" style="color: #333333;"&gt;dfxy&lt;/SPAN&gt;&lt;SPAN class="" style="color: #a71d5d;"&gt;&amp;lt;-&lt;/SPAN&gt;&lt;SPAN class="" style="color: #a71d5d;"&gt;data.frame&lt;/SPAN&gt;(&lt;SPAN class="" style="color: #333333;"&gt;df&lt;/SPAN&gt;, &lt;SPAN class="" style="color: #333333;"&gt;g&lt;/SPAN&gt;&lt;SPAN class="" style="color: #a71d5d;"&gt;$&lt;/SPAN&gt;&lt;SPAN class="" style="color: #333333;"&gt;x&lt;/SPAN&gt;, &lt;SPAN class="" style="color: #333333;"&gt;g&lt;/SPAN&gt;&lt;SPAN class="" style="color: #a71d5d;"&gt;$&lt;/SPAN&gt;&lt;SPAN class="" style="color: #333333;"&gt;y&lt;/SPAN&gt;) &lt;SPAN class="" style="color: #969896;"&gt;#filter rows&lt;/SPAN&gt;&lt;SPAN class="" style="color: #a71d5d;"&gt;&amp;gt;&lt;/SPAN&gt; arc.write(&lt;SPAN class="" style="color: #183691;"&gt;"c:&lt;SPAN class=""&gt;\\&lt;/SPAN&gt;temp&lt;SPAN class=""&gt;\\&lt;/SPAN&gt;new_points.shp"&lt;/SPAN&gt;, &lt;SPAN class="" style="color: #333333;"&gt;dfxy&lt;/SPAN&gt;, &lt;SPAN class="" style="color: #ed6a43;"&gt;coords&lt;/SPAN&gt;&lt;SPAN class="" style="color: #a71d5d;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="" style="color: #a71d5d;"&gt;list&lt;/SPAN&gt;(&lt;SPAN class="" style="color: #333333;"&gt;dfxy&lt;/SPAN&gt;&lt;SPAN class="" style="color: #a71d5d;"&gt;$&lt;/SPAN&gt;&lt;SPAN class="" style="color: #333333;"&gt;g.x&lt;/SPAN&gt;, &lt;SPAN class="" style="color: #333333;"&gt;dfxy&lt;/SPAN&gt;&lt;SPAN class="" style="color: #a71d5d;"&gt;$&lt;/SPAN&gt;&lt;SPAN class="" style="color: #333333;"&gt;g.y&lt;/SPAN&gt;), &lt;SPAN class="" style="color: #ed6a43;"&gt;shape_info&lt;/SPAN&gt;&lt;SPAN class="" style="color: #a71d5d;"&gt;=&lt;/SPAN&gt;arc.shapeinfo(&lt;SPAN class="" style="color: #333333;"&gt;g&lt;/SPAN&gt;))&lt;/PRE&gt;&lt;P&gt;```&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But this does not work for &lt;STRONG&gt;Polyline.&amp;nbsp;&lt;/STRONG&gt;I understand why the polyline is a list of vectors, that makes sense - but how do we access these co-ordinates and apply the appropriate filtering to the modified data (as above) so it can be pushed back to ArcGIS without erroring?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 May 2017 10:09:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/r-arcgis-questions/arcgisbinding-package-in-r/m-p/767049#M20</guid>
      <dc:creator>AnnieO_Donnell</dc:creator>
      <dc:date>2017-05-31T10:09:22Z</dc:date>
    </item>
    <item>
      <title>Re: arcgisbinding package in R</title>
      <link>https://community.esri.com/t5/r-arcgis-questions/arcgisbinding-package-in-r/m-p/767050#M21</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry Annie, complete help is a bit away for me... still on my reading list but the &lt;A href="https://r-arcgis.github.io/assets/arcgisbinding.pdf"&gt;manual page 14&lt;/A&gt; gives some suggestions but you may want to wait for more concrete examples,&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 May 2017 10:19:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/r-arcgis-questions/arcgisbinding-package-in-r/m-p/767050#M21</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2017-05-31T10:19:49Z</dc:date>
    </item>
    <item>
      <title>Re: arcgisbinding package in R</title>
      <link>https://community.esri.com/t5/r-arcgis-questions/arcgisbinding-package-in-r/m-p/767051#M22</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello &lt;A href="https://community.esri.com/migrated-users/275990" target="_blank"&gt;Annie O'Donnell&lt;/A&gt;‌,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The trick posted on the GitHub issue works nicely because the dimensionality of a point can easily be represented in a tabular form, by expanding the X and Y coordinates into two columns. For higher dimension objects like polyline, it doesn't work directly because of the dimensionality difference. While you could build up lists to represent this data, I think it'll be less work to convert the data into &lt;SPAN style="font-family: andale mono,monospace;"&gt;sp&lt;/SPAN&gt; class objects. For Polyline, you'll want &lt;A href="# https://cran.r-project.org/web/packages/sp/sp.pdf#page.66" rel="nofollow noopener noreferrer" target="_blank"&gt;SpatialLinesDataFrame (sp documentation)&lt;/A&gt;, or to manually populate a SpatialLines object from a collection of lists. Here's a short example updating the first coordinate of the first polyline, and saving it back to a new FGDB feature class:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;library&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;arcgisbinding&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
arc&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;check_product&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;

setwd&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'c:/temp'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
input &lt;SPAN class="operator token"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt; file&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;path&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;getwd&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'r_test.gdb'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'polyline_example'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;

d &lt;SPAN class="operator token"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt; arc&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;open&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;input&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
df &lt;SPAN class="operator token"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt; arc&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;select&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;d&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
g &lt;SPAN class="operator token"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt; arc&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;shape&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;df&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
sp&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;df &lt;SPAN class="operator token"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt; arc&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;data2sp&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;df&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;

first_polyline &lt;SPAN class="operator token"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt; sp&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;df@lines&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;1&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;@Lines&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;1&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;@coords
&lt;SPAN class="comment token"&gt;# update the first Y coordinate&lt;/SPAN&gt;
first_polyline&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;1&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;2&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;4812088&lt;/SPAN&gt;

&lt;SPAN class="comment token"&gt;# overwrite the first polyline in the data frame&lt;/SPAN&gt;
sp&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;df@lines&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;1&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;@Lines&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;1&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;@coords &lt;SPAN class="operator token"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt; first_polyline

&lt;SPAN class="comment token"&gt;# convert back&lt;/SPAN&gt;
df&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;modified &lt;SPAN class="operator token"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt; arc&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;sp2data&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;sp&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;df&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
output &lt;SPAN class="operator token"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt; file&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;path&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;getwd&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'r_test.gdb'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'polyline_modified'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
arc&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;write&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;output&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; df&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;modified&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;Let us know if that does what you need.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Shaun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 08:32:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/r-arcgis-questions/arcgisbinding-package-in-r/m-p/767051#M22</guid>
      <dc:creator>ShaunWalbridge</dc:creator>
      <dc:date>2021-12-12T08:32:06Z</dc:date>
    </item>
  </channel>
</rss>

