Tag Info

New answers tagged

1

How about something like this: import arcpy mainTbl = r"C:\test.gdb\main" lutTbl = r"C:\test.gdb\lut" #Note the order of the fields in the search cursor has to coincide with field order in the update cursor #Also assumes the matching fields are of compatibale types (exanple: can't insert string into integer) lutDict = {r[0]:[i for i in r[1:]] for r in ...


0

I suggest to change arcpy.SpatialJoin_analysis(census_tracts_shp, feature_class, spatial_join, "JOIN_ONE_TO_MANY", "KEEP_ALL","", "INTERSECT", "", "") to arcpy.SpatialJoin_analysis(feature_class,census_tracts_shp, spatial_join, "JOIN_ONE_TO_ONE", "KEEP_ALL","", "INTERSECT", "", "")


0

You may use the IFeatureDataConverter.ConvertFeatureClass method. Here is a code snippet: Converting simple data


3

The method for removing a feature depends on the cursor. If you are using a recycling cursor: pCur = pFeatClass.Search(null,true) do not call delete in any way, shape or form. Calling delete on a recycling cursor removes the buffer so there is nothing to load the next feature into which is why it's getting cranky when you call NextFeature() - you've already ...



Top 50 recent answers are included