<?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: Cut polygons with grid in Geoprocessing Questions</title>
    <link>https://community.esri.com/t5/geoprocessing-questions/cut-polygons-with-grid/m-p/88413#M3043</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This thread also mostly addresses a question I had about the split policy with MakeFeatureLayer. I know that it is the right tool for me (as I distribute population data across intersected polygons) but I'm having trouble with the python syntax and the help item just refers the user to: " See the usages for more information." (and I don't understand where this is telling me to go.)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So, could I get someone to copy in the syntax that you used to specify the "field_info" field and then specify that you wanted ratio splitting? Also, if I'm missing some "usages" section of the help text, please let me know.&amp;nbsp; Thanks much!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Mike&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;........&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Mike Alonzo&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;UCSB Geography&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 12 Nov 2013 03:42:18 GMT</pubDate>
    <dc:creator>MikeAlonzo</dc:creator>
    <dc:date>2013-11-12T03:42:18Z</dc:date>
    <item>
      <title>Cut polygons with grid</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/cut-polygons-with-grid/m-p/88411#M3041</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have a several polygons with certain statistical values. I want to cut the polygon with a fishnet (1000m*1000m). Eventually I want that the tiles of the grid has the percentual values of the polygon and I want to convert that to a raster.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any ideas how to do this? Picture is attached.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]18319[/ATTACH]&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Oct 2012 12:14:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/cut-polygons-with-grid/m-p/88411#M3041</guid>
      <dc:creator>UlrichStroetz</dc:creator>
      <dc:date>2012-10-10T12:14:43Z</dc:date>
    </item>
    <item>
      <title>Re: Cut polygons with grid</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/cut-polygons-with-grid/m-p/88412#M3042</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Sounds like a job for 'Make Feature Layer' and 'Union' ?&amp;nbsp; ...then one of the 'To Raster' conversion tools?&amp;nbsp; (or can you use a conversion tool directly?)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The idea with preprocessing with 'Make Feature Layer' is to apply a query if you need it and a percentage ratio based on the original geometry area before feeding into 'Union' with the grid.&amp;nbsp; This 'ratio' is applied in the 'Field Info' section of the Make Feature Layer tool - you specify the field which you want to 'Use Ratio Policy' - simple example is use a double field originally calculated to 1.0 (or 100.0) for per cent) but you probably want to use this function on other values?&amp;nbsp; Feeding the MFL output into 'Union' (it will be in the 'drop-down' on inputs), the output of 'Union' the policy will be applied (any portions cut off within grid bounds, say half in one grid half in the adjacent grid, the values with ratio policy applied should be also split in half).&amp;nbsp; Just an example - I'm not convinced this is appropriate for what you want though.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Oct 2012 15:25:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/cut-polygons-with-grid/m-p/88412#M3042</guid>
      <dc:creator>T__WayneWhitley</dc:creator>
      <dc:date>2012-10-10T15:25:23Z</dc:date>
    </item>
    <item>
      <title>Re: Cut polygons with grid</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/cut-polygons-with-grid/m-p/88413#M3043</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This thread also mostly addresses a question I had about the split policy with MakeFeatureLayer. I know that it is the right tool for me (as I distribute population data across intersected polygons) but I'm having trouble with the python syntax and the help item just refers the user to: " See the usages for more information." (and I don't understand where this is telling me to go.)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So, could I get someone to copy in the syntax that you used to specify the "field_info" field and then specify that you wanted ratio splitting? Also, if I'm missing some "usages" section of the help text, please let me know.&amp;nbsp; Thanks much!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Mike&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;........&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Mike Alonzo&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;UCSB Geography&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Nov 2013 03:42:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/cut-polygons-with-grid/m-p/88413#M3043</guid>
      <dc:creator>MikeAlonzo</dc:creator>
      <dc:date>2013-11-12T03:42:18Z</dc:date>
    </item>
    <item>
      <title>Re: Cut polygons with grid</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/cut-polygons-with-grid/m-p/88414#M3044</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;This should help you out - Make Feature Layer allows access to a fieldInfo object which in turn allows making use of the ratio policy:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;�?�A split policy can be set by using the Field Info control Use Ratio Policy option.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Make Feature Layer (Data Management) &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Desktop » Geoprocessing » Tool reference » Data Management toolbox&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.2/index.html#//00170000006p000000" rel="nofollow noopener noreferrer" target="_blank"&gt;http://resources.arcgis.com/en/help/main/10.2/index.html#//00170000006p000000&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;There's a nice sample script from the webhelp page for FieldInfo (bottom of page) that reads or 'gets' the 4 fieldInfo properties - the input field name, the new (output) field name, the split rule (ratio policy), and the visibility of fields.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;FieldInfo (arcpy)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Desktop » Geoprocessing » ArcPy » ArcPy classes&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.2/index.html#/FieldInfo/018z0000004v000000/" rel="nofollow noopener noreferrer" target="_blank"&gt;http://resources.arcgis.com/en/help/main/10.2/index.html#/FieldInfo/018z0000004v000000/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;"RATIO �??The attributes of resulting features are a ratio of the original feature's value. The ratio is based on the division of the original geometry. If the geometry is divided equally, each new feature's attribute gets one-half of the value of the original object's attribute."&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So what you could do after creating your fieldInfo obj is to find the field you mean to 'set' the ratio policy for, with:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;findFieldByName (field_name)&amp;nbsp; #Finds the field index by field name&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;...then use the following setSplitRule method with the proper index to set the rule (which in your case would be to enable it, the text 'RATIO')&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;setSplitRule (index, rule)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;That's probably all the info you need, but if you cannot follow that lead I can post more specific code...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope that helps,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Wayne&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;EDIT:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;This is untested code below, but should do the trick - once the 'layer' object ("temp_layer") from MFL is 'stamped' with the modified fieldInfo control, you should be able to use it in another overlay process to employ the RATIO policy.&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
