HiI wonder whether someone can help - I have a town characterisation dataset which I need to 'spatial join' to some ecological designation datatsets - I thought a quick way of doing this might be in Python.The problem I have is fieldmapping - I don't really get it!! 😞Ideally, what i'd like to do is create a field and if the designation is within the target layer populate this field with "YES".Help would be greatly appreciated. I've posted my starting code below minus field mappings!!import arcpy
from arcpy import env
env.workspace = r"C:\Users\Documents\GIS\Working\Constraints"
files = arcpy.ListFiles("*.shp")
targetLayer = r"C:\Users\Documents\GIS\Working\LCP\stratford_3d_swedits_1.shp"
for file in files:
#heres where i need to put the spatial join and field mapping code