<?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: Shapefiles in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/shapefiles/m-p/1198634#M65150</link>
    <description>&lt;P&gt;The leading slash in "notebook_path" probably won't work on Windows. It makes it an absolute path and so Windows throws a drive letter in there for you. Z:&lt;/P&gt;&lt;P&gt;You could use a complete path like "C:/Users/YOURLOGINNAMEHERE/arcgis/home/" or it could be relative to the current folder if you leave the leading slash off like just "arcgis/home" if your data is in the local folder.&lt;/P&gt;&lt;P&gt;I use tests a lot like&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;import os
if not os.path.exists(notebook_folder): print("THE PATH DOES NOT EXIST!!")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 02 Aug 2022 16:52:23 GMT</pubDate>
    <dc:creator>Brian_Wilson</dc:creator>
    <dc:date>2022-08-02T16:52:23Z</dc:date>
    <item>
      <title>Shapefiles</title>
      <link>https://community.esri.com/t5/python-questions/shapefiles/m-p/1198498#M65128</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AlmaRobertson_1-1659447632939.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/47573i2B9054395D674754/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AlmaRobertson_1-1659447632939.png" alt="AlmaRobertson_1-1659447632939.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Hi I'm working with shapefiles and I'm having trouble in my intro to programming class. The first block of code works, but when I run LN(4) I get error code 000229. I have confirmed the file oil_platforms.shp exists. Any pointers? I feel like I have tried everything to solve this.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Aug 2022 13:43:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/shapefiles/m-p/1198498#M65128</guid>
      <dc:creator>AlmaRobertson</dc:creator>
      <dc:date>2022-08-02T13:43:44Z</dc:date>
    </item>
    <item>
      <title>Re: Shapefiles</title>
      <link>https://community.esri.com/t5/python-questions/shapefiles/m-p/1198518#M65133</link>
      <description>&lt;P&gt;Please post the code itself, not a picture. Images are not legible on all devices, and would require retying your code to test or recommend a solution.&lt;/P&gt;&lt;P&gt;- V&lt;/P&gt;</description>
      <pubDate>Tue, 02 Aug 2022 14:08:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/shapefiles/m-p/1198518#M65133</guid>
      <dc:creator>VinceAngelo</dc:creator>
      <dc:date>2022-08-02T14:08:58Z</dc:date>
    </item>
    <item>
      <title>Re: Shapefiles</title>
      <link>https://community.esri.com/t5/python-questions/shapefiles/m-p/1198634#M65150</link>
      <description>&lt;P&gt;The leading slash in "notebook_path" probably won't work on Windows. It makes it an absolute path and so Windows throws a drive letter in there for you. Z:&lt;/P&gt;&lt;P&gt;You could use a complete path like "C:/Users/YOURLOGINNAMEHERE/arcgis/home/" or it could be relative to the current folder if you leave the leading slash off like just "arcgis/home" if your data is in the local folder.&lt;/P&gt;&lt;P&gt;I use tests a lot like&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;import os
if not os.path.exists(notebook_folder): print("THE PATH DOES NOT EXIST!!")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Aug 2022 16:52:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/shapefiles/m-p/1198634#M65150</guid>
      <dc:creator>Brian_Wilson</dc:creator>
      <dc:date>2022-08-02T16:52:23Z</dc:date>
    </item>
    <item>
      <title>Re: Shapefiles</title>
      <link>https://community.esri.com/t5/python-questions/shapefiles/m-p/1198716#M65152</link>
      <description>&lt;P&gt;Will do in the future. Thank you.&lt;/P&gt;</description>
      <pubDate>Tue, 02 Aug 2022 20:14:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/shapefiles/m-p/1198716#M65152</guid>
      <dc:creator>AlmaRobertson</dc:creator>
      <dc:date>2022-08-02T20:14:27Z</dc:date>
    </item>
    <item>
      <title>Re: Shapefiles</title>
      <link>https://community.esri.com/t5/python-questions/shapefiles/m-p/1199156#M65191</link>
      <description>&lt;P&gt;A handy shortcut to copying paths in Windows is hold shift &amp;gt; right click &amp;gt; copy path.&amp;nbsp; You will get something like this&amp;nbsp;"C:\temp\some.shp" in your clipboard (even with the quotes).&amp;nbsp; Because combos of backslashes and characters can be escapes in Python, exercise caution by making a habit of using raw strings by prefixing your path strings with the letter r (e.g. r"C:\temp\input.csv") in your script.&lt;/P&gt;&lt;P&gt;Tyler&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Aug 2022 20:57:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/shapefiles/m-p/1199156#M65191</guid>
      <dc:creator>TylerT</dc:creator>
      <dc:date>2022-08-03T20:57:53Z</dc:date>
    </item>
  </channel>
</rss>