import arcpy

feature_class = "c:/Data/wells.shp"
layer = "temp_layer"
arcpy.MakeFeatureLayer_management(feature_class, layer)

# Create a describe object
desc = arcpy.Describe(layer)

# Create a fieldinfo object
field_info = desc.fieldInfo

# Get index of desired field for which to set ratio policy
# Let's say your desired field is called 'area'
fldIndex = field_info.findFieldByName("area")

# Set the policy
field_info.setSplitRule(fldIndex, "RATIO")
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 23:22:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/cut-polygons-with-grid/m-p/88414#M3044</guid>
      <dc:creator>T__WayneWhitley</dc:creator>
      <dc:date>2021-12-10T23:22:57Z</dc:date>
    </item>
    <item>
      <title>Re: Cut polygons with grid</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/cut-polygons-with-grid/m-p/88415#M3045</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks, Wayne. This all worked out well based on your instructions.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Mike&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Nov 2013 15:27:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/cut-polygons-with-grid/m-p/88415#M3045</guid>
      <dc:creator>MikeAlonzo</dc:creator>
      <dc:date>2013-11-12T15:27:44Z</dc:date>
    </item>
    <item>
      <title>Re: Cut polygons with grid</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/cut-polygons-with-grid/m-p/88416#M3046</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Wayne --&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Sorry to keep this going but I've had trouble making this work in a stand-alone setting. I used the code above, which seemed to work fine. However, when I proceeded the intersect the ratio split policy wasn't honored. I'm wondering if I'm missing a step to connect the policy more explicitly back to the layer that is input to the intersect.&amp;nbsp; Code below.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for any thoughts,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Mike&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;inFeaturesAlb = "blocks_01_alb.shp"

layer = "temp_layer"
arcpy.MakeFeatureLayer_management(inFeaturesAlb, layer)

# Create a describe object
desc = arcpy.Describe(layer)

# Create a fieldinfo object
field_info = desc.fieldInfo

# Get index of desired field for which to set ratio policy
# Let's say your desired field is called 'area'
fldIndex = field_info.findFieldByName("POP10")

# Set the policy
field_info.setSplitRule(fldIndex, "RATIO")&amp;nbsp; 

######################################################################&amp;nbsp;&amp;nbsp;&amp;nbsp; 
#Do the intersection
#####################################################################&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
intOut = "State_01_int_3.shp"&amp;nbsp;&amp;nbsp;&amp;nbsp; 
inFeatures_int = [USA_layer, layer]

