Friday 25 March 2016

arcgis desktop - Set a split policy/rule on a field without domain in ArcMap


Can you define a split policy or split rule on a field without a domain? When a domain is involved, you can set the default value of the field and chose a rule for when a feature is split or merged.


The setSplitRule exists, but the only two options are 'None' or 'Ratio'. 'None' sets the attributes to the copy of the original value. http://resources.arcgis.com/en/help/main/10.2/index.html#//018z0000004v000000



I am looking to set a field to the Default Value (null) instead of copying the value from the original feature.



Answer



Those are actually two different things. Geoprocessing tools don't honor the split policies of feature classes or tables as noted on most of help pages for the tools - this one for example (look for the yellow triangle exclamation point). Those are the policies set using domains, and where that third option of Default comes in. As far as I know, this functionality is not available without the use of domains.


With an operation performed on a Feature Layer you can specify a ratio policy as a property of that feature layer, but you do not have the Default choice because it's not actually a split/merge policy - just use ratio or don't.


I believe the same principle applies in the arcpy field method you link to though they call it split rule there. If I understand correctly, the only time the split/merge policies take effect is during editing tasks, as opposed to geoprocessing tools.


No comments:

Post a Comment

arcpy - Changing output name when exporting data driven pages to JPG?

Is there a way to save the output JPG, changing the output file name to the page name, instead of page number? I mean changing the script fo...