Select to view content in your preferred language

Adjacent Parcels w same owners

1339
1
01-10-2011 11:50 AM
JohnFerro
New Contributor
Hey All,
I am asking for help on finding land owners that have adjacent parcels with a total area of over a certain number of acres.  Is there a way to run this in the select by attributes?  I have parcel data for a large area and need a faster way to do this.
Thnks for you help.
Tags (2)
0 Kudos
1 Reply
BruceHarold
Esri Frequent Contributor
Hi John

The Python snippet below (requires ArcInfo 10) finds parcels that have neighbouring parcels greater than a certain area in size.  I'm not sure from your post your exact requirement for selecting parcels, but you should be able to monkey with the logic to get there.

Regards

import arcpy
arcpy.env.overwriteOutput = True
parcels = r"C:\Temp\Parcels.shp"
lines = r"C:\Temp\Lines.shp"
arcpy.PolygonToLine_management(parcels,lines,"IDENTIFY_NEIGHBORS")
bigParcelList = [p.fid for p in arcpy.SearchCursor(parcels,"shape_area > 12000")]
hasBigNeighbourSet = set([l.right_fid for l in arcpy.SearchCursor(lines) if l.left_fid  in bigParcelList] + \
                         [l.left_fid  for l in arcpy.SearchCursor(lines) if l.right_fid in bigParcelList])
hasBigNeighbourSet.remove(-1) #any parcels on the edge of the world
bigneighbours = r"C:\Temp\BigNeighbours.shp"
expression = "fid in " + repr(list(hasBigNeighbourSet)).replace("[","(").replace("]",")")
arcpy.FeatureClassToFeatureClass_conversion(parcels, r"C:\Temp", "BigNeighbours.shp", expression)
0 Kudos