<?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 Cannot open SDE feature class to create a SpatialDataFrame using Python API in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/cannot-open-sde-feature-class-to-create-a/m-p/256804#M19761</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am attempting to use the Python API (not arcpy) in a Jupyter Notebook to&amp;nbsp;load a feature class from SDE into a SpatialDataFrame.&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="comment token"&gt;# Snippet begins after standard boilerplate code for setting up a notebook&lt;/SPAN&gt;
&lt;SPAN class="comment token"&gt;# for use with ArcGIS API for Python&lt;/SPAN&gt;

&lt;SPAN class="keyword token"&gt;from&lt;/SPAN&gt; arcgis&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;features &lt;SPAN class="keyword token"&gt;import&lt;/SPAN&gt; SpatialDataFrame
sdf &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; SpatialDataFrame&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;from_featureclass&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;&amp;lt;&lt;/SPAN&gt;path to feature &lt;SPAN class="keyword token"&gt;class&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;&amp;gt;&lt;/SPAN&gt;&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;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I've successfully loaded several feature classes of varying geometry types into a&amp;nbsp;SpatialDataFrame from the same SDE database without issue. However, I do have one feature class, RALEIGH.PARKS, that, when I try to load it, produces the following error:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/398991_pastedImage_1.png" style="width: 782px; height: 353px;" /&gt;&lt;/PRE&gt;&lt;/PRE&gt;&lt;/PRE&gt;&lt;UL&gt;&lt;LI&gt;The only difference I've been able to find thus far is under &lt;STRONG&gt;Feature Class Properties&amp;gt;Source&amp;gt;Storage&amp;nbsp;&lt;/STRONG&gt;the value is&amp;nbsp;&lt;EM&gt;High Precision using ST_Geometry spatial type (SRID 2264)&amp;nbsp;&lt;/EM&gt;whereas the others are listed as&amp;nbsp;&lt;EM&gt;High Precision using Esri Binary spatial type&lt;/EM&gt;.&amp;nbsp;&lt;/LI&gt;&lt;/UL&gt;&lt;UL&gt;&lt;LI&gt;All layers open properly in ArcGIS Pro.&lt;/LI&gt;&lt;LI&gt;If I export the RALEIGH.PARKS to a File Geodatabase and try to open it from there, I am able to successfully load the data into a&amp;nbsp;SpatialDataFrame&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Has anyone else run into problems loading a Feature Class from SDE into a&amp;nbsp;SpatialDataFrame using the Python API? I'm personally not quite sure what further to troubleshoot this error and finding the &lt;A href="https://esri.github.io/arcgis-python-api/apidoc/html/index.html" rel="nofollow noopener noreferrer" target="_blank"&gt;docs&lt;/A&gt; to be&amp;nbsp;a little spotty. Any suggestions on what I might try?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 11 Dec 2021 12:40:05 GMT</pubDate>
    <dc:creator>Anonymous User</dc:creator>
    <dc:date>2021-12-11T12:40:05Z</dc:date>
    <item>
      <title>Cannot open SDE feature class to create a SpatialDataFrame using Python API</title>
      <link>https://community.esri.com/t5/python-questions/cannot-open-sde-feature-class-to-create-a/m-p/256804#M19761</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am attempting to use the Python API (not arcpy) in a Jupyter Notebook to&amp;nbsp;load a feature class from SDE into a SpatialDataFrame.&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="comment token"&gt;# Snippet begins after standard boilerplate code for setting up a notebook&lt;/SPAN&gt;
&lt;SPAN class="comment token"&gt;# for use with ArcGIS API for Python&lt;/SPAN&gt;

&lt;SPAN class="keyword token"&gt;from&lt;/SPAN&gt; arcgis&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;features &lt;SPAN class="keyword token"&gt;import&lt;/SPAN&gt; SpatialDataFrame
sdf &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; SpatialDataFrame&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;from_featureclass&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;&amp;lt;&lt;/SPAN&gt;path to feature &lt;SPAN class="keyword token"&gt;class&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;&amp;gt;&lt;/SPAN&gt;&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;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I've successfully loaded several feature classes of varying geometry types into a&amp;nbsp;SpatialDataFrame from the same SDE database without issue. However, I do have one feature class, RALEIGH.PARKS, that, when I try to load it, produces the following error:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/398991_pastedImage_1.png" style="width: 782px; height: 353px;" /&gt;&lt;/PRE&gt;&lt;/PRE&gt;&lt;/PRE&gt;&lt;UL&gt;&lt;LI&gt;The only difference I've been able to find thus far is under &lt;STRONG&gt;Feature Class Properties&amp;gt;Source&amp;gt;Storage&amp;nbsp;&lt;/STRONG&gt;the value is&amp;nbsp;&lt;EM&gt;High Precision using ST_Geometry spatial type (SRID 2264)&amp;nbsp;&lt;/EM&gt;whereas the others are listed as&amp;nbsp;&lt;EM&gt;High Precision using Esri Binary spatial type&lt;/EM&gt;.&amp;nbsp;&lt;/LI&gt;&lt;/UL&gt;&lt;UL&gt;&lt;LI&gt;All layers open properly in ArcGIS Pro.&lt;/LI&gt;&lt;LI&gt;If I export the RALEIGH.PARKS to a File Geodatabase and try to open it from there, I am able to successfully load the data into a&amp;nbsp;SpatialDataFrame&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Has anyone else run into problems loading a Feature Class from SDE into a&amp;nbsp;SpatialDataFrame using the Python API? I'm personally not quite sure what further to troubleshoot this error and finding the &lt;A href="https://esri.github.io/arcgis-python-api/apidoc/html/index.html" rel="nofollow noopener noreferrer" target="_blank"&gt;docs&lt;/A&gt; to be&amp;nbsp;a little spotty. Any suggestions on what I might try?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 12:40:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/cannot-open-sde-feature-class-to-create-a/m-p/256804#M19761</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2021-12-11T12:40:05Z</dc:date>
    </item>
  </channel>
</rss>

