<?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: multiple shapefiles from create random points in ArcGIS Spatial Analyst Questions</title>
    <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/multiple-shapefiles-from-create-random-points/m-p/616679#M8960</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Great, I think I got it now.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 14 May 2013 21:49:13 GMT</pubDate>
    <dc:creator>JacobGjesdahl</dc:creator>
    <dc:date>2013-05-14T21:49:13Z</dc:date>
    <item>
      <title>multiple shapefiles from create random points</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/multiple-shapefiles-from-create-random-points/m-p/616677#M8958</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello, I'm trying to run a model that will make viewsheds for almost 4000 points and then make a table of areas in different land uses within each viewshed (each point is a row in this final table).&amp;nbsp; I have the model all built and working fine for one point, but I don't know how to "split" the rows of the input table into new shapefiles.&amp;nbsp; To start with I have a polygon file of lots and I want to assign a random point to each polygon.&amp;nbsp; However, when I tried to go into properties and change it to a list of values, the result was the same - lots of points within one shapefile, when what I want is almost 4000 shapefiles each containing one point.&amp;nbsp; I see two possible solutions to this: where I get the tool to recognize the shapefile as multiple inputs rather than 1 input, or where I first split the shapefile into 4000 shapefiles, then run the tool with a list input.&amp;nbsp; However, I think the list input only allows 50 inputs, so it seems like the first option would be the way.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Sorry if this is an obvious question (or conversely impossible to understand), I'm fairly new to model builder.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Jacob Gjesdahl&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 May 2013 20:20:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/multiple-shapefiles-from-create-random-points/m-p/616677#M8958</guid>
      <dc:creator>JacobGjesdahl</dc:creator>
      <dc:date>2013-05-14T20:20:26Z</dc:date>
    </item>
    <item>
      <title>Re: multiple shapefiles from create random points</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/multiple-shapefiles-from-create-random-points/m-p/616678#M8959</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello Jacob,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Have you looked into &lt;/SPAN&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.1/index.html#//00400000000t000000"&gt;iterating&lt;/A&gt;&lt;SPAN&gt; your point shapefile first?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You can iterate the OBJECTID field, which can then be used in a &lt;/SPAN&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.1/index.html#//001700000071000000"&gt;select by attribute&lt;/A&gt;&lt;SPAN&gt; process.&amp;nbsp; This will ensure you select each row, one at a time.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;From here you have options.&amp;nbsp; Either &lt;/SPAN&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.1/index.html#//001700000035000000"&gt;copying&lt;/A&gt;&lt;SPAN&gt; the selection to a new shapefile, or using it inside of the rest of your model.&amp;nbsp; You can even use %i% or your iteration %value% to uniquely name the outputs.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you create individual shapefiles, then you can use an additional iterator (inside of a new model) to &lt;/SPAN&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.1/index.html#/Iterate_Feature_Classes/00400000000r000000/"&gt;iterate each shapefile &lt;/A&gt;&lt;SPAN&gt; into your current model.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope this helps!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Chris B.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 May 2013 20:39:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/multiple-shapefiles-from-create-random-points/m-p/616678#M8959</guid>
      <dc:creator>ChristopherBlinn1</dc:creator>
      <dc:date>2013-05-14T20:39:25Z</dc:date>
    </item>
    <item>
      <title>Re: multiple shapefiles from create random points</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/multiple-shapefiles-from-create-random-points/m-p/616679#M8960</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Great, I think I got it now.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 May 2013 21:49:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/multiple-shapefiles-from-create-random-points/m-p/616679#M8960</guid>
      <dc:creator>JacobGjesdahl</dc:creator>
      <dc:date>2013-05-14T21:49:13Z</dc:date>
    </item>
    <item>
      <title>Re: multiple shapefiles from create random points</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/multiple-shapefiles-from-create-random-points/m-p/616680#M8961</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Actually, one more problem I thought I could figure out on my own, but I couldn't.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have this as my expression on raster calculator:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Con(( ("%%value%_be2%" == 0) &amp;amp; ("%%value%hh%" == 0) &amp;amp; ("%%value%no%" == 1) ) | ( ("%%value%be%" == 1) &amp;amp; ("%%value%no%" == 1) &amp;amp; ("%%value%hh%"== 1) ), 1, 0)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But it gives me the attached error.&amp;nbsp; It seems that the problem is that it's not referencing the real rasters I want it to, but I couldn't figure out how to get those actual rasters into the raster calculator.&amp;nbsp; Do you know how to do this?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Jacob&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 May 2013 22:37:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/multiple-shapefiles-from-create-random-points/m-p/616680#M8961</guid>
      <dc:creator>JacobGjesdahl</dc:creator>
      <dc:date>2013-05-14T22:37:10Z</dc:date>
    </item>
    <item>
      <title>Re: multiple shapefiles from create random points</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/multiple-shapefiles-from-create-random-points/m-p/616681#M8962</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Jacob,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Alright, let me try and dissect your expression a bit:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Are you adding the %value% variable into another variable to create the raster name? Raster names shouldn't need the extra set of %% around them.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For example, you have "%%value%_be2%".&amp;nbsp; For the sake of argument, if we say %value% equals 'input1', is your raster name actually, 'input1_be2'?&amp;nbsp; If so, you should just put "%value%_be2".&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I know this is a 10.0 help page, but it applies to 10.1 in terms of &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//009z000000zn000000.htm"&gt;naming rasters in the raster calculator.&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In that case, this expression may work (untested):&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;Con(( ("%value%_be2" == 0) &amp;amp; ("%value%hh" == 0) &amp;amp; ("%value%no" == 1) ) | ( ("%value%be" == 1) &amp;amp; ("%value%no" == 1) &amp;amp; ("%value%hh"== 1) ), 1, 0)&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope this helps!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Chris B.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 May 2013 12:04:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/multiple-shapefiles-from-create-random-points/m-p/616681#M8962</guid>
      <dc:creator>ChristopherBlinn1</dc:creator>
      <dc:date>2013-05-15T12:04:23Z</dc:date>
    </item>
    <item>
      <title>Re: multiple shapefiles from create random points</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/multiple-shapefiles-from-create-random-points/m-p/616682#M8963</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;No, I'm afraid I tried that too, and it didn't work.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 May 2013 13:28:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/multiple-shapefiles-from-create-random-points/m-p/616682#M8963</guid>
      <dc:creator>JacobGjesdahl</dc:creator>
      <dc:date>2013-05-15T13:28:50Z</dc:date>
    </item>
    <item>
      <title>Re: multiple shapefiles from create random points</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/multiple-shapefiles-from-create-random-points/m-p/616683#M8964</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Jacob,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Unfortunately without seeing your model (and python script behind the model), I cannot address your issue any further.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If possible, please attach the python script to your model in a zipped folder, and I can take a further look.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Chris B.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 May 2013 14:21:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/multiple-shapefiles-from-create-random-points/m-p/616683#M8964</guid>
      <dc:creator>ChristopherBlinn1</dc:creator>
      <dc:date>2013-05-15T14:21:09Z</dc:date>
    </item>
    <item>
      <title>Re: multiple shapefiles from create random points</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/multiple-shapefiles-from-create-random-points/m-p/616684#M8965</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Attached is the python as well as the model in picture form.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 May 2013 19:31:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/multiple-shapefiles-from-create-random-points/m-p/616684#M8965</guid>
      <dc:creator>JacobGjesdahl</dc:creator>
      <dc:date>2013-05-15T19:31:39Z</dc:date>
    </item>
    <item>
      <title>Re: multiple shapefiles from create random points</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/multiple-shapefiles-from-create-random-points/m-p/616685#M8966</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Chris is right, your syntax is messing things up. The error message is because python is not recognizing your variables as raster layers but just as garden-variety strings.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;To get this to work, you must rename your model element names to remove the percent symbols (right click / rename). They were automatically named that way as you were creating them, I know, but ModelBuilder gets very confused&amp;nbsp; when percents are used in the model element names, since model variables are used as model element names surrounded by percent symbols.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Then, in Raster Calculator, you can make a more sane expression using the raster layers listed in the upper left corner -- something like:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;Con( (("value_be2" == 0) &amp;amp; ("value_hh" == 0) &amp;amp; ("value_no" == 1)) | &amp;nbsp;&amp;nbsp;&amp;nbsp; (("value_no" == 1) &amp;amp; ("value_be" == 1) &amp;amp; ("value_hh" == 1)), 1, 0)&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I can simplify your expression, too:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;Con( "value_no" == 1 &amp;amp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; ((("value_be2" == 0) &amp;amp; ("value_hh" == 0)) | &amp;nbsp;&amp;nbsp;&amp;nbsp; (("value_be" == 1) &amp;amp; ("value_hh" == 1))), 1, 0)&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 May 2013 23:36:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/multiple-shapefiles-from-create-random-points/m-p/616685#M8966</guid>
      <dc:creator>curtvprice</dc:creator>
      <dc:date>2013-05-15T23:36:21Z</dc:date>
    </item>
    <item>
      <title>Re: multiple shapefiles from create random points</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/multiple-shapefiles-from-create-random-points/m-p/616686#M8967</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Great!&amp;nbsp; Thank you very much - the rename was the ticket and it seems to work fine now.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 May 2013 23:50:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/multiple-shapefiles-from-create-random-points/m-p/616686#M8967</guid>
      <dc:creator>JacobGjesdahl</dc:creator>
      <dc:date>2013-05-15T23:50:25Z</dc:date>
    </item>
  </channel>
</rss>

