<?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: arc.select() complaining shape file is missing from layer in R-ArcGIS Questions</title>
    <link>https://community.esri.com/t5/r-arcgis-questions/arc-select-complaining-shape-file-is-missing-from/m-p/841434#M225</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Mike,&lt;BR /&gt;&lt;BR /&gt;You're probably long past this question, I missed it when you posted it (over a year ago!).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It sounds like you're trying to access a database engine which stores its geometries in a GEOGRAPHY type. In this case, you'll need to pass in a layer that references the underlying database connection -- the bridge doesn't have the ability to directly specify a query to a database.&lt;BR /&gt;&lt;BR /&gt;Hope that helps,&lt;/P&gt;&lt;P&gt;Shaun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 07 Aug 2019 21:00:20 GMT</pubDate>
    <dc:creator>ShaunWalbridge</dc:creator>
    <dc:date>2019-08-07T21:00:20Z</dc:date>
    <item>
      <title>arc.select() complaining shape file is missing from layer</title>
      <link>https://community.esri.com/t5/r-arcgis-questions/arc-select-complaining-shape-file-is-missing-from/m-p/841433#M224</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;High level - I'm trying to pass a layer from ArcGIS Pro 2.1 through an R bridge to an R script which will do some calculations and return a data set which will be plotted as a layer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When the R script tries to execute&amp;nbsp;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt;&lt;STRONG&gt; distance_data &amp;lt;- arc.select(arc.open(distance_layer))&lt;/STRONG&gt;&amp;nbsp; &lt;/SPAN&gt;the following error is produced -&amp;nbsp;&lt;SPAN style="font-size: 9.0pt; color: #e54724;"&gt;Error in .select : shape fields missing&lt;/SPAN&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If we separate out function calls to arc.open() and arc.select(), arc.open() executes but arc.select() throws the above error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When we look at the attribute table of the layer, there is a column of data type 'Geography' for the layer which displays as 'Point.'&amp;nbsp; If we look at the data as it is in the database table, it appears as a long Hex value.&amp;nbsp; This field is also of data type 'Geography' in the database table.&amp;nbsp; So, to me it looks like I do have a shape field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why is arc.select() not liking this?&amp;nbsp; More importantly, how do we remedy this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 May 2018 15:43:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/r-arcgis-questions/arc-select-complaining-shape-file-is-missing-from/m-p/841433#M224</guid>
      <dc:creator>MikeCelaric</dc:creator>
      <dc:date>2018-05-30T15:43:08Z</dc:date>
    </item>
    <item>
      <title>Re: arc.select() complaining shape file is missing from layer</title>
      <link>https://community.esri.com/t5/r-arcgis-questions/arc-select-complaining-shape-file-is-missing-from/m-p/841434#M225</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Mike,&lt;BR /&gt;&lt;BR /&gt;You're probably long past this question, I missed it when you posted it (over a year ago!).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It sounds like you're trying to access a database engine which stores its geometries in a GEOGRAPHY type. In this case, you'll need to pass in a layer that references the underlying database connection -- the bridge doesn't have the ability to directly specify a query to a database.&lt;BR /&gt;&lt;BR /&gt;Hope that helps,&lt;/P&gt;&lt;P&gt;Shaun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Aug 2019 21:00:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/r-arcgis-questions/arc-select-complaining-shape-file-is-missing-from/m-p/841434#M225</guid>
      <dc:creator>ShaunWalbridge</dc:creator>
      <dc:date>2019-08-07T21:00:20Z</dc:date>
    </item>
  </channel>
</rss>

