<?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: Create Random Points in Polygon Feature Class in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/create-random-points-in-polygon-feature-class/m-p/28373#M2168</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Indeed, the problem lies with an error in my shapefile! I drew the grid myself using an arcpy and pyshp and drew each square counterclockwise. Apperently, this only was a problem when I applied the random points tool. Thank you so much for the advice!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 19 Mar 2015 12:53:38 GMT</pubDate>
    <dc:creator>NilsRatnaweera</dc:creator>
    <dc:date>2015-03-19T12:53:38Z</dc:date>
    <item>
      <title>Create Random Points in Polygon Feature Class</title>
      <link>https://community.esri.com/t5/python-questions/create-random-points-in-polygon-feature-class/m-p/28369#M2164</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to use the tool "Create Random Points (Data Management)" in order to distribute 1 random point per Polygon using arcpy. My script is the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;arcpy.CreateRandomPoints_management(&lt;SPAN style="color: #660099;"&gt;out_path &lt;/SPAN&gt;= "C:/Data/",&amp;nbsp; &lt;SPAN style="color: #660099;"&gt;out_name&lt;/SPAN&gt;=&lt;SPAN style="color: #008000; font-weight: bold;"&gt;"random.shp"&lt;/SPAN&gt;, &lt;SPAN style="color: #660099;"&gt;constraining_feature_class&lt;/SPAN&gt;=&lt;SPAN style="color: #008000; font-weight: bold;"&gt;"C:/Data/Grid3b.shp"&lt;/SPAN&gt;, &lt;SPAN style="color: #660099;"&gt;number_of_points_or_field&lt;/SPAN&gt;=&lt;SPAN style="color: #0000ff;"&gt;1&lt;/SPAN&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The weird thing is, the output create contains the expected amout of points, but they all have the same coordinates (i.e. are "on top of each other) and are far off from where they should be. I've uploaded my the constraining shapefile &lt;A href="https://community.esri.com/docs/DOC-3497"&gt;here&lt;/A&gt;, can someone help me out?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Mar 2015 08:09:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/create-random-points-in-polygon-feature-class/m-p/28369#M2164</guid>
      <dc:creator>NilsRatnaweera</dc:creator>
      <dc:date>2015-03-19T08:09:13Z</dc:date>
    </item>
    <item>
      <title>Re: Create Random Points in Polygon Feature Class</title>
      <link>https://community.esri.com/t5/python-questions/create-random-points-in-polygon-feature-class/m-p/28370#M2165</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try using following syntax. Currently I do not have access to advanced license to test the behavior. &lt;/P&gt;&lt;PRE __default_attr="python" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14267577156387520 jive_text_macro" data-renderedposition="29.09722328186035_7.986111640930176_911_16" jivemacro_uid="_14267577156387520" modifiedtitle="true"&gt;&lt;P&gt;arcpy.CreateRandomPoints_management(r'C:\Temp',"Random.shp",r'C:\Temp\Grid3b.shp',"","1","","POINT","")&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this is helpful&lt;/P&gt;&lt;P&gt;Kishor&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Mar 2015 09:39:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/create-random-points-in-polygon-feature-class/m-p/28370#M2165</guid>
      <dc:creator>KishorGhatage</dc:creator>
      <dc:date>2015-03-19T09:39:15Z</dc:date>
    </item>
    <item>
      <title>Re: Create Random Points in Polygon Feature Class</title>
      <link>https://community.esri.com/t5/python-questions/create-random-points-in-polygon-feature-class/m-p/28371#M2166</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your answer! Unfortunalty, the result ist the same. 49 Points, as expected, but all on top of each other with weird coordinates (9.85771519532085e-273 /1.02643732661912e-299 rather than somewhere around 600000 / 200000).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Mar 2015 11:27:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/create-random-points-in-polygon-feature-class/m-p/28371#M2166</guid>
      <dc:creator>NilsRatnaweera</dc:creator>
      <dc:date>2015-03-19T11:27:30Z</dc:date>
    </item>
    <item>
      <title>Re: Create Random Points in Polygon Feature Class</title>
      <link>https://community.esri.com/t5/python-questions/create-random-points-in-polygon-feature-class/m-p/28372#M2167</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could you please run repair geometry on the Grid3b and then use Create random points. When I ran the repair geometry I found problem with 24 features in this file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Result:&lt;/P&gt;&lt;P&gt;"WARNING 000986: C:\Users\.........Local\Temp\Grid3b0.txt contains the full list of non simple features.&lt;/P&gt;&lt;P&gt;WARNING 000461: Repaired feature 0 because of incorrect ring ordering, ...., ......, ......, ......&amp;nbsp; WARNING 000461: Repaired feature 24 because of incorrect ring ordering"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Kishor&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Mar 2015 11:55:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/create-random-points-in-polygon-feature-class/m-p/28372#M2167</guid>
      <dc:creator>KishorGhatage</dc:creator>
      <dc:date>2015-03-19T11:55:55Z</dc:date>
    </item>
    <item>
      <title>Re: Create Random Points in Polygon Feature Class</title>
      <link>https://community.esri.com/t5/python-questions/create-random-points-in-polygon-feature-class/m-p/28373#M2168</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Indeed, the problem lies with an error in my shapefile! I drew the grid myself using an arcpy and pyshp and drew each square counterclockwise. Apperently, this only was a problem when I applied the random points tool. Thank you so much for the advice!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Mar 2015 12:53:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/create-random-points-in-polygon-feature-class/m-p/28373#M2168</guid>
      <dc:creator>NilsRatnaweera</dc:creator>
      <dc:date>2015-03-19T12:53:38Z</dc:date>
    </item>
  </channel>
</rss>

