This occurs when Portal for ArcGIS does not include a configured hosting server and/or a valid geocoder that supports batch processing. # Use a search cursor to go through the table, and print the tmpUID When Esri Maps for IBM Cognos is configured to use Portal for ArcGIS and the Address location type is chosen to add address data to the map, the address fields are not populated and the data cannot be added. # If there is a difference, print out the FID of the inputĪrcpy.Frequency_analysis(outFeatureClass, OutCount = int(arcpy.GetCount_management(outFeatureClass).getOutput(0)) InCount = int(arcpy.GetCount_management(inFeatureClass).getOutput(0)) # Check if there is a different number of features in the output # Run the tool to create a new fc with only singlepart featuresĪrcpy.MultipartToSinglepart_management(inFeatureClass, outFeatureClass) OIDFieldName = arcpy.Describe(inFeatureClass).OIDFieldNameĪrcpy.CalculateField_management(inFeatureClass, "tmpUID",
# Determine what the name of the Object ID is # Add a field to the input this will be used as a unique identifierĪrcpy.AddField_management(inFeatureClass, "tmpUID", "double") # Create list of all fields in inFeatureClassįieldNameList = OutFeatureClass = "c:/data/gdb.gdb/vegetation_singlepart"
InFeatureClass = "c:/data/gdb.gdb/vegetation" # Create variables for the input and output feature classes # and report which features were separated. # Description: Break all multipart features into singlepart features, # Name: MultipartToSinglepart_Example2.py Rings that represent a co-planar region whose boundary is defined by 4 or more vertices.Triangle fans that are defined by multiple triangles with a common point of origin.Triangle strips that are defined by multiple triangles which successively share one common edge.Individual triangles that reference 3 vertices.Each part can be defined by a collection of vertices containing X, Y, and Z coordinates that are arranged as: To reconstruct multipart features from singlepart features based on a common field value, such as ORIG_FID, use the Dissolve tool.Ī multipatch feature will be separated into its constituent geometry parts. The one exception is if the input features are type multipoint, the output feature class will be type point. Most of the output feature types will be the same as input (input polygons remain polygons input lines remain lines). Features that are already singlepart will not be affected. A new field, ORIG_FID, will be added to the output feature class and set to the input feature IDs.Įach part of a multipart feature will be separated into individual features in the output feature class. The attributes of the input features will be maintained in the output feature class.