arcpy.Intersect_analysis(inFeatures_int, intOut)&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 23:23:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/cut-polygons-with-grid/m-p/88416#M3046</guid>
      <dc:creator>MikeAlonzo</dc:creator>
      <dc:date>2021-12-10T23:23:00Z</dc:date>
    </item>
    <item>
      <title>Re: Cut polygons with grid</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/cut-polygons-with-grid/m-p/88417#M3047</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Ratio policy should be honored by Intersect; however, I see you're feeding multiple input layers (as a list) and I don't see any ratio policy being defined for one of them in your code.&amp;nbsp; Without testing, my guess is that as it's being fed from the list, either the policy you intended to set isn't being honored because it's missing for the other layer or it is simply lost in translation.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you cannot get it to work feeding in the layers in a single Intersect processing, to at least see if you can get this to work, why not feed in separate executions of Intersect for each of your inputs?&amp;nbsp; That'll be fine particularly if you're only interested in the ratio on one of the layers.&amp;nbsp; ...but I'd be interested to know if it is as simple as making certain ratios are set for both layers.&amp;nbsp; Also, this is probably a given and you've already got it covered, but this policy only applies to numerical fields.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'll test this later if you're still having problems.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope you get it running,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Wayne&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also, see this blog below, pretty interesting and relevant...search the page for Ratio Policy and you'll see there's a topic where the policy is applied in a model - you could also very quickly set up a model for testing purposes, then proceed to committing to script.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;More adventures in overlay: splitting polygons with cartographic spaghetti&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;by Dale Honeycutt on November 9, 2012&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[Apportioning the NTrees attribute]&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://blogs.esri.com/esri/arcgis/2012/11/09/splitting_polygons/"&gt;http://blogs.esri.com/esri/arcgis/2012/11/09/splitting_polygons/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;EDIT:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;One more possible issue about your method - I noticed you appear to be trying to 'apportion' what looks to be a population field -- you have to be very careful about this because population is related to density and apportioning by area will incorrectly skew a density figure.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Nov 2013 14:08:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/cut-polygons-with-grid/m-p/88417#M3047</guid>
      <dc:creator>T__WayneWhitley</dc:creator>
      <dc:date>2013-11-22T14:08:28Z</dc:date>
    </item>
    <item>
      <title>Re: Cut polygons with grid</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/cut-polygons-with-grid/m-p/88418#M3048</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt; Hi Wayne --&amp;nbsp; &lt;BR /&gt; &lt;BR /&gt;Sorry to keep this going but I've had trouble making this work in a stand-alone setting. I used the code above, which seemed to work fine. However, when I proceeded the intersect the ratio split policy wasn't honored. I'm wondering if I'm missing a step to connect the policy more explicitly back to the layer that is input to the intersect. Code below.&amp;nbsp; &lt;BR /&gt; &lt;BR /&gt;Thanks for any thoughts,&amp;nbsp; &lt;BR /&gt;Mike&amp;nbsp; &lt;BR /&gt; &lt;BR /&gt; &lt;PRE class="lia-code-sample line-numbers language-none"&gt;inFeaturesAlb = "blocks_01_alb.shp"

layer = "temp_layer"
arcpy.MakeFeatureLayer_management(inFeaturesAlb, layer)

# Create a describe object
desc = arcpy.Describe(layer)

# Create a fieldinfo object
field_info = desc.fieldInfo

# Get index of desired field for which to set ratio policy
# Let's say your desired field is called 'area'
fldIndex = field_info.findFieldByName("POP10")

# Set the policy
field_info.setSplitRule(fldIndex, "RATIO")&amp;nbsp; 

######################################################################&amp;nbsp;&amp;nbsp;&amp;nbsp; 
#Do the intersection
#####################################################################&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
intOut = "State_01_int_3.shp"&amp;nbsp;&amp;nbsp;&amp;nbsp; 
inFeatures_int = [USA_layer, layer]

