I am new to Python programming.
How do I check the intersection of two shapefiles using ArcPy?
If the shapefiles intersect, it should return True
else False
.
Below is the code that I have written :
import arcpy
arcpy.env.workspace = "D:/Qasim/mn_corcoran"
arcpy.Intersect_analysis(r'D:/Qasim/mn_hopkins/abc.shp #;D:/Qasim/mn_corcoran/xyz.shp #', r'D:/Qasim/mn_hopkins/asd.shp', 'ALL', '#', 'INPUT')
if arcpy.Intersect_analysis == True:
print("True")
else: arcpy.Intersect_analysis == False
print("False")