arcpy.Intersect_analysis(inFeatures_int, intOut)&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The help has a warning that "Geoprocessing tools do not honor geodatabase feature class or table field split policies." The help for tools like Intersect and Union also say "However, if the input is a layer or layers created by the Make Feature Layer tool and a field's Use Ratio Policy is checked, then a ratio of the input attribute value is calculated for the output attribute value." (Frankly, whoever wrote the help on this topic could have done a much better job, since the help layout never clearly links the warning and solution together).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I would set the split policy rule with the MakeFeatureLayer_Managment tool directly. I believe the help means to indicate that geoprocessing requires the use of this form of the split policy for other tools to honor it. If you build the Make Feature Layer Management tool in the ModleBuilder environment and check the split policy flag for the field(s) you want and export the model to a python script you will get the syntax you need. Here is an example of what ModelBuilder outputs:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;arcpy.MakeFeatureLayer_management(inFeaturesAlb, layer, "", "", "OBJECTID OBJECTID VISIBLE NONE;APN APN VISIBLE NONE;POP10 POP10 VISIBLE &lt;/SPAN&gt;&lt;SPAN style="color:&amp;quot;#FF0000&amp;quot;;"&gt;&lt;STRONG style="text-decoration: underline;"&gt;RATIO&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN&gt;")&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The field info portion of the tool is a single string that contains a semi-colon separated list of the layer fields, where each field is defined with a space separated list of four items:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The Original Feature Class/Table field name&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The Layer display field name&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The Visibility flag (either VISIBLE or NONE)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The Split Ratio Policy flag (either RATIO or NONE)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Additionally, I don't think shapefiles support a split ratio policy at all. Only geodatabase feature classes and tables support a split policy. Therefore your script will never work as long as your input is a shapefile. Your script might work as you have written it if you changed the feature class input from a shapefile to a geodatabase feature class.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Finally, only numeric fields honor the split policy and only Double and Float fields will honor the policy with an acceptable degree of accuracy.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 23:23:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/cut-polygons-with-grid/m-p/88418#M3048</guid>
      <dc:creator>RichardFairhurst</dc:creator>
      <dc:date>2021-12-10T23:23:03Z</dc:date>
    </item>
    <item>
      <title>Re: Cut polygons with grid</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/cut-polygons-with-grid/m-p/88419#M3049</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for the additional insight. The testing with model builder was a good call. The code generated from that (that worked fine) below.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It is still somewhat unclear to me why my original code doesn't honor the split though. I don't believe the shapefile is the issue since I am creating a feature layer using MakeFeatureLayer_management. And, when I check the the field_info properties using getsplitrule after creation I see, for my numeric field in question, that "RATIO" is listed.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I do appreciate the explicit connection between the created layer and the split policy that is evidenced in the model builder code version though.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As to Wayne's point about apportioning population: I'm with you about the population density issues. However in this case this is census block data and the spatial resolution is fine enough where we're not worrying about minor spurious re-apportionment. It is actually useful to have sliver polygons that are output from the intersection have populations of 0 or 1 so we can catch the error easier.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;import arcpy

# Local variables:
blocks_01_alb_shp = "...\\blocks_01_alb.shp"
USA_int_131111 = "USA_int_131111"
State_01_int_7_shp = "...\\State_01_int_7.shp"
blocks_01_alb_Layer1 = "blocks_01_alb_Layer1"

# Process: Make Feature Layer
arcpy.MakeFeatureLayer_management(blocks_01_alb_shp, blocks_01_alb_Layer1, "", "", "FID FID VISIBLE NONE;Shape Shape VISIBLE NONE;STATEFP10 STATEFP10 VISIBLE NONE;POP10 POP10 VISIBLE RATIO")

# Process: Intersect
arcpy.Intersect_analysis("blocks_01_alb_Layer1 #;USA_int_131111 #", State_01_int_7_shp, "ALL", "", "INPUT")

&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 23:23:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/cut-polygons-with-grid/m-p/88419#M3049</guid>
      <dc:creator>MikeAlonzo</dc:creator>
      <dc:date>2021-12-10T23:23:05Z</dc:date>
    </item>
    <item>
      <title>Re: Cut polygons with grid</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/cut-polygons-with-grid/m-p/88420#M3050</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Ah, I think now I see the problem and I have just 2 points to make:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- When the describe and field info objects are created, it is apparently separate from the layer it was created from.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- There needs to be a better distinction between 'split' policy and 'ratio' policy in the webhelp - the ratio policy is what we are manipulating here; the split policy is associated for example with an attribute domain that governs how values are populated while editing, etc...so split policies set up in that way are not supported by geoprocessing tools (although I suppose you could mimic with the ratio policy).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Back to your script, the trick I believe is to 'stamp' your layer only after getting and modifying the field info object - below is your code I modified to work (hopefully):&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
inFeaturesAlb = "blocks_01_alb.shp"

# Create a describe object
desc = arcpy.Describe(inFeaturesAlb)

# Create a fieldinfo object
field_info = desc.fieldInfo

# Get the field index and set ratio policy
field_info.setSplitRule(field_info.findFieldByName("POP10"), "RATIO")&amp;nbsp; 

layer = "temp_layer"
arcpy.MakeFeatureLayer_management(inFeaturesAlb, layer, '', '', field_info)

######################################################################&amp;nbsp;&amp;nbsp;&amp;nbsp; 
#Do the intersection
#####################################################################&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
intOut = "State_01_int_3.shp"&amp;nbsp;&amp;nbsp;&amp;nbsp; 
inFeatures_int = [USA_layer, layer]

arcpy.Intersect_analysis(inFeatures_int, intOut)
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope that clears up this issue a bit.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Wayne&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 23:23:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/cut-polygons-with-grid/m-p/88420#M3050</guid>
      <dc:creator>T__WayneWhitley</dc:creator>
      <dc:date>2021-12-10T23:23:08Z</dc:date>
    </item>
  </channel>
</rss>

